/* ── Design tokens (million-dollar-ui palette) ────────────────── */
:root {
  --amber:        #F5A623;
  --amber-dim:    rgba(245, 166, 35, 0.14);
  --amber-border: rgba(245, 166, 35, 0.22);
  --green:        #4CAF7D;
  --green-dim:    rgba(76, 175, 125, 0.14);
  --fire:         #FF6B35;
  --fire-dim:     rgba(255, 107, 53, 0.16);
  --fire-border:  rgba(255, 107, 53, 0.28);
  --gold:         #FFD700;

  --bg:           #1A1A2E;
  --bg-mid:       #16213E;
  --bg-deep:      #0F3460;
  --glass:        rgba(255, 255, 255, 0.07);
  --glass-hover:  rgba(255, 255, 255, 0.10);
  --glass-border: rgba(255, 255, 255, 0.13);

  --text:         #F5F5F7;
  --text-sub:     rgba(245, 245, 247, 0.55);
  --text-muted:   rgba(245, 245, 247, 0.32);

  --radius:       20px;
  --radius-sm:    12px;
  --radius-pill:  100px;
  --gap:          12px;
  --pad:          16px;

  --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: linear-gradient(150deg, var(--bg) 0%, var(--bg-mid) 55%, var(--bg-deep) 100%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}

#app {
  max-width: 430px;
  margin: 0 auto;
  padding: var(--pad);
  padding-bottom: 36px;
}

/* ── Fullscreen states ──────────────────────────────────────────── */
.fullscreen-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  gap: 16px;
  text-align: center;
  padding: var(--pad);
}

.paw-loader {
  position: relative;
  width: 58px;
  height: 58px;
}
.loader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.07);
  border-top-color: var(--amber);
  animation: spin 0.85s linear infinite;
}
.loader-paw {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

.loading-text  { color: var(--text-sub); font-size: 0.9rem; }
.state-emoji   { font-size: 3rem; }
.state-title   { font-family: "Nunito", system-ui; font-size: 1.2rem; font-weight: 700; }
.state-subtitle{ color: var(--text-sub); font-size: 0.875rem; line-height: 1.55; max-width: 260px; }

/* ── Button ─────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--amber);
  color: #1A1A2E;
  font-family: "Nunito", system-ui;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  border: none;
  cursor: pointer;
  margin-top: 6px;
  transition: opacity 150ms ease, transform 150ms ease;
}
.btn-primary:active { opacity: 0.82; transform: scale(0.96); }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
  padding: 18px 0 6px;
}
.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}
.hero-label {
  font-size: 0.82rem;
  color: var(--text-sub);
  margin-bottom: 1px;
}
.hero-name {
  font-family: "Nunito", system-ui;
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.premium-pill {
  background: linear-gradient(130deg, var(--gold) 0%, var(--amber) 100%);
  color: #1A1A2E;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 8px;
  letter-spacing: 0.02em;
}

/* Pet hero card */
.pet-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 13px 14px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.pet-avatar-wrap {
  width: 46px;
  height: 46px;
  background: var(--amber-dim);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pet-avatar-emoji { font-size: 1.55rem; line-height: 1; }
.pet-hero-body { flex: 1; min-width: 0; }
.pet-hero-name {
  font-family: "Nunito", system-ui;
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pet-hero-meta {
  font-size: 0.77rem;
  color: var(--text-sub);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Streak chip */
.streak-chip {
  display: flex;
  align-items: center;
  gap: 3px;
  background: var(--fire-dim);
  border: 1px solid var(--fire-border);
  border-radius: var(--radius-pill);
  padding: 5px 10px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--fire);
  flex-shrink: 0;
  white-space: nowrap;
}
.streak-fire { font-size: 0.85rem; }

/* ── Stats row ──────────────────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  margin: var(--gap) 0;
}
.stat-card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 16px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-align: center;
}
.stat-card--warm {
  background: var(--amber-dim);
  border-color: var(--amber-border);
}
.stat-value {
  font-family: "Nunito", system-ui;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  margin-top: 5px;
}
.stat-sub {
  font-size: 0.68rem;
  color: var(--text-sub);
  margin-top: 1px;
}

/* ── Cards ──────────────────────────────────────────────────────── */
.card {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: var(--pad);
  margin-bottom: var(--gap);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.card-title {
  font-family: "Nunito", system-ui;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-sub);
}

/* ── Progress ───────────────────────────────────────────────────── */
.progress-fraction {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--amber);
  font-variant-numeric: tabular-nums;
}
.progress-track {
  height: 5px;
  background: rgba(255,255,255,0.07);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 18px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--amber), var(--green));
  border-radius: 3px;
  width: 0%;
  transition: width 600ms var(--ease-out);
}

/* ── Week mini chart ────────────────────────────────────────────── */
.week-chart {
  display: flex;
  gap: 5px;
  align-items: flex-end;
  height: 52px;
}
.chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  height: 100%;
}
.chart-bar-wrap {
  flex: 1;
  width: 100%;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.chart-bar-fill {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0%;
  background: var(--amber);
  border-radius: 4px;
  opacity: 0.65;
  transition: height 500ms var(--ease-out);
}
.chart-bar-fill--today  { opacity: 1; background: var(--green); }
.chart-label {
  font-size: 0.58rem;
  color: var(--text-muted);
  text-align: center;
  line-height: 1;
  letter-spacing: 0.03em;
}
.chart-label--today { color: var(--amber); font-weight: 700; }

/* ── Tasks ──────────────────────────────────────────────────────── */
.tasks-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-sub);
  font-variant-numeric: tabular-nums;
}
.task-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  transition: opacity 150ms ease;
}
.task-item:last-child { border-bottom: none; }
.task-item:active     { opacity: 0.65; }
.task-item--pending   { opacity: 0.55; pointer-events: none; }

.task-checkbox {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms var(--ease-spring);
}
.task-checkbox--done {
  background: var(--green);
  border-color: var(--green);
  transform: scale(1.05);
}
.task-check-icon {
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity 150ms ease;
}
.task-checkbox--done .task-check-icon { opacity: 1; }

.task-body { flex: 1; min-width: 0; }
.task-title {
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text);
  transition: color 150ms ease;
}
.task-title--done {
  color: var(--text-muted);
  text-decoration: line-through;
}
.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.task-chip {
  font-size: 0.7rem;
  color: var(--text-sub);
  background: rgba(255,255,255,0.06);
  border-radius: 5px;
  padding: 2px 7px;
}

/* ── Empty / done blocks ────────────────────────────────────────── */
.empty-block, .all-done-block {
  padding: 24px 0 10px;
  text-align: center;
}
.empty-emoji, .done-emoji {
  font-size: 2.2rem;
  margin-bottom: 8px;
  display: block;
}
.empty-title, .done-title {
  font-family: "Nunito", system-ui;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.empty-hint, .done-sub {
  font-size: 0.82rem;
  color: var(--text-sub);
  line-height: 1.5;
}

/* ── Staggered pop-in ───────────────────────────────────────────── */
@keyframes pop-in {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
#tab-pet > * {
  animation: pop-in 280ms var(--ease-out) both;
}
#tab-pet > *:nth-child(1) { animation-delay:  20ms; }
#tab-pet > *:nth-child(2) { animation-delay:  70ms; }
#tab-pet > *:nth-child(3) { animation-delay: 120ms; }
#tab-pet > *:nth-child(4) { animation-delay: 170ms; }
#tab-pet > *:nth-child(5) { animation-delay: 210ms; }

#tab-rewards > * {
  animation: pop-in 280ms var(--ease-out) both;
}
#tab-rewards > *:nth-child(1) { animation-delay:  20ms; }
#tab-rewards > *:nth-child(2) { animation-delay:  80ms; }
#tab-rewards > *:nth-child(3) { animation-delay: 140ms; }
#tab-rewards > *:nth-child(4) { animation-delay: 190ms; }

/* ── Tab bar ────────────────────────────────────────────────────── */
#app {
  padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
}
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  background: rgba(15, 20, 40, 0.96);
  border-top: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  z-index: 100;
}
.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 4px;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 150ms ease;
}
.tab-icon  { font-size: 1.15rem; line-height: 1; }
.tab-label { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.02em; font-family: "Inter", system-ui; }
.tab--active { color: var(--amber); }

/* ── Tab panel ──────────────────────────────────────────────────── */
.tab-panel { padding-top: 4px; }

/* ── Tab heading ────────────────────────────────────────────────── */
.tab-heading {
  font-family: "Nunito", system-ui;
  font-size: 1.3rem;
  font-weight: 800;
  padding: 20px 0 14px;
  letter-spacing: -0.01em;
}

/* ── Forms ──────────────────────────────────────────────────────── */
.form-group { margin-bottom: 14px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.form-group--half { margin-bottom: 14px; }

.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-sub);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 0.92rem;
  font-family: "Inter", system-ui;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  transition: border-color 200ms ease, background 200ms ease;
}
.form-input::placeholder { color: var(--text-muted); }
.form-input:focus {
  border-color: rgba(245, 166, 35, 0.6);
  background: rgba(255, 255, 255, 0.09);
}
.form-textarea {
  resize: none;
  min-height: 78px;
  line-height: 1.5;
}
.form-select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='rgba(245,245,247,0.45)' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 36px;
}
.form-select option { background: #16213E; color: var(--text); }

.field-error {
  font-size: 0.74rem;
  color: #FF6B6B;
  margin-top: 5px;
  min-height: 16px;
  line-height: 1.3;
}
.field-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.form-actions { margin-top: 20px; }
.btn-full { width: 100%; justify-content: center; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  color: var(--text);
  font-family: "Nunito", system-ui;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: background 150ms ease;
}
.btn-secondary:active { background: rgba(255,255,255,0.13); }

.save-status {
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  margin-top: 8px;
  min-height: 20px;
}
.save-status--ok  { color: var(--green); }
.save-status--err { color: #FF6B6B; }

/* ── Language grid ──────────────────────────────────────────────── */
.lang-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.lang-chip {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--glass-border);
  border-radius: 11px;
  padding: 11px 8px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 500;
  font-family: "Inter", system-ui;
  color: var(--text-sub);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: all 150ms ease;
}
.lang-chip--active {
  background: var(--amber-dim);
  border-color: var(--amber-border);
  color: var(--amber);
  font-weight: 700;
}
#save-lang-status { margin-top: 10px; }

/* ── Premium hint card ──────────────────────────────────────────── */
.premium-hint-card {
  border-color: rgba(255, 215, 0, 0.18);
  background: rgba(255, 215, 0, 0.04);
}
.premium-hint-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.premium-hint-icon { font-size: 1.6rem; flex-shrink: 0; }
.premium-hint-text-wrap { flex: 1; }
.premium-hint-title {
  font-family: "Nunito", system-ui;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold);
}
.premium-hint-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 1px;
}
.premium-hint-lock { font-size: 1.1rem; flex-shrink: 0; }
.premium-hint-desc {
  font-size: 0.82rem;
  color: var(--text-sub);
  line-height: 1.55;
  margin-bottom: 14px;
}

/* ── Section divider (pet tab profile section) ──────────────────── */
.section-divider {
  height: 1px;
  background: var(--glass-border);
  margin: 22px 0 18px;
}
.section-heading {
  font-family: "Nunito", system-ui;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-sub);
  letter-spacing: -0.01em;
}

/* ── Referral center ────────────────────────────────────────────── */
.ref-counter-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 2px;
}
.ref-count-num {
  font-family: "Nunito", system-ui;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ref-count-label {
  font-size: 0.82rem;
  color: var(--text-sub);
}
.ref-link-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.75rem;
  color: var(--text-sub);
  word-break: break-all;
  font-family: "Inter", monospace;
  margin-top: 6px;
  margin-bottom: 10px;
  line-height: 1.4;
}
.ref-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.btn-ref {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-pill);
  color: var(--text);
  font-family: "Nunito", system-ui;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 10px 8px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 150ms ease;
}
.btn-ref:active { background: rgba(255, 255, 255, 0.14); }
.ref-no-link {
  font-size: 0.82rem;
  color: var(--text-sub);
  line-height: 1.55;
  margin-top: 10px;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 12px;
}

/* ── Milestone track ────────────────────────────────────────────── */
.milestone-track {
  display: flex;
  align-items: flex-start;
  margin: 16px 0 10px;
}
.milestone-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.milestone-bubble {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Nunito", system-ui;
  font-weight: 800;
  font-size: 0.78rem;
  border: 2px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  transition: all 200ms ease;
  flex-shrink: 0;
}
.milestone-node--done .milestone-bubble {
  background: var(--amber);
  border-color: var(--amber);
  color: #1A1A2E;
}
.milestone-node--next .milestone-bubble {
  border-color: var(--amber);
  color: var(--amber);
  animation: pulse-ring 2s ease-in-out infinite;
}
@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.45); }
  50%       { box-shadow: 0 0 0 7px rgba(245, 166, 35, 0); }
}
.milestone-reward {
  font-size: 0.58rem;
  color: var(--text-muted);
  text-align: center;
  white-space: nowrap;
  line-height: 1.2;
}
.milestone-node--done .milestone-reward,
.milestone-node--next .milestone-reward { color: var(--amber); }
.milestone-conn {
  flex: 1;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  margin-top: 15px;   /* align with bubble center: (32px - 2px) / 2 */
  border-radius: 1px;
}
.milestone-conn--done { background: var(--amber); }

/* ── Premium card ───────────────────────────────────────────────── */
.premium-card {
  border-radius: var(--radius);
  padding: var(--pad);
  margin-bottom: var(--gap);
  position: relative;
  overflow: hidden;
}
.premium-card--upsell {
  background: linear-gradient(135deg, #3B1FA0, #6C47FF 55%, #B060FF);
  border: 1px solid rgba(180, 120, 255, 0.3);
}
.premium-card--upsell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.07) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: shimmer 3.5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shimmer {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(220%); }
}
.premium-card--active {
  background: linear-gradient(135deg, #1A5C3A, #2D8A58 60%, #3CAD6E);
  border: 1px solid rgba(76, 175, 125, 0.35);
}
.prem-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.prem-icon { font-size: 1.7rem; flex-shrink: 0; line-height: 1; }
.prem-label {
  font-family: "Nunito", system-ui;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  color: rgba(255, 255, 255, 0.65);
}
.prem-label--active { color: var(--gold); }
.prem-benefits {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 18px;
}
.prem-benefits li {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.35;
}
.btn-prem-buy {
  background: rgba(255, 255, 255, 0.94) !important;
  color: #3B1FA0 !important;
  font-size: 0.95rem !important;
}
.btn-prem-buy:active { background: rgba(255, 255, 255, 0.78) !important; }
.prem-expires {
  font-family: "Nunito", system-ui;
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 12px;
}
.prem-bar-track {
  height: 5px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 8px;
}
.prem-bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 3px;
  width: 0%;
  transition: width 700ms var(--ease-out);
}
.prem-expiry-warn {
  font-size: 0.78rem;
  color: var(--amber);
  margin-top: 4px;
}

/* ── Shop cards ─────────────────────────────────────────────────── */
.shop-cards-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 2px 2px 6px;
  margin: 0 -2px;
}
.shop-cards-scroll::-webkit-scrollbar { display: none; }
.shop-card {
  flex: 0 0 148px;
  scroll-snap-align: start;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 14px 12px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.shop-card-emoji {
  font-size: 2.1rem;
  line-height: 1;
  margin-bottom: 2px;
}
.shop-card-title {
  font-family: "Nunito", system-ui;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.25;
}
.shop-card-desc {
  font-size: 0.7rem;
  color: var(--text-sub);
  line-height: 1.4;
  flex: 1;
}
.shop-card-btn {
  background: var(--amber);
  color: #1A1A2E;
  border: none;
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  font-family: "Nunito", system-ui;
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  width: 100%;
  margin-top: 4px;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 150ms ease;
}
.shop-card-btn:active { opacity: 0.72; }

/* ── Reduced motion ─────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.hidden { display: none !important; }
