/* ============================================================
   SubRadar — Dark Obsidian Radar Theme
   Ultra-clean Fintech UI for Telegram Mini App (Mobile + Desktop)
   ============================================================ */

:root {
  --bg-deep: #080C14;
  --bg-surface: #0F1623;
  --bg-surface-2: #141E30;
  --bg-glass: rgba(15, 22, 35, 0.76);
  --bg-glass-strong: rgba(15, 22, 35, 0.92);

  --border-subtle: rgba(148, 163, 184, 0.13);
  --border-glow: rgba(16, 185, 129, 0.32);
  --border-danger: rgba(239, 68, 68, 0.42);
  --border-amber: rgba(245, 158, 11, 0.38);
  --border-gold: rgba(251, 191, 36, 0.42);

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  --emerald: #10B981;
  --emerald-bright: #34D399;
  --emerald-dim: rgba(16, 185, 129, 0.15);
  --emerald-glow: rgba(16, 185, 129, 0.32);

  --amber: #F59E0B;
  --amber-dim: rgba(245, 158, 11, 0.16);

  --crimson: #EF4444;
  --crimson-bright: #F87171;
  --crimson-dim: rgba(239, 68, 68, 0.16);

  --gold-1: #FDE68A;
  --gold-2: #FBBF24;
  --gold-3: #F59E0B;
  --gold-dim: rgba(251, 191, 36, 0.14);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --nav-height: 72px;
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

.hidden {
  display: none !important;
}

.mono-num,
.mono-input {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.muted-text {
  color: var(--text-secondary);
}

.gold-text {
  background: linear-gradient(135deg, var(--gold-1) 0%, var(--gold-2) 48%, var(--gold-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   Ambient Background
   ============================================================ */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(16, 185, 129, 0.14), transparent 52%),
    radial-gradient(circle at 88% 22%, rgba(56, 189, 248, 0.08), transparent 44%),
    radial-gradient(circle at 12% 76%, rgba(239, 68, 68, 0.06), transparent 42%),
    var(--bg-deep);
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.4;
}

.orb-emerald {
  width: 320px;
  height: 320px;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(16, 185, 129, 0.38), transparent 70%);
}

.orb-indigo {
  width: 260px;
  height: 260px;
  bottom: 80px;
  right: -90px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.22), transparent 70%);
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at 50% 20%, black 20%, transparent 78%);
}

/* ============================================================
   App Shell (Responsive Mobile + Desktop Frame)
   ============================================================ */
.app-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding-top: var(--safe-top);
}

@media (min-width: 540px) {
  .app-shell {
    border-left: 1px solid rgba(148, 163, 184, 0.08);
    border-right: 1px solid rgba(148, 163, 184, 0.08);
    background: rgba(8, 12, 20, 0.42);
    box-shadow: 0 0 80px rgba(0, 0, 0, 0.55);
  }
}

/* ============================================================
   Sticky Glass Header
   ============================================================ */
.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: rgba(8, 12, 20, 0.86);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.brand-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  cursor: pointer;
}

.brand-avatar {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.2), rgba(15, 22, 35, 0.95));
  border: 1px solid rgba(16, 185, 129, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.18);
  overflow: hidden;
}

.brand-mascot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-mascot-fallback {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-mascot-fallback svg {
  width: 28px;
  height: 28px;
}

.brand-radar-ping {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 8px var(--emerald);
  animation: pulseDot 2.2s infinite;
}

.brand-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.brand-name {
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  white-space: nowrap;
}

.brand-subtitle {
  font-size: 10.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-pro-mini {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 2px 4px;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--gold-2), var(--gold-3));
  color: #1A1202;
  flex-shrink: 0;
}

.badge-dev-mini {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 1px 4px;
  border-radius: 5px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #7DD3FC;
  flex-shrink: 0;
}

@media (max-width: 420px) {
  .badge-pro-mini:not(.hidden) + .badge-dev-mini {
    display: none !important;
  }
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

.pill-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(15, 22, 35, 0.92);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 2px;
  gap: 2px;
}

.pill-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 7px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.pill-switch-currencies .pill-btn {
  padding: 4px 6.5px;
  font-size: 11px;
}

.pill-switch-compact .pill-btn {
  padding: 4px 5px;
  font-size: 10px;
}

.pill-btn.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.24), rgba(16, 185, 129, 0.14));
  color: var(--emerald-bright);
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.4);
}

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

/* ============================================================
   Loading & Error Screens
   ============================================================ */
.loading-screen,
.error-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 20px calc(var(--nav-height) + 24px);
  text-align: center;
}

.radar-loader {
  position: relative;
  width: 84px;
  height: 84px;
  margin-bottom: 18px;
}

.radar-loader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  animation: radarPulse 2s ease-out infinite;
}

.radar-loader-ring.delay-1 {
  animation-delay: 0.9s;
}

.radar-loader-sweep {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(16, 185, 129, 0.45), rgba(16, 185, 129, 0) 35%);
  animation: radarSpin 1.6s linear infinite;
}

.radar-loader-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 16px var(--emerald);
}

.loading-text {
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  margin: 0;
}

.error-card {
  width: 100%;
  max-width: 340px;
  padding: 26px 20px;
}

.error-icon {
  font-size: 38px;
  margin-bottom: 10px;
}

.error-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.error-card p {
  margin: 0 0 18px;
  font-size: 13px;
}

/* ============================================================
   Main Content & Tabs
   ============================================================ */
.main-content {
  flex: 1;
  padding: 14px 14px calc(var(--nav-height) + var(--safe-bottom) + 28px);
}

.tab-view {
  display: none;
  animation: fadeSlideUp 0.24s ease;
}

.tab-view.active {
  display: block;
}

/* ============================================================
   Glass Cards & Primitives
   ============================================================ */
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 36px rgba(0, 0, 0, 0.34);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 18px 2px 10px;
}

.section-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-count {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: rgba(148, 163, 184, 0.14);
  color: var(--text-secondary);
}

/* Buttons */
.btn {
  appearance: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease, background 0.2s ease;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-full {
  width: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #031912;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.btn-primary:hover {
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.45);
}

.btn-secondary-glow {
  background: rgba(16, 185, 129, 0.11);
  color: var(--emerald-bright);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.btn-gold {
  background: linear-gradient(135deg, #FDE68A 0%, #FBBF24 46%, #F59E0B 100%);
  color: #1F1300;
  box-shadow: 0 10px 26px rgba(245, 158, 11, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.btn-ghost {
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-danger-ghost {
  background: rgba(239, 68, 68, 0.1);
  color: var(--crimson-bright);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-sm {
  padding: 7px 12px;
  font-size: 12px;
  border-radius: 10px;
}

.link-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--emerald-bright);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  padding: 0;
  cursor: pointer;
}

/* Segmented Control */
.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: rgba(8, 12, 20, 0.72);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 4px;
}

.seg-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 11px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.seg-btn.active {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.24), rgba(16, 185, 129, 0.12));
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.42), 0 4px 12px rgba(16, 185, 129, 0.16);
}

/* ============================================================
   TAB 1: RADAR HERO CARD & DONUT
   ============================================================ */
.dev-reset-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 10px;
  border-radius: var(--radius-md);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.28);
  font-size: 11.5px;
  color: #BAE6FD;
}

.dev-reset-btn {
  appearance: none;
  border: 1px solid rgba(56, 189, 248, 0.42);
  background: rgba(8, 12, 20, 0.75);
  color: #7DD3FC;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.14s ease, background 0.16s ease;
}

.dev-reset-btn:active {
  transform: scale(0.95);
}

.hero-radar-card {
  position: relative;
  padding: 16px 16px 15px;
  overflow: hidden;
  border-color: rgba(16, 185, 129, 0.22);
  background:
    radial-gradient(circle at 50% 34%, rgba(16, 185, 129, 0.12), transparent 62%),
    var(--bg-glass);
}

.hero-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.hero-period-switch {
  width: auto;
  min-width: 184px;
}

.hero-limit-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.18s ease;
}

.hero-limit-pill.warn {
  background: var(--amber-dim);
  border-color: var(--border-amber);
  color: #FCD34D;
}

.hero-limit-pill.full {
  background: var(--crimson-dim);
  border-color: var(--border-danger);
  color: var(--crimson-bright);
}

.hero-limit-pill.pro {
  background: var(--gold-dim);
  border-color: var(--border-gold);
  color: var(--gold-1);
}

/* Donut + Radar Sweep */
.donut-stage {
  position: relative;
  width: 214px;
  height: 214px;
  margin: 4px auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-sweep-layer {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgba(16, 185, 129, 0.24) 0deg,
    rgba(16, 185, 129, 0.06) 28deg,
    transparent 65deg
  );
  animation: radarSpin 6.5s linear infinite;
  pointer-events: none;
  opacity: 0.72;
}

.radar-crosshair {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1px dashed rgba(16, 185, 129, 0.16);
  pointer-events: none;
}

.radar-crosshair::before,
.radar-crosshair::after {
  content: "";
  position: absolute;
  background: rgba(16, 185, 129, 0.08);
}

.radar-crosshair::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
}

.radar-crosshair::after {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
}

.donut-svg {
  position: relative;
  z-index: 2;
  width: 214px;
  height: 214px;
  transform: rotate(-90deg);
  filter: drop-shadow(0 0 12px rgba(16, 185, 129, 0.16));
}

.donut-track {
  fill: none;
  stroke: rgba(148, 163, 184, 0.12);
  stroke-width: 14;
}

.donut-seg {
  fill: none;
  stroke-width: 14;
  stroke-linecap: butt;
  transition: stroke-dasharray 0.55s cubic-bezier(0.22, 1, 0.36, 1), stroke-dashoffset 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.donut-center {
  position: absolute;
  z-index: 3;
  inset: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 22, 35, 0.94) 55%, rgba(8, 12, 20, 0.88) 100%);
  border: 1px solid rgba(148, 163, 184, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
}

.donut-caption {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--emerald-bright);
  margin-bottom: 3px;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.donut-amount {
  font-family: var(--font-mono);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--text-primary);
  max-width: 100%;
  white-space: nowrap;
}

.donut-amount.compact {
  font-size: 18px;
}

.donut-amount.extra-compact {
  font-size: 15px;
}

.donut-period-unit {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Shock Counter Strip */
.shock-counter-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.09), rgba(15, 22, 35, 0.9));
  border: 1px solid rgba(16, 185, 129, 0.22);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  text-align: center;
  margin-bottom: 12px;
}

.shock-line-primary {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.shock-line-primary strong {
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.shock-highlight {
  color: #FCA5A5 !important;
}

/* Hero Legend Chips & KPI Row */
.hero-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.kpi-chip {
  background: rgba(8, 12, 20, 0.56);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.kpi-chip.danger {
  background: rgba(239, 68, 68, 0.11);
  border-color: rgba(239, 68, 68, 0.34);
}

.kpi-chip.amber {
  background: rgba(245, 158, 11, 0.11);
  border-color: rgba(245, 158, 11, 0.34);
}

.kpi-val {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.kpi-chip.danger .kpi-val {
  color: var(--crimson-bright);
}

.kpi-chip.amber .kpi-val {
  color: #FCD34D;
}

.kpi-label {
  font-size: 10.5px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-radar-card {
  margin-top: 14px;
  padding: 26px 18px 22px;
  text-align: center;
  border-color: rgba(16, 185, 129, 0.24);
  background:
    radial-gradient(circle at 50% 18%, rgba(16, 185, 129, 0.12), transparent 60%),
    var(--bg-glass);
}

.empty-radar-visual {
  position: relative;
  width: 78px;
  height: 78px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.32);
  font-size: 32px;
}

.empty-radar-visual::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid rgba(16, 185, 129, 0.28);
  animation: radarPulse 2.4s ease-out infinite;
}

.empty-radar-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.empty-radar-card p {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--text-secondary);
}

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

/* ============================================================
   URGENT BANNER: TRIAL TRAPS & DUE SOON
   ============================================================ */
.urgent-banner {
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(239, 68, 68, 0.13), rgba(245, 158, 11, 0.08) 55%, rgba(15, 22, 35, 0.92));
  border: 1px solid rgba(239, 68, 68, 0.35);
  box-shadow: 0 12px 32px rgba(239, 68, 68, 0.14);
}

.urgent-banner-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.urgent-banner-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 800;
  color: #FECACA;
}

.urgent-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--crimson);
  box-shadow: 0 0 12px var(--crimson);
  animation: trialPulse 1.4s infinite;
}

.urgent-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.urgent-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 11px 12px;
  border-radius: var(--radius-md);
  background: rgba(8, 12, 20, 0.72);
  border: 1px solid rgba(239, 68, 68, 0.25);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease;
}

.urgent-item-top {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.urgent-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.urgent-item.is-amber {
  border-color: rgba(245, 158, 11, 0.34);
}

.urgent-item:active {
  transform: scale(0.985);
}

/* Pulsing Trial Trap Badge */
.badge-trial-trap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: rgba(239, 68, 68, 0.22);
  border: 1px solid rgba(239, 68, 68, 0.65);
  color: #FCA5A5;
  box-shadow: 0 0 14px rgba(239, 68, 68, 0.35);
  animation: trialBadgePulse 1.8s ease-in-out infinite;
  white-space: nowrap;
}

.badge-countdown {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.badge-countdown.danger {
  background: rgba(239, 68, 68, 0.2);
  color: #FCA5A5;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

.badge-countdown.amber {
  background: rgba(245, 158, 11, 0.2);
  color: #FCD34D;
  border: 1px solid rgba(245, 158, 11, 0.42);
}

.badge-countdown.neutral {
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-secondary);
}

.badge-split {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #7DD3FC;
  white-space: nowrap;
}

/* ============================================================
   SUBSCRIPTION LIST CARDS
   ============================================================ */
.filter-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0 10px;
  scrollbar-width: none;
}

.filter-chips::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  appearance: none;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 22, 35, 0.8);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.16s ease;
}

.filter-chip.active {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.45);
  color: var(--emerald-bright);
}

.subs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 13px 14px;
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease, background 0.2s ease;
}

.sub-card:hover {
  border-color: rgba(148, 163, 184, 0.25);
}

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

.sub-card.is-trial {
  border-color: rgba(239, 68, 68, 0.42);
  background: linear-gradient(145deg, rgba(239, 68, 68, 0.08), rgba(15, 22, 35, 0.88));
}

.sub-card.is-due-soon {
  border-color: rgba(245, 158, 11, 0.36);
}

.sub-card-top {
  display: flex;
  align-items: center;
  gap: 11px;
}

.sub-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

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

.sub-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 3px;
}

.sub-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.sub-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 11.5px;
  color: var(--text-secondary);
}

.sub-price-col {
  text-align: right;
  flex-shrink: 0;
}

.sub-price-main {
  font-family: var(--font-mono);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
}

.sub-price-sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.sub-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.09);
}

.sub-footer-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.cancel-link-btn {
  appearance: none;
  border: 1px solid rgba(239, 68, 68, 0.34);
  background: rgba(239, 68, 68, 0.12);
  color: #FCA5A5;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: background 0.16s ease, transform 0.14s ease;
}

.cancel-link-btn:active {
  transform: scale(0.95);
}

/* ============================================================
   TAB 2: LEAKS (ANALYTICS & SAVINGS SIMULATOR)
   ============================================================ */
.savings-hero-card {
  padding: 18px 16px;
  border-color: rgba(16, 185, 129, 0.34);
  background:
    radial-gradient(circle at 85% 15%, rgba(16, 185, 129, 0.22), transparent 55%),
    var(--bg-glass);
  margin-bottom: 14px;
}

.savings-eyebrow {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--emerald-bright);
  margin-bottom: 6px;
}

.savings-big-value {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.savings-big-value .plus-accent {
  color: var(--emerald-bright);
}

.savings-sub-value {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--emerald-bright);
  margin-top: 4px;
  opacity: 0.92;
}

.savings-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.savings-hint {
  font-size: 11.5px;
  color: var(--text-secondary);
}

.savings-quick-btns {
  display: flex;
  gap: 6px;
}

.sim-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.sim-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(8, 12, 20, 0.65);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.16s ease;
}

.sim-item.checked {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.45);
}

.sim-checkbox {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.8px solid rgba(148, 163, 184, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 800;
  color: transparent;
  transition: all 0.16s ease;
}

.sim-item.checked .sim-checkbox {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #031912;
}

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

.sim-item-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.sim-item-name-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sim-item.checked .sim-item-name-text {
  text-decoration: line-through;
  color: var(--text-secondary);
}

.sim-item-save {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
}

.sim-item.checked .sim-item-save {
  color: var(--emerald-bright);
}

/* Category Breakdown */
.analytics-card {
  padding: 16px;
  margin-bottom: 14px;
}

.cat-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.cat-row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
  font-size: 12.5px;
}

.cat-name-wrap {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
}

.cat-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cat-amount-wrap {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-primary);
}

.cat-pct {
  color: var(--text-muted);
  margin-left: 5px;
}

.progress-track {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-pill);
  background: rgba(148, 163, 184, 0.12);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Top Leaks */
.top-leaks-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 12px;
}

.leak-rank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-radius: var(--radius-md);
  background: rgba(8, 12, 20, 0.58);
  border: 1px solid var(--border-subtle);
}

.rank-badge {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.14);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.rank-badge.top-1 {
  background: rgba(239, 68, 68, 0.22);
  color: #FCA5A5;
}

.rank-badge.top-2 {
  background: rgba(245, 158, 11, 0.22);
  color: #FCD34D;
}

.rank-badge.top-3 {
  background: rgba(16, 185, 129, 0.18);
  color: var(--emerald-bright);
}

/* ============================================================
   TAB 3: PUSHES & DEV BOT OUTBOX
   ============================================================ */
.push-card {
  padding: 16px;
  margin-bottom: 14px;
}

.push-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.push-toggle-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
}

.push-toggle-sub {
  font-size: 12px;
  color: var(--text-secondary);
}

.push-timing-block {
  margin: 14px 0 16px;
}

.outbox-card {
  padding: 16px;
  border-color: rgba(56, 189, 248, 0.28);
}

.outbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.outbox-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tg-bubble {
  background: linear-gradient(160deg, rgba(20, 30, 48, 0.96), rgba(12, 19, 32, 0.96));
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 16px 16px 16px 4px;
  padding: 11px 13px;
}

.tg-bubble-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.tg-bot-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #38BDF8;
}

.tg-time {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

.tg-bubble-text {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-primary);
  white-space: pre-wrap;
  word-break: break-word;
}

.tg-bubble-text b {
  color: #FFFFFF;
  font-weight: 700;
}

.tg-bubble-text code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(148, 163, 184, 0.16);
}

.tg-inline-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.tg-inline-btn-preview {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.26);
  color: #BAE6FD;
}

.deals-card {
  border-color: rgba(16, 185, 129, 0.28);
}

.deals-tier-row {
  margin: 12px 0 10px;
}

.deals-tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 700;
}

.deals-tier-pill.is-pro {
  background: rgba(251, 191, 36, 0.16);
  border: 1px solid rgba(251, 191, 36, 0.42);
  color: #FDE68A;
}

.deals-tier-pill.is-trial {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.36);
  color: var(--emerald-bright);
}

.deals-tier-pill.is-locked {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #FCA5A5;
}

.deals-preview-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.deal-preview-item {
  padding: 10px 11px;
  border-radius: var(--radius-md);
  background: rgba(8, 12, 20, 0.62);
  border: 1px solid var(--border-subtle);
}

.deal-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.deal-preview-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.35;
}

.deal-scope-badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.14);
  color: var(--emerald-bright);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.deal-scope-badge.is-ext {
  background: rgba(251, 191, 36, 0.15);
  color: #FCD34D;
  border-color: rgba(251, 191, 36, 0.34);
}

.deal-preview-desc {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 6px;
}

.deal-preview-link {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: #38BDF8;
  text-decoration: none;
}

.deals-locked-box {
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  margin-bottom: 12px;
}

.deals-locked-title {
  font-size: 13px;
  font-weight: 700;
  color: #FCA5A5;
  margin-bottom: 4px;
}

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

.feedback-card {
  margin-top: 14px;
  padding: 16px;
}

.feedback-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.feedback-kind-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.feedback-kind-pill {
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(15, 23, 42, 0.55);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.feedback-kind-pill.active {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.48);
  color: var(--emerald-bright);
}

.feedback-textarea {
  width: 100%;
  min-height: 76px;
  resize: vertical;
  padding: 10px 12px;
  margin-bottom: 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(8, 12, 20, 0.72);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.45;
  box-sizing: border-box;
}

.feedback-textarea:focus {
  outline: none;
  border-color: rgba(16, 185, 129, 0.55);
}

.feedback-history {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.feedback-history-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.feedback-item {
  padding: 10px 11px;
  border-radius: var(--radius-md);
  background: rgba(8, 12, 20, 0.58);
  border: 1px solid var(--border-subtle);
  margin-bottom: 8px;
}

.feedback-item:last-child {
  margin-bottom: 0;
}

.feedback-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.feedback-item-kind {
  font-size: 11px;
  color: var(--text-muted);
}

.feedback-status-pill {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(148, 163, 184, 0.16);
  color: var(--text-secondary);
}

.feedback-status-pill.is-fixed {
  background: rgba(16, 185, 129, 0.18);
  color: var(--emerald-bright);
}

.feedback-status-pill.is-verified_bug {
  background: rgba(251, 191, 36, 0.18);
  color: #FCD34D;
}

.feedback-status-pill.is-not_a_bug {
  background: rgba(56, 189, 248, 0.18);
  color: #7DD3FC;
}

.feedback-item-msg {
  font-size: 12.5px;
  color: var(--text-primary);
  line-height: 1.4;
  word-break: break-word;
}

.feedback-item-note {
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--emerald-bright);
  line-height: 1.35;
}

/* ============================================================
   TAB 4 & MODAL: PRO (TELEGRAM STARS)
   ============================================================ */
.pro-hero-card {
  padding: 18px 16px;
  border-color: var(--border-gold);
  background:
    radial-gradient(circle at 50% -15%, rgba(251, 191, 36, 0.22), transparent 58%),
    var(--bg-glass);
  margin-bottom: 14px;
}

.pro-status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(245, 158, 11, 0.08));
  border: 1px solid rgba(251, 191, 36, 0.45);
  margin-bottom: 14px;
}

.pro-active-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--gold-1);
}

.pro-active-sub {
  font-size: 11.5px;
  color: #FDE68A;
  opacity: 0.85;
}

.limit-meter-box {
  padding: 12px 13px;
  border-radius: var(--radius-md);
  background: rgba(8, 12, 20, 0.64);
  border: 1px solid var(--border-subtle);
  margin-bottom: 14px;
}

.limit-meter-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pro-benefits-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.pro-benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--text-primary);
}

.benefit-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.42);
  color: var(--emerald-bright);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.plan-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.plan-card {
  position: relative;
  padding: 15px 15px 14px;
  border-radius: var(--radius-lg);
  background: rgba(8, 12, 20, 0.72);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.plan-card.featured {
  border-color: rgba(251, 191, 36, 0.55);
  background: linear-gradient(155deg, rgba(251, 191, 36, 0.14), rgba(15, 22, 35, 0.94));
  box-shadow: 0 12px 30px rgba(245, 158, 11, 0.16);
}

.plan-hit-badge {
  position: absolute;
  top: -10px;
  right: 14px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #FDE68A, #F59E0B);
  color: #1F1300;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.42);
}

.plan-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.plan-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
}

.plan-sub {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.plan-price-col {
  text-align: right;
  flex-shrink: 0;
}

.plan-stars {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
  color: var(--gold-2);
}

.plan-fiat {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
}

.pro-footnote {
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: center;
}

/* ============================================================
   BOTTOM NAVIGATION DOCK + CENTER FAB
   ============================================================ */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 460px;
  height: calc(var(--nav-height) + var(--safe-bottom));
  padding: 6px 8px calc(8px + var(--safe-bottom));
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  background: rgba(8, 12, 20, 0.9);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-top: 1px solid rgba(148, 163, 184, 0.13);
}

.nav-item {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 6px 2px;
  cursor: pointer;
  transition: color 0.18s ease, transform 0.14s ease;
}

.nav-item:active {
  transform: scale(0.93);
}

.nav-item.active {
  color: var(--emerald-bright);
}

.nav-item-pro.active {
  color: var(--gold-2);
}

.nav-item-freebies.active {
  color: #38BDF8;
}

.nav-icon {
  position: relative;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.nav-label {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.nav-dot {
  position: absolute;
  top: -1px;
  right: -2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 8px var(--emerald);
}

.nav-fab-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.fab-add {
  appearance: none;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 17px;
  background: linear-gradient(135deg, #34D399 0%, #10B981 52%, #059669 100%);
  color: #031A12;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow:
    0 10px 28px rgba(16, 185, 129, 0.46),
    0 0 0 3px rgba(8, 12, 20, 0.92),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.16s ease, box-shadow 0.2s ease, opacity 0.18s ease;
}

.fab-floating {
  position: fixed;
  right: max(14px, calc(50vw - 216px));
  bottom: calc(var(--nav-height) + var(--safe-bottom) + 12px);
  z-index: 42;
}

body.modal-open .fab-floating {
  opacity: 0;
  pointer-events: none;
}

/* ============================================================
   TAB 3: FREEBIES & LIVE GIVEAWAYS
   ============================================================ */
.freebies-hero-card {
  padding: 16px;
  margin-bottom: 12px;
  border-color: rgba(56, 189, 248, 0.35);
  background:
    radial-gradient(circle at 85% 0%, rgba(56, 189, 248, 0.18), transparent 55%),
    radial-gradient(circle at 10% 100%, rgba(16, 185, 129, 0.14), transparent 52%),
    var(--bg-glass);
}

.freebies-hero-sub {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 4px 0 11px;
}

.freebies-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.freebies-stat-pill {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--text-primary);
}

.freebies-stat-pill.is-live {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.35);
  color: var(--emerald-bright);
}

.freebies-actions-row,
.deals-btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.freebies-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  margin-bottom: 10px;
  scrollbar-width: none;
}

.freebies-chips::-webkit-scrollbar {
  display: none;
}

.freebies-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.freebie-card {
  padding: 13px 14px;
  border-radius: var(--radius-lg);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
}

.freebie-card.is-matching {
  border-color: rgba(16, 185, 129, 0.42);
}

.freebie-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 7px;
}

.store-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: rgba(148, 163, 184, 0.16);
  color: var(--text-secondary);
}

.store-badge-epic {
  background: rgba(139, 92, 246, 0.22);
  color: #DDD6FE;
  border: 1px solid rgba(139, 92, 246, 0.4);
}

.store-badge-steam {
  background: rgba(56, 189, 248, 0.18);
  color: #BAE6FD;
  border: 1px solid rgba(56, 189, 248, 0.38);
}

.store-badge-gog {
  background: rgba(168, 85, 247, 0.2);
  color: #E9D5FF;
  border: 1px solid rgba(168, 85, 247, 0.38);
}

.store-badge-mobile {
  background: rgba(20, 184, 166, 0.2);
  color: #99F6E4;
  border: 1px solid rgba(20, 184, 166, 0.38);
}

.store-badge-apps,
.store-badge-bundle {
  background: rgba(251, 191, 36, 0.16);
  color: #FDE68A;
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.store-badge-service {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-bright);
  border: 1px solid rgba(16, 185, 129, 0.32);
}

.worth-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.18);
  color: #6EE7B7;
}

.matching-sub-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: rgba(16, 185, 129, 0.24);
  color: #ECFDF5;
}

.freebie-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.38;
  margin-bottom: 5px;
}

.freebie-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 9px;
}

.freebie-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.track-trial-btn {
  appearance: none;
  border: 1px solid rgba(251, 191, 36, 0.38);
  background: rgba(251, 191, 36, 0.12);
  color: #FDE68A;
  border-radius: var(--radius-pill);
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.track-trial-btn:active {
  transform: scale(0.96);
}

.share-strip-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  margin-bottom: 12px;
  border-color: rgba(16, 185, 129, 0.3);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(15, 23, 42, 0.72));
}

.share-strip-meta {
  min-width: 0;
  flex: 1;
}

.share-strip-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.share-strip-sub {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.3;
}

.share-strip-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.share-copy-icon {
  min-width: 34px;
  padding-left: 8px;
  padding-right: 8px;
}

.fab-add svg {
  width: 26px;
  height: 26px;
}

.fab-add:active {
  transform: scale(0.92);
}

/* ============================================================
   MODALS & BOTTOM SHEETS
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(3, 6, 12, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.18s ease;
}

.bottom-sheet {
  width: 100%;
  max-width: 460px;
  max-height: 92dvh;
  background: #0D1421;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-bottom: none;
  border-radius: 26px 26px 0 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 -20px 56px rgba(0, 0, 0, 0.65);
  animation: sheetUp 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  padding-bottom: var(--safe-bottom);
}

.sheet-handle-bar {
  display: flex;
  justify-content: center;
  padding: 10px 0 4px;
}

.sheet-handle {
  width: 42px;
  height: 4px;
  border-radius: 99px;
  background: rgba(148, 163, 184, 0.32);
}

.sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 16px 12px;
}

.sheet-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.icon-close-btn {
  appearance: none;
  border: 1px solid var(--border-subtle);
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sheet-mode-switch {
  margin: 0 16px 12px;
}

.sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px 22px;
  -webkit-overflow-scrolling: touch;
}

/* Catalog Picker */
.search-input-wrap {
  position: relative;
  margin-bottom: 10px;
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  pointer-events: none;
}

.search-input {
  padding-left: 36px !important;
  padding-right: 34px !important;
}

.search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(148, 163, 184, 0.16);
  color: var(--text-secondary);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  cursor: pointer;
}

.chips-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
}

.chips-scroll::-webkit-scrollbar {
  display: none;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.catalog-item {
  appearance: none;
  text-align: left;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 22, 35, 0.85);
  border-radius: var(--radius-md);
  padding: 9px 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.18s ease, background 0.18s ease;
}

.catalog-item:hover {
  border-color: rgba(16, 185, 129, 0.42);
  background: rgba(16, 185, 129, 0.08);
}

.catalog-item:active {
  transform: scale(0.97);
}

.catalog-item-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}

.catalog-item-meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.catalog-item-name {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.catalog-item-price {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--emerald-bright);
  margin-top: 1px;
}

.catalog-quick-btn {
  appearance: none;
  border: 1px solid rgba(16, 185, 129, 0.36);
  background: rgba(16, 185, 129, 0.14);
  color: var(--emerald-bright);
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.18s ease, border-color 0.18s ease;
}

.catalog-quick-btn:hover {
  background: rgba(16, 185, 129, 0.28);
  border-color: rgba(16, 185, 129, 0.65);
}

.catalog-quick-btn.is-added {
  background: rgba(16, 185, 129, 0.24);
  color: #FFFFFF;
}

.catalog-quick-btn.is-adding {
  opacity: 0.55;
  transform: scale(0.92);
}

/* Form Styles */
.sub-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.preset-back-row {
  margin-bottom: -4px;
}

.form-hero-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

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

.icon-preview-box {
  width: 48px;
  height: 44px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.4);
  flex-shrink: 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.form-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
}

.text-input,
.select-input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(8, 12, 20, 0.85);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.text-input:focus,
.select-input:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.select-input option {
  background: #0F1623;
  color: var(--text-primary);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.icon-color-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.emoji-picker-row {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  flex: 1;
  scrollbar-width: none;
}

.emoji-picker-row::-webkit-scrollbar {
  display: none;
}

.emoji-btn {
  appearance: none;
  border: 1px solid var(--border-subtle);
  background: rgba(8, 12, 20, 0.8);
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

.emoji-btn.active {
  border-color: var(--emerald);
  background: rgba(16, 185, 129, 0.18);
}

.emoji-custom-input {
  width: 52px !important;
  height: 34px !important;
  text-align: center;
  padding: 0 4px !important;
  font-size: 16px !important;
}

.color-swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.color-swatch {
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.14s ease;
}

.color-swatch.active {
  border-color: #FFFFFF;
  transform: scale(1.14);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.45);
}

/* Trial Toggle Card */
.trial-toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 13px;
  border-radius: var(--radius-md);
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.28);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.trial-toggle-card.active {
  background: rgba(239, 68, 68, 0.16);
  border-color: rgba(239, 68, 68, 0.6);
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.15);
}

.trial-toggle-title {
  font-size: 13px;
  font-weight: 700;
  color: #FECACA;
}

.trial-toggle-sub {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  flex-shrink: 0;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: rgba(148, 163, 184, 0.24);
  border-radius: 99px;
  transition: 0.2s ease;
}

.switch-slider::before {
  content: "";
  position: absolute;
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background: #FFFFFF;
  border-radius: 50%;
  transition: 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.switch input:checked + .switch-slider {
  background: var(--emerald);
}

.switch input:checked + .switch-slider-danger {
  background: var(--crimson);
}

.switch input:checked + .switch-slider::before {
  transform: translateX(20px);
}

/* Choice Pills */
.pill-choice-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.choice-pill {
  appearance: none;
  border: 1px solid var(--border-subtle);
  background: rgba(8, 12, 20, 0.8);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  padding: 9px 6px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.16s ease;
}

.choice-pill.active {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.52);
  color: var(--emerald-bright);
}

.split-preview-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #7DD3FC;
  background: rgba(56, 189, 248, 0.14);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 4px;
}

/* Center Modal: Dev Demo Stars Checkout */
.center-modal {
  align-self: center;
  width: calc(100% - 32px);
  max-width: 360px;
  padding: 24px 20px 20px;
  text-align: center;
  border-color: var(--border-gold);
  animation: scalePop 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.dev-pay-star-halo {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.32), rgba(245, 158, 11, 0.08));
  border: 1px solid rgba(251, 191, 36, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
}

.dev-pay-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
}

.dev-pay-desc {
  margin: 0 0 14px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.dev-pay-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: rgba(8, 12, 20, 0.72);
  border: 1px solid rgba(251, 191, 36, 0.28);
  margin-bottom: 16px;
  font-size: 13.5px;
  font-weight: 600;
}

.dev-pay-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ============================================================
   TOASTS & CONFETTI
   ============================================================ */
.toast-container {
  position: fixed;
  top: calc(var(--safe-top) + 66px);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: 420px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  padding: 11px 14px;
  border-radius: var(--radius-md);
  background: rgba(15, 22, 35, 0.96);
  border: 1px solid rgba(16, 185, 129, 0.42);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastIn 0.22s ease;
}

.toast.error {
  border-color: rgba(239, 68, 68, 0.55);
}

.toast.gold {
  border-color: rgba(251, 191, 36, 0.65);
}

.confetti-layer {
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: -12px;
  width: 9px;
  height: 14px;
  border-radius: 3px;
  animation: confettiFall 2.1s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
}

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes radarSpin {
  to { transform: rotate(360deg); }
}

@keyframes radarPulse {
  0% { transform: scale(0.75); opacity: 0.85; }
  100% { transform: scale(1.38); opacity: 0; }
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

@keyframes trialPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 12px var(--crimson); }
  50% { opacity: 0.4; box-shadow: 0 0 3px var(--crimson); }
}

@keyframes trialBadgePulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.28);
    border-color: rgba(239, 68, 68, 0.6);
  }
  50% {
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.65);
    border-color: rgba(248, 113, 113, 0.95);
  }
}

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes sheetUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes scalePop {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes confettiFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(105vh) rotate(680deg);
    opacity: 0;
  }
}

/* 1-Tap Quick-Add Presets & Accordion Form */
.quick-add-box {
  margin: 14px 0 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.24);
  text-align: left;
}

.quick-add-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--emerald-bright);
}

.quick-add-sub {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin: 2px 0 10px;
}

.quick-add-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.quick-add-chip {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(8, 12, 20, 0.85);
  color: var(--text-primary);
  font-family: var(--font-sans);
  cursor: pointer;
  min-width: 0;
  text-align: left;
  transition: transform 0.14s ease, background 0.18s ease, border-color 0.18s ease;
}

.quick-add-chip:hover {
  background: rgba(16, 185, 129, 0.12);
}

.quick-add-chip:active,
.quick-add-chip.is-adding {
  transform: scale(0.96);
  opacity: 0.7;
}

.quick-add-chip-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.quick-add-chip-name {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quick-add-chip-price {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--emerald-bright);
  flex-shrink: 0;
}

.quick-add-strip {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(15, 22, 35, 0.72);
  border: 1px solid var(--border-subtle);
}

.quick-add-strip-head {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--emerald-bright);
  margin-bottom: 8px;
}

.quick-add-strip-row {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.quick-add-strip-row::-webkit-scrollbar {
  display: none;
}

.quick-add-strip-row .quick-add-chip {
  flex-shrink: 0;
  padding: 7px 11px;
  border-radius: var(--radius-pill);
}

.form-advanced-details {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(8, 12, 20, 0.55);
  overflow: hidden;
}

.form-advanced-summary {
  padding: 11px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.form-advanced-summary::-webkit-details-marker {
  display: none;
}

.form-advanced-summary::after {
  content: '▾';
  font-size: 13px;
  color: var(--text-muted);
  transition: transform 0.18s ease;
}

.form-advanced-details[open] .form-advanced-summary::after {
  transform: rotate(180deg);
}

.form-advanced-body {
  padding: 0 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Monetization Strip, Points Hub, Rewards Shop, Soft-Lock & Switch-and-Save */
.mon-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  background: rgba(15, 22, 35, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.mon-strip-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex-wrap: wrap;
}

.mon-pill {
  appearance: none;
  border: 1px solid rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.14);
  color: var(--emerald-bright);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
}

.mon-pill.is-promo {
  border-color: rgba(251, 191, 36, 0.65);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.28), rgba(239, 68, 68, 0.2));
  color: #FDE68A;
}

.mon-pill.is-pro {
  border-color: rgba(251, 191, 36, 0.55);
  background: rgba(251, 191, 36, 0.16);
  color: #FCD34D;
  cursor: default;
}

.mon-pts-chip {
  appearance: none;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(56, 189, 248, 0.12);
  color: #7DD3FC;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.mon-action-btn {
  appearance: none;
  border: 1px solid rgba(16, 185, 129, 0.45);
  background: rgba(16, 185, 129, 0.2);
  color: #ECFDF5;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
}

.mon-action-btn.is-ad {
  border-color: rgba(251, 191, 36, 0.55);
  background: rgba(245, 158, 11, 0.22);
  color: #FEF3C7;
}

.mon-trial-banner {
  margin-bottom: 10px;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  font-size: 12px;
  font-weight: 700;
  color: var(--emerald-bright);
  text-align: center;
}

.sub-card.is-locked {
  opacity: 0.72;
  border-color: rgba(245, 158, 11, 0.35);
}

.badge-locked {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: var(--radius-pill);
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #FCD34D;
}

.unlock-sub-btn {
  appearance: none;
  border: 1px solid rgba(251, 191, 36, 0.55);
  background: rgba(245, 158, 11, 0.18);
  color: #FDE68A;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}

.switch-save-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 13px;
  margin-bottom: 12px;
  border-color: rgba(16, 185, 129, 0.35);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(15, 22, 35, 0.86));
}

.switch-save-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--emerald-bright);
}

.switch-save-desc {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.free-ways-box {
  margin: 12px 0;
  padding: 11px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.07);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.free-ways-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--emerald-bright);
  margin-bottom: 8px;
}

.free-ways-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.rewards-hub-card {
  padding: 15px;
  margin-bottom: 14px;
  border-color: rgba(56, 189, 248, 0.3);
}

.rewards-hub-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.rewards-hub-title {
  font-size: 15px;
  font-weight: 800;
}

.rewards-balance-pill {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 800;
  color: #7DD3FC;
  background: rgba(56, 189, 248, 0.16);
  border: 1px solid rgba(56, 189, 248, 0.4);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}

.rewards-quick-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rewards-quick-btns .btn {
  flex: 1;
  min-width: 130px;
}

.rewards-section-title {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.tasks-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.task-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(8, 12, 20, 0.72);
  border: 1px solid var(--border-subtle);
}

.task-row.is-done {
  opacity: 0.6;
}

.task-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.task-name {
  font-size: 12px;
  font-weight: 700;
}

.shop-grid,
.packs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.shop-item-card,
.pack-card {
  padding: 10px;
  border-radius: var(--radius-sm);
  background: rgba(8, 12, 20, 0.76);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
}

.shop-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
}

.shop-cost-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #7DD3FC;
  white-space: nowrap;
}

.shop-item-desc,
.pack-sub {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.3;
}

.pack-title {
  font-size: 12.5px;
  font-weight: 800;
}

.packs-section {
  margin-top: 14px;
}

.shuffle-gate-box {
  margin-top: 10px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.shuffle-gate-title {
  font-size: 11.5px;
  font-weight: 700;
  color: #FDE68A;
  margin-bottom: 7px;
}

.shuffle-gate-btns {
  display: flex;
  gap: 7px;
}

.shuffle-gate-btns .btn {
  flex: 1;
}

.adsgram-task-wrap {
  margin-bottom: 8px;
}

.adsgram-task-widget {
  display: block;
  width: 100%;
  --adsgram-task-font-size: 13px;
  --adsgram-task-icon-size: 38px;
  --adsgram-task-icon-border-radius: 10px;
  --adsgram-task-button-width: 84px;
}

.mon-roulette-chip {
  appearance: none;
  border: 1px solid rgba(251, 191, 36, 0.55);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.24), rgba(239, 68, 68, 0.18));
  color: #FEF3C7;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  white-space: nowrap;
}

.roulette-promo-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 14px;
  margin-bottom: 12px;
  border-color: rgba(251, 191, 36, 0.5);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(239, 68, 68, 0.12), rgba(15, 22, 35, 0.88));
}

.roulette-promo-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #FDE68A;
}

.roulette-promo-sub {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.roulette-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.roulette-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.roulette-sub-text {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.35;
}

.roulette-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 0 6px;
}

.roulette-pointer {
  position: relative;
  z-index: 3;
  font-size: 24px;
  line-height: 1;
  color: #FBBF24;
  text-shadow: 0 2px 10px rgba(251, 191, 36, 0.85);
  margin-bottom: -10px;
}

.roulette-wheel-ring {
  width: 264px;
  height: 264px;
  border-radius: 50%;
  padding: 5px;
  background: conic-gradient(from 0deg, #10B981, #38BDF8, #F59E0B, #EF4444, #8B5CF6, #10B981);
  box-shadow: 0 0 34px rgba(251, 191, 36, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
}

.roulette-wheel-svg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #080C14;
  will-change: transform;
}

.roulette-wheel-svg.is-spinning {
  transition: transform 4s cubic-bezier(0.14, 0.88, 0.18, 1);
}

.roulette-result-banner {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid var(--border-subtle);
  background: rgba(15, 22, 35, 0.85);
}

.roulette-result-banner.is-win {
  border-color: rgba(16, 185, 129, 0.55);
  background: rgba(16, 185, 129, 0.14);
  color: var(--emerald-bright);
}

.roulette-result-banner.is-big {
  border-color: rgba(251, 191, 36, 0.75);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.24), rgba(16, 185, 129, 0.18));
  color: #FEF3C7;
}

.roulette-result-banner.is-miss {
  border-color: rgba(148, 163, 184, 0.35);
  color: var(--text-secondary);
}

.roulette-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.roulette-odds-list {
  padding: 0 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.roulette-odds-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
  padding: 4px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

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

.reward-popup-modal {
  border-color: rgba(16, 185, 129, 0.55);
}

.reward-popup-halo {
  width: 62px;
  height: 62px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.34), rgba(56, 189, 248, 0.1));
  border: 1px solid rgba(16, 185, 129, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 0 28px rgba(16, 185, 129, 0.35);
}

.reward-popup-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 800;
}

.reward-popup-amount {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 800;
  color: var(--emerald-bright);
  margin-bottom: 6px;
}

.reward-popup-balance {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  color: #7DD3FC;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-pill);
  padding: 5px 12px;
  display: inline-block;
  margin-bottom: 16px;
}

.plan-hit-badge.is-promo {
  background: linear-gradient(135deg, #EF4444, #F59E0B);
}

/* Compact adjustments for narrow phones (<= 410px) */
@media (max-width: 410px) {
  .app-header {
    padding: 9px 10px;
    gap: 6px;
  }
  .brand-avatar {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }
  .brand-name {
    font-size: 14px;
  }
  .brand-subtitle {
    display: none;
  }
  .header-controls {
    gap: 4px;
  }
  .pill-switch-currencies .pill-btn {
    padding: 4px 5.5px;
    font-size: 10.5px;
  }
  .pill-switch-compact .pill-btn {
    padding: 4px 4.5px;
    font-size: 9.5px;
  }
  .donut-stage {
    width: 192px;
    height: 192px;
  }
  .donut-svg {
    width: 192px;
    height: 192px;
  }
  .donut-amount {
    font-size: 21px;
  }
}
