/* Withdrawal Page Styles */
.topbar-simple {
  align-items: center;
  padding-bottom: 18px;
  margin-bottom: 12px;
}

.topbar-page-title {
  flex: 1;
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

#page-withdrawal .balance-strip {
  margin-top: 4px;
}

.balance-strip {
  margin: 0 20px 20px;
  padding: 18px 20px;
  border-radius: 22px;
  background: var(--card-light-bg, var(--card-bg));
  border: 1px solid var(--border-subtle);
  box-shadow: none;
}

.balance-strip-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.balance-strip-amount {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.balance-strip-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
}

.tabs {
  display: flex;
  gap: 8px;
  padding: 0 20px;
  margin-bottom: 20px;
}

.tab {
  flex: 1;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.tab.active {
  background: var(--accent-soft);
  border-color: oklch(72% 0.14 55 / 0.3);
  color: var(--accent);
}

.glass-card {
  position: relative;
  margin: 0 20px 20px;
  padding: 22px 20px 20px;
  border-radius: 28px;
  background: var(--glass-bg);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 1px solid var(--glass-border);
  overflow: hidden;
  box-shadow:
    0 20px 50px oklch(5% 0.02 350 / 0.35),
    inset 0 1px 0 oklch(100% 0 0 / 0.08);
}

#withdrawChartCard {
  overflow: hidden;
  box-shadow:
    0 10px 28px oklch(5% 0.02 350 / 0.2),
    inset 0 1px 0 oklch(100% 0 0 / 0.06);
}

.glass-card::before {
  content: '';
  position: absolute;
  top: -30%;
  left: -10%;
  width: 55%;
  height: 65%;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 68%);
  pointer-events: none;
  opacity: 0.45;
}

#withdrawChartCard::before {
  opacity: 0.22;
  top: -15%;
  left: 5%;
  width: 48%;
  height: 50%;
}

.glass-card-header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}

.glass-card-label {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.glass-card-value {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.period-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 100px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 10px oklch(72% 0.16 55 / 0.18);
}

.period-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-text);
  opacity: 0.8;
}

.period-date {
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
  margin-top: 6px;
  font-weight: 500;
}

.chart {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 6px;
  height: 140px;
  padding-top: 12px;
}

#withdrawChart .chart-tooltip {
  display: none;
}

.bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  position: relative;
  cursor: pointer;
}

.bar {
  width: 100%;
  max-width: 36px;
  border-radius: 100px;
  background: linear-gradient(180deg, oklch(30% 0.02 350) 0%, oklch(22% 0.02 350) 100%);
  transition: height 0.4s var(--ease);
  position: relative;
  min-height: 8px;
}

[data-theme="light"] .bar {
  background: linear-gradient(180deg, oklch(90% 0.01 60) 0%, oklch(94% 0.008 60) 100%);
}

.bar.active {
  background: linear-gradient(180deg, var(--accent) 0%, oklch(58% 0.16 55) 100%);
  box-shadow: 0 0 12px oklch(72% 0.16 55 / 0.22);
}

.bar.active::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: calc(100% - 16px);
  background: oklch(100% 0 0 / 0.35);
  border-radius: 2px;
}

.bar-check {
  position: absolute;
  top: -26px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-text);
  display: none;
  align-items: center;
  justify-content: center;
}

.bar.active .bar-check {
  display: flex;
}

.bar-check svg {
  width: 12px;
  height: 12px;
  color: var(--accent);
}

.bar-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.bar-label.active {
  color: var(--accent);
}

.chart-tooltip {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 14px;
  border-radius: 16px;
  background: oklch(14% 0.02 350 / 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid oklch(100% 0 0 / 0.1);
  min-width: 150px;
  z-index: var(--z-tooltip, 80);
  pointer-events: none;
}

[data-theme="light"] .chart-tooltip {
  background: oklch(100% 0 0 / 0.82);
  border-color: oklch(100% 0 0 / 0.9);
  box-shadow: 0 8px 24px oklch(50% 0.02 350 / 0.1);
}

.tooltip-title {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
}

.tooltip-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.tooltip-row strong {
  color: var(--text);
  font-weight: 700;
}

.table-card {
  position: relative;
  margin: 0 20px;
  border-radius: 24px;
  background: var(--table-card-bg, var(--card-bg));
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: 0 8px 28px oklch(8% 0.02 350 / 0.12);
}

.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.table-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.table-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
  padding: 0;
}

.table-scroll,
.scroll-list {
  max-height: min(360px, 50vh);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.scroll-list--lg,
.table-scroll {
  max-height: min(420px, 55vh);
}

.scroll-list--sheet {
  max-height: min(480px, 65vh);
}

.table-scroll .table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--table-card-bg, var(--card-bg));
}

.scroll-list::-webkit-scrollbar,
.table-scroll::-webkit-scrollbar {
  width: 6px;
}

.scroll-list::-webkit-scrollbar-thumb,
.table-scroll::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 100px;
}

.history-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.history-row:last-child {
  border-bottom: none;
}

.history-date {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.history-bank {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 500;
}

.history-amount {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.cta-section {
  padding: 24px 20px 0;
}

.withdraw-cta-bar {
  position: sticky;
  top: calc(8px + env(safe-area-inset-top));
  z-index: 30;
  padding: 0 20px 16px;
  margin-bottom: 4px;
  background: linear-gradient(to bottom, var(--bg) 82%, transparent);
}

.withdraw-cta-bar .cta-primary {
  min-height: 54px;
  font-size: 16px;
  border-radius: 100px;
  box-shadow: 0 4px 14px oklch(72% 0.16 55 / 0.2);
}

.cta-primary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  background: var(--accent);
  color: var(--accent-text);
  border: none;
  border-radius: 20px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px oklch(72% 0.16 55 / 0.22);
  transition: transform 0.15s var(--ease), background 0.2s var(--ease);
}

.cta-primary:active {
  transform: scale(0.98);
  background: var(--accent-hover);
}

.cta-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.cta-primary svg {
  width: 18px;
  height: 18px;
}

/* Slide to confirm */
.slide-cta {
  width: 100%;
  position: relative;
  height: 56px;
  border-radius: 100px;
  background: oklch(10% 0.015 350);
  box-shadow:
    inset 0 2px 6px oklch(5% 0.02 350 / 0.8),
    inset 0 -1px 0 oklch(100% 0 0 / 0.04),
    0 2px 8px oklch(5% 0.02 350 / 0.35);
  border: 1px solid oklch(100% 0 0 / 0.06);
  overflow: hidden;
  user-select: none;
  touch-action: none;
}

[data-theme="light"] .slide-cta {
  background: oklch(92% 0.008 60);
  box-shadow:
    inset 0 2px 5px oklch(80% 0.01 60 / 0.5),
    inset 0 -1px 0 oklch(100% 0 0 / 0.8),
    0 2px 8px oklch(50% 0.02 350 / 0.08);
  border-color: oklch(88% 0.01 60);
}

.slide-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 52px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: -0.01em;
  pointer-events: none;
  transition: opacity 0.2s var(--ease);
}

.slide-cta.dragging .slide-label,
.slide-cta.done .slide-label {
  opacity: 0;
}

.slide-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 48px;
  height: 48px;
  border-radius: 100px;
  cursor: grab;
  z-index: 2;
  background: linear-gradient(180deg, oklch(30% 0.025 350) 0%, oklch(22% 0.02 350) 100%);
  box-shadow:
    0 4px 14px oklch(5% 0.02 350 / 0.55),
    inset 0 1px 0 oklch(100% 0 0 / 0.14),
    inset 0 -1px 0 oklch(0% 0 0 / 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}

[data-theme="light"] .slide-thumb {
  background: linear-gradient(180deg, oklch(100% 0 0) 0%, oklch(94% 0.008 60) 100%);
  box-shadow:
    0 4px 12px oklch(50% 0.02 350 / 0.12),
    inset 0 1px 0 oklch(100% 0 0 / 1);
}

.slide-thumb::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(
    135deg,
    oklch(100% 0 0 / 0.7) 0%,
    oklch(72% 0.14 55 / 0.9) 22%,
    oklch(65% 0.12 250 / 0.85) 48%,
    oklch(72% 0.14 55 / 0.8) 72%,
    oklch(100% 0 0 / 0.6) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.slide-thumb svg {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}

.slide-cta.dragging .slide-thumb {
  cursor: grabbing;
}

.slide-cta.done .slide-thumb {
  background: linear-gradient(145deg, var(--accent) 0%, var(--accent-hover) 100%);
  transition: background 0.3s var(--ease);
}

.slide-cta.done .slide-thumb svg {
  color: var(--accent-text);
}

.slide-fill {
  position: absolute;
  top: 4px;
  left: 4px;
  height: 48px;
  border-radius: 100px;
  background: var(--accent-soft);
  pointer-events: none;
  width: 48px;
  z-index: 1;
}

/* Period tabs (Leaderboard) */
.period-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px 16px;
  gap: 12px;
  position: relative;
}

.period-tabs {
  display: flex;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 100px;
  padding: 4px;
}

.period-tab {
  padding: 8px 14px;
  border-radius: 100px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}

.period-tab.active {
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow: 0 2px 8px oklch(5% 0.02 350 / 0.2);
}

[data-theme="light"] .period-tab.active {
  background: oklch(100% 0 0);
  box-shadow: 0 2px 8px oklch(50% 0.02 350 / 0.08);
}

.period-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

/* Rewards grid */
.rewards-section {
  padding: 0 20px 20px;
}

.rewards-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.rewards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.reward-pill {
  padding: 12px 8px;
  border-radius: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  text-align: center;
}

.reward-pill.rank-1 {
  border-color: oklch(72% 0.14 55 / 0.35);
  background: var(--gold-soft);
}

.reward-pill.rank-2 {
  border-color: oklch(78% 0.02 250 / 0.3);
  background: var(--silver-soft);
}

.reward-pill.rank-3 {
  border-color: oklch(68% 0.1 55 / 0.3);
  background: var(--bronze-soft);
}

.reward-emoji {
  font-size: 20px;
  line-height: 1;
}

.reward-amount {
  font-size: 13px;
  font-weight: 800;
  margin-top: 6px;
  letter-spacing: -0.02em;
}

.reward-pill.rank-1 .reward-amount {
  color: var(--gold);
}

/* Referral Wallet */
.wallet-card {
  margin: 0 16px;
  padding: 18px 22px 54px;
  border-radius: 20px 20px 0 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
  background:
    linear-gradient(125deg, oklch(100% 0 0 / 0.3) 0%, transparent 45%),
    linear-gradient(155deg, oklch(82% 0.14 55) 0%, oklch(72% 0.17 55) 55%, oklch(58% 0.16 55) 100%);
  box-shadow: inset 0 1px 0 oklch(100% 0 0 / 0.45);
}

[data-theme="light"] .wallet-card {
  background:
    linear-gradient(125deg, oklch(100% 0 0 / 0.55) 0%, transparent 42%),
    linear-gradient(155deg, oklch(88% 0.12 55) 0%, oklch(78% 0.14 55) 55%, oklch(64% 0.15 55) 100%);
}

.wallet-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.wallet-card-row + .wallet-card-row {
  margin-top: 13px;
}

.wallet-card-name {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: oklch(24% 0.05 75);
}

.wallet-card-brand {
  height: 22px;
  width: auto;
  display: block;
  padding: 4px 8px;
  border-radius: 8px;
  background: oklch(100% 0 0 / 0.88);
  box-shadow: 0 1px 4px oklch(30% 0.04 55 / 0.12);
}

.wallet-card-code {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: oklch(26% 0.05 75 / 0.9);
  font-variant-numeric: tabular-nums;
}

.wallet-card-valid {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: oklch(30% 0.05 75 / 0.7);
}

.wallet-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 55% at 90% -5%, oklch(100% 0 0 / 0.4) 0%, transparent 55%);
  pointer-events: none;
}

.wallet-pocket {
  position: relative;
  z-index: 2;
  margin-top: -38px;
  margin-bottom: 20px;
  border-radius: 24px;
  padding: 22px 18px 18px;
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E"),
    linear-gradient(168deg, oklch(24% 0.035 350) 0%, oklch(16% 0.03 350) 55%, oklch(12% 0.025 350) 100%);
  border: 1px solid oklch(100% 0 0 / 0.08);
  box-shadow:
    0 -4px 12px oklch(5% 0.02 350 / 0.25),
    0 24px 56px oklch(5% 0.02 350 / 0.55),
    inset 0 1px 0 oklch(100% 0 0 / 0.1),
    inset 0 -2px 8px oklch(5% 0.02 350 / 0.35);
}

[data-theme="light"] .wallet-pocket {
  background:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E"),
    linear-gradient(168deg, oklch(42% 0.04 350) 0%, oklch(32% 0.035 350) 55%, oklch(26% 0.03 350) 100%);
  border-color: oklch(100% 0 0 / 0.12);
  box-shadow: 0 20px 44px oklch(40% 0.03 350 / 0.22);
}

.wallet-pocket::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 20px;
  border: 1px dashed oklch(100% 0 0 / 0.07);
  pointer-events: none;
}

.wallet-pocket::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, oklch(100% 0 0 / 0.18) 30%, oklch(100% 0 0 / 0.28) 50%, oklch(100% 0 0 / 0.18) 70%, transparent);
}

.wallet-earn-label {
  font-size: 12px;
  font-weight: 600;
  color: oklch(95% 0.01 60 / 0.65);
  margin-top: 8px;
}

.wallet-earn-amount {
  font-size: clamp(2rem, 8vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: oklch(98% 0.01 60);
  font-variant-numeric: tabular-nums;
}

.wallet-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid oklch(100% 0 0 / 0.08);
}

.wallet-pending {
  font-size: 12px;
  font-weight: 700;
  color: oklch(78% 0.14 70);
}

.wallet-ref-count {
  font-size: 11px;
  font-weight: 600;
  color: oklch(95% 0.01 60 / 0.5);
}

.wallet-motivation {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
  color: oklch(95% 0.01 60 / 0.72);
}

.wallet-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  align-items: center;
}

.wallet-action-primary {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  border-radius: 100px;
  border: 1px solid oklch(100% 0 0 / 0.18);
  background: oklch(100% 0 0 / 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: oklch(98% 0.01 60);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 1px 0 oklch(100% 0 0 / 0.15);
  transition: background 0.2s var(--ease), transform 0.15s var(--ease);
}

.wallet-action-primary:active {
  transform: scale(0.97);
  background: oklch(100% 0 0 / 0.18);
}

.wallet-action-primary svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.wallet-action-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid oklch(100% 0 0 / 0.16);
  background: oklch(100% 0 0 / 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: oklch(95% 0.01 60 / 0.85);
  text-decoration: none;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease);
}

.wallet-action-icon.whatsapp {
  background: var(--whatsapp);
  border-color: oklch(100% 0 0 / 0.2);
  color: white;
  box-shadow: 0 4px 16px oklch(45% 0.15 145 / 0.35);
}

.wallet-action-icon:active {
  transform: scale(0.94);
}

.wallet-action-icon svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Rules card */
.rules-card {
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.rule-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
}

.rule-row:last-child {
  border-bottom: none;
}

.rule-row span {
  color: var(--text-muted);
  font-weight: 600;
}

.rule-row strong {
  font-weight: 800;
}

/* Tier progress */
.tier-track {
  display: flex;
  gap: 0;
  position: relative;
  padding-top: 8px;
}

.tier-track::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 12%;
  right: 12%;
  height: 3px;
  background: var(--surface);
  border-radius: 2px;
}

.tier-track::after {
  content: '';
  position: absolute;
  top: 22px;
  left: 12%;
  width: var(--tier-progress, 0%);
  height: 3px;
  background: linear-gradient(90deg, var(--accent), oklch(66% 0.17 55));
  border-radius: 2px;
  box-shadow: 0 0 10px var(--accent-glow);
  transition: width 0.5s var(--ease);
}

.tier-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

.tier-dot {
  width: 28px;
  height: 28px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
}

.tier-step.done .tier-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}

.tier-step.current .tier-dot {
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.tier-amount {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tier-meta {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 2px;
}

/* How it works steps */
.steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
}

.step-num {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

.step-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.step-desc {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Filter tabs */
.filter-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.filter-tab {
  padding: 8px 14px;
  border-radius: 100px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}

.filter-tab.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: oklch(72% 0.14 55 / 0.35);
}

/* QR Block */
.wallet-qr-block {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid oklch(72% 0.14 55 / 0.38);
  background:
    linear-gradient(135deg, oklch(100% 0 0 / 0.14) 0%, oklch(72% 0.12 55 / 0.1) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    inset 0 1px 0 oklch(100% 0 0 / 0.18),
    0 8px 24px oklch(5% 0.02 350 / 0.28);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  color: inherit;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease);
}

.wallet-qr-block:active {
  transform: scale(0.98);
}

.wallet-qr-thumb {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 14px;
  background: white;
  padding: 6px;
  box-shadow: 0 4px 16px oklch(0% 0 0 / 0.28);
}

.wallet-qr-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
}

.wallet-qr-thumb img[hidden],
.qr-wrap img[hidden] {
  display: none;
}

.wallet-qr-info {
  flex: 1;
  min-width: 0;
}

.wallet-qr-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: oklch(98% 0.01 60);
  letter-spacing: -0.01em;
}

.wallet-qr-desc {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 600;
  color: oklch(95% 0.01 60 / 0.55);
}

.wallet-qr-action {
  flex-shrink: 0;
  padding: 8px 12px;
  border-radius: 100px;
  border: 1px solid oklch(72% 0.14 55 / 0.45);
  background: oklch(72% 0.14 55 / 0.18);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.01em;
}

/* Bank account styles */
#bankList.card {
  padding: 0;
  overflow: hidden;
}

.bank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.bank-item:last-of-type {
  border-bottom: none;
}

.bank-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bank-icon svg {
  width: 20px;
  height: 20px;
}

.bank-info {
  flex: 1;
  min-width: 0;
}

.bank-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bank-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.bank-iban {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.bank-holder {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bank-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 100px;
  background: var(--success-soft);
  color: var(--success);
  flex-shrink: 0;
  line-height: 1.2;
}

.bank-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: 4px;
}

.bank-action-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
  padding: 0;
}

.bank-action-btn svg {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.bank-action-btn:hover {
  border-color: var(--accent);
}

.bank-action-btn:hover svg {
  color: var(--accent);
}

.bank-action-btn.default:hover {
  border-color: var(--success);
  background: var(--success-soft);
}

.bank-action-btn.default:hover svg {
  color: var(--success);
}

.bank-action-btn.delete:hover {
  border-color: var(--danger);
  background: var(--danger-soft);
}

.bank-action-btn.delete:hover svg {
  color: var(--danger);
}

.bank-action-btn:active {
  transform: scale(0.95);
}

.bank-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px;
  background: none;
  border: none;
  border-top: 1px dashed var(--border-subtle);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  transition: background 0.2s var(--ease);
}

.bank-add:active {
  background: var(--accent-soft);
}

.bank-add svg {
  width: 18px;
  height: 18px;
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 20px 16px;
}

.stats-row--4 {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 420px) {
  .stats-row--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-pill {
  padding: 14px 10px;
  border-radius: 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  text-align: center;
}

.stat-num {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.stat-num.success {
  color: var(--success);
}

.stat-num.warning {
  color: var(--warning);
}

.stat-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 6px;
  letter-spacing: 0.02em;
}

/* Link row */
.wallet-link-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 10px 10px 14px;
  border-radius: 14px;
  background: oklch(100% 0 0 / 0.06);
  border: 1px solid oklch(100% 0 0 / 0.1);
}

.wallet-link-text {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  color: oklch(95% 0.01 60 / 0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wallet-link-copy {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid oklch(100% 0 0 / 0.14);
  background: oklch(100% 0 0 / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: oklch(95% 0.01 60 / 0.9);
  transition:
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    transform 0.15s var(--ease);
}

.wallet-link-copy:active {
  transform: scale(0.94);
}

.wallet-link-copy.copied {
  background: oklch(70% 0.12 145 / 0.22);
  border-color: oklch(70% 0.14 145 / 0.55);
  color: oklch(82% 0.14 145);
  animation: copy-ring-pulse 0.55s var(--ease);
}

.wallet-action-primary.copied {
  background: oklch(70% 0.12 145 / 0.2);
  border-color: oklch(70% 0.14 145 / 0.45);
  color: oklch(88% 0.12 145);
}

.copy-icon-stack {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  display: block;
}

.copy-icon-stack--md {
  width: 18px;
  height: 18px;
}

.copy-icon-stack svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition:
    opacity 0.2s var(--ease),
    transform 0.28s var(--ease);
}

.copy-icon-stack .icon-copy {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.copy-icon-stack .icon-check {
  opacity: 0;
  transform: scale(0.35) rotate(-14deg);
}

.copied .copy-icon-stack .icon-copy {
  opacity: 0;
  transform: scale(0.55) rotate(10deg);
}

.copied .copy-icon-stack .icon-check {
  opacity: 1;
  transform: scale(1) rotate(0deg);
  animation: copy-check-pop 0.42s var(--ease) both;
}

@keyframes copy-check-pop {
  0% {
    opacity: 0;
    transform: scale(0.35) rotate(-14deg);
  }
  58% {
    opacity: 1;
    transform: scale(1.14) rotate(0deg);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes copy-ring-pulse {
  0% {
    box-shadow: 0 0 0 0 oklch(70% 0.12 145 / 0.35);
  }
  100% {
    box-shadow: 0 0 0 7px oklch(70% 0.12 145 / 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .copied .copy-icon-stack .icon-check {
    animation: none;
  }

  .wallet-link-copy.copied {
    animation: none;
  }
}

/* Sheet result */
.sheet-result {
  text-align: center;
  padding: 8px 0 8px;
}

.sheet-icon-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  margin: 0 auto 24px;
}

.sheet-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.sheet-icon.success {
  background: linear-gradient(145deg, oklch(72% 0.16 145) 0%, oklch(58% 0.14 145) 100%);
  box-shadow: 0 8px 32px oklch(70% 0.14 145 / 0.4);
}

.sheet-icon.warning {
  background: linear-gradient(145deg, var(--accent) 0%, oklch(58% 0.16 55) 100%);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.sheet-icon svg {
  width: 40px;
  height: 40px;
  color: white;
}

.sheet-particles {
  position: absolute;
  inset: -12px;
  pointer-events: none;
}

.sheet-particles span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: oklch(70% 0.14 145);
}

.sheet-particles span:nth-child(1) { top: 8px; left: 4px; width: 5px; height: 5px; opacity: 0.7; }
.sheet-particles span:nth-child(2) { top: 20px; right: 0; background: oklch(100% 0 0 / 0.6); }
.sheet-particles span:nth-child(3) { bottom: 12px; left: 8px; width: 4px; height: 4px; }
.sheet-particles span:nth-child(4) { bottom: 24px; right: 12px; opacity: 0.5; }
.sheet-particles span:nth-child(5) { top: 40px; left: -4px; width: 3px; height: 3px; background: white; }

.sheet-message {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 280px;
  margin: 0 auto 28px;
  font-weight: 500;
}

.sheet-detail {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 24px;
  text-align: left;
}

.sheet-detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
}

.sheet-detail-row span {
  color: var(--text-muted);
}

.sheet-detail-row strong {
  font-weight: 700;
}

.sheet-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* QR Sheet */
.qr-wrap {
  width: 200px;
  height: 200px;
  margin: 0 auto 16px;
  border-radius: 20px;
  background: white;
  padding: 12px;
  box-shadow: 0 8px 24px oklch(5% 0.02 350 / 0.15);
}

.qr-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Table styles */
.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  padding: 10px 16px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.table th:last-child {
  text-align: right;
}

.table td {
  padding: 14px 16px;
  font-size: 13px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.table td:nth-child(2) {
  text-align: center;
  white-space: nowrap;
}

.table th:nth-child(2) {
  text-align: center;
}

.table tr:last-child td {
  border-bottom: none;
}

.table tr:hover td {
  background: oklch(100% 0 0 / 0.03);
}

.table td:last-child {
  text-align: right;
}

.cell-date {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.cell-bank {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 500;
}

.cell-amount {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* Wallet section */
.wallet {
  margin: 8px 20px 0;
}

.wallet-stitch {
  position: absolute;
  top: 10px;
  left: 16px;
  right: 16px;
  height: 6px;
  pointer-events: none;
  background: repeating-linear-gradient(90deg, oklch(100% 0 0 / 0.22) 0px, oklch(100% 0 0 / 0.22) 4px, transparent 4px, transparent 9px);
  opacity: 0.7;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.wallet-earn-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
}

.wallet-earn-currency {
  font-size: 18px;
  font-weight: 700;
  color: oklch(95% 0.01 60 / 0.75);
}

/* Leaderboard extras */
.leaderboard-loading-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-right: 8px;
}

.leaderboard-loading-spinner {
  width: 12px;
  height: 12px;
  border: 2px solid var(--border-subtle);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: lb-spin 0.7s linear infinite;
}

@keyframes lb-spin {
  to { transform: rotate(360deg); }
}

.period-tab.is-busy {
  opacity: 0.65;
}

#page-leaderboard.is-loading .my-rank-card,
#page-leaderboard.is-loading .rewards-section,
#page-leaderboard.is-loading .podium-section,
#page-leaderboard.is-loading .list-section {
  pointer-events: none;
}

.lb-sk {
  display: block;
  background: linear-gradient(
    90deg,
    var(--surface) 0%,
    color-mix(in srgb, var(--border-subtle) 40%, var(--surface)) 50%,
    var(--surface) 100%
  );
  background-size: 200% 100%;
  animation: lb-shimmer 1.4s ease-in-out infinite;
  border-radius: 10px;
}

@keyframes lb-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.lb-sk-rank-num {
  width: 72px;
  height: 36px;
  border-radius: 12px;
}

.lb-sk-line {
  height: 14px;
  width: 88px;
  margin-bottom: 6px;
}

.lb-sk-line.short {
  width: 56px;
  margin-bottom: 0;
}

.lb-sk-podium-avatar {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  margin-bottom: 8px;
}

.podium-slot.first .lb-sk-podium-avatar {
  width: 64px;
  height: 64px;
  border-radius: 22px;
}

.lb-sk-podium-name {
  width: 72%;
  height: 13px;
  margin: 0 auto 6px;
}

.lb-sk-podium-trip {
  width: 52%;
  height: 11px;
  margin: 0 auto;
}

.lb-sk-podium-bar {
  width: 100%;
  margin-top: 12px;
  border-radius: 14px 14px 4px 4px;
  border: none;
}

.lb-sk-rank {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.lb-sk-avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  flex-shrink: 0;
}

.lb-sk-score {
  width: 44px;
  height: 28px;
  flex-shrink: 0;
  margin-left: auto;
}

.leader-row--skeleton {
  pointer-events: none;
}

.lb-sk-pulse {
  animation: lb-shimmer 1.4s ease-in-out infinite;
}

.podium-section {
  padding: 0 20px 24px;
}

.list-section {
  padding: 0 20px;
}

.list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.list-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.list-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}

.leader-list {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  overflow: hidden;
}

.leader-info {
  flex: 1;
  min-width: 0;
}

.leader-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.leader-meta {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 2px;
}

.leader-score {
  text-align: right;
  flex-shrink: 0;
}

.leader-trips {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.leader-earn {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 2px;
}

.leader-reward {
  font-size: 10px;
  font-weight: 700;
  color: var(--gold);
  margin-top: 4px;
}

.leader-avatar {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-secondary);
  flex-shrink: 0;
}

/* Referral extras */
.list-card {
  border-radius: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.ref-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.ref-row:last-child {
  border-bottom: none;
}

.ref-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.ref-info {
  flex: 1;
  min-width: 0;
}

.ref-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ref-meta {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 3px;
}

.status-badge {
  padding: 5px 10px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-badge.success {
  background: var(--success-soft);
  color: var(--success);
}

.status-badge.warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.status-badge.muted {
  background: var(--surface);
  color: var(--text-muted);
}

.section-hint {
  margin: -6px 20px 12px;
  padding: 0 2px;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-muted);
}

.rules-hint {
  margin: 12px 16px 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.ref-row--stacked {
  flex-direction: column;
  align-items: stretch;
}

.ref-row-main {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.ref-stepper {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  width: 100%;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-subtle);
}

.ref-step-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  text-align: center;
}

.ref-step-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  background: var(--surface);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.ref-step-node.done .ref-step-dot,
.ref-step-node.current .ref-step-dot {
  background: var(--success-soft);
  color: var(--success);
  border-color: transparent;
}

.ref-step-node.stopped .ref-step-dot {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: transparent;
}

.ref-step-label {
  font-size: 8px;
  font-weight: 700;
  color: var(--text-muted);
  line-height: 1.2;
}

.ref-step-sub {
  font-size: 8px;
  font-weight: 600;
  color: var(--warning);
  line-height: 1.2;
}

.tier-sub {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}

.tier-step.next .tier-dot {
  background: var(--warning-soft);
  color: var(--warning);
}

/* Sheet form styles */
.sheet-form-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.sheet-form-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-weight: 500;
}

.sheet-btn.primary.accent {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 6px 24px var(--accent-glow);
}

.sheet-btn.primary.success {
  background: linear-gradient(145deg, oklch(72% 0.16 145) 0%, oklch(58% 0.14 145) 100%);
  color: white;
  box-shadow: 0 6px 24px oklch(70% 0.14 145 / 0.35);
}

.centered {
  text-align: center;
}

/* ── Home page ── */
#page-home .balance-card {
  margin: 8px 20px 0;
  padding: 28px 24px 24px;
  border-radius: var(--radius-xl);
  background: var(--balance-card-bg);
  border: 1px solid var(--border);
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

#page-home .balance-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, var(--balance-glow-1) 0%, transparent 65%);
  pointer-events: none;
}

#page-home .balance-card::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 50%;
  height: 60%;
  background: radial-gradient(circle, var(--balance-glow-2) 0%, transparent 65%);
  pointer-events: none;
}

#page-home .balance-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}

#page-home .balance-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 6px;
  position: relative;
}

#page-home .balance-amount {
  font-size: clamp(2.5rem, 9vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

#page-home .balance-currency {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-secondary);
}

#page-home .balance-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
  position: relative;
}

#page-home .balance-change {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--success);
}

#page-home .balance-change svg {
  width: 14px;
  height: 14px;
}

#page-home .balance-period {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

#page-home .cta-row {
  display: flex;
  gap: 10px;
  padding: 20px 20px 0;
  align-items: center;
}

#page-home .cta-row .slide-cta {
  flex: 1;
  width: auto;
}

#page-home .cta-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease);
}

#page-home .cta-secondary:active {
  transform: scale(0.94);
  background: var(--surface-hover);
}

#page-home .cta-secondary svg {
  width: 20px;
  height: 20px;
  color: var(--text-secondary);
}

#page-home .cta-secondary.whatsapp {
  background: var(--whatsapp);
  border-color: transparent;
}

#page-home .cta-secondary.whatsapp svg {
  color: #fff;
}

#page-home .stats-section {
  padding: 24px 20px 0;
}

/* Referral promo — animated border glow */
@property --referral-glow-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.referral-promo-section {
  padding: 20px 20px 0;
}

.referral-glow-card {
  --referral-glow-angle: 0deg;
  position: relative;
  display: block;
  width: 100%;
  padding: 2px;
  border: none;
  border-radius: calc(var(--radius-lg) + 2px);
  background: conic-gradient(
    from var(--referral-glow-angle),
    oklch(72% 0.18 55 / 0.08) 0deg,
    oklch(72% 0.18 55 / 0.08) 250deg,
    oklch(72% 0.2 55 / 0.35) 275deg,
    oklch(98% 0.02 60) 295deg,
    oklch(72% 0.24 55) 310deg,
    oklch(75% 0.16 70 / 0.55) 325deg,
    oklch(72% 0.18 55 / 0.08) 360deg
  );
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
  isolation: isolate;
  animation: referral-glow-spin 4s linear infinite;
  box-shadow:
    0 0 0 1px oklch(72% 0.16 55 / 0.12),
    0 12px 32px oklch(72% 0.14 55 / 0.12);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.referral-glow-card:active {
  transform: scale(0.985);
}

.referral-glow-ring {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.55;
  background: radial-gradient(
    120% 80% at 50% -20%,
    oklch(72% 0.2 55 / 0.35) 0%,
    transparent 55%
  );
  z-index: 0;
}

.referral-glow-content {
  position: relative;
  z-index: 1;
  display: block;
  border-radius: var(--radius-lg);
  padding: 18px 18px 16px;
  background:
    radial-gradient(120% 90% at 100% 0%, oklch(72% 0.16 55 / 0.14) 0%, transparent 55%),
    radial-gradient(80% 70% at 0% 100%, oklch(75% 0.12 70 / 0.08) 0%, transparent 50%),
    var(--card-bg);
  overflow: hidden;
}

.referral-glow-content::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid oklch(72% 0.16 55 / 0.14);
  pointer-events: none;
}

.referral-glow-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  background: oklch(72% 0.16 55 / 0.16);
  border: 1px solid oklch(72% 0.16 55 / 0.22);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.referral-glow-badge svg {
  width: 14px;
  height: 14px;
}

.referral-glow-stat {
  float: right;
  margin-top: 2px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}

.referral-glow-title {
  display: block;
  margin-top: 14px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
  color: var(--text);
}

.referral-glow-desc {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.referral-glow-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.referral-glow-reward {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.referral-glow-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.referral-glow-cta svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  transition: transform 0.2s var(--ease);
}

.referral-glow-card:hover .referral-glow-cta svg,
.referral-glow-card:focus-visible .referral-glow-cta svg {
  transform: translateX(3px);
}

@keyframes referral-glow-spin {
  to { --referral-glow-angle: 360deg; }
}

[data-theme="light"] .referral-glow-card {
  box-shadow:
    0 0 0 1px oklch(72% 0.16 55 / 0.18),
    0 10px 28px oklch(72% 0.14 55 / 0.1);
}

[data-theme="light"] .referral-glow-content {
  background:
    radial-gradient(120% 90% at 100% 0%, oklch(72% 0.16 55 / 0.1) 0%, transparent 55%),
    radial-gradient(80% 70% at 0% 100%, oklch(75% 0.12 70 / 0.06) 0%, transparent 50%),
    var(--card-bg);
}

@media (prefers-reduced-motion: reduce) {
  .referral-glow-card {
    animation: none;
    background: linear-gradient(135deg, oklch(72% 0.18 55 / 0.35), oklch(72% 0.16 55 / 0.12));
  }
}

#page-home .stats-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 10px;
  padding: 0;
}

#page-home .stat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px;
}

#page-home .stat-card.featured {
  background: var(--stat-featured-bg);
  cursor: pointer;
}

#page-home .stat-card.tint-gold {
  background: var(--stat-gold-bg);
}

#page-home .stat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

#page-home .stat-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#page-home .stat-icon.earn {
  background: var(--success-soft);
  color: var(--success);
}

#page-home .stat-icon.rides {
  background: var(--gold-soft);
  color: var(--gold);
}

#page-home .stat-icon svg {
  width: 18px;
  height: 18px;
}

#page-home .stat-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--success-soft);
  color: var(--success);
}

#page-home .rank-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--gold-soft);
  color: var(--gold);
}

#page-home .rank-pill svg {
  width: 13px;
  height: 13px;
}

#page-home .stat-value {
  font-size: clamp(1.375rem, 5vw, 1.625rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

#page-home .stat-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 4px;
}

#page-home .quick-section {
  padding: 24px 20px 0;
}

#page-home .section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

#page-home .quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

#page-home .quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  border: none;
  background: none;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
}

#page-home .quick-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s var(--ease);
}

#page-home .quick-item:active .quick-icon {
  transform: scale(0.92);
}

#page-home .quick-icon.accent {
  background: var(--accent-soft);
  color: var(--accent);
}

#page-home .quick-icon.gold {
  background: var(--gold-soft);
  color: var(--gold);
}

#page-home .quick-icon.neutral {
  background: var(--surface);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
}

#page-home .quick-icon svg {
  width: 22px;
  height: 22px;
}

#page-home .quick-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

#page-home .quick-label--wrap {
  max-width: 72px;
  line-height: 1.25;
  white-space: normal;
}

#page-home .section {
  padding: 28px 20px 0;
}

#page-home .section-title {
  font-size: 18px;
}

#page-home .transaction-list {
  margin-top: 8px;
  background: var(--list-card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

#page-home .transaction-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  gap: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

#page-home .transaction-item:last-child {
  border-bottom: none;
}

#page-home .transaction-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

#page-home .transaction-icon.out {
  background: var(--danger-soft);
  color: var(--danger);
}

#page-home .transaction-icon svg {
  width: 20px;
  height: 20px;
}

#page-home .transaction-info {
  flex: 1;
  min-width: 0;
}

#page-home .transaction-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

#page-home .transaction-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 500;
}

#page-home .transaction-amount {
  text-align: right;
}

#page-home .transaction-value {
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

#page-home .transaction-icon.out {
  background: var(--danger-soft);
  color: var(--danger);
}

#page-home .transaction-icon.in {
  background: var(--success-soft);
  color: var(--success);
}

#page-home .transaction-value.negative {
  color: var(--danger);
}

#page-home .transaction-value.positive {
  color: var(--success);
}

#page-home .stat-badge {
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 100px;
  background: var(--success-soft);
  color: var(--success);
  letter-spacing: 0.01em;
}

#page-home .transaction-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
  font-weight: 500;
}

/* ── Referral page ── */
#page-referral .wallet {
  margin: 8px 20px 0;
}

#page-referral .stats-row .stat-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  margin-top: 6px;
  letter-spacing: 0.02em;
  text-transform: none;
}

#page-referral .section {
  padding: 0 20px;
  margin-bottom: 24px;
}

#page-referral .section-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

#page-referral .rules-card,
#page-referral .list-card {
  background: var(--list-card-bg);
}

#page-referral .wallet-link-copy .copy-icon-stack {
  width: 16px;
  height: 16px;
}

/* ── Sub-pages (analytics, bonuses, garage, contact) ── */
.sub-topbar .topbar-title {
  flex: 1;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.sub-page-body {
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
}

.month-select {
  display: block;
  width: calc(100% - 40px);
  margin: 0 20px 16px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23888' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}

.analytics-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 20px;
  margin-bottom: 16px;
}

.analytics-stat {
  padding: 16px;
  border-radius: 18px;
  background: var(--card-light-bg, var(--card-bg));
  border: 1px solid var(--border-subtle);
}

.analytics-stat.full {
  grid-column: 1 / -1;
}

.analytics-stat-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.analytics-stat-value {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}

.analytics-stat-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.highlight-card {
  margin: 0 20px 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--accent-soft);
  border: 1px solid oklch(72% 0.14 55 / 0.25);
  display: flex;
  align-items: center;
  gap: 14px;
}

.highlight-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.highlight-card-icon svg {
  width: 22px;
  height: 22px;
}

.highlight-card-title {
  font-size: 14px;
  font-weight: 700;
}

.highlight-card-sub {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.chart-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 20px;
  padding-bottom: 4px;
}

.chart-scroll .chart {
  min-width: 480px;
  padding: 28px 8px 0;
}

.daily-table {
  margin: 0 20px;
  border-radius: 18px;
  background: var(--list-card-bg, var(--card-bg));
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.daily-table.scroll-list,
.bonus-list.scroll-list,
.list-card.scroll-list,
.leader-list.scroll-list {
  overflow-x: hidden;
  overflow-y: auto;
}

.daily-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.daily-row:last-child {
  border-bottom: none;
}

.daily-row-date {
  font-size: 14px;
  font-weight: 600;
}

.daily-row-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.daily-row-amount {
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.bonus-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0 20px;
  margin-bottom: 16px;
}

.bonus-summary-card {
  padding: 16px;
  border-radius: 18px;
  background: var(--card-light-bg, var(--card-bg));
  border: 1px solid var(--border-subtle);
}

.bonus-summary-card.accent {
  background: var(--accent-soft);
  border-color: oklch(72% 0.14 55 / 0.25);
}

.bonus-filter-scroll {
  position: relative;
  margin-bottom: 14px;
}

.bonus-filter-scroll::before,
.bonus-filter-scroll::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28px;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.bonus-filter-scroll::before {
  left: 0;
  background: linear-gradient(to right, var(--bg) 15%, transparent 100%);
}

.bonus-filter-scroll::after {
  right: 0;
  background: linear-gradient(to left, var(--bg) 15%, transparent 100%);
}

.bonus-filter-scroll.is-scrollable::after {
  opacity: 1;
}

.bonus-filter-scroll.is-scrollable.can-scroll-left::before {
  opacity: 1;
}

.bonus-filter-scroll.is-scrollable.is-at-end::after {
  opacity: 0;
}

.bonus-filter-scroll.is-scrollable.is-at-start::before {
  opacity: 0;
}

.bonus-filter-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 0 20px 2px;
  margin-bottom: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-padding-inline: 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.bonus-filter-row::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.bonus-filter {
  flex-shrink: 0;
  padding: 8px 14px;
  border-radius: 100px;
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

.bonus-filter.active {
  background: var(--accent-soft);
  border-color: oklch(72% 0.14 55 / 0.3);
  color: var(--accent);
}

.bonus-list {
  margin: 0 20px;
  border-radius: 18px;
  background: var(--list-card-bg, var(--card-bg));
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.bonus-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.bonus-item:last-child {
  border-bottom: none;
}

.bonus-item-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bonus-item-icon svg {
  width: 18px;
  height: 18px;
}

.bonus-item-info {
  flex: 1;
  min-width: 0;
}

.bonus-item-title {
  font-size: 14px;
  font-weight: 700;
}

.bonus-item-date {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.bonus-item-amount {
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--success);
}

.bonus-item-amount.failed {
  color: var(--text-muted);
}

.load-more-btn {
  display: block;
  width: calc(100% - 40px);
  margin: 16px 20px 0;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
}

.garage-current {
  margin: 0 20px 20px;
  padding: 18px;
  border-radius: 20px;
  background: var(--success-soft);
  border: 1px solid oklch(65% 0.15 145 / 0.25);
}

.garage-current-plate {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--success);
}

.garage-current-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.garage-search-card {
  margin: 0 20px;
  padding: 18px;
  border-radius: 20px;
  background: var(--card-light-bg, var(--card-bg));
  border: 1px solid var(--border-subtle);
}

.garage-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.garage-input-row {
  display: flex;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: var(--surface);
}

.garage-input-row:focus-within {
  border-color: oklch(72% 0.14 55 / 0.5);
}

.garage-input {
  flex: 1;
  min-width: 0;
  width: auto;
  padding: 14px 16px;
  border: none;
  border-radius: 0;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  outline: none;
}

.garage-input::placeholder {
  color: var(--text-muted);
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
}

.garage-search-btn {
  width: 52px;
  flex-shrink: 0;
  align-self: stretch;
  border: none;
  border-radius: 0;
  background: var(--accent);
  color: var(--accent-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s var(--ease);
}

.garage-search-btn:active {
  background: var(--accent-hover);
}

.garage-search-btn svg {
  width: 20px;
  height: 20px;
}

.garage-found {
  margin-top: 14px;
  padding: 14px;
  border-radius: 14px;
  background: oklch(55% 0.12 250 / 0.12);
  border: 1px solid oklch(55% 0.12 250 / 0.25);
  display: none;
}

.garage-found.visible {
  display: block;
}

.garage-found-title {
  font-size: 13px;
  font-weight: 700;
  color: oklch(55% 0.12 250);
}

.garage-found-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.garage-bind-btn {
  display: none;
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: var(--success);
  color: white;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.garage-bind-btn.visible {
  display: block;
}

.contact-hero {
  margin: 0 20px 20px;
  padding: 28px 20px;
  border-radius: 24px;
  background: var(--card-light-bg, var(--card-bg));
  border: 1px solid var(--border-subtle);
  text-align: center;
}

.contact-wa-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: oklch(65% 0.18 145 / 0.15);
  color: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.contact-wa-icon svg {
  width: 32px;
  height: 32px;
}

.contact-phone-display {
  font-size: 18px;
  font-weight: 700;
  margin: 12px 0 4px;
}

.contact-digit-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 8px;
}

.contact-digit-pill.even {
  background: var(--success-soft);
  color: var(--success);
}

.contact-digit-pill.odd {
  background: oklch(55% 0.12 250 / 0.15);
  color: oklch(55% 0.12 250);
}

.contact-action-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.contact-wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 0;
  padding: 16px;
  border: none;
  border-radius: 16px;
  background: #25D366;
  color: white;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.contact-call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  border-radius: 16px;
  background: var(--card-light-bg, var(--card-bg));
  border: 1px solid var(--border-subtle);
  color: var(--text-primary, inherit);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.contact-call-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.contact-wa-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.contact-line-card {
  margin: 0 20px 20px;
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--success-soft);
  border: 1px solid oklch(65% 0.15 145 / 0.2);
}

.contact-line-title {
  font-size: 14px;
  font-weight: 700;
}

.contact-line-number {
  font-size: 16px;
  font-weight: 800;
  margin-top: 4px;
  font-variant-numeric: tabular-nums;
}

.faq-list {
  margin: 0 20px;
}

.faq-item {
  border-radius: 16px;
  background: var(--list-card-bg, var(--card-bg));
  border: 1px solid var(--border-subtle);
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s var(--ease);
}

.faq-item[open] summary svg {
  transform: rotate(180deg);
}

.faq-item p {
  padding: 0 16px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.withdraw-active-banner {
  margin: 12px 20px 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: oklch(65% 0.14 85 / 0.15);
  border: 1px solid oklch(65% 0.14 85 / 0.3);
}

.withdraw-active-title {
  font-size: 13px;
  font-weight: 700;
  color: oklch(55% 0.14 85);
}

.withdraw-active-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.withdraw-time-notice {
  margin: 12px 20px 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--danger-soft);
  border: 1px solid oklch(55% 0.18 25 / 0.25);
  font-size: 12px;
  font-weight: 600;
  color: var(--danger);
  line-height: 1.4;
}

.schedule-list {
  margin: 0 20px;
}

.schedule-card {
  padding: 16px;
  border-radius: 18px;
  background: var(--list-card-bg, var(--card-bg));
  border: 1px solid var(--border-subtle);
  margin-bottom: 10px;
}

.schedule-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.schedule-card-title {
  font-size: 14px;
  font-weight: 700;
}

.schedule-card-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.schedule-status {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--success-soft);
  color: var(--success);
}

.schedule-status.inactive {
  background: var(--surface);
  color: var(--text-muted);
}

.schedule-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.schedule-actions button {
  flex: 1;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.schedule-actions button.danger {
  color: var(--danger);
}

.schedule-actions button.primary {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border-subtle));
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}

.schedule-panel-wrap {
  position: relative;
}

.schedule-disabled-overlay[hidden] {
  display: none !important;
}

.schedule-disabled-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: color-mix(in srgb, var(--page-bg) 72%, transparent);
  backdrop-filter: blur(4px);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
}

.schedule-info-banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 0 20px 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent) 8%, var(--card-bg));
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--border-subtle));
}

.schedule-info-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  color: var(--accent);
  flex-shrink: 0;
}

.schedule-info-icon svg {
  width: 20px;
  height: 20px;
}

.schedule-info-banner strong {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}

.schedule-info-banner p {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

.schedule-card--inactive {
  opacity: 0.72;
}

.schedule-card-main {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  min-width: 0;
}

.schedule-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent) 12%, var(--surface));
  color: var(--accent);
  flex-shrink: 0;
}

.schedule-card-icon svg {
  width: 18px;
  height: 18px;
}

.schedule-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  margin-bottom: 10px;
}

.schedule-meta-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.schedule-meta-value {
  font-size: 13px;
  font-weight: 600;
}

.schedule-next-run {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.schedule-history-card {
  margin: 0 20px;
  padding: 0;
  overflow: hidden;
}

.schedule-history-list {
  display: flex;
  flex-direction: column;
}

.schedule-history-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-top: 1px solid var(--border-subtle);
}

.schedule-history-row:first-child {
  border-top: none;
}

.schedule-history-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.schedule-history-dot.success { background: var(--success); }
.schedule-history-dot.skip { background: #d97706; }
.schedule-history-dot.fail { background: var(--danger); }

.schedule-history-body {
  flex: 1;
  min-width: 0;
}

.schedule-history-title {
  font-size: 13px;
  font-weight: 600;
}

.schedule-history-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.schedule-history-balance {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
}

.schedule-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.schedule-type-option {
  cursor: pointer;
}

.schedule-type-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.schedule-type-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 8px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  text-align: center;
  transition: border-color 0.15s, background 0.15s;
}

.schedule-type-card strong {
  font-size: 12px;
}

.schedule-type-card small {
  font-size: 10px;
  color: var(--text-muted);
  line-height: 1.3;
}

.schedule-type-option.selected .schedule-type-card,
.schedule-type-option input:checked + .schedule-type-card {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}

.day-chip-row,
.custom-day-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.custom-day-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.day-chip,
.custom-day-chip {
  cursor: pointer;
}

.day-chip input,
.custom-day-chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.day-chip span,
.custom-day-chip span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 34px;
  padding: 0 8px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  font-size: 12px;
  font-weight: 600;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.custom-day-chip span {
  min-width: 0;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
}

.day-chip.selected span,
.custom-day-chip.selected span,
.day-chip input:checked + span,
.custom-day-chip input:checked + span {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, var(--surface));
  color: var(--accent);
}

.amount-type-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.amount-type-option {
  cursor: pointer;
}

.amount-type-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.amount-type-option span {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
}

.amount-type-option.selected span,
.amount-type-option input:checked + span {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  color: var(--accent);
}

.field-hint {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
}

.field-hint:not([hidden]) {
  display: block;
}

#ibanFormError {
  color: var(--danger);
}

#btnNewSchedule:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.otp-inputs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 16px 0;
}

.otp-digit {
  width: 44px;
  height: 52px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  font-family: inherit;
}

.quick-amounts {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.quick-amount-btn {
  padding: 8px 14px;
  border-radius: 100px;
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* Sheet form controls */
.sheet-content .field select,
.sheet-content .field input[type="time"],
.sheet-content .field input[type="number"] {
  width: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s var(--ease);
}

.sheet-content .field select {
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23888' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}

.sheet-content .field select:focus,
.sheet-content .field input[type="time"]:focus,
.sheet-content .field input[type="number"]:focus {
  border-color: oklch(72% 0.14 55 / 0.5);
}

.bank-picker {
  position: relative;
}

.bank-picker-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  background: var(--surface);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.bank-picker-trigger:active,
.bank-picker.open .bank-picker-trigger {
  border-color: oklch(72% 0.14 55 / 0.45);
  background: var(--surface-hover);
}

.bank-picker-trigger-text {
  flex: 1;
  min-width: 0;
}

.bank-picker-trigger-main {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.bank-picker-trigger-sub {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.bank-picker-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform 0.2s var(--ease);
}

.bank-picker.open .bank-picker-chevron {
  transform: rotate(180deg);
}

.bank-picker-menu {
  margin-top: 8px;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  max-height: 220px;
  overflow-y: auto;
}

.bank-picker-menu[hidden] {
  display: none !important;
}

.bank-picker-item {
  width: 100%;
  display: block;
  padding: 12px 14px;
  border: none;
  border-radius: 12px;
  background: transparent;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s var(--ease);
}

.bank-picker-item:hover,
.bank-picker-item.active {
  background: var(--accent-soft);
}

.bank-picker-item-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.bank-picker-item-iban {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.garage-sheet-current {
  padding: 14px;
  border-radius: 14px;
  background: var(--success-soft);
  margin-bottom: 16px;
}

.garage-sheet-plate {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--success);
}

.garage-sheet-meta {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Invoice Page Styles */
.invoice-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 20px 16px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--warning-soft);
  color: var(--text-primary);
  font-size: 12px;
  line-height: 1.5;
}
.invoice-alert svg {
  width: 20px;
  height: 20px;
  color: var(--warning);
  flex-shrink: 0;
  margin-top: 1px;
}

.invoice-info-card {
  margin: 0 20px 20px;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: var(--card-bg);
  overflow: hidden;
}
.invoice-info-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.invoice-info-card summary::-webkit-details-marker {
  display: none;
}
.invoice-info-card summary svg {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: transform 0.2s;
}
.invoice-info-card[open] summary svg {
  transform: rotate(180deg);
}
.invoice-info-body {
  padding: 0 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.invoice-info-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}
.invoice-info-row span:first-child {
  color: var(--text-muted);
}
.invoice-info-row span:last-child {
  font-weight: 600;
  text-align: right;
}

.invoice-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.invoice-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
}

.invoice-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.invoice-icon svg {
  width: 22px;
  height: 22px;
}
.invoice-icon.success {
  background: var(--success-soft);
  color: var(--success);
}
.invoice-icon.warning {
  background: var(--warning-soft);
  color: var(--warning);
}
.invoice-icon.danger {
  background: var(--danger-soft);
  color: var(--danger);
}
.invoice-icon.pending {
  background: var(--primary-soft);
  color: var(--primary);
}

.invoice-content {
  flex: 1;
  min-width: 0;
}

.invoice-month {
  font-size: 14px;
  font-weight: 700;
}

.invoice-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-muted);
}

.invoice-amount {
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.invoice-status {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
  text-align: center;
  margin-top: 6px;
  white-space: nowrap;
}
.invoice-status.success {
  background: var(--success-soft);
  color: var(--success);
}
.invoice-status.warning {
  background: var(--warning-soft);
  color: var(--warning);
}
.invoice-status.danger {
  background: var(--danger-soft);
  color: var(--danger);
}
.invoice-status.pending {
  background: var(--primary-soft);
  color: var(--primary);
}

.invoice-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.invoice-upload-btn {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 100px;
  border: none;
  background: var(--primary);
  color: white;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}
.invoice-upload-btn:active {
  transform: scale(0.96);
}

.invoice-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 13px;
}

/* Invoice Upload Modal */
.invoice-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s;
}
.invoice-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.invoice-modal {
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  background: var(--bg);
  border-radius: 24px 24px 0 0;
  overflow: hidden;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}
.invoice-modal-overlay.active .invoice-modal {
  transform: translateY(0);
}

.invoice-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}
.invoice-modal-header h3 {
  font-size: 17px;
  font-weight: 700;
}
.invoice-modal-close {
  width: 32px;
  height: 32px;
  border-radius: 100px;
  border: none;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.invoice-modal-close svg {
  width: 18px;
  height: 18px;
}

.invoice-modal-body {
  padding: 20px;
}

.invoice-file-input {
  display: none;
}

.invoice-file-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 30px;
  border-radius: 16px;
  border: 2px dashed var(--border-subtle);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.2s;
}
.invoice-file-label:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.invoice-file-label svg {
  width: 40px;
  height: 40px;
  color: var(--text-muted);
}
.invoice-file-label.has-file {
  border-color: var(--success);
  background: var(--success-soft);
}
.invoice-file-label.has-file svg {
  color: var(--success);
}

.invoice-file-text {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

.invoice-file-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--success);
}

.invoice-no-file-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  background: var(--surface);
}
.invoice-no-file-check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
}
.invoice-no-file-check label {
  font-size: 13px;
  cursor: pointer;
}

.invoice-modal-submit {
  width: 100%;
  margin-top: 20px;
  padding: 14px;
  border-radius: 14px;
  border: none;
  background: var(--primary);
  color: white;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.invoice-modal-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.invoice-modal-submit:not(:disabled):active {
  transform: scale(0.98);
}

/* Upcoming Bonuses Styles */
.upcoming-bonuses {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.upcoming-bonus-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  transition: all 0.2s;
}
.upcoming-bonus-card.claimable {
  border-color: var(--success);
  background: var(--success-soft);
}

.upcoming-bonus-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
  flex-shrink: 0;
}
.upcoming-bonus-icon svg {
  width: 22px;
  height: 22px;
}
.upcoming-bonus-card.claimable .upcoming-bonus-icon {
  background: var(--success);
  color: white;
}
.upcoming-bonus-card[data-type="birthday"] .upcoming-bonus-icon {
  background: oklch(0.95 0.12 350);
  color: oklch(0.55 0.2 350);
}
.upcoming-bonus-card[data-type="milestone"] .upcoming-bonus-icon {
  background: oklch(0.95 0.1 250);
  color: oklch(0.55 0.18 250);
}
.upcoming-bonus-card[data-type="leaderboard"] .upcoming-bonus-icon {
  background: oklch(0.95 0.15 80);
  color: oklch(0.55 0.2 80);
}

.upcoming-bonus-info {
  flex: 1;
  min-width: 0;
}

.upcoming-bonus-title {
  font-size: 14px;
  font-weight: 700;
}

.upcoming-bonus-desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.upcoming-bonus-action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.upcoming-bonus-amount {
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--success);
}

.upcoming-bonus-status {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

.upcoming-bonus-claim-btn {
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 100px;
  border: none;
  background: var(--success);
  color: white;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}
.upcoming-bonus-claim-btn:active {
  transform: scale(0.96);
}

/* Bank Account Actions Styles — consolidated above under "Bank account styles" */

.sheet-icon-wrap.danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.sheet-btn.danger {
  background: var(--danger);
}
.sheet-btn.danger:hover {
  background: oklch(0.5 0.22 25);
}

.sheet-form-check {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
}
.sheet-form-check input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.sheet-form-check label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
  line-height: 1.35;
}

/* Notifications Dropdown Styles */
.notif-btn {
  position: relative;
}

.notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 100px;
  background: var(--danger);
  color: white;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.notif-dropdown {
  position: fixed;
  top: calc(16px + env(safe-area-inset-top) + 56px);
  right: 20px;
  width: calc(100% - 40px);
  max-width: 380px;
  max-height: 70vh;
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
  z-index: 200;
  overflow: hidden;
  flex-direction: column;
}

.notif-dropdown:not([hidden]) {
  display: flex;
}

.notif-dropdown[hidden] {
  display: none !important;
}

.app-global-actions {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top));
  right: 20px;
  z-index: 150;
}

.theme-options {
  padding: 4px 0;
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-subtle);
}

.theme-option:last-child {
  border-bottom: none;
}

.theme-option input[type="radio"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--primary, var(--accent));
  flex-shrink: 0;
}

.theme-option-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.theme-option-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.theme-option-desc {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.notif-dropdown-title {
  font-size: 16px;
  font-weight: 700;
}

.notif-mark-all {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.notif-mark-all:hover {
  text-decoration: underline;
}

.notif-dropdown-body {
  flex: 1;
  overflow-y: auto;
  max-height: 400px;
}

.notif-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.notif-item {
  display: flex;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: background 0.15s;
}
.notif-item:hover {
  background: var(--surface);
}
.notif-item:last-child {
  border-bottom: none;
}
.notif-item.unread {
  background: var(--primary-soft);
}

.notif-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.notif-item-icon svg {
  width: 18px;
  height: 18px;
}
.notif-item-icon.info {
  background: var(--primary-soft);
  color: var(--primary);
}
.notif-item-icon.warning {
  background: var(--warning-soft);
  color: var(--warning);
}
.notif-item-icon.success {
  background: var(--success-soft);
  color: var(--success);
}
.notif-item-icon.danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.notif-item-content {
  flex: 1;
  min-width: 0;
}

.notif-item-title {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}
.notif-item.unread .notif-item-title {
  font-weight: 700;
}

.notif-item-message {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notif-item-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

.notif-item-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
}
.notif-item-link svg {
  width: 14px;
  height: 14px;
}

.notif-overlay {
  position: fixed;
  inset: 0;
  z-index: 180;
}
