:root {
  --bg: #07140f;
  --bg-soft: #0d2219;
  --panel: #10281e;
  --card: #143226;
  --line: rgba(255,255,255,.08);
  --text: #f3faf6;
  --muted: #9bb5a8;
  --accent: #3dff9a;
  --accent-2: #f5c518;
  --accent-deep: #0b7a45;
  --danger: #ff5d6c;
  --warning: #ffb020;
  --radius: 18px;
  --shadow: 0 20px 50px rgba(0,0,0,.35);
  --font: "Segoe UI", "Avenir Next", "Trebuchet MS", sans-serif;
  --display: "Segoe UI Semibold", "Avenir Next", "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  color-scheme: dark;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(61,255,154,.12), transparent 50%),
    radial-gradient(900px 500px at 100% 0%, rgba(245,197,24,.10), transparent 45%),
    linear-gradient(180deg, #07140f, #0a1a13 40%, #07140f);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, calc(100% - 2rem)); margin-inline: auto; }

/* Preloader */
#nfl-preloader {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background:
    radial-gradient(ellipse 60% 45% at 50% 48%, rgba(61,255,154,.08), transparent 70%),
    #06120d;
  transition: opacity .5s ease, visibility .5s ease;
}
#nfl-preloader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-ball {
  --bounce-duration: 0.65s;
  width: min(70vw, 340px);
  height: auto;
  aspect-ratio: 1.6 / 1;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.55)) drop-shadow(0 0 28px rgba(61,255,154,.18));
  animation: football-bounce var(--bounce-duration) cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  will-change: transform;
  transform-origin: center bottom;
}
.preloader-ball img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}
@keyframes football-bounce {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  45% { transform: translateY(-48px) scale(1.03, 0.97); }
  55% { transform: translateY(-52px) scale(1.04, 0.96); }
}
@media (prefers-reduced-motion: reduce) {
  .preloader-ball {
    animation: football-pulse 1.6s ease-in-out infinite;
  }
  @keyframes football-pulse {
    0%, 100% { transform: scale(1); opacity: .92; }
    50% { transform: scale(1.04); opacity: 1; }
  }
}

/* Public header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(7,20,15,.72);
  border-bottom: 1px solid var(--line);
}
.nav-wrap {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 74px; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: .75rem; font-weight: 800; letter-spacing: .04em; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #149e5a);
  display: grid; place-items: center; color: #04140c; font-weight: 900;
}
.nav-links { display: flex; gap: 1.1rem; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--muted); font-weight: 600; }
.nav-links a:hover { color: var(--text); }
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover,
.nav-links a.btn-primary:focus {
  color: #04140c;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  border: 0; border-radius: 999px; padding: .75rem 1.2rem;
  font-weight: 700; cursor: pointer; transition: .2s ease;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), #19c56a); color: #04140c; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(61,255,154,.25); }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--text); border: 1px solid var(--line); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: .55rem .9rem; font-size: .9rem; }

/* Hero */
.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #050b09;
}
.hero::before { display: none; }
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.hero-bg-img {
  width: auto;
  height: min(92vh, 880px);
  max-width: min(1320px, 100%);
  object-fit: contain;
  object-position: center center;
  opacity: 1;
  filter: contrast(1.18) saturate(1.3) brightness(1.12) drop-shadow(0 12px 48px rgba(0,0,0,.55));
  transform-origin: center center;
  will-change: transform, filter;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 70% at 50% 48%,
      transparent 0%,
      transparent 58%,
      rgba(5,11,9,.5) 100%),
    linear-gradient(180deg, rgba(5,11,9,.2) 0%, transparent 28%, rgba(5,11,9,.3) 100%);
}
.hero--photo .hero-bg-img {
  animation: heroLogoFloat 7.5s ease-in-out infinite;
}
@keyframes heroLogoFloat {
  0% {
    transform: scale(1) translateY(0) rotate(0deg);
    filter: contrast(1.18) saturate(1.3) brightness(1.12) drop-shadow(0 12px 48px rgba(0,0,0,.55));
  }
  35% {
    transform: scale(1.06) translateY(-14px) rotate(-1.2deg);
    filter: contrast(1.24) saturate(1.38) brightness(1.2) drop-shadow(0 18px 56px rgba(245,197,24,.28));
  }
  70% {
    transform: scale(1.03) translateY(8px) rotate(1deg);
    filter: contrast(1.2) saturate(1.32) brightness(1.15) drop-shadow(0 14px 52px rgba(61,255,154,.16));
  }
  100% {
    transform: scale(1) translateY(0) rotate(0deg);
    filter: contrast(1.18) saturate(1.3) brightness(1.12) drop-shadow(0 12px 48px rgba(0,0,0,.55));
  }
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 5rem 1.25rem 4rem;
  max-width: 820px;
  width: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Curved wrap behind copy — logo stays visible underneath */
.hero-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  padding: 2.1rem 2rem 2rem;
  border-radius: 36px;
  border: 1px solid rgba(61,255,154,.2);
  background:
    radial-gradient(420px 180px at 50% 0%, rgba(245,197,24,.1), transparent 60%),
    linear-gradient(165deg, rgba(15,42,31,.88) 0%, rgba(8,22,15,.82) 55%, rgba(5,14,10,.86) 100%);
  box-shadow:
    0 28px 64px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,.05);
  pointer-events: none;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
  line-height: 1.05;
  margin: 0 0 1rem;
  letter-spacing: -.02em;
  text-align: center;
  text-shadow: 0 2px 16px rgba(0,0,0,.35);
}
.hero p {
  color: #d5e8dc;
  font-size: 1.08rem;
  max-width: 34rem;
  margin: 0 auto;
  text-align: center;
  text-shadow: none;
}
.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.hero .eyebrow {
  text-align: center;
  text-shadow: none;
}
.eyebrow {
  display: inline-block;
  color: var(--accent-2);
  font-size: .78rem;
  letter-spacing: .16em;
  font-weight: 800;
  margin-bottom: .8rem;
}
@media (max-width: 860px) {
  .hero-bg-img {
    height: min(78vh, 620px);
    max-width: 100%;
  }
  .hero-inner { padding: 4.2rem 1rem 3.2rem; }
  .hero-panel {
    padding: 1.7rem 1.25rem 1.6rem;
    border-radius: 28px;
  }
  .hero-panel::before {
    inset: 8px;
    border-radius: 22px;
  }
}

.section { padding: 4.5rem 0; }
.section h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 .8rem; }
.muted { color: var(--muted); }

/* About page story card */
.about-card {
  display: grid;
  grid-template-columns: 1fr;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(61,255,154,.18);
  background:
    radial-gradient(520px 220px at 100% 0%, rgba(245,197,24,.1), transparent 55%),
    linear-gradient(160deg, #0f2a1f 0%, #0a1c14 55%, #08160f 100%);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
@media (min-width: 900px) {
  .about-card {
    grid-template-columns: minmax(280px, 1.05fr) minmax(320px, 1fr);
    min-height: 420px;
    align-items: stretch;
  }
}
.about-card__media {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  background: #0a1c14;
}
@media (min-width: 900px) {
  .about-card__media { min-height: 100%; }
}
.about-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
  transition: transform .8s ease;
}
.about-card:hover .about-card__media img {
  transform: scale(1.04);
}
.about-card__body {
  padding: 1.6rem 1.5rem 1.7rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
@media (min-width: 900px) {
  .about-card__body { padding: 2rem 2.1rem 2.1rem; }
}
.about-card__body h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
}
.about-card__text {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.02rem;
  margin: 0;
}
.about-card__text br + br {
  display: block;
  content: "";
  margin-top: .55rem;
}
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem;
  box-shadow: var(--shadow);
}

/* Homepage NFL / sponsorship info cards */
.info-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(61,255,154,.18);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.info-card--nfl {
  background:
    radial-gradient(560px 240px at 0% 0%, rgba(61,255,154,.12), transparent 55%),
    linear-gradient(155deg, #10281e 0%, #0a1c14 52%, #07140f 100%);
}
.info-card--sponsor {
  background:
    radial-gradient(560px 240px at 100% 0%, rgba(245,197,24,.14), transparent 55%),
    linear-gradient(155deg, #1a2410 0%, #0f1c12 50%, #08140f 100%);
}
.info-card__badge {
  display: inline-block;
  color: var(--accent-2);
  font-size: .75rem;
  letter-spacing: .16em;
  font-weight: 800;
  margin-bottom: .85rem;
}
.info-card h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  max-width: 28rem;
}
.info-card__text {
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.02rem;
  max-width: 52rem;
  margin: 0;
}

/* Investment package cards */
.packages-section__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}
.packages-section__title {
  color: var(--accent-2);
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  letter-spacing: -.01em;
}
.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 1.15rem;
  min-width: 0;
  width: 100%;
}
.package-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-width: 0;
  max-width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(61,255,154,.2);
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)),
    linear-gradient(160deg, #123024, #0a1a13);
  box-shadow: 0 20px 48px rgba(0,0,0,.32);
  padding: 1.35rem 1.3rem 1.25rem;
  overflow: hidden;
}
.package-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}
.package-card__top { margin-bottom: .85rem; padding-left: .35rem; }
.package-card__label {
  display: inline-block;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: .35rem;
}
.package-card__name {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  line-height: 1.2;
  letter-spacing: -.01em;
}
.package-card__amount {
  margin: 0 0 .7rem;
  padding-left: .35rem;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.02em;
}
.package-card__desc {
  margin: 0 0 1rem;
  padding-left: .35rem;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.55;
  flex: 1;
}
.package-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 0 0 1.1rem;
  padding-left: .35rem;
}
.package-card__meta span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.22);
  padding: .28rem .65rem;
  font-size: .78rem;
  color: #cfe3d7;
  font-weight: 600;
}
.package-card__cta {
  align-self: flex-start;
  margin-left: .35rem;
}
.reveal { opacity: 0; transform: translateY(18px); transition: .7s ease; }
.reveal.show { opacity: 1; transform: none; }

/* Homepage feature image card */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
}
@media (min-width: 900px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
.feature-card {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(61,255,154,.18);
  background: linear-gradient(160deg, #0f2a1f, #08160f);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.feature-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a1c14;
}
.feature-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .7s ease;
}
.feature-card:hover .feature-card__media img {
  transform: scale(1.04);
}
.feature-card__body {
  padding: 1.25rem 1.4rem 1.45rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
@media (max-width: 640px) {
  .feature-card__media { aspect-ratio: 4 / 3; }
}

/* Donors roll card */
.donors-panel {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(61,255,154,.18);
  background:
    radial-gradient(600px 240px at 100% 0%, rgba(245,197,24,.12), transparent 55%),
    linear-gradient(160deg, #0f2a1f 0%, #0a1c14 55%, #08160f 100%);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  padding: 1.5rem 1.5rem 1.2rem;
}
.donors-panel::before {
  content: "";
  position: absolute; inset: 0 auto 0 0; width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}
.donors-panel__head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; padding-left: .4rem;
}
.donors-count {
  min-width: 88px; text-align: center; border-radius: 16px;
  padding: .7rem .9rem;
  background: rgba(61,255,154,.1);
  border: 1px solid rgba(61,255,154,.25);
}
.donors-count strong {
  display: block; font-size: 1.6rem; line-height: 1; color: var(--accent);
}
.donors-count span {
  font-size: .75rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); font-weight: 700;
}
.donors-roll {
  position: relative;
  max-height: 360px;
  overflow: auto;
  border-radius: 16px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.06);
  scrollbar-width: thin;
  scrollbar-color: rgba(61,255,154,.35) transparent;
}
.donors-roll::before,
.donors-roll::after {
  content: "";
  position: sticky; left: 0; right: 0; z-index: 2;
  display: block; height: 28px; pointer-events: none;
}
.donors-roll::before {
  top: 0;
  background: linear-gradient(180deg, rgba(8,22,16,.95), transparent);
}
.donors-roll::after {
  bottom: 0; margin-top: -28px;
  background: linear-gradient(0deg, rgba(8,22,16,.95), transparent);
}
.donors-list {
  list-style: none; margin: 0; padding: .55rem;
}
.donors-item {
  display: grid;
  grid-template-columns: 42px 40px 1fr auto;
  align-items: center;
  gap: .75rem;
  padding: .75rem .85rem;
  margin-bottom: .45rem;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
  animation: none;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.donors-item:last-child { margin-bottom: 0; }
.donors-item:hover {
  transform: translateX(4px);
  background: rgba(61,255,154,.08);
  border-color: rgba(61,255,154,.22);
}
.donors-num {
  font-weight: 800; font-size: .95rem; color: var(--accent-2);
  font-variant-numeric: tabular-nums;
}
.donors-avatar {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  font-weight: 800; color: #04140c;
  background: linear-gradient(135deg, var(--accent), #19c56a);
  box-shadow: 0 8px 18px rgba(61,255,154,.2);
}
.donors-name {
  font-weight: 700; font-size: 1rem; color: #f3faf6;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.donors-tag {
  font-size: .72rem; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent);
  background: rgba(61,255,154,.12);
  border: 1px solid rgba(61,255,154,.22);
  border-radius: 999px; padding: .28rem .65rem;
}
.donors-panel.reveal:not(.show) .donors-item {
  opacity: 0;
  animation: none;
}
.donors-panel.reveal.show .donors-item {
  animation: donorSlide .55s ease both;
  animation-delay: calc(var(--i, 0) * 70ms);
}
@keyframes donorSlide {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 640px) {
  .donors-item {
    grid-template-columns: 36px 36px 1fr;
    grid-template-areas:
      "num avatar name"
      "num avatar tag";
    row-gap: .25rem;
  }
  .donors-num { grid-area: num; }
  .donors-avatar { grid-area: avatar; width: 36px; height: 36px; }
  .donors-name { grid-area: name; }
  .donors-tag { grid-area: tag; justify-self: start; }
}

.site-footer {
  border-top: 1px solid var(--line); padding: 3rem 1rem 2rem; text-align: center;
  background: rgba(0,0,0,.25);
}
.site-footer .brand { justify-content: center; margin-bottom: 1rem; }
.footer-contact {
  display: grid;
  gap: .65rem;
  justify-items: center;
  margin: 0 auto 1.1rem;
  max-width: 28rem;
}
.footer-contact__label {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--accent-2);
}
.footer-contact__rows {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem .9rem;
  justify-content: center;
}
.footer-contact__link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: #d5e8dc;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  padding: .45rem .75rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
}
.footer-contact__link:hover {
  color: var(--accent);
  border-color: rgba(61,255,154,.28);
}
.footer-contact__ico {
  width: 1rem;
  height: 1rem;
  display: inline-grid;
  place-items: center;
  color: var(--accent);
}
.footer-contact__ico svg {
  width: 100%;
  height: 100%;
}
.footer-copy { margin: 0; }

/* Floating notification toasts (no header strip) */
.toast-stack {
  position: fixed;
  top: 5.6rem;
  left: 50%;
  translate: -50% 0;
  z-index: 80;
  pointer-events: none;
  width: min(420px, calc(100% - 1.5rem));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
}
.toast {
  pointer-events: none;
  width: 100%;
  background: linear-gradient(165deg, rgba(18,48,36,.97), rgba(10,28,20,.96));
  border: 1px solid rgba(61,255,154,.35);
  color: #fff;
  padding: .9rem 1.15rem;
  border-radius: 16px;
  text-align: center;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.45;
  box-shadow:
    0 16px 36px rgba(0,0,0,.4),
    0 0 0 1px rgba(255,255,255,.04) inset;
  opacity: 0;
  transform: translateY(-12px);
  will-change: opacity, transform;
  animation: notifyIn 1.05s cubic-bezier(.25,.8,.25,1) forwards;
}
.toast.toast--out {
  animation: notifyOut 1.15s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes notifyIn {
  0% {
    opacity: 0;
    transform: translateY(-14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes notifyOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(-8px);
  }
}
@media (max-width: 640px) {
  .toast-stack { top: 4.8rem; }
}

/* Auth */
.auth-shell { min-height: calc(100vh - 74px); display: grid; place-items: center; padding: 2rem 1rem; }
.auth-card { width: min(480px, 100%); }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: .4rem; color: var(--muted); font-size: .9rem; }
.form-group input, .form-group select, .form-group textarea,
.adjust-form input, .adjust-form select, .adjust-form textarea,
input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="tel"], input[type="search"], input[type="url"], select, textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0c1f17;
  color: var(--text);
  padding: .8rem .9rem;
  font: inherit;
  color-scheme: dark;
  caret-color: var(--accent);
}
.form-group input::placeholder,
.form-group textarea::placeholder,
.adjust-form input::placeholder,
.adjust-form textarea::placeholder,
input::placeholder,
textarea::placeholder {
  color: rgba(155, 181, 168, .7);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus,
.adjust-form input:focus,
.adjust-form select:focus,
.adjust-form textarea:focus,
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(61,255,154,.45);
  box-shadow: 0 0 0 3px rgba(61,255,154,.12);
}
.form-group select,
.adjust-form select,
select {
  appearance: none;
  -webkit-appearance: none;
  background-color: #0c1f17;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%239bb5a8' stroke-width='1.8' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.4rem;
}
.form-group select option,
.form-group select optgroup,
.adjust-form select option,
select option,
select optgroup {
  background-color: #10281e;
  color: #f3faf6;
}

/* Honeypot: hidden from humans, filled by naive bots */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.alert {
  padding: .85rem 1rem; border-radius: 12px; margin-bottom: 1rem; font-weight: 600;
}
.alert-error { background: rgba(255,93,108,.15); border: 1px solid rgba(255,93,108,.35); }
.alert-success { background: rgba(61,255,154,.12); border: 1px solid rgba(61,255,154,.35); }

/* App shell */
.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
}
.sidebar {
  background: #06140e;
  border-right: 1px solid rgba(61,255,154,.18);
  padding: 1.25rem 1rem;
  position: sticky; top: 0; height: 100vh; overflow: auto;
  box-shadow: 8px 0 32px rgba(0,0,0,.45);
  z-index: 40;
  min-width: 0;
}
.sidebar .brand {
  font-size: 1.05rem;
  color: #fff;
}
.side-group {
  margin: 1.25rem 0 .55rem;
  padding: 0 .55rem;
  font-size: .7rem;
  letter-spacing: .14em;
  color: #8fb5a2;
  font-weight: 800;
  text-transform: uppercase;
}
.side-link {
  display: flex; align-items: center; gap: .75rem;
  padding: .78rem .85rem; border-radius: 12px;
  color: #e8f5ef; margin-bottom: .3rem;
  font-weight: 700; font-size: .95rem;
  background: transparent;
}
.side-ico {
  width: 1.35rem;
  height: 1.35rem;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  color: currentColor;
  opacity: .9;
}
.side-ico svg {
  width: 100%;
  height: 100%;
  display: block;
}
.side-link.active .side-ico,
.side-link:hover .side-ico {
  opacity: 1;
}
.side-link.active, .side-link:hover {
  background: #123628;
  color: var(--accent);
  box-shadow: inset 3px 0 0 var(--accent);
}
.app-main {
  padding: 1.4rem 1.5rem 2.5rem;
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}
.topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.4rem;
  min-width: 0;
  flex-wrap: wrap;
}
.menu-toggle { display: none; }
.sidebar-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 85;
}

/* Balance card */
.balance-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 1.4rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  background:
    radial-gradient(420px 220px at 12% 0%, rgba(245,197,24,.18), transparent 55%),
    linear-gradient(135deg, #128a52, #0b5c38 55%, #0a3d2a);
  box-shadow: var(--shadow);
  min-height: 250px;
}
.balance-card__field {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .62;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,.0) 0 4%, rgba(255,255,255,.38) 4% 4.6%, rgba(255,255,255,0) 4.6% 48%, rgba(255,255,255,.45) 48% 52%, rgba(255,255,255,0) 52% 95.4%, rgba(255,255,255,.38) 95.4% 96%, rgba(255,255,255,0) 96%),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 46px,
      rgba(255,255,255,.28) 46px,
      rgba(255,255,255,.28) 49px
    ),
    linear-gradient(180deg, transparent 16%, rgba(255,255,255,.16) 16% 16.8%, transparent 16.8% 83.2%, rgba(255,255,255,.16) 83.2% 84%, transparent 84%);
}
.balance-card__ball {
  position: absolute;
  right: 0;
  top: 50%;
  width: min(420px, 58%);
  max-width: 100%;
  z-index: 0;
  opacity: .92;
  pointer-events: none;
  transform: translateY(-50%);
  filter: drop-shadow(0 18px 30px rgba(0,0,0,.35));
}
.balance-card__ball img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 18px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 100%);
}
.balance-card__shade {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(10,61,42,.92) 0%, rgba(10,61,42,.72) 42%, rgba(10,61,42,.28) 72%, rgba(10,61,42,.18) 100%);
}
.balance-card__content {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 100%;
}
.bal-top { display: flex; justify-content: space-between; gap: .8rem; position: relative; z-index: 1; min-width: 0; }
.pill {
  display: inline-flex; align-items: center; gap: .4rem; background: rgba(0,0,0,.28);
  border-radius: 999px; padding: .35rem .7rem; font-size: .82rem; font-weight: 700;
}
.bal-main { position: relative; z-index: 1; margin: 1.2rem 0 1rem; min-width: 0; }
.bal-main-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .75rem;
  margin-bottom: .35rem;
  min-width: 0;
}
.bal-main .label { color: rgba(255,255,255,.85); font-size: .95rem; margin: 0; font-weight: 600; }
.bal-main .amount {
  font-size: clamp(1.75rem, 8vw, 2.8rem); font-weight: 800; letter-spacing: -.02em;
  display: flex; align-items: center; gap: .6rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.25);
  min-width: 0;
  overflow-wrap: anywhere;
}
.eye-btn {
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  width: 2.4rem;
  height: 2.4rem;
  display: inline-grid;
  place-items: center;
  color: #fff;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
}
.eye-btn:hover { background: rgba(0,0,0,.35); }
.bal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
  position: relative;
  z-index: 1;
  min-width: 0;
  width: 100%;
}
.bal-mini {
  background: rgba(0,0,0,.22); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px; padding: .7rem .8rem;
  min-width: 0;
  overflow-wrap: anywhere;
}
.bal-mini span { display: block; font-size: .75rem; opacity: .8; }
.bal-mini strong {
  display: block;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.bal-actions {
  display: flex; gap: .7rem; margin-top: 1.1rem; position: relative; z-index: 1;
  flex-wrap: wrap; justify-content: space-between; align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.bal-actions .btn {
  background: #fff;
  color: #0b3d2e;
  min-width: 7.5rem;
  padding: .78rem 1.35rem;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.2;
  box-sizing: border-box;
  text-align: center;
}
@media (max-width: 640px) {
  .balance-card {
    padding: 1.15rem;
  }
  .balance-card__ball {
    width: min(180px, 46%);
    right: 0;
    opacity: .7;
  }
  .bal-actions .btn {
    flex: 1 1 calc(50% - .35rem);
    min-width: 0;
    max-width: 100%;
    padding: .72rem 1rem;
  }
}

.table {
  width: 100%; border-collapse: collapse; overflow: hidden; border-radius: 14px;
}
.table th, .table td {
  text-align: left; padding: .85rem .9rem; border-bottom: 1px solid var(--line); font-size: .94rem;
}
.table th { color: var(--muted); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.badge {
  display: inline-block; padding: .2rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 700;
}
.badge-pending { background: rgba(255,176,32,.18); color: #ffb020; }
.badge-approved, .badge-completed, .badge-active { background: rgba(61,255,154,.15); color: var(--accent); }
.badge-rejected, .badge-paused { background: rgba(255,93,108,.15); color: #ff8a95; }

.modal-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); display: none; place-items: center; z-index: 100; padding: 1rem;
}
.modal-backdrop.open { display: grid; }
.modal {
  width: min(460px, 100%); background: #10281e; border: 1px solid var(--line);
  border-radius: 18px; padding: 1.4rem; box-shadow: var(--shadow);
}

/* Animated subscribe transaction popup */
.tx-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(2, 8, 6, .62);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s ease;
}
.tx-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.tx-modal-backdrop.closing {
  opacity: 0;
}
.tx-modal {
  width: min(400px, 100%);
  text-align: center;
  padding: 1.75rem 1.5rem 1.45rem;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, #123024, #0a1a13);
  box-shadow: 0 28px 64px rgba(0,0,0,.5);
  transform: translateY(18px) scale(.94);
  opacity: 0;
  transition: transform .5s cubic-bezier(.22,1,.36,1), opacity .45s ease;
}
.tx-modal-backdrop.open .tx-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.tx-modal-backdrop.closing .tx-modal {
  transform: translateY(10px) scale(.96);
  opacity: 0;
}
.tx-modal--success {
  border-color: rgba(61,255,154,.35);
  box-shadow: 0 28px 64px rgba(0,0,0,.5), 0 0 40px rgba(61,255,154,.12);
}
.tx-modal--error {
  border-color: rgba(255,93,108,.4);
  box-shadow: 0 28px 64px rgba(0,0,0,.5), 0 0 40px rgba(255,93,108,.12);
}
.tx-modal__icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
}
.tx-icon-svg { width: 72px; height: 72px; }
.tx-ring {
  fill: none;
  stroke: rgba(61,255,154,.95);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 190;
  stroke-dashoffset: 190;
  animation: txRing  .85s ease forwards .1s;
}
.tx-ring--error { stroke: #ff5d6c; }
.tx-check {
  fill: none;
  stroke: #3dff9a;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: txDraw .55s ease forwards .55s;
}
.tx-cross {
  fill: none;
  stroke: #ff5d6c;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
  animation: txDraw .4s ease forwards .45s;
}
.tx-cross--2 { animation-delay: .58s; }
@keyframes txRing {
  to { stroke-dashoffset: 0; }
}
@keyframes txDraw {
  to { stroke-dashoffset: 0; }
}
.tx-modal__title {
  margin: 0 0 .55rem;
  font-size: 1.25rem;
}
.tx-modal--success .tx-modal__title { color: var(--accent); }
.tx-modal--error .tx-modal__title { color: #ff8a95; }
.tx-modal__msg {
  margin: 0 0 1.25rem;
  color: var(--muted);
  line-height: 1.55;
  font-size: .95rem;
}
.tx-modal .btn { min-width: 7rem; }

/* Admin user balance strip + compact adjust */
.bal-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .6rem;
}
.bal-strip__item {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  padding: .7rem .85rem;
}
.bal-strip__item span {
  display: block;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: .2rem;
}
.bal-strip__item strong {
  font-size: 1.05rem;
}
.adjust-card {
  padding: 1rem 1rem 1.1rem;
}
.adjust-card__head h2 {
  margin: 0;
  font-size: 1.02rem;
}
.adjust-card__head p {
  margin: .25rem 0 0;
  font-size: .82rem;
}
.adjust-balances {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .45rem;
  margin: .9rem 0 1rem;
}
.adjust-balances__item {
  border-radius: 12px;
  border: 1px solid rgba(61,255,154,.18);
  background: rgba(0,0,0,.18);
  padding: .55rem .65rem;
}
.adjust-balances__item--muted {
  grid-column: 1 / -1;
  border-color: rgba(255,255,255,.08);
  opacity: .85;
}
.adjust-balances__item span {
  display: block;
  font-size: .7rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.adjust-balances__item strong {
  font-size: .95rem;
}
.adjust-form {
  display: grid;
  gap: .75rem;
}
.adjust-field {
  display: grid;
  gap: .35rem;
}
.adjust-label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.adjust-form input[type="number"],
.adjust-form input[type="text"],
.adjust-form input[type="email"],
.adjust-form textarea,
.adjust-form select {
  margin: 0;
  padding: .65rem .75rem;
  font-size: .95rem;
  background: #0c1f17;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  color-scheme: dark;
}
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .35rem;
  padding: .28rem;
  border-radius: 12px;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.06);
}
.seg__btn {
  border: 0;
  border-radius: 9px;
  padding: .55rem .4rem;
  font: inherit;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  transition: .15s ease;
}
.seg__btn:hover { color: var(--text); }
.seg__btn.is-active {
  background: rgba(61,255,154,.16);
  color: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(61,255,154,.28);
}
.seg__btn--deduct.is-active {
  background: rgba(255,93,108,.16);
  color: #ff8a95;
  box-shadow: inset 0 0 0 1px rgba(255,93,108,.3);
}
.adjust-submit {
  width: 100%;
  margin-top: .15rem;
}
.adjust-submit.is-danger {
  background: var(--danger);
  color: #fff;
}
@media (max-width: 960px) {
  .bal-strip { grid-template-columns: 1fr; }
}

/* Withdrawal methods compact UI */
.wm-list {
  display: grid;
  gap: 1rem;
}
.wm-create,
.wm-card {
  padding: 1rem 1rem 1.1rem;
}
.wm-row {
  display: flex;
  gap: .65rem;
  align-items: end;
  flex-wrap: wrap;
}
.wm-grow {
  flex: 1 1 160px;
  min-width: 0;
}
.wm-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: .8rem;
  margin-bottom: .9rem;
}
.wm-card__badge {
  display: inline-block;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .2rem .5rem;
  border-radius: 999px;
  background: rgba(255,93,108,.14);
  color: #ff8a95;
  margin-bottom: .35rem;
}
.wm-card__badge.is-on {
  background: rgba(61,255,154,.14);
  color: var(--accent);
}
.wm-card__title {
  margin: 0;
  font-size: 1.05rem;
}
.wm-card__meta {
  margin: .25rem 0 0;
  font-size: .82rem;
}
.wm-edit {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.wm-fields__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: .5rem;
  margin-bottom: .7rem;
}
.wm-fields__head h3 {
  margin: 0;
  font-size: .92rem;
}
.wm-field-list {
  list-style: none;
  margin: 0 0 .9rem;
  padding: 0;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(0,0,0,.16);
}
.wm-field-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .7rem;
  padding: .65rem .75rem;
  border-top: 1px solid rgba(255,255,255,.05);
}
.wm-field-item:first-child { border-top: 0; }
.wm-field-item__main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem .55rem;
  min-width: 0;
}
.wm-field-item__main strong {
  font-size: .92rem;
}
.wm-field-item__main .muted {
  font-size: .8rem;
}
.wm-chip {
  display: inline-flex;
  align-items: center;
  padding: .15rem .45rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: rgba(255,176,32,.16);
  color: #ffb020;
}
.wm-add-field {
  margin-top: .2rem;
  padding-top: .85rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.seg--4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 720px) {
  .seg--4 { grid-template-columns: repeat(2, 1fr); }
}

/* Packages admin compact UI */
.pkg-list {
  display: grid;
  gap: 1rem;
}
.pkg-create,
.pkg-card {
  padding: 1rem 1rem 1.1rem;
}

/* Site Content CMS */
.cms-jump {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 1.2rem;
  position: sticky;
  top: .7rem;
  z-index: 8;
  padding: .55rem;
  border-radius: 14px;
  background: rgba(6, 20, 14, .92);
  border: 1px solid rgba(61,255,154,.18);
  backdrop-filter: blur(10px);
}
.cms-jump a {
  display: inline-flex;
  align-items: center;
  padding: .5rem .85rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--muted);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  text-decoration: none;
}
.cms-jump a:hover {
  color: var(--accent);
  border-color: rgba(61,255,154,.3);
}
.cms-stack {
  display: grid;
  gap: 1.4rem;
  margin-bottom: 1.2rem;
}
.cms-group {
  display: grid;
  gap: .9rem;
  scroll-margin-top: 4.5rem;
}
.cms-group__head {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  padding: 0 .15rem;
}
.cms-group__head h2 {
  margin: 0 0 .2rem;
  font-size: 1.15rem;
}
.cms-group__head p {
  margin: 0;
  font-size: .88rem;
  max-width: 44rem;
}
.cms-group__step {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: .95rem;
  color: #04140c;
  background: linear-gradient(135deg, var(--accent), #19c56a);
}
.cms-substep {
  display: inline-block;
  margin-bottom: .35rem;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  color: var(--accent-2);
}
.adjust-card__head h3 {
  margin: 0;
  font-size: 1.02rem;
}
.cms-divider {
  height: 1px;
  background: rgba(255,255,255,.06);
  margin: .15rem 0 .35rem;
}
.cms-mini {
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  background: rgba(0,0,0,.16);
  padding: .85rem;
  display: grid;
  gap: .65rem;
}
.cms-side-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}
.cms-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.cms-feature-grid:has(.cms-mini:nth-child(3)) {
  grid-template-columns: repeat(3, 1fr);
}
.cms-hint {
  margin: 0 0 .45rem;
  font-size: .82rem;
}
.cms-preview {
  display: grid;
  gap: .4rem;
  margin-bottom: .75rem;
}
.cms-preview img {
  width: min(220px, 100%);
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #000;
  display: block;
}
.cms-preview--wide img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
}
.cms-file {
  padding: .55rem .7rem !important;
  background: #0c1f17 !important;
  color: var(--text) !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  color-scheme: dark;
}
.cms-file::file-selector-button {
  margin-right: .75rem;
  border: 0;
  border-radius: 8px;
  padding: .4rem .7rem;
  background: rgba(61,255,154,.16);
  color: var(--accent);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.cms-blocks {
  display: grid;
  gap: .75rem;
}
.cms-block {
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 14px;
  background: rgba(0,0,0,.16);
  padding: .85rem .9rem;
}
.cms-block__key {
  font-size: .88rem;
  font-weight: 800;
  margin-bottom: .7rem;
  color: var(--accent);
}
.cms-block__key .muted {
  font-weight: 600;
  font-size: .75rem;
  margin-left: .35rem;
}
.cms-save {
  position: sticky;
  bottom: .8rem;
  z-index: 5;
  display: flex;
  justify-content: flex-end;
  padding: .55rem 0;
}
.cms-save .btn {
  min-width: 10rem;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}
@media (max-width: 960px) {
  .cms-side-grid,
  .cms-feature-grid,
  .cms-feature-grid:has(.cms-mini:nth-child(3)) {
    grid-template-columns: 1fr;
  }
}

/* Admin dashboard */
.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.2rem;
}
.dash-head h1 {
  margin: 0 0 .3rem;
  font-size: 1.4rem;
}
.dash-head p { margin: 0; }
.dash-kpi {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
  margin-bottom: 1rem;
}
.dash-kpi__card {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255,255,255,.04), rgba(255,255,255,.015));
  padding: .95rem 1rem;
  display: grid;
  gap: .25rem;
}
.dash-kpi__label {
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}
.dash-kpi__card strong {
  font-size: 1.7rem;
  color: var(--accent);
  line-height: 1.1;
}
.dash-kpi__card strong.is-warn { color: var(--warning); }
.dash-kpi__card strong.is-gold { color: var(--accent-2); }
.dash-kpi__card a {
  margin-top: .35rem;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}
.dash-kpi__card a:hover { color: var(--accent); }
.dash-kpi__meta { font-size: .78rem; }
.dash-money {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
  margin-bottom: 1rem;
}
.dash-money__card {
  border-radius: 16px;
  border: 1px solid rgba(61,255,154,.16);
  background:
    radial-gradient(180px 80px at 100% 0%, rgba(61,255,154,.08), transparent 60%),
    linear-gradient(160deg, #123024, #0a1a13);
  padding: 1rem;
  display: grid;
  gap: .2rem;
}
.dash-money__label {
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}
.dash-money__card strong {
  font-size: 1.25rem;
  color: var(--text);
}
.dash-money__card strong.is-warn { color: #ff8a95; }
.dash-money__card strong.is-gold { color: var(--accent-2); }
.dash-money__card .muted { font-size: .78rem; }
.dash-pools {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  padding: 1.1rem 1.15rem 1.2rem;
  margin-bottom: 1rem;
}
.dash-pools__head h2 {
  margin: 0 0 .2rem;
  font-size: 1.05rem;
}
.dash-pools__head p { margin: 0 0 1rem; font-size: .88rem; }
.dash-pools__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
}
.dash-pool {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.18);
  padding: .85rem .9rem;
}
.dash-pool span {
  display: block;
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: .25rem;
}
.dash-pool strong {
  font-size: 1.15rem;
}
.dash-pool__bar {
  margin-top: .7rem;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  overflow: hidden;
}
.dash-pool__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #19c56a);
}
.dash-pool__bar--sub i {
  background: linear-gradient(90deg, #3db8ff, #1a7fd4);
}
.dash-pool__bar--int i {
  background: linear-gradient(90deg, var(--accent-2), #d4a017);
}
.dash-chart {
  padding: 1.15rem 1.2rem 1rem;
  margin-bottom: 1rem;
}
.dash-chart__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: .9rem;
}
.dash-chart__head h2 {
  margin: 0 0 .2rem;
  font-size: 1.05rem;
}
.dash-chart__head p { margin: 0; font-size: .88rem; }
.dash-legend {
  display: flex;
  gap: .9rem;
  align-items: center;
  font-size: .82rem;
  color: var(--muted);
  font-weight: 700;
}
.dash-legend span {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.dash-dot {
  width: .65rem;
  height: .65rem;
  border-radius: 50%;
  display: inline-block;
}
.dash-dot--in { background: var(--accent); box-shadow: 0 0 0 3px rgba(61,255,154,.15); }
.dash-dot--out { background: #ff8a95; box-shadow: 0 0 0 3px rgba(255,93,108,.15); }
.dash-chart__frame {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.06);
  background:
    linear-gradient(180deg, rgba(255,255,255,.02), transparent),
    rgba(0,0,0,.22);
  padding: .5rem .35rem .2rem;
  overflow: hidden;
}
.dash-chart__svg {
  width: 100%;
  height: auto;
  display: block;
}
.dash-grid {
  stroke: rgba(255,255,255,.07);
  stroke-width: 1;
}
.dash-axis {
  fill: rgba(155,181,168,.85);
  font-size: 10px;
  font-family: var(--font);
}
.dash-line {
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.dash-line--in { stroke: #3dff9a; }
.dash-line--out { stroke: #ff8a95; }
.dash-point--in { fill: #3dff9a; }
.dash-point--out { fill: #ff8a95; }
.dash-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
}
.dash-action {
  display: grid;
  gap: .25rem;
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  text-decoration: none;
  color: inherit;
  transition: .15s ease;
}
.dash-action:hover {
  border-color: rgba(61,255,154,.3);
  background: rgba(61,255,154,.06);
}
.dash-action strong {
  font-size: .95rem;
}
.dash-action .muted {
  font-size: .8rem;
}
@media (max-width: 1100px) {
  .dash-kpi,
  .dash-money,
  .dash-actions { grid-template-columns: repeat(2, 1fr); }
  .dash-pools__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .dash-kpi,
  .dash-money,
  .dash-actions { grid-template-columns: 1fr; }
}

/* Logout confirm popup */
.confirm-modal__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-2);
  background: rgba(245,197,24,.12);
  border: 1px solid rgba(245,197,24,.35);
}
.confirm-modal .tx-modal__title {
  color: var(--text);
}
.confirm-modal__actions {
  display: flex;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.confirm-modal__actions .btn {
  min-width: 5.5rem;
}

.chat {
  display: flex; flex-direction: column; gap: .7rem; max-height: 420px; overflow: auto;
  padding: 1rem; background: rgba(0,0,0,.2); border-radius: 14px; border: 1px solid var(--line);
}
.bubble {
  max-width: 80%; padding: .75rem .9rem; border-radius: 14px; line-height: 1.4;
}
.bubble.user { align-self: flex-end; background: rgba(61,255,154,.18); }
.bubble.admin { align-self: flex-start; background: rgba(255,255,255,.08); }

/* FAQ accordion (public) */
.faq-section { padding-top: 2.5rem; }
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem 1.25rem;
  padding: 1.35rem 0;
  background: transparent;
  border: 0;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: color .2s ease;
}
.faq-trigger:hover { color: #fff; }
.faq-trigger:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 6px;
}
.faq-num {
  font-family: var(--display);
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: .06em;
  color: var(--accent-2);
  min-width: 2.2rem;
}
.faq-q {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.35;
  letter-spacing: -.01em;
}
.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(61,255,154,.35);
  background: rgba(61,255,154,.08);
  position: relative;
  flex-shrink: 0;
  transition: transform .28s ease, background .2s ease, border-color .2s ease;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 12px;
  height: 2px;
  background: var(--accent);
  transform: translate(-50%, -50%);
  border-radius: 1px;
}
.faq-icon::after {
  width: 2px;
  height: 12px;
  transition: opacity .2s ease, transform .28s ease;
}
.faq-trigger[aria-expanded="true"] .faq-icon {
  background: rgba(245,197,24,.12);
  border-color: rgba(245,197,24,.45);
  transform: rotate(0deg);
}
.faq-trigger[aria-expanded="true"] .faq-icon::before {
  background: var(--accent-2);
}
.faq-trigger[aria-expanded="true"] .faq-icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) scaleY(0);
}
.faq-panel {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height .35s ease, opacity .28s ease, padding .28s ease;
  padding: 0 0 0 calc(2.2rem + 1.25rem);
}
.faq-panel.is-open {
  max-height: 80rem;
  opacity: 1;
  padding-bottom: 1.35rem;
}
.faq-answer {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 42rem;
}
@media (max-width: 640px) {
  .faq-trigger {
    gap: .85rem;
    padding: 1.15rem 0;
  }
  .faq-panel {
    padding-left: 0;
  }
  .faq-num { min-width: 1.8rem; font-size: .85rem; }
}

@media (max-width: 960px) {
  .grid-3 { grid-template-columns: 1fr; }
  .app-shell {
    grid-template-columns: minmax(0, 1fr);
    overflow-x: clip;
  }
  .app-main {
    padding: 1.1rem 1rem 2rem;
    width: 100%;
  }
  html, body {
    overflow-x: clip;
    max-width: 100%;
  }
  .sidebar {
    position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); max-width: 100%;
    transform: translateX(-105%);
    transition: .25s ease; z-index: 90;
    background: #06140e;
    box-shadow: 12px 0 40px rgba(0,0,0,.65);
  }
  .sidebar.open { transform: none; }
  .sidebar-backdrop.open { display: block; }
  .menu-toggle { display: inline-flex; }
  .bal-grid { grid-template-columns: minmax(0, 1fr); }
  .card { max-width: 100%; min-width: 0; }
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; background: #0b1c15; padding: 1rem; border-bottom: 1px solid var(--line); }
}
