/* ========================================================
   APP CONTAINER & SMOOTH SCREEN TRANSITIONS
   ======================================================== */
.app-container {
  position: fixed;
  inset: 0;
  z-index: 20;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: calc(14px + var(--safe-top)) 12px calc(88px + var(--safe-bottom)) 12px;
}

/* Tabs slide in from the side they are reached from (--dir is set by the nav) */
@keyframes screenIn {
  from {
    opacity: 0;
    transform: translate3d(calc(var(--dir, 1) * 32px), 0, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.screen {
  display: none;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
}

body[data-tab="home"] #screen-home,
body[data-tab="palki"] #screen-palki,
body[data-tab="history"] #screen-history,
body[data-tab="stats"] #screen-stats,
body[data-tab="info"] #screen-info,
body[data-tab="admin"] #screen-admin {
  display: block;
  animation: screenIn var(--dur-screen) var(--ease-drawer) both;
}

/* ========================================================
   TOP HEADER BAR
   ======================================================== */
.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px 8px 10px;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
  margin-bottom: 16px;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.avatar-wrap {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(131, 125, 87, 0.2);
  border: 1.5px solid var(--accent);
  box-shadow: none;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  cursor: pointer;
}

.avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-fallback svg {
  width: 20px;
  height: 20px;
  fill: var(--accent);
  display: block;
}

.user-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.paytag {
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: 0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

.team-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 10px;
  background: rgba(131, 125, 87, 0.16);
  border: 1px solid rgba(131, 125, 87, 0.35);
  font-size: 12px;
  font-weight: 600;
  color: #e2e8f0;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.team-status-text {
  line-height: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.bell-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background var(--dur-ui) ease, border-color var(--dur-ui) ease, transform var(--dur-press) var(--ease-out);
}

.bell-btn svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.bell-btn:active {
  transform: scale(0.92);
  background: rgba(131, 125, 87, 0.22);
}

.bell-indicator {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-rose);
}

/* ========================================================
   SCREEN: ГЛАВНАЯ (HOME)
   ======================================================== */
.hero-stats-card {
  margin-bottom: 16px;
  background: var(--accent-soft);
  border: 1px solid rgba(131, 125, 87, 0.35);
}

.hero-stats-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.hero-tag-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-stat-main {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 4px;
}

.hero-stat-label {
  font-size: 12px;
  color: var(--muted);
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-substat-val {
  font-size: 18px;
  font-weight: 700;
  color: #f1f5f9;
}

.hero-substat-lbl {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.action-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 14px;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
}

.action-tile-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(131, 125, 87, 0.18);
  border: 1px solid rgba(131, 125, 87, 0.32);
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  color: var(--accent-bright);
}

.action-tile-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.action-tile-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 3px;
}

.action-tile-desc {
  font-size: 12px;
  color: var(--muted);
}

.promo-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  margin-bottom: 16px;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
}

.promo-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.promo-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
}

.promo-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.promo-subtitle {
  font-size: 12px;
  color: var(--muted);
}

/* ========================================================
   SCREEN: ПАЛКИ (STICKS / PAYPAL)
   ======================================================== */
.section-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sticks-selector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.stick-tier-card {
  padding: 16px 14px;
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
}

.stick-tier-val {
  font-size: 19px;
  font-weight: 800;
  color: var(--accent-bright);
  margin-bottom: 4px;
}

.stick-tier-label {
  font-size: 12px;
  color: var(--muted);
}

.active-sticks-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.stick-card {
  padding: 16px;
  border-radius: var(--radius-md);
}

.stick-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.stick-amount {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
  color: #fff;
}

.stick-id {
  margin-top: 2px;
  font-size: var(--fs-caption);
  color: var(--muted);
}

.stick-meta {
  font-size: var(--fs-caption);
  color: var(--muted);
  margin-bottom: 12px;
}

.stick-timer {
  font-size: 12px;
  font-weight: 600;
  color: var(--status-amber);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.stick-timer svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.stick-credential-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: border-color 0.2s;
}

.stick-credential-box:active {
  border-color: var(--accent);
}

.stick-email {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  font-weight: 600;
  color: #f8fafc;
  word-break: break-all;
}

.copy-hint {
  font-size: 12px;
  color: var(--accent-bright);
  flex-shrink: 0;
  margin-left: 8px;
}

.stick-card-actions {
  display: flex;
  gap: 8px;
}

.stick-card-actions .glass-btn {
  flex: 1;
}

/* Minimal Vector Empty State */
.empty-state {
  text-align: center;
  padding: 32px 16px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}

.empty-state svg {
  width: 32px;
  height: 32px;
  fill: var(--muted);
  margin-bottom: 8px;
  opacity: 0.7;
}

.empty-state-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 3px;
}

.empty-state-text {
  font-size: 12px;
  color: var(--muted);
}

/* ========================================================
   SCREEN: ИСТОРИЯ (HISTORY / PROFITS)
   ======================================================== */
.history-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.filter-chip {
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--dur-ui) ease, color var(--dur-ui) ease, border-color var(--dur-ui) ease;
}

.filter-chip.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: #fff;
}

.profit-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  border-radius: var(--radius-md);
  margin-bottom: 10px;
}

.profit-item-amount {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}

.profit-item-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* ========================================================
   SCREEN: СТАТЫ (STATS / LEADERBOARD)
   ======================================================== */
.top-summary-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.podium-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
  align-items: flex-end;
}

.podium-card {
  padding: 14px 6px;
  border-radius: var(--radius-md);
  text-align: center;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
}

.podium-card.first {
  order: 2;
  padding: 18px 6px;
  background: var(--accent-soft);
  border-color: rgba(131, 125, 87, 0.45);
  box-shadow: none;
}

.podium-card.second {
  order: 1;
}

.podium-card.third {
  order: 3;
}

.podium-medal {
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}

.podium-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 6px;
}

.rank-gold {
  background: rgba(184, 166, 112, 0.22);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
}

.rank-silver {
  background: rgba(203, 213, 225, 0.15);
  border: 1px solid #cbd5e1;
  color: #cbd5e1;
}

.rank-bronze {
  background: rgba(217, 119, 87, 0.18);
  border: 1px solid #d97757;
  color: #d97757;
}

.podium-tag {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.podium-val {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent-bright);
  margin-top: 3px;
}

.leaderboard-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.leader-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
}

.leader-pos {
  width: 24px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.leader-tag {
  flex: 1;
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
  margin-left: 6px;
}

.leader-sum {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

/* ========================================================
   SCREEN: ИНФО (INFO / CHANNELS / CONTACTS)
   ======================================================== */
.info-section-group {
  margin-bottom: 18px;
}

.info-links-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.info-link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  border-radius: var(--radius-md);
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  transition: transform var(--dur-press) var(--ease-out), border-color var(--dur-ui) ease;
}

.info-link-item:active {
  transform: scale(0.985);
  border-color: var(--accent-glow);
}

.info-link-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.info-link-icon, .info-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(131, 125, 87, 0.15);
  border: 1px solid rgba(131, 125, 87, 0.3);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--accent-bright);
}

.info-link-icon svg, .info-icon-box svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.info-link-title {
  font-size: 13px;
  font-weight: 600;
}

.info-link-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.support-contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.contact-card {
  padding: 14px;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
}

.contact-role {
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--accent-bright);
  margin-bottom: 4px;
}

.contact-handle {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

/* ========================================================
   SCREEN: АДМИНКА (FULL ADMIN HUB)
   ======================================================== */
.admin-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.admin-tabs-nav::-webkit-scrollbar {
  display: none;
}

.admin-subtab-btn {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: var(--fs-small);
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
  transition: background var(--dur-ui) ease, color var(--dur-ui) ease, border-color var(--dur-ui) ease, transform var(--dur-press) var(--ease-out);
}

.admin-subtab-btn:active {
  transform: scale(0.96);
}

.admin-subtab-btn.active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--text-main);
}

.admin-subtab-count {
  display: inline-block;
  min-width: 20px;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-sub);
  font-size: var(--fs-caption);
  line-height: 18px;
  text-align: center;
}

.admin-subtab-btn.active .admin-subtab-count {
  background: rgba(201, 185, 127, 0.22);
  color: var(--accent-gold);
}

.admin-view-panel {
  display: none;
}

.admin-view-panel.active {
  display: block;
}

.admin-view-panel.active.enter {
  animation: panelIn var(--dur-enter) var(--ease-out) both;
}

.admin-status-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.status-toggle-btn {
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.status-toggle-btn.active.full-work {
  background: rgba(52, 211, 153, 0.15);
  border-color: var(--status-emerald);
  color: #6ee7b7;
}

.status-toggle-btn.active.stop-work {
  background: rgba(248, 113, 113, 0.15);
  border-color: var(--status-rose);
  color: #fca5a5;
}

.warehouse-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.warehouse-item {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.warehouse-item-count {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.warehouse-item-label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.admin-requests-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* A request kind fades in place: opacity only, so nothing under it moves */
[id^="subview"].is-entering {
  animation: subviewFade var(--dur-ui) ease-out both;
}

@keyframes subviewFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.admin-req-card {
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
}

.admin-req-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.admin-req-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.admin-req-actions .glass-btn {
  flex: 1;
  padding: 10px 12px;
  font-size: var(--fs-small);
}

.admin-card {
  padding: 16px;
  margin-bottom: 14px;
}

.admin-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-title {
  font-size: var(--fs-section);
  font-weight: 700;
  color: #fff;
}

.admin-hint {
  font-size: var(--fs-caption);
  color: var(--muted);
  margin-top: 2px;
}

.req-amount {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: #fff;
}

.req-tag {
  margin-left: 6px;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--accent-bright);
}

.req-time {
  flex-shrink: 0;
  font-size: var(--fs-caption);
  color: var(--muted);
}

.req-line {
  font-size: var(--fs-small);
  color: var(--text-sub);
  line-height: 1.5;
}

.req-line b {
  color: var(--text-main);
  font-weight: 700;
}

.req-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--fs-small);
  color: var(--text-main);
  word-break: break-all;
  margin-bottom: 4px;
}

.req-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.req-actions-grid.is-three {
  grid-template-columns: 1fr 1fr 1fr;
}

.req-actions-grid .glass-btn {
  padding: 10px 8px;
  font-size: var(--fs-caption);
}

.glass-btn-info {
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.32);
  color: #7dd3fc;
}

.glass-btn-warn {
  background: rgba(251, 146, 60, 0.1);
  border-color: rgba(251, 146, 60, 0.32);
  color: #fdba74;
}

.glass-btn-block {
  width: 100%;
}

.gif-preview {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: #0b0e13;
  border: 1px solid var(--glass-border);
}

.gif-preview img,
.gif-preview video {
  display: block;
  max-width: 100%;
  max-height: 200px;
  border-radius: var(--radius-xs);
}

.celebration-media {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 50%;
}

.sheet-hint {
  margin-bottom: 14px;
  font-size: var(--fs-small);
  color: var(--muted);
}

.glass-btn-sm {
  min-height: 34px;
  padding: 6px 10px;
  font-size: var(--fs-caption);
  border-radius: var(--radius-xs);
}

.admin-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.admin-chip-row::-webkit-scrollbar {
  display: none;
}

.admin-btn-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 6px;
}

.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.warehouse-item-count.is-accent {
  color: var(--accent-bright);
}

.template-name {
  font-size: var(--fs-small);
  font-weight: 700;
}

.template-name.is-full {
  color: #6ee7b7;
}

.template-name.is-stop {
  color: #fca5a5;
}

.fake-summary {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--glass-border);
}

.fake-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: var(--fs-small);
}

.fake-row-label {
  color: var(--muted);
}

.fake-row-value {
  font-weight: 700;
  color: #fff;
  text-align: right;
}

.fake-row-value.is-done {
  color: var(--status-emerald);
}

.fake-row-value.is-accent {
  color: var(--accent-bright);
}

.fake-queue {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--glass-border);
}

.fake-queue-title {
  font-size: var(--fs-caption);
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
}

.fake-queue-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fake-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.03);
  font-size: var(--fs-small);
}

.fake-item-amount {
  font-weight: 700;
  color: #fff;
}

.fake-item-time {
  margin-left: 6px;
  font-size: var(--fs-caption);
  color: var(--muted);
}

.bcast-body {
  min-width: 0;
  flex: 1;
}

.bcast-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.bcast-time {
  font-size: var(--fs-body);
  font-weight: 800;
  color: var(--accent-gold);
}

.bcast-text {
  font-size: var(--fs-caption);
  color: var(--text-sub);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bcast-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
  margin-left: 10px;
}

/* ========================================================
   SHARED SURFACES: grouped lists instead of one card per row
   ======================================================== */
.surface {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
}

.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 12px 16px;
  color: var(--text-main);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur-ui) ease;
}

.list-row + .list-row {
  border-top: 1px solid var(--glass-border);
}

.list-row:active {
  background: rgba(255, 255, 255, 0.04);
}

.list-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.list-main {
  min-width: 0;
  flex: 1;
}

.list-main > span {
  display: block;
}

button.list-row {
  width: 100%;
  border: 0;
  background: none;
  font-family: inherit;
  text-align: left;
}

.list-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-sub {
  font-size: var(--fs-caption);
  color: var(--muted);
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.list-amount {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
}

.list-meta {
  font-size: var(--fs-caption);
  color: var(--muted);
  margin-top: 2px;
}

.list-note {
  font-size: var(--fs-caption);
  color: var(--accent-bright);
  margin-top: 4px;
}

.stat-tile {
  padding: 16px;
  margin-bottom: 0;
}

.stat-big {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #fff;
}

.stat-big.is-accent {
  color: var(--accent-bright);
}

.stat-caption {
  font-size: var(--fs-caption);
  color: var(--muted);
  margin-top: 4px;
}

.info-icon-box.is-emerald {
  color: var(--status-emerald);
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.3);
}

.info-icon-box.is-gold {
  color: var(--accent-bright);
  background: rgba(184, 166, 112, 0.12);
  border-color: rgba(184, 166, 112, 0.3);
}

.info-icon-box.is-blue {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.3);
}

/* Segmented control (history filters) */
.seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
  margin-bottom: 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
}

.seg-btn {
  min-height: 36px;
  padding: 6px 4px;
  border: 0;
  border-radius: var(--radius-xs);
  background: none;
  color: var(--muted);
  font-family: inherit;
  font-size: var(--fs-small);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur-ui) ease, color var(--dur-ui) ease;
}

.seg-btn.active {
  background: rgba(131, 125, 87, 0.26);
  color: var(--text-main);
  box-shadow: none;
}

.seg-count {
  margin-left: 4px;
  font-size: var(--fs-caption);
  opacity: 0.75;
}

/* Status pill (history) */
.status-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid;
  font-size: var(--fs-caption);
  font-weight: 600;
  white-space: nowrap;
}

.status-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-pill.is-pending {
  color: #fde68a;
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.3);
}

.status-pill.is-approved {
  color: #6ee7b7;
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.3);
}

.status-pill.is-declined {
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.3);
}

.status-pill.is-empty {
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
}

.status-pill.is-protect {
  color: #fdba74;
  background: rgba(251, 146, 60, 0.1);
  border-color: rgba(251, 146, 60, 0.3);
}

/* Leaderboard rows with a share-of-leader bar */
.surface > .leader-item {
  display: block;
  padding: 12px 16px;
  border: 0;
  border-radius: 0;
  background: none;
}

.surface > .leader-item + .leader-item {
  border-top: 1px solid var(--glass-border);
}

.leader-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.leader-bar {
  height: 4px;
  margin-top: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.leader-bar > span {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--accent-gold);
}

/* ========================================================
   HOME: balance card and action cards
   ======================================================== */
.balance-card {
  padding: 18px;
  margin-bottom: 16px;
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
  border: 1px solid rgba(131, 125, 87, 0.3);
  box-shadow: none;
}

.balance-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.balance-actions {
  display: flex;
  gap: 6px;
}

.balance-amount {
  font-size: var(--fs-hero);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.05;
  color: #fff;
}

.balance-label {
  margin-top: 6px;
  font-size: var(--fs-caption);
  color: var(--muted);
}

.balance-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(201, 185, 127, 0.18);
}

.stat-val {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
}

.stat-lbl {
  margin-top: 2px;
  font-size: var(--fs-caption);
  color: var(--muted);
}

.home-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.action-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-height: 104px;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: var(--card-bg);
  color: var(--text-main);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform var(--dur-press) var(--ease-out), border-color var(--dur-ui) ease;
}

.action-card:active {
  transform: scale(0.97);
}

.action-card-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-xs);
  display: grid;
  place-items: center;
  color: var(--accent-bright);
  background: rgba(131, 125, 87, 0.18);
  border: 1px solid rgba(131, 125, 87, 0.32);
}

.action-card-title {
  display: block;
  font-size: var(--fs-small);
  font-weight: 700;
}

.action-card-sub {
  display: block;
  margin-top: 2px;
  font-size: var(--fs-caption);
  color: var(--muted);
}

.action-card.is-primary {
  background: #c9b97f;
  border-color: rgba(255, 255, 255, 0.35);
  color: #0b0f14;
  box-shadow: none;
}

.action-card.is-primary .action-card-icon {
  color: #0b0f14;
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.action-card.is-primary .action-card-sub {
  color: rgba(11, 15, 20, 0.7);
}

/* ========================================================
   PALKI: tier rows
   ======================================================== */
.tier-list {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.tier-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: var(--card-bg);
  color: var(--text-main);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform var(--dur-press) var(--ease-out), border-color var(--dur-ui) ease;
}

.tier-row:active {
  transform: scale(0.98);
  border-color: var(--accent);
}

.tier-row.is-high {
  border-color: rgba(131, 125, 87, 0.4);
  background: var(--accent-soft);
}

.tier-val {
  display: block;
  font-size: 20px;
  font-weight: 800;
}

.tier-row.is-high .tier-val {
  color: var(--accent-gold);
}

.tier-sub {
  display: block;
  margin-top: 2px;
  font-size: var(--fs-caption);
  color: var(--muted);
}

/* Database Annotation Box */
.db-schema-card {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 12px;
  margin-top: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-sub);
}

.db-schema-title {
  font-family: var(--font-ui);
  font-weight: 700;
  color: var(--accent-bright);
  margin-bottom: 6px;
}

/* ========================================================
   POLISH: toasts, news items, dropdown menus, pointer tilt
   ======================================================== */
.glass-toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: #1b222c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: var(--text-main);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.35;
  max-height: none;
  margin-bottom: 0;
  overflow: visible;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity var(--dur-enter) ease, transform var(--dur-enter) var(--ease-spring);
}

.glass-toast.show {
  opacity: 1;
  transform: none;
  max-height: none;
  margin-bottom: 0;
}

.glass-toast.hide {
  opacity: 0;
  transform: translateY(-6px);
  max-height: none;
  margin-bottom: 0 !important;
  padding: 12px 14px !important;
  box-shadow: none !important;
  transition: opacity var(--dur-exit) ease, transform var(--dur-exit) var(--ease-out) !important;
}

@keyframes pointerTick {
  0% { translate: 0 0; }
  40% { translate: 0 -5px; }
  100% { translate: 0 0; }
}

.wheel-pointer.is-settling {
  animation: pointerTick 420ms var(--ease-spring) 1;
}

.toast-icon-wrap {
  width: 26px;
  height: 26px;
}

.toast-msg {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
}

.news-item.unread {
  border-color: rgba(201, 185, 127, 0.35);
}

.news-item-badge {
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-bright);
  font-size: var(--fs-caption);
  font-weight: 600;
}

.news-item-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  overflow-wrap: anywhere;
}

.news-item-text {
  font-size: var(--fs-small);
  color: var(--text-sub);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.news-item-time {
  font-size: var(--fs-caption);
  color: var(--muted);
}

.news-item img {
  max-width: 100%;
  margin-top: 4px;
}

.glass-dropdown-trigger {
  min-height: 48px;
  background: var(--card-bg);
}

.glass-dropdown-menu {
  background: #1b222c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 6px;
  max-height: 260px;
}

.glass-dropdown-option {
  position: relative;
  padding: 12px 36px 12px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text-sub);
  transition: background 0.15s ease, color 0.15s ease;
}

.glass-dropdown-option:hover,
.glass-dropdown-option:active {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transform: none;
}

.glass-dropdown-option.selected {
  background: var(--accent-soft);
  border: 0;
  color: #fff;
  font-weight: 600;
}

.glass-dropdown-option.selected::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 6px;
  height: 11px;
  border-right: 2px solid var(--accent-bright);
  border-bottom: 2px solid var(--accent-bright);
  transform: translateY(-65%) rotate(45deg);
}

[data-tilt] {
  transform-style: preserve-3d;
  transition: transform 0.35s var(--ease-out);
  will-change: transform;
}

[data-tilt].is-tilting {
  transition: transform 120ms var(--ease-out);
}

#icons {
  will-change: translate;
}

#bcastTargetSeg {
  grid-template-columns: 1fr 1fr;
}

#bcastTargetSeg .seg-btn {
  white-space: nowrap;
}


/* ========================================================
   TAKE PAYPAL: gender chips, flat link button
   ======================================================== */
.gender-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.gender-btn {
  min-height: 44px;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-sub);
  font-family: inherit;
  font-size: var(--fs-small);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur-ui) ease, color var(--dur-ui) ease, border-color var(--dur-ui) ease;
}

.gender-btn.active {
  background: #f5f3ee;
  border-color: #f5f3ee;
  color: #0b0f14;
}

.flat-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: none;
  color: var(--text-main);
  font-family: inherit;
  font-size: var(--fs-small);
  font-weight: 600;
  cursor: pointer;
}

.flat-btn:active {
  background: rgba(255, 255, 255, 0.04);
}

.stock-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
}

.stock-label {
  font-size: var(--fs-small);
  color: var(--muted);
}

.stock-count {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
}

.worker-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0 16px;
}

.feature-tile {
  min-height: 56px;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: var(--card-bg);
  color: var(--text-main);
  font-family: inherit;
  font-size: var(--fs-small);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.feature-tile:first-child {
  grid-column: 1 / -1;
}

.feature-tile:active {
  transform: scale(0.98);
}

.wheel-wrap {
  position: relative;
  width: 232px;
  height: 232px;
  margin: 8px auto 16px;
}

.wheel {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  transform: rotate(0deg);
}

.wheel-label {
  position: absolute;
  left: 50%;
  top: 50%;
  margin-left: -26px;
  margin-top: -10px;
  width: 52px;
  text-align: center;
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--accent-gold);
}

.wheel-pointer {
  position: absolute;
  top: -8px;
  left: 50%;
  margin-left: -8px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 14px solid var(--accent-bright);
  z-index: 2;
}

.bonus-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
  text-align: center;
}

.bonus-num {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: #fff;
}

.bonus-cap {
  display: block;
  font-size: var(--fs-caption);
  color: var(--muted);
}

.bonus-result {
  margin-top: 12px;
  min-height: 20px;
  text-align: center;
  font-weight: 700;
  color: var(--accent-gold);
}

.action-row {
  flex-wrap: wrap;
}

.action-buttons {
  display: flex;
  gap: 6px;
}

.glass-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ========================================================
   PAYPAL ACTIONS & PROFILE MANAGEMENT (ПОИСК, БАЛАНС, ВАЛИДНОСТЬ, АВАТАРКА, ЗАПРОС НА ОПЛАТУ)
   ======================================================== */
.paypal-search-box {
  margin-bottom: 14px;
}

.paypal-stick-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.paypal-stick-item:hover,
.paypal-stick-item:active {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.paypal-stick-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: rgba(131, 125, 87, 0.2);
  object-fit: cover;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.paypal-stick-avatar svg {
  width: 22px;
  height: 22px;
  fill: var(--accent);
}

.paypal-profile-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  margin-bottom: 14px;
  position: relative;
}

.paypal-avatar-changer {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 2px solid var(--accent-gold);
  box-shadow: 0 0 16px rgba(184, 166, 112, 0.35);
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
}

.paypal-avatar-changer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.paypal-avatar-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.65);
  font-size: 9px;
  text-align: center;
  padding: 2px 0;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.paypal-balance-card {
  padding: 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(131, 125, 87, 0.18) 0%, rgba(18, 24, 32, 0.95) 100%);
  border: 1px solid rgba(184, 166, 112, 0.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 24px rgba(0, 0, 0, 0.45);
  margin-bottom: 12px;
  text-align: center;
}

.paypal-balance-num {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  margin: 4px 0 10px;
}

.paypal-validity-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  margin-bottom: 12px;
}

.paypal-payreq-card {
  padding: 14px;
  border-radius: var(--radius-md);
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  margin-bottom: 14px;
}

.paypal-req-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: var(--radius-xs);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 6px;
  font-size: 12px;
}

.avatar-presets-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 10px 0;
}

.avatar-preset-item {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.15s ease, border-color 0.15s ease;
  margin: 0 auto;
}

.avatar-preset-item:hover,
.avatar-preset-item:active {
  transform: scale(1.08);
  border-color: var(--accent-gold);
}

.avatar-preset-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.paypal-search-wrapper {
  position: relative;
  margin-bottom: 14px;
}

.paypal-search-wrapper svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  fill: var(--muted);
  pointer-events: none;
}

.paypal-search-wrapper .glass-input {
  padding-left: 38px;
}

.paypal-profile-tag {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.2px;
}

.paypal-profile-email {
  font-size: 13px;
  color: var(--accent-bright);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  word-break: break-all;
  margin: 2px 0 4px;
}

.paypal-profile-meta {
  font-size: 11px;
  color: var(--muted);
}

.paypal-profile-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.paypal-top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.paypal-nav-btn {
  background: none;
  border: none;
  color: var(--accent-bright);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  transition: background 0.15s;
}

.paypal-nav-btn:active {
  background: rgba(255, 255, 255, 0.08);
}

.paypal-avatar-drawer {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.35);
  border: 1px dashed rgba(255, 255, 255, 0.12);
  margin-bottom: 14px;
  animation: fadeIn 0.2s ease-out;
}

.paypal-pass-gate {
  text-align: center;
  padding: 20px 10px;
}

.paypal-gate-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  margin: 0 auto 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.paypal-gate-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.paypal-gate-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.paypal-gate-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 18px;
  line-height: 1.4;
}

.paypal-req-empty {
  text-align: center;
  padding: 14px;
  font-size: 12px;
  color: var(--muted);
}

/* ========================================================
   MOTION POLISH: staggered entrance on tab switch, softer sheets, press feedback
   ======================================================== */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.glass-modal {
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.glass-btn,
.feature-tile,
.action-card,
.flat-btn,
.stick-card,
.list-row {
  transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-ui) ease,
    border-color var(--dur-ui) ease, opacity var(--dur-ui) ease;
}
.glass-btn:active:not(:disabled),
.feature-tile:active,
.flat-btn:active {
  transform: scale(0.97);
}
.glass-btn:disabled {
  opacity: 0.55;
  cursor: default;
}


/* ========================================================
   Sliding pill for segmented controls, readable currency mark
   ======================================================== */
.seg,
.gender-chips {
  position: relative;
}

.seg-pill {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  border-radius: var(--radius-xs);
  background: rgba(131, 125, 87, 0.3);
  box-shadow: inset 0 0 0 1px rgba(201, 185, 127, 0.18);
  pointer-events: none;
  transition: transform 380ms var(--ease-drawer), width 380ms var(--ease-drawer), height 380ms var(--ease-drawer);
  will-change: transform;
}

.gender-chips .seg-pill {
  background: #f5f3ee;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.has-pill > .seg-btn,
.has-pill > .gender-btn {
  position: relative;
  z-index: 1;
}

.has-pill > .seg-btn.active,
.has-pill > .gender-btn.active {
  background: transparent;
  border-color: transparent;
}

.has-pill > .gender-btn {
  transition: color 260ms ease, transform var(--dur-press) var(--ease-out);
}

.has-pill > .gender-btn:active,
.has-pill > .seg-btn:active {
  transform: scale(0.96);
}

.input-currency-badge {
  font-family: inherit;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent-bright);
  opacity: 1;
  -webkit-font-smoothing: antialiased;
}

.glass-input-wrapper .glass-input {
  padding-left: 38px;
}

/* dropdown menus glide open instead of popping */
.glass-dropdown-menu {
  transform-origin: top center;
}

#bootLoader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg, #07090c);
  transition: opacity 350ms ease;
}

#bootLoader.done {
  opacity: 0;
  pointer-events: none;
}

#bootLoader .spinner {
  width: 28px;
  height: 28px;
  border-width: 3px;
}

/* "Palka issued" sheet */
#issuedStickSheet {
  z-index: 1100 !important;
}

.issued-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 4px 0 16px;
  text-align: center;
}

.issued-avatar-ring {
  width: 84px;
  height: 84px;
  padding: 3px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(201, 185, 127, 0.9), rgba(131, 125, 87, 0.25));
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45), 0 0 0 6px rgba(201, 185, 127, 0.08);
  animation: avatarPop 520ms var(--ease-spring) both;
}

@keyframes avatarPop {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: none; }
}

.issued-avatar {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #11161d;
}

.issued-name {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  overflow-wrap: anywhere;
}

.issued-sub {
  font-size: 12px;
  color: var(--muted);
}

.issued-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "main icon" "hint icon";
  align-items: center;
  column-gap: 12px;
  row-gap: 2px;
  width: 100%;
  margin-top: 8px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform var(--dur-press) var(--ease-out), background var(--dur-ui) ease, border-color var(--dur-ui) ease;
}

.issued-row:active {
  transform: scale(0.98);
}

.issued-row-main {
  grid-area: main;
  font-size: 16px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.issued-row-hint {
  grid-area: hint;
  font-size: 12px;
  color: var(--muted);
}

.issued-icon {
  grid-area: icon;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: var(--accent-bright);
  transition: background var(--dur-ui) ease, color var(--dur-ui) ease, transform 300ms var(--ease-spring);
}

.issued-row.is-done {
  border-color: rgba(74, 222, 128, 0.45);
}

.issued-row.is-done .issued-icon {
  background: rgba(74, 222, 128, 0.18);
  color: #4ade80;
  transform: scale(1.1);
}

.issued-row.is-link {
  border-style: dashed;
}

.issued-row.is-link .issued-row-main {
  color: var(--accent-bright);
  font-weight: 600;
}

.issued-row.is-requisite {
  background: rgba(0, 0, 0, 0.35);
  border-style: dashed;
}

.issued-lines {
  white-space: pre-line;
  font-family: monospace;
  font-size: 13px;
  font-weight: 600;
}

.issued-note {
  margin: 12px 0;
}

/* cards let the flying logos shine through */
.top-header,
.balance-card,
.surface,
.glass-card,
.action-card:not(.is-primary),
.flat-btn,
.stat-tile {
  background-color: rgba(22, 27, 35, 0.72);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}


/* ========================================================
   ADMIN v2: faster scanning, one primary action per card
   ======================================================== */
.admin-tabs-nav {
  position: sticky;
  top: var(--safe-top);
  z-index: 5;
  flex-wrap: nowrap;
  overflow-x: auto;
  margin: 0 -12px 14px;
  padding: 8px 12px;
  background: rgba(14, 17, 22, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--glass-border);
  scrollbar-width: none;
}

.admin-subtab-count.is-hot {
  background: var(--accent-bright);
  color: #0b0f14;
  font-weight: 800;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  font-size: var(--fs-small);
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--dur-press) var(--ease-out), background var(--dur-ui) ease;
}
.status-pill:active { transform: scale(0.96); }
.status-pill.is-full { background: rgba(52, 211, 153, 0.14); border-color: rgba(52, 211, 153, 0.4); color: #6ee7b7; }
.status-pill.is-stop { background: rgba(251, 191, 36, 0.12); border-color: rgba(251, 191, 36, 0.38); color: #fcd34d; }

.admin-req-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.admin-req-card.is-leaving {
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin: -5px 0;
  border-width: 0;
  pointer-events: none;
  transition: height 240ms var(--ease-out), opacity 140ms ease, padding 240ms var(--ease-out), margin 240ms var(--ease-out), border-width 240ms;
}

.req-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.req-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid rgba(201, 185, 127, 0.28);
  color: var(--accent-gold);
  font-size: var(--fs-body);
  font-weight: 800;
}

.req-who { min-width: 0; flex: 1; }
.req-name {
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.req-sub { font-size: var(--fs-caption); color: var(--muted); }
.req-side { flex: 0 0 auto; text-align: right; }

.req-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--glass-border-light);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  transition: background var(--dur-ui) ease, transform var(--dur-press) var(--ease-out);
}
.req-chip:active { transform: scale(0.98); background: rgba(255, 255, 255, 0.06); }
.req-chip-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--fs-small);
  word-break: break-all;
}
.req-chip svg { flex: 0 0 auto; width: 16px; height: 16px; fill: var(--muted); }

.req-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.req-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-sub);
  font-size: var(--fs-caption);
  font-weight: 600;
}

.req-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.req-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.22);
}
.req-stats > div { padding: 8px 10px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.req-stats > div + div { border-left: 1px solid var(--glass-border); }
.req-stats b { font-size: var(--fs-body); font-weight: 800; color: var(--text-main); overflow: hidden; text-overflow: ellipsis; }
.req-stats span { font-size: var(--fs-caption); color: var(--muted); }

.req-primary { min-height: 48px; font-size: var(--fs-body); }

.req-secondary { display: flex; gap: 6px; }
.req-secondary.is-three { display: grid; grid-template-columns: repeat(3, 1fr); }
.req-ghost {
  flex: 1;
  min-height: 40px;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: transparent;
  color: var(--text-sub);
  font-size: var(--fs-small);
  font-weight: 600;
  cursor: pointer;
  transition: background var(--dur-ui) ease, transform var(--dur-press) var(--ease-out);
}
.req-row > .req-ghost { flex: 0 0 auto; }
.req-ghost:active { transform: scale(0.96); background: rgba(255, 255, 255, 0.06); }
.req-ghost.is-danger { color: #fca5a5; border-color: rgba(248, 113, 113, 0.28); }
.req-ghost.is-warn { color: #fdba74; border-color: rgba(251, 146, 60, 0.3); }
.req-ghost:disabled { opacity: 0.4; }

.warehouse-item-count.is-low { color: var(--status-rose); }

/* Five sub-tabs share the width: no sideways scrolling, counts sit on the corner */
.admin-tabs-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  overflow: visible;
}
.admin-subtab-btn {
  position: relative;
  min-width: 0;
  padding: 8px 2px;
  font-size: var(--fs-caption);
  overflow: visible;
}
.admin-subtab-btn .admin-subtab-count {
  position: absolute;
  top: -7px;
  right: -2px;
  min-width: 18px;
  margin: 0;
  padding: 0 5px;
  line-height: 16px;
  font-size: 11px;
  background: #2a313c;
}
.admin-subtab-btn.active .admin-subtab-count { background: #4a4328; }
.admin-subtab-btn .admin-subtab-count.is-hot { background: var(--accent-bright); }
.admin-tabs-nav { padding-top: 14px; }

.req-seen {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.22);
  font-size: var(--fs-small);
  color: var(--text-sub);
}
.req-seen b { color: #6ee7b7; font-weight: 800; }
.req-seen em { flex-basis: 100%; font-style: normal; font-size: var(--fs-caption); color: #fdba74; }
.req-seen.is-warn { background: rgba(251, 146, 60, 0.09); border-color: rgba(251, 146, 60, 0.3); }
.req-seen.is-warn b { color: #fdba74; }

.req-pill.is-clean { background: rgba(52, 211, 153, 0.14); color: #6ee7b7; }
.req-pill.is-used { background: rgba(251, 146, 60, 0.14); color: #fdba74; }

.upload-tier-seg .seg-btn { min-height: 44px; font-size: var(--fs-body); }
.upload-tier-seg .seg-btn.active { background: var(--accent-bright); color: #0b0f14; font-weight: 700; }
