/* ============================================================
   Bir Manat — Dark Design System (v9)
   Deep navy base + gold accent. Shared tokens, components.
   Motion policy: only opacity/color fades. No scale/pop,
   no vertical bob. Loading shimmer + spinner are allowed.
   ============================================================ */

/* ── Tokens ── */
:root {
  --bg:            #071223;
  --bg-soft:       #0B1B38;
  --card:          #15294D;
  --card-2:        #1F3A66;
  --card-3:        #294878;

  --border:        rgba(132, 170, 248, 0.15);
  --border-strong: rgba(132, 170, 248, 0.26);

  --text:          #EAF1FC;
  --muted:         #96AAD0;
  --muted-2:       #6E84AE;

  --gold:          #10B981;
  --gold-bright:   #6EE7B7;
  --gold-deep:     #059669;
  --gold-soft:     rgba(16, 185, 129, 0.12);
  --gold-border:   rgba(16, 185, 129, 0.32);
  --gold-grad:     linear-gradient(135deg, #6EE7B7 0%, #10B981 45%, #059669 100%);

  --blue:          #4C7DFF;
  --blue-soft:     rgba(76, 125, 255, 0.14);
  --blue-border:   rgba(76, 125, 255, 0.35);
  --blue-grad:     linear-gradient(135deg, #5B8CFF, #3B63F3);

  --green:         #34D399;
  --green-soft:    rgba(52, 211, 153, 0.13);
  --green-border:  rgba(52, 211, 153, 0.30);
  --red:           #F87171;
  --red-soft:      rgba(248, 113, 113, 0.13);
  --red-border:    rgba(248, 113, 113, 0.30);
  --purple:        #A78BFA;
  --purple-grad:   linear-gradient(135deg, #A78BFA, #7C3AED);
  --teal-grad:     linear-gradient(135deg, #2DD4BF, #0D9488);

  --shadow-card:   0 6px 20px rgba(0, 0, 0, 0.30);
  --shadow-pop:    0 16px 44px rgba(0, 0, 0, 0.5);
  --r-lg:          22px;
  --r-md:          16px;
  --r-sm:          12px;

  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

/* ── Reset ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

input, textarea {
  -webkit-user-select: auto;
  user-select: auto;
}

body {
  background: #071223;
  color: var(--text);
  min-height: 100vh;
  padding-bottom: calc(150px + env(safe-area-inset-bottom, 0px));
  -webkit-font-smoothing: antialiased;
  animation: fadeIn 0.24s ease both;
}

/* Gradient backdrop on a separate fixed layer — scrolling no longer repaints
   the whole background (avoids jank from background-attachment: fixed on mobile). */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 620px at 50% -340px, rgba(58, 110, 226, 0.16), transparent 62%),
    radial-gradient(760px 520px at 88% 8%, rgba(120, 90, 220, 0.08), transparent 58%),
    linear-gradient(180deg, #081A34 0%, #071223 48%, #04080F 100%);
}

::-webkit-scrollbar { width: 0; height: 0; }

/* Cross-document soft fade where supported */
@view-transition { navigation: auto; }

/* ── Motion ── */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 0.9s linear infinite; display: inline-block; }

/* Staggered list entrance (opacity only) */
.stagger > * { animation: fadeIn 0.34s ease both; }
.stagger > *:nth-child(1)  { animation-delay: 0.02s; }
.stagger > *:nth-child(2)  { animation-delay: 0.05s; }
.stagger > *:nth-child(3)  { animation-delay: 0.08s; }
.stagger > *:nth-child(4)  { animation-delay: 0.11s; }
.stagger > *:nth-child(5)  { animation-delay: 0.14s; }
.stagger > *:nth-child(6)  { animation-delay: 0.17s; }
.stagger > *:nth-child(7)  { animation-delay: 0.20s; }
.stagger > *:nth-child(8)  { animation-delay: 0.23s; }
.stagger > *:nth-child(n+9) { animation-delay: 0.26s; }

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

/* ── Skeleton ── */
.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(140, 170, 255, 0.07) 50%, transparent 70%);
  background-size: 200% 100%;
  animation: shimmer 1.4s linear infinite;
}

.skeleton-line { height: 12px; border-radius: 6px; background: var(--card-2); }

.skeleton-card { display: flex; align-items: center; gap: 14px; padding: 14px; }
.skeleton-card .skeleton-icon { width: 50px; height: 50px; border-radius: 14px; background: var(--card-2); flex-shrink: 0; }
.skeleton-card .skeleton-body { flex: 1; display: flex; flex-direction: column; gap: 9px; }
.skeleton-card .skeleton-line:nth-child(2) { width: 55%; }

/* ── Loader ── */
.loader {
  width: 28px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 4px solid rgba(140, 170, 255, 0.18);
  border-top-color: var(--gold);
  animation: spin 0.75s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}
.loader--sm { width: 18px; border-width: 3px; }
.loader--lg { width: 42px; border-width: 5px; }
.loader--white { border-color: rgba(255,255,255,0.25); border-top-color: #fff; }

/* ── Top bar ── */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 68px;
  padding: 12px 16px;
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  background: linear-gradient(180deg, rgba(10, 23, 48, 0.92) 70%, rgba(10, 23, 48, 0));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.top-bar__left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.top-bar__avatar { width: 44px; height: 44px; }
.top-bar__text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }

.top-bar__greeting {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-bar__name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 46vw;
}

.coin-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  color: var(--gold-bright);
  font-size: 14px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 999px;
  flex-shrink: 0;
}
.coin-badge .coin-icon { width: 17px; height: 17px; }

/* ── Avatar ── */
.avatar-frame {
  position: relative;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid rgba(16, 185, 129, 0.45);
  background: var(--card-2);
}

.avatar-frame img { width: 100%; height: 100%; object-fit: cover; display: none; }

.avatar-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--gold);
  background: var(--card-2);
}

.avatar-frame.top-bar__avatar .avatar-fallback { font-size: 17px; }

/* ── Shell / sections ── */
.app-shell { max-width: 520px; margin: 0 auto; padding: 4px 16px 0; }
.page { padding: 20px 16px; max-width: 520px; margin: 0 auto; }
.page h1 { font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 16px; }
.content-section { margin-bottom: 24px; }

.section-title {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 13px;
  letter-spacing: -0.1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title .ic { width: 17px; height: 17px; stroke: var(--gold); }

/* Section header with a trailing count/meta */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}
.section-head .section-title { margin-bottom: 0; }
.section-head__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.section-head__meta .ic { width: 14px; height: 14px; stroke: var(--gold); }
.section-head__meta b { color: var(--gold-bright); }

/* Inline SVG icon base */
.ic {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: -0.18em;
}

/* ── Generic card / badge / empty ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-card);
  margin-bottom: 12px;
}

.badge { padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.badge.ok     { background: var(--green-soft); color: var(--green); border: 1px solid var(--green-border); }
.badge.wait   { background: var(--gold-soft);  color: var(--gold);  border: 1px solid var(--gold-border); }
.badge.reject { background: var(--red-soft);   color: var(--red);   border: 1px solid var(--red-border); }

.empty { text-align: center; padding: 32px 16px; color: var(--muted); font-size: 14px; }

.mini-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--card-2);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  color: var(--gold);
}
.mini-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Step cards (home) ── */
.steps-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }

.step-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-card);
}

.step-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #fff;
}
.step-icon .ic { width: 21px; height: 21px; }
.step-icon--blue   { background: var(--blue-grad); }
.step-icon--purple { background: var(--purple-grad); }
.step-icon--gold   { background: var(--gold-grad); color: #1F1503; }
.step-icon--teal   { background: var(--teal-grad); }

.step-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.step-text strong { font-size: 14px; font-weight: 700; color: var(--text); display: block; }
.step-text span { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 10px; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item.is-open { border-color: var(--gold-border); }

.faq-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-align: left;
}
.faq-btn span { flex: 1; }

.faq-chevron {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  color: var(--muted);
  transition: transform 0.25s ease, color 0.25s;
}
.faq-item.is-open .faq-chevron { transform: rotate(180deg); color: var(--gold); }

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 16px;
}
.faq-item.is-open .faq-body { max-height: 300px; padding: 0 16px 14px; }
.faq-body p { font-size: 13px; color: var(--muted); line-height: 1.65; }

/* ── Bottom nav (layered card + grabber) ── */
.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  width: min(calc(100% - 24px), 480px);
  transform: translateX(-50%);
  border: 1.5px solid rgba(140, 175, 255, 0.32);
  border-radius: 26px;
  background: var(--card);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

/* Lighter header strip at the top of the card */
.bottom-nav__band {
  height: 16px;
  background: var(--card-2);
  border-bottom: 1px solid var(--border);
}

.bottom-nav__row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  padding: 12px 4px 4px;
  gap: 2px;
}
.bottom-nav__row .bottom-nav__item { padding: 4px 0; }
.bottom-nav__row .bottom-nav__label { font-size: 10.5px; }

.bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 4px 2px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.18s;
}
.bottom-nav__item.is-active { color: var(--gold); }

.bottom-nav__icon { width: 26px; height: 26px; display: grid; place-items: center; }

.bottom-nav__icon svg {
  width: 25px;
  height: 25px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: fill 0.18s, stroke-width 0.18s;
}

.bottom-nav__item.is-active .bottom-nav__icon svg { stroke-width: 2.3; }

.bottom-nav__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* Home-indicator style grabber */
.bottom-nav__grabber {
  width: 122px;
  height: 5px;
  border-radius: 3px;
  background: rgba(148, 170, 208, 0.32);
  margin: 6px auto 8px;
}

/* ── Tasks: tabs, summary, cards ── */
.task-tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 5px;
  margin-bottom: 14px;
  isolation: isolate;
}

/* Sliding active pill (position set by JS) */
.task-tabs__ink {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: 0;
  border-radius: 11px;
  background: var(--gold-grad);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), width 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 0;
}

.task-tab {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 8px;
  border: none;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: color 0.2s;
  white-space: nowrap;
}
.task-tab.is-active { color: #1F1503; }

.task-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 13px 16px;
  margin-bottom: 14px;
}
.task-summary__done { font-size: 13px; font-weight: 800; color: var(--text); }
.task-summary__done span { color: var(--gold); }

.task-summary__reset {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.task-summary__reset .ic { width: 13px; height: 13px; stroke: var(--gold); }

.task-summary--sponsor { background: var(--gold-soft); border-color: var(--gold-border); }
.task-summary--sponsor .task-summary__done { color: var(--gold-bright); font-weight: 700; font-size: 12.5px; }
.task-summary--sponsor a { color: var(--gold); font-size: 12px; font-weight: 800; text-decoration: underline; white-space: nowrap; }

.task-panel { display: none; }
.task-panel.is-active { display: block; animation: fadeIn 0.2s ease both; }

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

.task-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow-card);
  transition: opacity 0.2s, border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.task-card:active { background: var(--card-2); border-color: var(--gold-border); }
.task-card.is-done { opacity: 0.55; pointer-events: none; filter: saturate(0.6); }

.task-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 20px;
  flex-shrink: 0;
}

.task-info { flex: 1; min-width: 0; padding-top: 1px; }

.task-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.task-desc { font-size: 12.5px; color: var(--muted); line-height: 1.45; }

.task-progress { margin-top: 8px; }
.task-bar { height: 5px; border-radius: 999px; background: var(--card-2); overflow: hidden; }
.task-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: var(--gold-grad);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.task-right { display: flex; align-items: center; gap: 8px; align-self: center; flex-shrink: 0; }

.task-reward {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--gold-bright);
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.task-right .chev { width: 14px; height: 14px; stroke: var(--muted-2); }

/* Same 32px footprint for both the loading spinner and the done check */
.task-done-badge,
.task-spin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  box-sizing: border-box;
}
.task-done-badge {
  background: var(--green-soft);
  border: 1px solid var(--green-border);
  color: var(--green);
}
.task-done-badge .ic { width: 16px; height: 16px; stroke-width: 2.8; }

/* Smooth comet-tail gold spinner */
.task-spin {
  background:
    radial-gradient(farthest-side, var(--gold) 94%, transparent) top/4px 4px no-repeat,
    conic-gradient(transparent 30%, var(--gold));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3.5px));
  animation: spin 0.8s linear infinite;
}

.task-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  border: 1.5px dashed var(--border-strong);
  border-radius: 18px;
  padding: 34px 16px;
  color: var(--muted);
  text-align: center;
}
.task-empty .ic { width: 38px; height: 38px; stroke: var(--muted-2); opacity: 0.7; }
.task-empty p { font-size: 13.5px; line-height: 1.6; margin: 0; }

/* ── TG gate ── */
.tg-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: radial-gradient(600px 300px at 50% -100px, rgba(76, 125, 255, 0.18), transparent 60%), var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.tg-gate__box {
  width: min(360px, 100%);
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-pop);
}

.tg-gate__icon {
  width: 72px;
  height: 72px;
  background: var(--blue-grad);
  border-radius: 20px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
}
.tg-gate__icon .ic { width: 34px; height: 34px; stroke: #fff; }

.tg-gate__title { font-size: 20px; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.tg-gate__sub { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 28px; }

.tg-gate__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 15px 24px;
  background: var(--blue-grad);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
}
.tg-gate__note { margin-top: 16px; font-size: 12px; color: var(--muted-2); }

/* ── Frens ── */
.invite-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #1B3865 0%, #21437A 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: 22px 20px 20px;
  color: #fff;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}

.invite-card__badge {
  position: relative; z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
}
.invite-card__badge .ic { width: 13px; height: 13px; stroke: var(--gold); }

.invite-card__title {
  position: relative; z-index: 1;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}
.invite-card__title em {
  font-style: normal;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.invite-card__sub {
  position: relative; z-index: 1;
  font-size: 13px;
  color: rgba(236, 241, 251, 0.6);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Tap-to-copy link (whole box is a button) */
.link-box {
  position: relative; z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 12px;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background 0.15s, border-color 0.15s;
}
.link-box:active { background: rgba(255, 255, 255, 0.13); border-color: rgba(255, 255, 255, 0.22); }
.link-box__ic { flex-shrink: 0; color: var(--gold-bright); }

.link-box__text {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(236, 241, 251, 0.85);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.link-box__hint {
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--gold);
  padding-left: 4px;
}

.share-grid {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  width: 100%;
}

.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 800;
  border: none;
  border-radius: 13px;
  padding: 12px 8px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.share-btn:active { opacity: 0.85; }
.share-btn svg { flex-shrink: 0; }
.share-btn--tg { background: linear-gradient(135deg, #37AFF0, #0A82C4); }
.share-btn--wp { background: linear-gradient(135deg, #43DE82, #12B855); color: #06341A; }
.share-btn--fb { background: linear-gradient(135deg, #4D7CF0, #1877F2); }
.share-btn--tw { background: linear-gradient(135deg, #2B3138, #101418); }

.stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-card__icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  margin-bottom: 4px;
}
.stat-card__icon .ic { width: 17px; height: 17px; }
.stat-card__icon--purple { background: var(--purple-grad); }
.stat-card__icon--amber  { background: var(--gold-grad); color: #1F1503; }

.stat-card__val { font-size: 26px; font-weight: 800; color: var(--text); line-height: 1; }
.stat-card__label { font-size: 12px; color: var(--muted); font-weight: 500; }

.how-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 4px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}

.how-item { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; background: var(--card); position: relative; }
.how-item:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0; left: 62px; right: 0;
  height: 1px;
  background: var(--border);
}

.how-item__step {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  color: #fff;
}
.how-item:nth-child(1) .how-item__step { background: var(--blue-grad); }
.how-item:nth-child(2) .how-item__step { background: var(--purple-grad); }
.how-item:nth-child(3) .how-item__step { background: var(--gold-grad); color: #1F1503; }

.how-item__text strong { display: block; font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.how-item__text span { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

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

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

.fren-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--card-2);
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 800;
  color: var(--purple);
}
.fren-avatar img { width: 100%; height: 100%; object-fit: cover; display: none; }

.fren-info { flex: 1; min-width: 0; }
.fren-info strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fren-info span { font-size: 12px; color: var(--muted); }

.fren-reward {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-bright);
  white-space: nowrap;
  flex-shrink: 0;
}
.fren-reward--pending { color: var(--gold); background: transparent; border-style: dashed; }

.empty-frens {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 16px;
  color: var(--muted);
  text-align: center;
  border: 1.5px dashed var(--border-strong);
  border-radius: 18px;
}
.empty-frens .ic { width: 36px; height: 36px; stroke: var(--muted-2); opacity: 0.7; }
.empty-frens p { font-size: 13.5px; line-height: 1.6; }

/* ── Leaders: single unified list ── */
.rank-list { display: flex; flex-direction: column; gap: 8px; }

.rank-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 12px 14px;
}
.rank-item.is-me { border-color: var(--gold-border); background: var(--gold-soft); }

/* Medal accent for the top three */
.rank-item.rank-top .rank-num { color: #1F1503; }
.rank-item.rank-1 .rank-num { background: var(--gold-grad); }
.rank-item.rank-2 .rank-num { background: linear-gradient(135deg, #E6EDF7, #A8B7CE); }
.rank-item.rank-3 .rank-num { background: linear-gradient(135deg, #E9A868, #CD7C2F); }

.rank-num {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9px;
  font-size: 13px; font-weight: 800;
  background: var(--card-2); color: var(--muted);
  flex-shrink: 0;
}
.rank-item.is-me .rank-num { background: var(--gold-grad); color: #1F1503; }

.rank-avatar {
  width: 40px; height: 40px;
  border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: var(--card-2);
  display: grid; place-items: center;
  font-size: 15px; font-weight: 800; color: var(--gold);
}
.rank-avatar img { width: 100%; height: 100%; object-fit: cover; display: none; }

.rank-info { flex: 1; min-width: 0; }
.rank-info strong {
  display: block; font-size: 14px; font-weight: 700;
  color: var(--text); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}

.rank-bal { text-align: right; flex-shrink: 0; }
.rank-bal strong {
  display: flex; align-items: center; gap: 5px;
  font-size: 14px; font-weight: 800;
  color: var(--gold-bright); white-space: nowrap;
}

.out-of-top {
  display: flex; align-items: center; gap: 10px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  border-radius: 14px; padding: 12px 16px;
  margin-top: 10px; font-size: 13px; color: var(--gold-bright);
}
.out-of-top .ic { width: 16px; height: 16px; stroke: var(--gold); flex-shrink: 0; }

/* ── Withdrawals ── */
.avail-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(380px 220px at 92% -20px, rgba(96, 146, 255, 0.24), transparent 62%),
    linear-gradient(155deg, #163461 0%, #193C71 58%, #1E4680 100%);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  padding: 20px;
  color: #fff;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: var(--shadow-card);
}

.avail-card__left { position: relative; z-index: 1; min-width: 0; }
.avail-card__label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(236, 241, 251, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.avail-card__coins { font-size: 30px; font-weight: 800; line-height: 1; display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.avail-card__coins .coin-icon { width: 24px; height: 24px; }
.avail-card__azn { font-size: 13.5px; color: rgba(236, 241, 251, 0.55); font-weight: 500; }
.avail-card__azn span { color: var(--gold-bright); font-weight: 800; }

.avail-card__badge {
  position: relative; z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px 16px;
  text-align: center;
  flex-shrink: 0;
}
.avail-card__badge-label { font-size: 10px; color: rgba(236, 241, 251, 0.5); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.avail-card__badge-val { font-size: 17px; font-weight: 800; color: var(--gold-bright); }

.info-note {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12.5px;
  color: var(--gold-bright);
  font-weight: 500;
  margin-bottom: 18px;
}
.info-note .ic { width: 15px; height: 15px; stroke: var(--gold); flex-shrink: 0; }

.method-row { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }

.method-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 12px 16px;
  width: 100%;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: 16px;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  transition: border-color 0.18s, background 0.18s, color 0.18s;
}
.method-btn.is-selected { border-color: var(--gold); background: var(--gold-soft); color: var(--gold-bright); }

.method-icon { width: 38px; height: 38px; display: grid; place-items: center; flex-shrink: 0; }
.method-icon img { width: 100%; height: 100%; object-fit: contain; border-radius: 9px; }

.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow-card);
  margin-bottom: 18px;
}

.form-group { margin-bottom: 14px; }
.form-group:last-of-type { margin-bottom: 16px; }
.form-label { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 7px; }

.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap input {
  width: 100%;
  padding: 13px 14px;
  border: 2px solid var(--border-strong);
  border-radius: 13px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-soft);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}
.input-wrap input:focus { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12); }
.input-wrap input::placeholder { color: var(--muted-2); font-weight: 400; }
.input-suffix { position: absolute; right: 14px; font-size: 16px; font-weight: 700; color: var(--muted); pointer-events: none; }

.input-hint { margin-top: 6px; font-size: 12px; color: var(--muted); font-weight: 500; padding-left: 4px; }
.input-hint.valid { color: var(--green); }
.input-hint.error { color: var(--red); }

.submit-btn {
  width: 100%;
  padding: 15px;
  background: var(--gold-grad);
  color: #1F1503;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: opacity 0.15s;
}
.submit-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.submit-btn:not(:disabled):active { opacity: 0.9; }

.form-msg { margin-top: 10px; font-size: 13px; font-weight: 600; text-align: center; min-height: 18px; color: transparent; }
.form-msg.success { color: var(--green); }
.form-msg.error   { color: var(--red); }

/* History */
.history-list { display: flex; flex-direction: column; gap: 10px; }

.history-item {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

/* Status-tinted left edge */
.history-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
}
.history-item.is-pending::before  { background: var(--gold); }
.history-item.is-approved::before { background: var(--green); }
.history-item.is-rejected::before { background: var(--red); }

.history-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px 13px 16px;
}

.history-logo {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.history-logo img { width: 100%; height: 100%; object-fit: contain; border-radius: 11px; }

.history-main { flex: 1; min-width: 0; }
.history-amount { font-size: 17px; font-weight: 800; color: var(--text); line-height: 1.1; }
.history-amount span { font-size: 12px; font-weight: 700; color: var(--muted); }
.history-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.history-note { display: block; font-size: 11px; color: var(--muted-2); margin-top: 3px; }

.history-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.history-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px 5px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  white-space: nowrap;
}
.history-status .ic { width: 13px; height: 13px; stroke-width: 2.4; }
.history-status.is-pending  { background: var(--gold-soft);  color: var(--gold); }
.history-status.is-approved { background: var(--green-soft); color: var(--green); }
.history-status.is-rejected { background: var(--red-soft);   color: var(--red); }
.history-date { font-size: 11px; color: var(--muted-2); }

/* ── Toast / top notice ── */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(100px + env(safe-area-inset-bottom, 0px));
  z-index: 200;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
  background: var(--card-3);
  border: 1px solid var(--border-strong);
  color: #fff;
  border-radius: 12px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: opacity 0.2s;
  box-shadow: var(--shadow-pop);
}
.toast.show { opacity: 1; }
.toast.toast--success { background: #0E3B2A; border-color: var(--green-border); color: var(--green); }
.toast.toast--error   { background: #43151A; border-color: var(--red-border); color: var(--red); }

/* Dynamic Island-style notice: starts as a pill at top-center, expands open */
.top-notice {
  position: fixed;
  top: calc(9px + env(safe-area-inset-top, 0px));
  left: 50%;
  z-index: 100000;
  width: min(calc(100% - 26px), 360px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  border-radius: 20px;
  background: rgba(20, 32, 58, 0.82);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid rgba(140, 175, 255, 0.18);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  color: #fff;
  transform-origin: top center;
  transform: translateX(-50%) translateY(-16px) scale(0.96);
  opacity: 0;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
  pointer-events: none;
  will-change: transform, opacity;
}
.top-notice.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
  animation: noticeDrop 0.5s cubic-bezier(0.34, 1.26, 0.44, 1);
}
@keyframes noticeDrop {
  0%   { transform: translateX(-50%) translateY(-18px) scale(0.94); opacity: 0; }
  55%  { transform: translateX(-50%) translateY(2px)   scale(1.015); opacity: 1; }
  100% { transform: translateX(-50%) translateY(0)     scale(1); }
}
/* Content eases in with the panel — no delayed squish */
.top-notice__icon, .top-notice__body { opacity: 0; transition: opacity 0.2s; }
.top-notice.show .top-notice__icon,
.top-notice.show .top-notice__body { animation: noticeContentIn 0.34s ease 0.08s both; }
@keyframes noticeContentIn { from { opacity: 0; transform: translateY(-2px); } to { opacity: 1; transform: translateY(0); } }

.top-notice__icon {
  width: 31px; height: 31px;
  border-radius: 9px;
  display: grid; place-items: center;
  flex-shrink: 0;
  color: #fff;
}
.top-notice__icon .ic { width: 16px; height: 16px; stroke-width: 2.4; }

.top-notice__body { flex: 1; min-width: 0; text-align: left; }
.top-notice__title { font-size: 11.5px; font-weight: 800; color: #fff; margin-bottom: 1px; }
.top-notice__text {
  font-size: 12px; font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.top-notice--success .top-notice__icon { background: linear-gradient(135deg, #34D399, #059669); }
.top-notice--error   .top-notice__icon { background: linear-gradient(135deg, #F87171, #DC2626); }
.top-notice--warning .top-notice__icon { background: linear-gradient(135deg, #34D399, #059669); }
.top-notice--info    .top-notice__icon { background: linear-gradient(135deg, #5B8CFF, #3B63F3); }

/* ── Coin icon ── */
.coin-icon { width: 1em; height: 1em; object-fit: contain; vertical-align: -0.15em; display: inline-block; }

/* ── Şans (star) icon ── */
.star-ic {
  display: inline-block;
  vertical-align: -0.16em;
  color: var(--gold);
  filter: drop-shadow(0 1px 2px rgba(16, 185, 129, 0.35));
}

/* ── Campaign (Dostlar → 50 Manat) — ümumi kart stili ── */
.camp-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
  margin-bottom: 16px;
}
.camp-card__head {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
}

/* Mükafat */
.camp-prize { text-align: center; padding: 2px 0; }
.camp-prize__amount {
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1.5px;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.camp-prize__amount span { font-size: 28px; margin-left: 3px; font-weight: 700; }
.camp-prize__label { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }

/* Tədbir sətri */
.camp-event {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 16px 0 14px;
  padding: 9px 14px;
  border-radius: var(--r-sm);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--muted);
}
.camp-event .ic { width: 16px; height: 16px; stroke: var(--gold); flex-shrink: 0; }
.camp-event strong { color: var(--text); font-weight: 700; }

/* Geri sayım */
.camp-countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.camp-cd__box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px 4px;
  text-align: center;
}
.camp-cd__val {
  font-size: 24px;
  font-weight: 800;
  color: var(--gold-bright);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.camp-cd__unit {
  margin-top: 6px;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Statistika (mükafat kartının içində) */
.camp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.camp-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 12px;
}
.camp-stat__ic {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.camp-stat__ic .ic { width: 16px; height: 16px; }
.camp-stat__ic--gold { background: var(--gold-grad); color: #1F1503; }
.camp-stat__ic--blue { background: var(--blue-grad); color: #fff; }
.camp-stat__data { min-width: 0; }
.camp-stat__val { font-size: 20px; font-weight: 800; color: var(--text); line-height: 1; }
.camp-stat__label { font-size: 11px; color: var(--muted); font-weight: 500; margin-top: 3px; }

/* Statistika ilə link arasında boşluq */
.camp-card .link-box { margin-top: 20px; }

/* Paylaş sətri — hamısı bir sətirdə (copy + tg + wp + fb + x) */
.share-row { display: flex; gap: 8px; }
.share-ic {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  height: 46px;
  border: none;
  border-radius: 13px;
  cursor: pointer;
  color: #fff;
  transition: opacity 0.15s, transform 0.1s;
}
.share-ic:active { opacity: 0.85; transform: scale(0.95); }
.share-ic svg { width: 20px; height: 20px; }
.share-ic--tg   { background: linear-gradient(135deg, #37AFF0, #0A82C4); }
.share-ic--wp   { background: linear-gradient(135deg, #43DE82, #12B855); }
.share-ic--ig   { background: linear-gradient(45deg, #FEDA75, #FA7E1E 22%, #D62976 52%, #962FBF 78%, #4F5BD5); }
.share-ic--fb   { background: linear-gradient(135deg, #4D7CF0, #1877F2); }
.share-ic--tw   { background: linear-gradient(135deg, #2B3138, #101418); }
.share-ic--more { background: var(--card-2); border: 1px solid var(--border-strong); }

/* Necə işləyir — ətraflı mətn */
.camp-guide { display: flex; flex-direction: column; gap: 15px; }
.camp-guide__item { font-size: 13px; color: var(--muted); line-height: 1.65; }
.camp-guide__item strong { color: var(--text); font-weight: 700; }
.camp-guide__item em { font-style: normal; color: var(--gold-bright); font-weight: 700; }
.camp-guide__foot {
  display: flex; align-items: center; gap: 9px;
  margin-top: 4px; padding: 12px 14px;
  border-radius: var(--r-sm);
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  font-size: 12.5px; color: var(--gold-bright); line-height: 1.5;
}
.camp-guide__foot .ic { width: 16px; height: 16px; stroke: var(--gold); flex-shrink: 0; }

@media (max-width: 380px) {
  .camp-prize__amount { font-size: 48px; }
  .camp-prize__amount span { font-size: 24px; }
  .camp-cd__val { font-size: 20px; }
  .share-ic svg { width: 19px; height: 19px; }
}

/* Old inline notice — unused */
.notice { display: none !important; }

/* ── Campaign: "Dost gətir, 50 manat qazan" ── */
.promo-banner {
  display: block;
  width: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: opacity 0.15s;
}
.promo-banner:active { opacity: 0.88; }
.promo-banner img { width: 100%; height: auto; display: block; }

.camp-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #3B2467 0%, #21437A 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  padding: 22px 20px 20px;
  color: #fff;
  margin-bottom: 16px;
  box-shadow: var(--shadow-card);
}

.camp-hero__badge {
  position: relative; z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 12px;
}

.camp-hero__title {
  position: relative; z-index: 1;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}
.camp-hero__title em {
  font-style: normal;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.camp-hero__sub {
  position: relative; z-index: 1;
  font-size: 13px;
  color: rgba(236, 241, 251, 0.65);
  line-height: 1.6;
  margin-bottom: 18px;
}

.camp-event {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--gold-soft);
  border: 1px solid var(--gold-border);
  border-radius: 14px;
  padding: 13px 16px;
  margin-bottom: 12px;
}
.camp-event .ic { width: 20px; height: 20px; stroke: var(--gold); flex-shrink: 0; }
.camp-event__text { font-size: 12.5px; color: var(--gold-bright); font-weight: 500; line-height: 1.45; }
.camp-event__text strong { display: block; font-size: 14px; font-weight: 800; color: #fff; margin-bottom: 2px; }

.camp-countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
.camp-countdown__box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 4px;
  text-align: center;
}
.camp-countdown__val {
  font-size: 20px;
  font-weight: 800;
  color: var(--gold-bright);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.camp-countdown__unit {
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
  margin-top: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Responsive ── */
@media (max-width: 400px) {
  .invite-card__title { font-size: 23px; }
  .bottom-nav__label { font-size: 10px; }
  .coin-badge { font-size: 13px; padding: 7px 11px; }
  .avail-card__coins { font-size: 26px; }
  .camp-hero__title { font-size: 22px; }
  .camp-countdown__val { font-size: 17px; }
}
