/* =====================================================================
   GTA6Coin — shell.css
   The 2026 rebrand shell: new sidebar, new header, new landing page and
   a lighter card language. Loaded last, so it wins over the older files.
   ===================================================================== */

:root {
  --g6c-rail: 264px;
  --g6c-line: rgba(155, 92, 255, .22);
  --g6c-line-soft: rgba(155, 92, 255, .12);
  --g6c-ink: #0a0513;
  --g6c-panel: rgba(24, 13, 44, .72);
  --g6c-panel-solid: #170c2b;
}

/* ------------------------------------------------------------------ *
 * 1. Page ground — one flat paint instead of three stacked gradients.
 *    The old body painted two large radial gradients that the browser
 *    had to re-rasterise on every scroll frame.
 * ------------------------------------------------------------------ */
body.g6c-body {
  background: var(--g6c-ink);
  background-image:
    radial-gradient(900px 520px at 8% -12%, rgba(155, 92, 255, .20), transparent 62%),
    radial-gradient(760px 460px at 104% 4%, rgba(255, 62, 165, .14), transparent 60%);
  background-attachment: scroll;
  background-repeat: no-repeat;
}

h1, h2, h3, h4 { letter-spacing: -.02em; }

/* ------------------------------------------------------------------ *
 * 2. Cards — thinner blur, gradient hairline on top.
 * ------------------------------------------------------------------ */
.glass {
  background: var(--g6c-panel);
  border: 1px solid var(--g6c-line);
  border-radius: 18px;
  box-shadow: 0 14px 40px -28px rgba(0, 0, 0, .9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.page-content { position: relative; overflow: hidden; }
.page-content::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 62, 165, .65), rgba(155, 92, 255, .65), transparent);
}
/* The page name now lives in the header bar. */
.g6c-content .page-title { display: none; }
.g6c-content .page-subtitle { margin-top: .2rem; }

/* ------------------------------------------------------------------ *
 * 3. Shell grid — .g6c-app is the ADMIN shell (sidebar + main). The user
 *    app uses .g6c-shell: top bar on desktop, bottom tab bar on phones.
 * ------------------------------------------------------------------ */
.g6c-app { grid-template-columns: var(--g6c-rail) 1fr; }
.g6c-content { padding-top: 1.1rem; }

.g6c-sidebar-backdrop {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(6, 3, 14, .6);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.g6c-sidebar-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* ------------------------------------------------------------------ *
 * 4. Sidebar
 * ------------------------------------------------------------------ */
.g6c-sidebar {
  background: linear-gradient(180deg, rgba(31, 16, 58, .92), rgba(12, 7, 22, .96));
  border-right: 1px solid var(--g6c-line);
  padding: 1.1rem .8rem 1rem;
  gap: .8rem;
  overflow-y: auto;
  position: sticky; top: 0; height: 100vh;
}
.g6c-sidebar-brand { padding: .2rem .35rem .6rem; border-bottom: 1px solid var(--g6c-line-soft); }
.g6c-brand-link { gap: .65rem; align-items: center; }
.g6c-brand-mark {
  width: 40px; height: 40px; border-radius: 13px;
  background: rgba(155, 92, 255, .10);
  border: 1px solid var(--g6c-line);
}
.g6c-brand-copy { display: flex; flex-direction: column; line-height: 1.1; }
.g6c-brand-text { font-size: 1.06rem; }
.g6c-brand-sub {
  font-size: .66rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted); margin-top: .18rem;
}

.g6c-nav { gap: .12rem; margin-top: .2rem; flex: 1; }
.g6c-nav-group {
  margin: .85rem .65rem .3rem;
  font-size: .64rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--muted);
}
.g6c-nav-group:first-child { margin-top: .35rem; }

.g6c-nav-item {
  position: relative;
  gap: .6rem;
  padding: .52rem .65rem;
  border-radius: 11px;
  font-size: .9rem; font-weight: 600;
  border: 0;
  transition: color .15s ease, background-color .15s ease;
}
.g6c-nav-item::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 3px; height: 0; border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #9b5cff, #ff3ea5);
  transform: translateY(-50%);
  transition: height .18s ease;
}
.g6c-nav-item:hover { background: rgba(155, 92, 255, .10); color: var(--text); }
.g6c-nav-item.is-active {
  color: #fff;
  background: linear-gradient(90deg, rgba(155, 92, 255, .26), rgba(255, 62, 165, .05));
  border: 0;
}
.g6c-nav-item.is-active::before { height: 62%; }

.g6c-ico-tile {
  width: 28px; height: 28px; flex: 0 0 28px;
  display: inline-grid; place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid transparent;
}
.g6c-nav-item.is-active .g6c-ico-tile {
  background: rgba(255, 62, 165, .16);
  border-color: rgba(255, 62, 165, .35);
}
.g6c-ico { width: 16px; height: 16px; flex: 0 0 16px; }
/* Admin's sidebar still uses the plain icon markup (no tile). */
.g6c-nav-item > .g6c-ico { width: 18px; height: 18px; flex: 0 0 18px; }

.g6c-side-foot { margin-top: auto; padding-top: .6rem; border-top: 1px solid var(--g6c-line-soft); }
.g6c-window-chip {
  display: flex; align-items: center; gap: .55rem;
  padding: .55rem .65rem; margin-bottom: .35rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--g6c-line-soft);
}
.g6c-window-dot {
  width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px;
  background: var(--muted);
}
.g6c-window-chip.is-open .g6c-window-dot { background: var(--success); box-shadow: 0 0 0 3px rgba(40, 226, 161, .18); }
.g6c-window-copy { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.g6c-window-copy strong { font-size: .78rem; color: var(--text); font-weight: 600; }
.g6c-window-copy small  { font-size: .68rem; color: var(--muted); }
.g6c-nav-logout { color: #ff8a95; }
.g6c-nav-logout:hover { color: #ff5b7f; background: rgba(255, 91, 127, .10); }

/* ------------------------------------------------------------------ *
 * 5. Header
 * ------------------------------------------------------------------ */
.g6c-header {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: .8rem;
  padding: .7rem clamp(.9rem, 2vw, 1.6rem);
  background: rgba(12, 7, 22, .82);
  border-bottom: 1px solid var(--g6c-line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.g6c-header-title {
  display: flex; flex-direction: column; line-height: 1.15; min-width: 0;
  flex: 0 1 auto; text-align: left; text-transform: none; letter-spacing: normal;
}
.g6c-header-eyebrow {
  font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.g6c-header-page {
  font-size: 1.12rem; font-weight: 700; margin: .1rem 0 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.g6c-header-right { margin-left: auto; display: flex; align-items: center; gap: .5rem; }

.g6c-balance-chip {
  display: inline-flex; flex-direction: column; line-height: 1.1;
  padding: .34rem .7rem;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(155, 92, 255, .18), rgba(255, 62, 165, .12));
  border: 1px solid var(--g6c-line);
}
.g6c-balance-chip-label { font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-dim); }
.g6c-balance-chip-value { font-size: .88rem; font-weight: 700; font-variant-numeric: tabular-nums; }

.g6c-email-chip {
  padding: .42rem .7rem; border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--g6c-line-soft);
  font-size: .78rem; color: var(--text-dim);
  max-width: 190px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.g6c-hamburger {
  display: none; width: 38px; height: 38px;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border-radius: 11px; cursor: pointer;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--g6c-line);
}
.g6c-hamburger span { display: block; width: 16px; height: 2px; border-radius: 2px; background: var(--text); }

/* ------------------------------------------------------------------ *
 * 6. Language dropdown (header / auth bar / landing bar)
 * ------------------------------------------------------------------ */
.g6c-lang { position: relative; }
.g6c-lang-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .42rem .6rem;
  border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--g6c-line-soft);
  color: var(--text); font: inherit; font-size: .78rem; font-weight: 600;
  transition: border-color .15s ease, background-color .15s ease;
}
.g6c-lang-btn:hover { background: rgba(155, 92, 255, .14); border-color: var(--g6c-line); }
.g6c-lang-btn[aria-expanded="true"] { border-color: rgba(255, 62, 165, .5); }
.g6c-lang-flag { font-size: .95rem; line-height: 1; }
.g6c-lang-code { letter-spacing: .06em; }

.g6c-lang-menu {
  position: absolute; right: 0; top: calc(100% + .45rem); bottom: auto; left: auto;
  z-index: 200;
  margin: 0; padding: .3rem;
  list-style: none;
  width: 210px; max-height: 320px; overflow-y: auto;
  border-radius: 14px;
  background: var(--g6c-panel-solid);
  border: 1px solid var(--g6c-line);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .85);
}
.g6c-lang-menu li {
  display: flex; align-items: center; gap: .55rem;
  padding: .45rem .55rem;
  border-radius: 9px; cursor: pointer;
  font-size: .84rem; color: var(--text-dim);
}
.g6c-lang-menu li:hover { background: rgba(155, 92, 255, .16); color: var(--text); }
/* The old floating pill is gone — kill it if any page still ships one. */
.g6c-lang-fab { display: none !important; }

/* ------------------------------------------------------------------ *
 * 7. Landing page
 * ------------------------------------------------------------------ */
.lp-topbar {
  position: relative; z-index: 5;
  display: flex; align-items: center; gap: .8rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  max-width: 1180px; margin: 0 auto;
}
.lp-brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--text); font-weight: 800; font-size: 1.05rem; }
.lp-topbar-right { margin-left: auto; display: flex; align-items: center; gap: .5rem; }

.lp { position: relative; z-index: 5; max-width: 1180px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 3rem) 3rem; }

.lp-hero { padding: clamp(2rem, 7vw, 4.5rem) 0 clamp(1.5rem, 4vw, 3rem); max-width: 760px; }
.lp-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .38rem .8rem; border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--g6c-line);
  font-size: .76rem; color: var(--text-dim);
}
.lp-pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.lp-pill-dot.is-live { background: var(--success); box-shadow: 0 0 0 3px rgba(40, 226, 161, .2); }

.lp-title {
  font-size: clamp(2.3rem, 6.4vw, 4.1rem);
  line-height: 1.04; font-weight: 800;
  margin: 1.1rem 0 0;
}
.lp-title-mark {
  background: linear-gradient(100deg, #c9a6ff 0%, #9b5cff 40%, #ff3ea5 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp-lead { font-size: 1.03rem; max-width: 620px; margin: 1.1rem 0 0; color: var(--text-dim); }
.lp-lead strong { color: var(--text); }
.lp-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }

.lp-stats {
  display: flex; flex-wrap: wrap; gap: clamp(1.2rem, 4vw, 3rem);
  list-style: none; margin: 2.4rem 0 0; padding: 1.3rem 0 0;
  border-top: 1px solid var(--g6c-line-soft);
}
.lp-stats li { display: flex; flex-direction: column; gap: .2rem; }
.lp-stats strong { font-size: 1.55rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.lp-stats span { font-size: .78rem; color: var(--muted); }

.lp-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; margin-top: 1rem; }
.lp-card {
  padding: 1.4rem;
  border-radius: 18px;
  background: var(--g6c-panel);
  border: 1px solid var(--g6c-line);
}
.lp-card h2 { font-size: 1.05rem; margin: .9rem 0 .4rem; }
.lp-card p  { font-size: .9rem; margin: 0; }
.lp-card-ico {
  width: 42px; height: 42px; border-radius: 13px;
  display: inline-grid; place-items: center;
  background: linear-gradient(135deg, rgba(155, 92, 255, .25), rgba(255, 62, 165, .18));
  border: 1px solid var(--g6c-line);
  color: #fff;
}
.lp-card-ico svg { width: 20px; height: 20px; }

.lp-foot { margin-top: 3rem; padding-top: 1.3rem; border-top: 1px solid var(--g6c-line-soft); }
.lp-foot-links { display: flex; flex-wrap: wrap; gap: 1.1rem; font-size: .85rem; }
.lp-foot-links a { color: var(--text-dim); }
.lp-foot-links a:hover { color: var(--text); }
.lp-foot-note { font-size: .76rem; color: var(--muted); margin-top: .9rem; }

/* ------------------------------------------------------------------ *
 * 8. Buttons / inputs
 * ------------------------------------------------------------------ */
.btn { border-radius: 12px; font-size: .9rem; }
.btn-primary { box-shadow: 0 10px 26px -12px rgba(255, 62, 165, .7); }
.btn-secondary { background: rgba(255, 255, 255, .05); border-color: var(--g6c-line); }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea {
  border-radius: 12px;
  background: rgba(10, 5, 19, .7);
  border-color: var(--g6c-line-soft);
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(255, 62, 165, .6);
  box-shadow: 0 0 0 3px rgba(255, 62, 165, .14);
}

/* Admin: feature toggles */
.settings-toggle { display: flex !important; align-items: center; gap: .6rem; }
.settings-toggle input { width: auto; accent-color: #ff3ea5; width: 18px; height: 18px; }

/* ------------------------------------------------------------------ *
 * 9. Performance & motion
 *    Blur is the single most expensive thing on this page. Drop it
 *    where the device is most likely to struggle, and drop the
 *    decorative canvas + animations when the user asks for less motion.
 * ------------------------------------------------------------------ */
@media (max-width: 900px) {
  .glass, .g6c-header { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .glass { background: rgba(23, 12, 43, .94); }
  .g6c-header { background: rgba(12, 7, 22, .96); }
  body.g6c-body { background-image: none; }
  .g6c-particles { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .g6c-particles { display: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* Long stacked panels: let the browser skip laying out what is off-screen. */
.cabinet-panel, .lp-card, .settings-section { content-visibility: auto; contain-intrinsic-size: auto 320px; }

@media (max-width: 880px) {
  .g6c-sidebar { position: fixed; height: 100%; }
  .g6c-header-eyebrow { display: none; }
  .g6c-email-chip { max-width: 110px; }
}
@media (max-width: 560px) {
  .g6c-lang-code { display: none; }
  .lp-topbar { flex-wrap: wrap; }
}


/* ==================================================================== *
 * 10. App navigation — mobile first
 *     Phone : compact top bar + fixed bottom tab bar + "More" sheet.
 *     ≥901px: one horizontal top bar + centred "More" dropdown.
 * ==================================================================== */
.g6c-shell { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
body.g6c-no-scroll { overflow: hidden; }

/* ---- top bar ---- */
.g6c-topbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: .75rem;
  padding: .6rem clamp(.85rem, 3vw, 1.6rem);
  background: rgba(12, 7, 22, .88);
  border-bottom: 1px solid var(--g6c-line);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.g6c-topbrand {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--text); font-weight: 800; font-size: 1rem; letter-spacing: -.01em;
  flex: 0 0 auto;
}
.g6c-topbrand img { border-radius: 9px; }
.g6c-topbar-right { margin-left: auto; display: flex; align-items: center; gap: .45rem; }

.g6c-logout-btn {
  display: none; width: 34px; height: 34px;
  place-items: center; border-radius: 10px;
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--g6c-line-soft);
  color: #ff8a95;
}
.g6c-logout-btn:hover { background: rgba(255, 91, 127, .12); color: #ff5b7f; }

/* ---- desktop link row (hidden on phones) ---- */
.g6c-topnav { display: none; }
.g6c-topnav-link {
  display: inline-flex; align-items: center; gap: .42rem;
  padding: .48rem .7rem;
  border-radius: 10px;
  font-size: .86rem; font-weight: 600;
  color: var(--text-dim);
  background: none; border: 0; cursor: pointer; font-family: inherit;
  white-space: nowrap;
  transition: color .15s ease, background-color .15s ease;
}
.g6c-topnav-link:hover { color: var(--text); background: rgba(155, 92, 255, .12); }
.g6c-topnav-link.is-active {
  color: #fff;
  background: linear-gradient(120deg, rgba(155, 92, 255, .30), rgba(255, 62, 165, .16));
  box-shadow: inset 0 -2px 0 rgba(255, 62, 165, .8);
}
.g6c-topnav-link .g6c-ico { width: 15px; height: 15px; flex: 0 0 15px; }

/* ---- page head strip ---- */
.g6c-pagehead {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap;
  padding: 1rem clamp(.85rem, 3vw, 1.6rem) .2rem;
  max-width: 1280px; width: 100%; margin: 0 auto;
}
.g6c-pagehead-eyebrow { font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.g6c-pagehead-title { font-size: 1.45rem; font-weight: 800; margin: .1rem 0 0; }
.g6c-window-pill {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .34rem .7rem; border-radius: 999px;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--g6c-line-soft);
  font-size: .74rem; color: var(--text-dim); white-space: nowrap;
}
.g6c-window-pill .g6c-window-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); flex: 0 0 7px; }
.g6c-window-pill.is-open .g6c-window-dot { background: var(--success); box-shadow: 0 0 0 3px rgba(40, 226, 161, .18); }

/* ---- bottom tab bar (phones) ---- */
.g6c-tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: flex; align-items: stretch;
  padding: .3rem .25rem calc(.3rem + env(safe-area-inset-bottom, 0px));
  background: rgba(14, 8, 26, .96);
  border-top: 1px solid var(--g6c-line);
}
.g6c-tab {
  position: relative;
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .18rem;
  padding: .45rem .2rem .35rem;
  border-radius: 12px;
  background: none; border: 0; cursor: pointer; font-family: inherit;
  color: var(--muted); font-size: .64rem; font-weight: 600; letter-spacing: .01em;
  -webkit-tap-highlight-color: transparent;
}
.g6c-tab span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g6c-tab .g6c-ico { width: 21px; height: 21px; flex: 0 0 21px; }
.g6c-tab:active { background: rgba(155, 92, 255, .14); }
.g6c-tab.is-active { color: #fff; }
.g6c-tab.is-active .g6c-ico { color: #ff3ea5; filter: drop-shadow(0 0 8px rgba(255, 62, 165, .55)); }
.g6c-tab.is-active::before {
  content: ""; position: absolute; margin-top: -.62rem;
  width: 22px; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, #9b5cff, #ff3ea5);
}

/* ---- "More": bottom sheet on phones ---- */
.g6c-more-backdrop {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(6, 3, 14, .62);
  opacity: 0; transition: opacity .2s ease;
}
.g6c-more-backdrop.is-open { opacity: 1; }
.g6c-more-panel {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  max-height: 78vh; overflow-y: auto;
  padding: .55rem 1rem calc(1rem + env(safe-area-inset-bottom, 0px));
  border-radius: 22px 22px 0 0;
  background: var(--g6c-panel-solid);
  border: 1px solid var(--g6c-line);
  border-bottom: 0;
  box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .9);
  transform: translateY(100%);
  transition: transform .22s cubic-bezier(.22, .8, .3, 1);
}
.g6c-more-panel.is-open { transform: translateY(0); }
.g6c-more-grab { width: 40px; height: 4px; border-radius: 99px; background: rgba(255, 255, 255, .18); margin: .1rem auto .7rem; }
.g6c-more-title { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin: 0 0 .5rem .2rem; }
.g6c-more-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: .35rem; }
.g6c-more-link {
  display: flex; align-items: center; gap: .55rem;
  padding: .6rem .6rem;
  border-radius: 13px;
  color: var(--text-dim); font-size: .84rem; font-weight: 600;
  background: rgba(255, 255, 255, .03);
  border: 1px solid transparent;
}
.g6c-more-link:hover, .g6c-more-link:active { color: var(--text); background: rgba(155, 92, 255, .14); }
.g6c-more-link.is-active { color: #fff; border-color: rgba(255, 62, 165, .4); background: rgba(255, 62, 165, .12); }
.g6c-more-logout { margin-top: .5rem; color: #ff8a95; }
.g6c-more-logout:hover { color: #ff5b7f; background: rgba(255, 91, 127, .12); }

/* Room for the fixed bar so nothing hides behind it. */
.g6c-app-body .g6c-content { padding-bottom: calc(5.2rem + env(safe-area-inset-bottom, 0px)); }

/* ---- phone trims ---- */
@media (max-width: 900px) {
  .g6c-topbar { padding: .5rem .85rem; }
  .g6c-topbrand span { font-size: .95rem; }
  .g6c-email-chip { display: none; }
  .g6c-pagehead { padding-top: .85rem; }
  .g6c-pagehead-title { font-size: 1.22rem; }
  .g6c-balance-chip { padding: .28rem .6rem; }
  .g6c-more-panel { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (max-width: 380px) {
  .g6c-tab { font-size: .58rem; }
  .g6c-window-pill { display: none; }
}

/* ==================================================================== *
 * 11. Desktop: horizontal bar takes over, tab bar disappears
 * ==================================================================== */
@media (min-width: 901px) {
  .g6c-topnav { display: flex; align-items: center; gap: .12rem; margin-left: .6rem; flex-wrap: nowrap; }
  .g6c-tabbar { display: none; }
  .g6c-logout-btn { display: inline-grid; }
  .g6c-app-body .g6c-content { padding-bottom: 3rem; }

  .g6c-more-backdrop { background: transparent; }
  .g6c-more-panel {
    top: 62px; bottom: auto; left: auto; right: clamp(.9rem, 3vw, 1.6rem);
    width: min(620px, 92vw);
    transform: translateY(-10px);
    opacity: 0; pointer-events: none;
    border-radius: 18px; border-bottom: 1px solid var(--g6c-line);
    padding: 1rem;
    box-shadow: 0 30px 70px -25px rgba(0, 0, 0, .92);
    transition: transform .18s ease, opacity .18s ease;
  }
  .g6c-more-panel.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .g6c-more-link.is-in-topbar { display: none; }   /* already a top-bar link */
  .g6c-more-grab { display: none; }
  .g6c-more-links { grid-template-columns: repeat(3, 1fr); gap: .4rem; }
  body.g6c-no-scroll { overflow: auto; }
}
@media (min-width: 1180px) {
  .g6c-topnav { gap: .2rem; }
  .g6c-topnav-link { padding: .5rem .8rem; font-size: .88rem; }
}

/* Plan summary lists (staking + bot shop) */
.plan-summary { margin: .6rem 0 1rem; }
.plan-summary li { margin-bottom: .3rem; line-height: 1.5; }
.plan-summary strong { color: var(--text); }
.card-tile .price span { font-size: .8rem; font-weight: 600; color: var(--text-dim); }
.card-tile .meta { font-size: .84rem; color: var(--text-dim); line-height: 1.5; }
.card-tile .meta strong { color: var(--text); }

/* ==================================================================== *
 * 12. Floating Telegram launcher
 *     Sits above the bottom tab bar on phones, bottom-right on desktop.
 * ==================================================================== */
.g6c-tg { position: fixed; right: 14px; z-index: 75; bottom: calc(4.9rem + env(safe-area-inset-bottom, 0px)); }
.g6c-tg-btn {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%; cursor: pointer; border: 0;
  background: linear-gradient(135deg, #9b5cff, #ff3ea5);
  color: #fff;
  box-shadow: 0 10px 26px -8px rgba(255, 62, 165, .8), 0 0 0 1px rgba(255, 255, 255, .08) inset;
  transition: transform .16s ease, box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.g6c-tg-btn:hover  { transform: translateY(-2px); box-shadow: 0 14px 32px -8px rgba(255, 62, 165, .9); }
.g6c-tg-btn:active { transform: translateY(0); }
.g6c-tg-btn svg { width: 24px; height: 24px; }
.g6c-tg-close { display: none; }
.g6c-tg.is-open .g6c-tg-glyph { display: none; }
.g6c-tg.is-open .g6c-tg-close { display: block; }

.g6c-tg-menu {
  position: absolute; right: 0; bottom: calc(100% + .6rem);
  width: min(290px, calc(100vw - 28px));
  padding: .35rem;
  border-radius: 16px;
  background: var(--g6c-panel-solid);
  border: 1px solid var(--g6c-line);
  box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .9);
  opacity: 0; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease;
}
.g6c-tg.is-open .g6c-tg-menu { opacity: 1; transform: translateY(0); }
.g6c-tg-item {
  display: flex; align-items: center; gap: .6rem;
  padding: .6rem;
  border-radius: 12px;
  color: var(--text-dim);
}
.g6c-tg-item:hover { background: rgba(155, 92, 255, .14); color: var(--text); }
.g6c-tg-item strong { display: block; font-size: .88rem; color: var(--text); font-weight: 600; }
.g6c-tg-item small  { display: block; font-size: .72rem; color: var(--muted); margin-top: .1rem; }
.g6c-tg-item-ico {
  width: 34px; height: 34px; flex: 0 0 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: rgba(255, 62, 165, .14);
  border: 1px solid var(--g6c-line);
  color: #ff8ccd;
}
.g6c-tg-item-ico svg { width: 17px; height: 17px; }

@media (min-width: 901px) {
  .g6c-tg { right: 22px; bottom: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .g6c-tg-menu { transition: none; }
}

/* ==================================================================== *
 * 13. "How it works" — admin-written long-form content
 * ==================================================================== */
.lp-howto-link { margin-top: 1rem; font-size: .9rem; color: var(--text-dim); }
.lp-howto-link a { color: var(--primary-2); text-decoration: underline; text-underline-offset: 3px; }

.howto { max-width: 820px; }
.howto-title { font-size: 1.5rem; font-weight: 800; margin-bottom: .3rem; display: block; }
.g6c-content .howto .howto-title { display: block; }   /* header hides .page-title, not this */
.howto-body { color: var(--text-dim); line-height: 1.65; font-size: .95rem; }
.howto-body h2 {
  font-size: 1.1rem; color: var(--text); margin: 1.8rem 0 .6rem; padding-top: 1.2rem;
  border-top: 1px solid var(--g6c-line-soft);
}
.howto-body h2:first-child { margin-top: .6rem; padding-top: 0; border-top: 0; }
.howto-body h3 { font-size: .98rem; color: var(--text); margin: 1.2rem 0 .4rem; }
.howto-body h4 { font-size: .9rem; color: var(--text); margin: 1rem 0 .3rem; }
.howto-body p  { margin: 0 0 .9rem; }
.howto-body ul, .howto-body ol { margin: 0 0 1rem; padding-left: 1.25rem; }
.howto-body li { margin-bottom: .4rem; }
.howto-body strong, .howto-body b { color: var(--text); font-weight: 700; }
.howto-body a { color: var(--primary-2); text-decoration: underline; text-underline-offset: 3px; }
.howto-body hr { border: 0; border-top: 1px solid var(--g6c-line-soft); margin: 1.6rem 0; }
.howto-body blockquote {
  margin: 1rem 0; padding: .7rem 1rem;
  border-left: 3px solid rgba(255, 62, 165, .55);
  background: rgba(255, 255, 255, .03);
  border-radius: 0 10px 10px 0;
}
.howto-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86em;
  background: rgba(255, 255, 255, .06); padding: .12rem .35rem; border-radius: 5px; color: var(--text);
}
.howto-body table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .88rem; }
.howto-body th, .howto-body td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--g6c-line-soft); }
.howto-body th { color: var(--text); font-weight: 600; }
