/* =============================================================
   CYYBOT — Futuristic dark-green design system
   ============================================================= */

:root {
  /* surfaces */
  --bg: #050807;
  --bg-2: #080d0b;
  --surface: #0b1310;
  --surface-2: #0f1a15;
  --surface-3: #14241d;
  --line: #1a2e25;
  --line-strong: #244438;

  /* brand greens */
  --green-900: #062716;
  --green-800: #0a3d22;
  --green-700: #0d5a32;
  --green-600: #0d8a4a;   /* primary — matches logo */
  --green-500: #14b264;
  --green-400: #2dff9c;   /* neon accent */
  --green-glow: rgba(45, 255, 156, 0.55);
  /* the accent as an "r,g,b" list for rgba(var(--brand-rgb),a), plus tints.
     cyytrader.com overrides all of these (index.php). */
  --brand-rgb: 45,255,156;
  --brand-rgb2: 0,224,138;
  --brand-rgb3: 0,255,130;
  --brand-hi: #7dffc0;
  --brand-light: #5dffb4;
  --brand-deep: #17d97f;

  /* text */
  --text: #e8efe9;
  --text-dim: #8aa098;
  --text-mute: #5c7268;

  /* status */
  --red: #ff5d57;
  --amber: #ffb547;
  --blue: #4ea1ff;

  /* type */
  --font-display: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body:    "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* radii */
  --r-sm: 4px;
  --r: 8px;
  --r-lg: 14px;
  --r-xl: 22px;
}

* { box-sizing: border-box; }
html, body, #root { height: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "ss02";
  overflow-x: hidden;
}

/* subtle global grain + grid */
body::before {
  content: "";
  position: fixed; inset: 0;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(13,138,74,0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(13,138,74,0.12), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--green-400); color: #02110a; }

/* scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 10px; }
::-webkit-scrollbar-track { background: transparent; }

/* ----- type ----- */
.h-display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.92;
}
.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-400);
}

/* ----- buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:visited {
  /* A raised key: lit from above, a darker lip underneath, soft glow below. */
  background: linear-gradient(180deg, var(--brand-light) 0%, var(--green-400) 45%, var(--brand-deep) 100%);
  color: #02110a !important;          /* lock dark text in all interactive states */
  text-shadow: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), inset 0 -2px 0 rgba(0,60,30,0.28),
              0 0 0 1px rgba(var(--brand-rgb),0.45), 0 10px 26px -12px var(--green-glow);
}
.btn-primary:hover { background: linear-gradient(180deg, #7dffc4 0%, #4dffaf 45%, #22e68a 100%); transform: translateY(-1px); }
.btn-primary:active {
  background: linear-gradient(180deg, #25e088 0%, #1eea88 100%);
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0,60,30,0.35), 0 0 0 1px rgba(var(--brand-rgb),0.45);
}
.btn-primary:disabled { opacity: 0.55; transform: none; cursor: default; }
.btn-primary * { color: inherit !important; }   /* any child spans/icons follow suit */
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.01));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.btn-ghost:hover { border-color: var(--green-400); color: var(--green-400); }
.btn-dark {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
}
.btn-dark:hover { border-color: var(--green-400); }
.btn-sm { padding: 8px 14px; font-size: 12px; }
.btn-block { width: 100%; justify-content: center; }

/* ----- cards / chrome ----- */
.card {
  background: linear-gradient(180deg, rgba(20,36,29,0.55), rgba(11,19,16,0.55));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.hud {
  position: relative;
  border: 1px solid var(--line);
  background: var(--surface);
}
.hud::before, .hud::after {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  border: 1px solid var(--green-400);
  opacity: 0.8;
}
.hud::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hud::after  { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.divider { height: 1px; background: var(--line); width: 100%; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-dim);
}
.badge .dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--green-400);
  box-shadow: 0 0 10px var(--green-glow);
}
.badge-live { color: var(--green-400); border-color: rgba(var(--brand-rgb),0.35); }

/* ----- inputs ----- */
.input, .textarea, .select {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 12px 14px;
  color: var(--text);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--green-400);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb),0.12);
}
.textarea { resize: vertical; min-height: 90px; font-family: inherit; }
label.field { display: block; }
label.field .lbl {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}

/* ----- layout primitives ----- */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 32px;
}
.section { padding: 120px 0; position: relative; }
.section-tight { padding: 64px 0; }

.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(var(--brand-rgb),0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--brand-rgb),0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
}

/* page entry */
.fade-in { opacity: 1; }

/* shimmer for neon underline */
@keyframes scan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.scanline {
  position: relative; overflow: hidden;
}
.scanline::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(var(--brand-rgb),0.18), transparent);
  animation: scan 3.2s linear infinite;
  pointer-events: none;
}

/* ----- nav ----- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(5,8,7,0.72);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-link {
  font-size: 13px;
  color: var(--text-dim);
  position: relative;
  padding: 6px 4px;
  transition: color .15s ease;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1px; background: var(--green-400);
  box-shadow: 0 0 8px var(--green-glow);
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-weight: 700; letter-spacing: 0.08em;
  font-size: 18px;
}
.brand img { width: 36px; height: 36px; filter: drop-shadow(0 0 14px rgba(var(--brand-rgb),0.35)); }

/* ----- footer ----- */
.footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 32px;
  color: var(--text-dim);
  font-size: 13px;
  position: relative;
}
.footer-grid {
  display: grid; gap: 32px;
  grid-template-columns: 2fr 1fr 1fr 1fr;
}
.footer h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0 0 14px;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a:hover { color: var(--green-400); }

/* ----- hero ----- */
.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex; align-items: center;
  padding: 80px 0;
  overflow: hidden;
}
.hero-orb {
  position: absolute;
  width: 720px; height: 720px;
  right: -120px; top: 50%; transform: translateY(-50%);
  background: radial-gradient(circle at 50% 50%, rgba(13,138,74,0.35), transparent 60%);
  filter: blur(20px);
  z-index: 0;
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: 64px; align-items: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(56px, 8vw, 124px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  margin: 24px 0 28px;
}
.hero h1 .accent { color: var(--green-400); font-style: italic; font-weight: 500; }
.hero p.lede {
  font-size: 18px; line-height: 1.55; color: var(--text-dim);
  max-width: 520px;
}
.hero-cta { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }

.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line);
}
.hero-stats .stat .v {
  font-family: var(--font-display);
  font-size: 36px; font-weight: 600;
  letter-spacing: -0.03em;
}
.hero-stats .stat .l {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 6px;
}

/* hero visual */
.hero-visual {
  position: relative;
  aspect-ratio: 1/1;
  display: flex; align-items: center; justify-content: center;
}
.hero-visual .rings {
  position: absolute; inset: 0;
}
.hero-visual .rings i {
  position: absolute; inset: 0;
  border: 1px dashed rgba(var(--brand-rgb),0.18);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}
.hero-visual .rings i:nth-child(2) { inset: 8%; animation-duration: 60s; animation-direction: reverse; border-style: solid; border-color: rgba(var(--brand-rgb),0.08); }
.hero-visual .rings i:nth-child(3) { inset: 18%; animation-duration: 90s; }
.hero-visual img {
  position: relative; z-index: 2;
  width: 60%; height: auto;
  filter: drop-shadow(0 0 60px rgba(var(--brand-rgb),0.4));
  animation: float 6s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(-8px); } 50% { transform: translateY(8px); } }

/* ----- product cards / pricing ----- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.price-card {
  position: relative;
  padding: 32px 28px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-lg);
  display: flex; flex-direction: column; gap: 18px;
  transition: border-color .2s ease, transform .2s ease;
}
.price-card:hover { border-color: var(--green-400); transform: translateY(-2px); }
.price-card.featured {
  border-color: var(--green-400);
  background: linear-gradient(180deg, rgba(var(--brand-rgb),0.06), rgba(11,19,16,0.6));
}
.price-card .tag {
  position: absolute; top: -10px; left: 24px;
  background: var(--green-400); color: #02110a;
  padding: 4px 10px; font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  border-radius: 4px;
}
.price-card h3 {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600; margin: 0;
}
.price-card .price {
  font-family: var(--font-display);
  font-size: 56px; font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}
.price-card .price small {
  font-size: 14px; color: var(--text-dim); margin-left: 6px;
  font-weight: 400;
}
.price-card ul {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 10px;
  font-size: 14px; color: var(--text-dim);
}
.price-card ul li {
  display: flex; gap: 10px; align-items: flex-start;
}
.price-card ul li::before {
  content: "+"; color: var(--green-400);
  font-family: var(--font-mono); font-weight: 600;
}

/* feature/product list */
.products-list { display: grid; gap: 16px; }
.product-row {
  display: grid; grid-template-columns: 80px 1fr auto;
  align-items: center; gap: 28px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-lg);
  transition: border-color .2s ease;
}
.product-row:hover { border-color: var(--green-400); }
.product-thumb {
  width: 64px; height: 64px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 22px;
  color: var(--green-400);
  border: 1px solid var(--line-strong);
}
.product-row h4 { margin: 0 0 4px; font-size: 18px; font-weight: 600; }
.product-row .meta { font-size: 13px; color: var(--text-dim); }
.product-row .price-inline {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 600;
  letter-spacing: -0.02em;
}

/* ----- posts ----- */
.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .2s ease, transform .2s ease;
  cursor: pointer;
}
.post-card:hover { border-color: var(--green-400); transform: translateY(-2px); }
.post-card .cover {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--green-800), var(--bg-2));
  position: relative;
  overflow: hidden;
}
.post-card .cover::after {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent 0 12px, rgba(var(--brand-rgb),0.04) 12px 13px);
}
.post-card .cover .cat {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--green-400);
  background: rgba(5,8,7,0.7); border: 1px solid var(--line-strong);
  padding: 4px 8px; border-radius: 999px;
}
.post-card .body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-card h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.post-card .excerpt { font-size: 14px; color: var(--text-dim); line-height: 1.55; }
.post-card .meta-row {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em;
  color: var(--text-mute); text-transform: uppercase;
  margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line);
}

/* post detail */
.post-detail {
  max-width: 780px; margin: 0 auto;
}
.post-detail h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 600; letter-spacing: -0.035em; line-height: 1;
  margin: 24px 0;
}
.post-detail .body p {
  font-size: 17px; line-height: 1.7; color: var(--text);
  margin: 0 0 22px;
}
.post-detail .body p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 56px; float: left; line-height: 0.9; margin: 6px 12px 0 -2px;
  color: var(--green-400);
}
.post-cover {
  aspect-ratio: 21/9;
  background: linear-gradient(135deg, var(--green-800), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  position: relative; overflow: hidden;
}
.post-cover::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 14px, rgba(var(--brand-rgb),0.05) 14px 15px);
}

/* comments */
.comments { display: grid; gap: 18px; }
.comment {
  display: grid; grid-template-columns: 40px 1fr; gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.comment:first-child { border-top: 0; }
.avatar {
  width: 40px; height: 40px; border-radius: 999px;
  background: linear-gradient(135deg, var(--green-700), var(--green-900));
  color: var(--green-400);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  border: 1px solid var(--line-strong);
}
.comment .head {
  display: flex; gap: 10px; align-items: baseline;
  font-size: 13px;
}
.comment .head .name { font-weight: 600; }
.comment .head .when { color: var(--text-mute); font-family: var(--font-mono); font-size: 11px; }
.comment .body { font-size: 14px; color: var(--text-dim); line-height: 1.6; margin-top: 4px; }

/* ----- chat ----- */
.chat-shell {
  display: grid; grid-template-columns: 280px 1fr 280px;
  height: calc(100vh - 64px);
  overflow: hidden;
  border-top: 1px solid var(--line);
}
.chat-side {
  border-right: 1px solid var(--line);
  background: var(--bg-2);
  display: flex; flex-direction: column;
  min-height: 0; overflow-y: auto;
}
.chat-side.right { border-right: 0; border-left: 1px solid var(--line); }
.chat-side h4 {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-dim);
  padding: 18px 20px 10px; margin: 0;
}
.channel {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text-dim);
  cursor: pointer;
  border-left: 2px solid transparent;
}
.channel:hover { color: var(--text); }
.channel.active { color: var(--green-400); border-left-color: var(--green-400); background: rgba(var(--brand-rgb),0.05); }
.channel .hash { font-family: var(--font-mono); color: var(--text-mute); }

.chat-main {
  display: flex; flex-direction: column; min-width: 0;
  min-height: 0; height: 100%;
}
.chat-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 24px; border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.chat-stream {
  flex: 1; min-height: 0; overflow-y: auto;
  padding: 24px 28px;
  display: flex; flex-direction: column; gap: 18px;
}
.msg { display: grid; grid-template-columns: 36px 1fr; gap: 12px; }
.msg .avatar { width: 36px; height: 36px; }
.msg .head { display: flex; gap: 10px; align-items: baseline; font-size: 13px; }
.msg .head .name { font-weight: 600; }
.msg .head .when { color: var(--text-mute); font-family: var(--font-mono); font-size: 11px; }
.msg .body { color: var(--text); font-size: 14.5px; line-height: 1.55; margin-top: 4px; }
.msg.self .body { color: var(--green-400); }

.chat-input {
  border-top: 1px solid var(--line);
  padding: 14px 20px;
  display: flex; gap: 10px; align-items: center;
  flex-shrink: 0;
}
.chat-input .input { background: var(--surface); }

.member {
  display: flex; gap: 10px; align-items: center;
  padding: 8px 20px; font-size: 13px; color: var(--text-dim);
}
.member .avatar { width: 28px; height: 28px; font-size: 11px; }
.member .status { width: 8px; height: 8px; border-radius: 999px; background: var(--green-400); margin-left: auto; }
.member .status.off { background: var(--text-mute); }

/* ----- dashboard ----- */
.dash {
  display: grid; grid-template-columns: 248px 1fr;
  height: calc(100vh - 64px);
  overflow: hidden;
  transition: grid-template-columns .22s cubic-bezier(.22,1,.36,1);
}
.dash.dash-collapsed { grid-template-columns: 72px 1fr; }
.dash-side {
  border-right: 1px solid var(--line);
  background: var(--bg-2);
  padding: 18px 0 24px;
  display: flex; flex-direction: column;
  min-width: 0; min-height: 0;
  overflow-x: hidden; overflow-y: auto;
}
.dash-side-head {
  display: flex; align-items: center; gap: 12px;
  padding: 0 18px 16px;
  position: relative;
}
.dash-side-id { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dash-collapse-btn {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  color: var(--text-dim);
  width: 28px; height: 28px; border-radius: 8px;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: color .15s, background .15s, transform .15s;
  flex-shrink: 0;
}
.dash-collapse-btn:hover { color: var(--green-400); border-color: rgba(var(--brand-rgb),0.35); }
.dash-side .group {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-mute);
  padding: 14px 24px 6px;
  white-space: nowrap; overflow: hidden;
}
/* Collapsible group header (click to fold the section, less scrolling). */
.dash-side .group-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; background: transparent; border: 0; cursor: pointer;
  text-align: left; transition: color .15s ease;
}
.dash-side .group-toggle:hover { color: var(--text-dim); }
.dash-side .group-caret {
  font-size: 10px; transition: transform .18s ease; opacity: 0.7;
}
.dash-navgroup.is-collapsed .group-caret { transform: rotate(-90deg); }
.dash-link {
  display: flex; gap: 12px; align-items: center;
  width: 100%;
  padding: 10px 24px;
  font-size: 14px; color: var(--text-dim);
  background: transparent; border: 0;
  cursor: pointer;
  border-left: 2px solid transparent;
  text-align: left;
  transition: color .12s, background .12s;
}
.dash-link:hover { color: var(--text); background: rgba(255,255,255,0.02); }
.dash-link.active { color: var(--green-400); border-left-color: var(--green-400); background: rgba(var(--brand-rgb),0.06); }
.dash-link.active .dash-ic { filter: drop-shadow(0 0 6px rgba(var(--brand-rgb),0.45)); }
.dash-link-lb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-link-admin { color: var(--green-400); }
.dash-side-bell { padding: 12px 14px 4px; }
.dash-side-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }

/* Collapsed sidebar: hide all labels, center icons. */
.dash-collapsed .dash-side-id,
.dash-collapsed .dash-link-lb,
.dash-collapsed .dash-side .group,
.dash-collapsed .dash-side-bell { display: none; }
.dash-collapsed .dash-side-head { justify-content: center; padding: 0 10px 16px; }
.dash-collapsed .dash-link { justify-content: center; padding: 12px 0; gap: 0; }
.dash-collapsed .dash-side-foot { padding-left: 0; padding-right: 0; }

.dash-main { padding: 36px 44px; min-width: 0; min-height: 0; overflow-y: auto; }
/* When a tab renders its own full-height layout (e.g. Live Chat's
   .chat-shell), let it fill the content area instead of adding a second
   scrollbar on top of the page. */
.dash-main > .fade-in { height: 100%; }
.dash-main:has(> .fade-in > .chat-shell) { padding: 0; overflow: hidden; }
.dash-main > .fade-in > .chat-shell { height: 100%; }
.dash-main h2 { font-family: var(--font-display); font-size: 32px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 6px; }
.dash-main .sub { color: var(--text-dim); margin-bottom: 28px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-tile {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.stat-tile .label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); }
.stat-tile .val { font-family: var(--font-display); font-size: 32px; font-weight: 600; letter-spacing: -0.02em; margin-top: 8px; }
.stat-tile .delta { font-family: var(--font-mono); font-size: 11px; color: var(--green-400); margin-top: 4px; }
.stat-tile .delta.neg { color: var(--red); }

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.table th, .table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.table th {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 500;
}
.table td .pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid var(--line-strong);
}
.pill.ok { color: var(--green-400); border-color: rgba(var(--brand-rgb),0.4); }
.pill.warn { color: var(--amber); border-color: rgba(255,181,71,0.4); }
.pill.off { color: var(--text-mute); }

/* checkout */
.checkout {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px;
  max-width: 1080px; margin: 0 auto; padding: 56px 0;
}
.method-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  cursor: pointer;
  transition: border-color .15s ease;
}
.method-row:hover { border-color: var(--green-400); }
.method-row.selected { border-color: var(--green-400); background: rgba(var(--brand-rgb),0.05); }
.method-row .radio {
  width: 16px; height: 16px; border-radius: 999px;
  border: 1px solid var(--line-strong);
  position: relative; flex-shrink: 0;
}
.method-row.selected .radio { border-color: var(--green-400); }
.method-row.selected .radio::after {
  content: ""; position: absolute; inset: 3px;
  border-radius: 999px; background: var(--green-400);
}
.method-row .label { flex: 1; font-weight: 500; }
.method-row .desc { font-size: 12.5px; color: var(--text-dim); }
.method-logo {
  width: 44px; height: 28px; border-radius: 4px;
  background: linear-gradient(135deg, #f97316, #fbbf24);
  color: #1a0a00; font-family: var(--font-mono); font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 0.04em;
}

.summary-card {
  position: sticky; top: 88px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.summary-line { display: flex; justify-content: space-between; padding: 10px 0; color: var(--text-dim); font-size: 14px; }
.summary-total {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line);
}
.summary-total .v { font-family: var(--font-display); font-size: 36px; font-weight: 600; letter-spacing: -0.02em; }

/* ---- checkout: two numbered steps on the left, the order on the right ---- */
.co-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 22px; }
.co-title { font-size: clamp(30px, 3.6vw, 44px); margin: 0; letter-spacing: -0.035em; line-height: 1.05; }
.co-steps { display: flex; gap: 8px; flex-wrap: wrap; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.co-steps span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--text-mute);
}
.co-steps span.on { color: var(--text); border-color: var(--line-strong); }
.co-steps i, .co-h i {
  font-style: normal; font-family: var(--font-mono); font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
}
.co-steps i { width: 20px; height: 20px; font-size: 10.5px; background: var(--surface-2); color: var(--text-dim); }
.co-steps span.on i { background: var(--green-400); color: #02110a; }
.checkout.co { gap: 28px; padding: 28px 0 80px; grid-template-columns: 1.25fr 1fr; align-items: start; }
.co-card {
  padding: 26px;
  border-radius: 20px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 18px 40px -30px rgba(0,0,0,0.9);
}
.co-h { display: flex; align-items: center; gap: 10px; font-size: 19px; margin: 0 0 18px; }
.co-h i { width: 24px; height: 24px; font-size: 12px; background: rgba(var(--brand-rgb),0.12); color: var(--green-400); border: 1px solid rgba(var(--brand-rgb),0.35); }
.co .input, .co .select { border-radius: 12px; padding: 13px 14px; }
.co .method-row {
  border-radius: 14px; padding: 14px 16px;
  background: rgba(255,255,255,0.015);
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.co .method-row:hover { transform: translateY(-1px); }
.co .method-row.selected {
  background: rgba(var(--brand-rgb),0.07);
  box-shadow: 0 0 0 1px rgba(var(--brand-rgb),0.25), 0 10px 26px -18px var(--green-glow);
}
.method-ic {
  flex: 0 0 auto;
  width: 38px; height: 38px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-2); border: 1px solid var(--line);
  color: var(--text-dim);
}
.method-row.selected .method-ic { color: var(--green-400); border-color: rgba(var(--brand-rgb),0.4); }
.co .summary-card {
  padding: 26px; border-radius: 20px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border-color: var(--line-strong);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 24px 60px -34px rgba(0,0,0,0.95);
}
.co-item { display: flex; align-items: center; gap: 14px; margin: 14px 0 18px; }
.co-logo {
  flex: 0 0 auto; width: 52px; height: 52px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-2); border: 1px solid var(--line-strong);
  font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--green-400);
  overflow: hidden;
}
.co-logo.has-logo, .pd-logo.has-logo, .pd-logo-big.has-logo { background: none; border: 0; }
.co-logo img, .pd-logo img, .pd-logo-big img { width: 100%; height: 100%; object-fit: contain; display: block; }
.co-pack {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255,255,255,0.015);
  font-size: 13.5px; text-align: left; color: var(--text-dim);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.co-pack:hover { border-color: var(--green-400); color: var(--text); }
.co-pack.selected { border-color: var(--green-400); background: rgba(var(--brand-rgb),0.08); color: var(--text); cursor: default; }
.co-pack-name { flex: 1; min-width: 0; font-weight: 500; }
.co-pack-dot { flex: 0 0 auto; width: 14px; height: 14px; border-radius: 999px; border: 1px solid var(--line-strong); position: relative; }
.co-pack.selected .co-pack-dot { border-color: var(--green-400); }
.co-pack.selected .co-pack-dot::after { content: ""; position: absolute; inset: 3px; border-radius: 999px; background: var(--green-400); }
.co .summary-total .v { font-size: 40px; color: var(--green-400); }
.co-pay { padding: 16px 22px; border-radius: 14px; font-size: 15px; font-weight: 700; }
@media (max-width: 900px) {
  .checkout.co { grid-template-columns: 1fr; }
  .co .summary-card { position: static; }
}

/* ---- product page ---- */
.pd-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; margin-top: 28px; }
.pd-id { display: flex; align-items: center; gap: 16px; }
.pd-logo {
  flex: 0 0 auto; width: 68px; height: 68px; border-radius: 17px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-2); border: 1px solid var(--c, var(--line-strong));
  color: var(--c, var(--green-400));
  font-family: var(--font-display); font-weight: 700; font-size: 19px;
  overflow: hidden;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,0.5));
}
.pd-from { margin-top: 8px; font-size: 13.5px; color: var(--text-dim); }
.pd-from strong { color: var(--text); font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-left: 2px; }
.pd-title { font-size: clamp(38px, 5.2vw, 68px); margin: 22px 0 10px; letter-spacing: -0.04em; line-height: 1.02; }
.pd-tagline { color: var(--c, var(--green-400)); font-size: 19px; font-weight: 500; margin: 0 0 14px; }
.pd-short { color: var(--text-dim); font-size: 16.5px; line-height: 1.65; max-width: 540px; margin: 0; }
.pd-logo-panel {
  aspect-ratio: 1.25 / 1; border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 45%, rgba(var(--brand-rgb),0.14), transparent 62%), var(--surface);
}
.pd-logo-big {
  width: 44%; aspect-ratio: 1 / 1; border-radius: 22%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 56px; color: var(--green-400);
  overflow: hidden;
  filter: drop-shadow(0 24px 50px rgba(0,0,0,0.6));
}
.feature-list.pd-features { grid-template-columns: 1fr 1fr; gap: 12px; }
.pd-features .feature-item {
  grid-template-columns: 40px 1fr; gap: 14px; align-items: start;
  padding: 16px 18px; border-radius: 14px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: border-color .15s ease, transform .15s ease;
}
.pd-features .feature-item:hover { border-color: var(--c, var(--green-400)); transform: translateY(-2px); }
.pd-features .feature-num {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  color: var(--c, var(--green-400));
  background: var(--bg-2); border: 1px solid var(--line);
}
.pd-features .feature-text { font-size: 15px; line-height: 1.5; padding-top: 2px; }
.pd-cta {
  padding: 48px 32px; text-align: center; border-radius: 24px;
  border: 1px solid var(--line-strong);
  background: radial-gradient(ellipse at 50% 0%, rgba(var(--brand-rgb),0.12), transparent 60%), var(--surface);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.pd-cta .pd-logo { margin: 0 auto; }
@media (max-width: 760px) {
  .pd-hero { gap: 32px; }
  .feature-list.pd-features { grid-template-columns: 1fr; }
  .pd-logo-panel { display: none; }
}

/* ---- reading pages (About, Services): calmer type, tighter rhythm, raised
   panels. Scoped to .pg so no other page changes. ---- */
.pg .section { padding: 64px 0; }
.pg .section-tight { padding: 44px 0; }
.pg-hero { position: relative; padding: 64px 0 56px; overflow: hidden; }
.pg-hero > .container { position: relative; z-index: 1; }
.pg-hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.pg-title {
  font-size: clamp(36px, 4.8vw, 64px);
  line-height: 1.04; letter-spacing: -0.04em;
  margin: 18px 0 18px; max-width: 760px;
}
.pg-title .accent { color: var(--green-400); font-style: italic; font-weight: 500; }
.pg-lede, .pg-lede p { color: var(--text-dim); font-size: 17px !important; line-height: 1.7; max-width: 640px !important; margin: 0 0 12px; }
.pg-h2 { font-size: clamp(28px, 3.4vw, 42px); letter-spacing: -0.035em; line-height: 1.05; margin: 10px 0 26px; }
.pg .card {
  border-radius: 20px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 18px 40px -30px rgba(0,0,0,0.9);
}
.pg .hero-orbit { max-width: 360px; margin: 0 auto; }

.pg .about-stats { border: 0; padding: 0; gap: 14px; }
.pg .about-stat {
  text-align: left; padding: 22px 24px; border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.about-stat-v { font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--green-400); }
.about-stat-l { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); margin-top: 10px; }
.pg .about-grid { margin-bottom: 0; }
.pg .about-grid .card { transition: border-color .15s ease, transform .15s ease; }
.pg .about-grid .card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.pg .about-grid .card h3 { font-size: 22px !important; line-height: 1.2; }
.about-ic {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  color: var(--green-400);
  background: rgba(var(--brand-rgb),0.08); border: 1px solid rgba(var(--brand-rgb),0.3);
}
.about-ic svg { width: 22px; height: 22px; }
.about-contact { padding: 32px; }
.about-contact h3 { font-size: 26px !important; }
.pg .faq-item { border-radius: 14px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.pg .faq-item.open { border-color: rgba(var(--brand-rgb),0.4); }

.pg .service-card { min-height: 0; padding: 30px 24px 26px; }
.pg .cta-card { padding: 26px; }
.svc-row {
  display: flex; flex-wrap: wrap; gap: 28px; align-items: center;
  padding: 18px; margin-bottom: 18px;
  border: 1px solid var(--line); border-radius: 22px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 18px 40px -30px rgba(0,0,0,0.9);
  transition: border-color .15s ease;
}
.svc-row:hover { border-color: var(--c, var(--line-strong)); }
.svc-media {
  flex: 1 1 340px; min-height: 260px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.svc-body { flex: 1 1 340px; padding: 10px 14px; }
@media (max-width: 1100px) {
  .pg-hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .pg-hero-grid .hero-visual-stack { display: none; }
}
@media (max-width: 760px) {
  .pg .section { padding: 44px 0; }
  .pg-hero { padding: 36px 0 32px; }
  .pg .about-stats { grid-template-columns: 1fr 1fr; }
  .svc-row { padding: 12px; }
}

/* ---- products catalogue + pricing page ---- */
.seg {
  display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg-2);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}
.seg-btn {
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 500; color: var(--text-dim);
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
}
.seg-btn:hover { color: var(--text); }
.seg-btn.on {
  color: #02110a; font-weight: 600;
  background: linear-gradient(180deg, var(--brand-light), var(--green-400) 50%, var(--brand-deep));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 6px 16px -8px var(--green-glow);
}
.pg-products .product-tile {
  padding: 24px; border-radius: 20px; min-height: 0; gap: 10px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 18px 40px -30px rgba(0,0,0,0.9);
}
.pg-products .product-tile:hover { transform: translateY(-4px); }
.pg-products .product-tile-head { margin-bottom: 6px; }
.pg-products .product-tile-glyph { width: 56px; height: 56px; border-radius: 14px; }
.pg-products .product-tile-name { font-size: 22px; line-height: 1.15; margin: 2px 0 0; }
.pg-products .product-tile-tagline { font-style: normal; font-weight: 500; font-size: 14px; }
.pg-products .product-tile-short {
  font-size: 13.5px; line-height: 1.55;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
}
.pg-products .product-tile-foot { padding-top: 16px; margin-top: auto; }
.pg-products .product-tile-price { font-size: 26px; }
.pg-products .product-tile-cta {
  padding: 9px 16px; border-radius: 999px;
  font-family: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
  color: var(--text);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.pg-products .product-tile:hover .product-tile-cta {
  color: #02110a; border-color: transparent;
  background: linear-gradient(180deg, var(--brand-light), var(--green-400) 50%, var(--brand-deep));
}

.pr-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 28px; max-width: 980px; }
.pr-tab {
  display: flex; align-items: center; gap: 12px; min-width: 0;
  padding: 12px 14px; border-radius: 16px; text-align: left;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.pr-tab:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.pr-tab.on {
  border-color: var(--c, var(--green-400));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 0 0 1px var(--c, var(--green-400)), 0 16px 34px -22px var(--c, var(--green-glow));
}
.pr-tab-logo {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--line-strong);
  font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--c, var(--green-400));
}
.pr-tab-logo.has-logo { background: none; border: 0; }
.pr-tab-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pr-tab-text { display: flex; flex-direction: column; min-width: 0; }
.pr-tab-name { font-family: var(--font-display); font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-tab-from { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.pg-split { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 28px 30px; }
.pg-faq { display: grid; gap: 10px; }
.pg-faq details {
  border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  transition: border-color .15s ease;
}
.pg-faq details[open] { border-color: rgba(var(--brand-rgb),0.4); }
.pg-faq summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 16.5px; font-weight: 500;
}
.pg-faq summary::-webkit-details-marker { display: none; }
.pg-faq-plus { color: var(--green-400); transition: transform .15s ease; }
.pg-faq details[open] .pg-faq-plus { transform: rotate(45deg); }
.pg-faq p { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--text-dim); font-size: 14.5px; line-height: 1.65; }
@media (max-width: 900px) {
  .pr-tabs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .pg-split { grid-template-columns: 1fr; }
  .pg-products .products-showcase { grid-template-columns: 1fr; }
}

/* ---- trading page + download gate ---- */
.pg-trading .pd-id { gap: 14px; }
.pg-trading .pd-logo { width: 56px; height: 56px; border-radius: 14px; }
.tr-tagline { color: var(--green-400); font-size: 19px; font-weight: 500; font-style: italic; margin: 0 0 14px; }
.tr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tr-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.02);
  font-size: 12.5px; color: var(--text-dim);
}
.pg-trading .section { padding-bottom: 56px; }
.dl-lock {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center;
  padding: 36px; border-radius: 24px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 24px 60px -34px rgba(0,0,0,0.95);
}
.dl-lock-ic {
  width: 60px; height: 60px; border-radius: 16px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  color: var(--green-400);
  background: rgba(var(--brand-rgb),0.08); border: 1px solid rgba(var(--brand-rgb),0.3);
}
.dl-lock-ic svg { width: 28px; height: 28px; }
.dl-list { display: grid; gap: 8px; }
.dl-list .launch-item { background: var(--bg-2); }
@media (max-width: 900px) {
  .dl-lock { grid-template-columns: 1fr; padding: 22px; gap: 28px; }
}

/* ---- contact + pay-with-crypto pages ---- */
.ct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.ct-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 26px; max-width: 620px; }
.ct-tile {
  display: flex; align-items: center; gap: 12px; min-width: 0;
  padding: 14px; border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: border-color .15s ease, transform .15s ease;
}
a.ct-tile:hover { border-color: var(--green-400); transform: translateY(-2px); }
.ct-ic {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  color: var(--green-400);
  background: rgba(var(--brand-rgb),0.08); border: 1px solid rgba(var(--brand-rgb),0.3);
}
.ct-ic svg { width: 20px; height: 20px; }
.ct-text { display: flex; flex-direction: column; min-width: 0; }
.ct-label { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-mute); }
.ct-value { font-size: 14.5px; font-weight: 500; margin-top: 3px; overflow-wrap: anywhere; }
.ct-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.pg-contact .input, .pg-contact .textarea { border-radius: 12px; padding: 13px 14px; }
.ct-note { padding: 10px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.5; margin-bottom: 14px; }
.ct-note.ok { background: rgba(var(--brand-rgb),0.1); border: 1px solid rgba(var(--brand-rgb),0.4); color: var(--green-400); }
.ct-note.err { background: rgba(255,93,87,0.1); border: 1px solid #ff5d57; color: #ff5d57; }

.cx-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 32px; align-items: start; }
.cx-wallet {
  padding: 18px; border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 18px 40px -30px rgba(0,0,0,0.9);
}
.cx-wallet-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cx-wallet .method-ic { color: var(--green-400); border-color: rgba(var(--brand-rgb),0.4); }
.cx-wallet .wallet-label { letter-spacing: 0; font-size: 17px; }
.cx-net { font-size: 10.5px; color: var(--text-mute); letter-spacing: 0.15em; margin-top: 3px; }
.cx-addr {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 14px; border-radius: 12px;
  background: var(--bg-2); border: 1px solid var(--line);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}
.cx-addr .wallet-addr { flex: 1; min-width: 0; font-size: 13.5px; color: var(--text); }
.cx-steps { padding: 26px; position: sticky; top: 88px; }
.cx-steps ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.cx-steps li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-dim); font-size: 14.5px; line-height: 1.55; }
.cx-steps li i {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-style: normal; font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  color: var(--green-400); background: rgba(var(--brand-rgb),0.12); border: 1px solid rgba(var(--brand-rgb),0.35);
}
.cx-steps li strong { color: var(--text); overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .cx-grid { grid-template-columns: 1fr; }
  .cx-steps { position: static; }
  .ct-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .ct-tiles, .ct-two { grid-template-columns: 1fr; }
  .cx-addr { flex-direction: column; align-items: stretch; }
}

/* ---- tutorials: an episode library with progress ---- */
@keyframes tvRise { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes tvPulse { 0% { box-shadow: 0 0 0 0 rgba(var(--brand-rgb),0.45); } 70% { box-shadow: 0 0 0 16px rgba(var(--brand-rgb),0); } 100% { box-shadow: 0 0 0 0 rgba(var(--brand-rgb),0); } }
@keyframes tvFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.tv-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 170px)) minmax(0, 250px); gap: 12px; margin-top: 28px; }
.tv-stat {
  padding: 16px 18px; border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  animation: tvRise .5s cubic-bezier(.2,.8,.2,1) backwards;
}
.tv-stat:nth-child(2) { animation-delay: .06s; } .tv-stat:nth-child(3) { animation-delay: .12s; } .tv-stat:nth-child(4) { animation-delay: .18s; }
.tv-stat-v { font-family: var(--font-display); font-size: 30px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; color: var(--green-400); font-variant-numeric: tabular-nums; }
.tv-stat-l { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-dim); margin-top: 8px; }
.tv-stat-you { display: flex; align-items: center; gap: 14px; border-color: rgba(var(--brand-rgb),0.35); }
.tv-ring {
  --p: 0;
  flex: 0 0 auto; width: 54px; height: 54px; border-radius: 999px;
  background: conic-gradient(var(--green-400) calc(var(--p) * 1%), var(--line-strong) 0);
  display: flex; align-items: center; justify-content: center;
}
.tv-ring span {
  width: 42px; height: 42px; border-radius: 999px; background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
}
.tv-bar { height: 6px; border-radius: 999px; background: var(--line-strong); overflow: hidden; width: 100%; }
.tv-bar i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-deep), var(--green-400));
  transform-origin: left; animation: tvFill .9s cubic-bezier(.2,.8,.2,1) both;
  transition: width .5s ease;
}

.tv-next {
  display: grid; grid-template-columns: 1.15fr 1fr; width: 100%; text-align: left;
  border-radius: 24px; overflow: hidden; cursor: pointer;
  border: 1px solid rgba(var(--brand-rgb),0.35);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 30px 70px -40px var(--green-glow);
  animation: tvRise .55s cubic-bezier(.2,.8,.2,1) .1s backwards;
  transition: transform .2s ease, border-color .2s ease;
}
.tv-next:hover { transform: translateY(-3px); border-color: var(--green-400); }
.tv-next-thumb { position: relative; min-height: 300px; overflow: hidden; background: var(--bg-2); }
.tv-next-thumb img, .tv-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.tv-next:hover .tv-next-thumb img, .tv-card:hover .tv-thumb img { transform: scale(1.06); }
.tv-next-body { padding: 30px 32px; display: flex; flex-direction: column; gap: 12px; justify-content: center; min-width: 0; }
.tv-next-body h2 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.03em; line-height: 1.08; margin: 0; }
.tv-next-body p { color: var(--text-dim); font-size: 14.5px; line-height: 1.6; margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.tv-next-meta { display: flex; flex-wrap: wrap; gap: 8px; font-size: 11px; letter-spacing: 0.06em; color: var(--text-dim); }
.tv-next-meta span { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.tv-next-btn { align-self: flex-start; margin-top: 6px; }

.tv-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7) 0%, rgba(0,0,0,.1) 60%, transparent 100%); }
.tv-play {
  position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px;
  border-radius: 999px; display: flex; align-items: center; justify-content: center;
  color: var(--green-400);
  background: rgba(4,18,12,0.72); border: 1.5px solid var(--green-400);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), background .2s ease, color .2s ease;
}
.tv-play.big { width: 76px; height: 76px; margin: -38px 0 0 -38px; animation: tvPulse 2.2s ease-out infinite; }
.tv-play.big svg { width: 28px; height: 28px; }
.tv-card:hover .tv-play, .tv-next:hover .tv-play { transform: scale(1.14); background: var(--green-400); color: #02110a; }
.tv-card.locked .tv-play { color: #ffb547; border-color: #ffb547; }
.tv-card.locked:hover .tv-play { background: #ffb547; color: #1a0f00; }

.tv-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding-bottom: 26px; }
.tv-search { position: relative; flex: 1 1 260px; max-width: 420px; color: var(--text-mute); }
.tv-search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.tv-search input {
  width: 100%; box-sizing: border-box;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px;
  padding: 11px 16px 11px 40px; color: var(--text); font-size: 14px; outline: none;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.tv-search input:focus { border-color: var(--green-400); box-shadow: 0 0 0 3px rgba(var(--brand-rgb),0.12); }

.tv-group + .tv-group { margin-top: 48px; }
.tv-group-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.tv-group-head h2 { font-size: clamp(24px, 2.8vw, 34px); letter-spacing: -0.03em; margin: 0; }
.tv-group-sub { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin-top: 6px; }
.tv-card {
  display: flex; flex-direction: column; text-align: left; overflow: hidden; cursor: pointer;
  border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  animation: tvRise .5s cubic-bezier(.2,.8,.2,1) backwards;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), border-color .2s ease, box-shadow .2s ease;
}
.tv-card:hover { transform: translateY(-5px); border-color: var(--green-400); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 22px 44px -26px var(--green-glow); }
.tv-card.locked:hover { border-color: #ffb547; box-shadow: 0 22px 44px -28px rgba(255,181,71,0.5); }
.tv-thumb { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; flex-shrink: 0; }
.tv-ep {
  position: absolute; left: 10px; top: 10px;
  padding: 3px 8px; border-radius: 7px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  color: #e8efe9; background: rgba(0,0,0,0.7); border: 1px solid rgba(255,255,255,0.14);
}
.tv-flags { position: absolute; right: 10px; top: 10px; display: flex; gap: 6px; }
.tv-flag { padding: 3px 9px; border-radius: 999px; font-family: var(--font-mono); font-size: 10px; font-weight: 600; letter-spacing: 0.08em; }
.tv-flag.new { background: var(--green-400); color: #02110a; }
.tv-flag.seen { background: rgba(4,18,12,0.85); color: var(--green-400); border: 1px solid rgba(var(--brand-rgb),0.5); }
.tv-flag.lock { background: rgba(26,15,0,0.85); color: #ffb547; border: 1px solid rgba(255,181,71,0.5); }
.tv-dur { position: absolute; right: 10px; bottom: 10px; padding: 2px 7px; border-radius: 5px; font-size: 11px; color: #fff; background: rgba(0,0,0,0.75); }
.tv-card.seen .tv-thumb img { filter: saturate(0.75) brightness(0.85); }
.tv-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.tv-body h3 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; }
.tv-card.locked .tv-body h3 { color: var(--text-dim); }
.tv-body p { margin: 0; font-size: 12.5px; line-height: 1.55; color: var(--text-mute); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.tv-meta { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 8px; font-size: 11px; color: var(--text-mute); }
.tv-go { color: var(--green-400); transition: transform .2s ease; }
.tv-card:hover .tv-go { transform: translateX(3px); }
.tv-card.locked .tv-go { color: #ffb547; }
.tv-empty { text-align: center; padding: 70px 0; color: var(--text-mute); }
.tv-empty svg { opacity: .3; margin-bottom: 14px; }

/* ---- shop ---- */
.shop-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 24px; }
.shop-cart { display: inline-flex; align-items: center; gap: 8px; border-color: rgba(var(--brand-rgb),0.45); color: var(--green-400); }
.pg-shop .merch-card {
  border-radius: 20px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 18px 40px -30px rgba(0,0,0,0.9);
}
.pg-shop .merch-card:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 22px 44px -26px var(--green-glow); }
.pg-shop .merch-thumb[style*="url"] { background-color: #050807; }
.pg-shop .merch-thumb[style*="url"]::after { display: none; }
.pg-shop .merch-body { padding: 16px 18px 18px; }
.pg-shop .merch-price { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.pg-shop .merch-price.soon { font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--text-mute); }
.pg-shop .merch-go {
  font-size: 11px; letter-spacing: 0.12em; color: var(--green-400);
  padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(var(--brand-rgb),0.35); background: rgba(var(--brand-rgb),0.07);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .2s ease;
}
.pg-shop .merch-card:hover .merch-go { transform: translateX(3px) scale(1.06); background: rgba(var(--brand-rgb),0.16); }
.merch-modal { animation: popIn .4s cubic-bezier(.34,1.56,.64,1) backwards; }
.merch-modal .merch-modal-grid { grid-template-columns: 1.15fr 1fr !important; align-items: start; }
.merch-shot { display: block; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #050807; }
.merch-shot img { display: block; width: 100%; height: auto; transition: transform .5s cubic-bezier(.2,.9,.25,1); }
.merch-shot:hover img { transform: scale(1.04); }
/* cut-out pictures (no background) float on a soft glow */
.pg-shop .merch-thumb.cut {
  padding: 18px; background-origin: content-box; background-clip: content-box;
  background-color: transparent;
  box-shadow: inset 0 0 0 999px rgba(5,8,7,0.0);
}
.pg-shop .merch-card .merch-thumb.cut { background-color: transparent; }
.pg-shop .merch-card:has(.merch-thumb.cut) {
  background: radial-gradient(120% 70% at 50% 30%, rgba(var(--brand-rgb),0.16), transparent 62%), linear-gradient(180deg, var(--surface-2), var(--surface));
}
.pg-shop .merch-card.fx-zoom:hover .merch-thumb.cut { transform: scale(1.08) rotate(-1.5deg); }
.merch-shot.cut { padding: 22px; background: radial-gradient(110% 80% at 50% 40%, rgba(var(--brand-rgb),0.18), transparent 65%), #050807; }
.merch-shot img { animation: popIn .35s cubic-bezier(.34,1.56,.64,1) backwards; }
.merch-shots { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.merch-shot-pick {
  width: 68px; height: 52px; border-radius: 12px; cursor: pointer; padding: 0;
  border: 1px solid var(--line); background-color: #050807; background-size: cover; background-position: center;
  opacity: .65; transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .2s ease, border-color .2s ease;
}
.merch-shot-pick:hover { opacity: 1; transform: translateY(-3px); }
.merch-shot-pick.on { opacity: 1; border-color: var(--green-400); box-shadow: 0 0 0 3px rgba(var(--brand-rgb),0.14); }
@media (max-width: 720px) { .merch-modal .merch-modal-grid { grid-template-columns: 1fr !important; } }
@media (prefers-reduced-motion: reduce) { .merch-modal { animation: none; } .merch-shot img, .pg-shop .merch-go { transition: none; } }

@media (max-width: 900px) {
  .tv-stats { grid-template-columns: 1fr 1fr; }
  .tv-next { grid-template-columns: 1fr; }
  .tv-next-thumb { min-height: 0; aspect-ratio: 16 / 9; }
  .tv-next-body { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .tv-stat, .tv-next, .tv-card, .tv-bar i, .tv-play.big { animation: none; }
  .tv-card, .tv-next, .tv-play, .tv-thumb img, .tv-next-thumb img { transition: none; }
}

/* ---- posts: a magazine ---- */
@keyframes pcPop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.pc-stats { grid-template-columns: repeat(4, minmax(0, 170px)); }
.pc-cover {
  --h: 150;
  position: relative; overflow: hidden; aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 82% 18%, hsl(var(--h) 85% 55% / 0.5), transparent 55%),
    radial-gradient(circle at 12% 95%, hsl(calc(var(--h) + 40) 80% 45% / 0.28), transparent 50%),
    linear-gradient(135deg, hsl(var(--h) 55% 13%), #060d0a);
}
.pc-cover::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(115deg, transparent 0 22px, hsl(var(--h) 90% 70% / 0.05) 22px 23px);
}
.pc-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.pc-cover-word {
  position: absolute; left: -2%; bottom: -14%;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(64px, 9vw, 120px);
  letter-spacing: -0.05em; line-height: 1; white-space: nowrap;
  color: hsl(var(--h) 90% 70% / 0.16);
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.pc-card:hover .pc-cover-word, .pc-feature:hover .pc-cover-word { transform: translateX(14px); }
.pc-card:hover .pc-cover img, .pc-feature:hover .pc-cover img { transform: scale(1.06); }
.pc-cover-cat {
  position: absolute; left: 14px; top: 14px; z-index: 1;
  padding: 4px 10px; border-radius: 999px;
  font-size: 10.5px; letter-spacing: 0.18em;
  color: hsl(var(--h) 90% 75%);
  background: rgba(5,8,7,0.72); border: 1px solid hsl(var(--h) 70% 55% / 0.5);
}
.pc-feature {
  display: grid; grid-template-columns: 1.15fr 1fr; overflow: hidden; cursor: pointer;
  border-radius: 24px; border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 30px 70px -44px rgba(0,0,0,0.95);
  animation: tvRise .55s cubic-bezier(.2,.8,.2,1) .1s backwards;
  transition: transform .2s ease, border-color .2s ease;
}
.pc-feature:hover { transform: translateY(-3px); border-color: var(--green-400); }
.pc-feature-cover { aspect-ratio: auto; min-height: 320px; }
.pc-feature-body { padding: 32px; display: flex; flex-direction: column; gap: 12px; justify-content: center; min-width: 0; }
.pc-feature-body h2 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.03em; line-height: 1.1; margin: 0; }
.pc-feature-body p { color: var(--text-dim); font-size: 15.5px; line-height: 1.65; margin: 0; }
.pc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-mute); }
.pc-pin { color: #ffb547; }
.pc-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.pc-cat {
  --h: 150;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,0.02);
  font-size: 13px; color: var(--text-dim); cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease, transform .15s ease;
}
.pc-cat i, .pc-topic i { width: 8px; height: 8px; border-radius: 999px; background: hsl(var(--h) 85% 60%); box-shadow: 0 0 8px hsl(var(--h) 85% 60% / 0.7); }
.pc-cat span { font-size: 11px; opacity: 0.7; }
.pc-cat:hover { color: var(--text); border-color: var(--line-strong); transform: translateY(-1px); }
.pc-cat.on { color: var(--text); border-color: var(--green-400); background: rgba(var(--brand-rgb),0.08); }
.pc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pc-card {
  display: flex; flex-direction: column; overflow: hidden; cursor: pointer;
  border-radius: 20px; border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  animation: tvRise .5s cubic-bezier(.2,.8,.2,1) backwards;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), border-color .2s ease, box-shadow .2s ease;
}
.pc-card:hover { transform: translateY(-5px); border-color: var(--line-strong); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 24px 46px -30px rgba(0,0,0,0.95); }
.pc-body { padding: 18px 20px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pc-body h3 { font-size: 19px; line-height: 1.25; letter-spacing: -0.015em; margin: 0; transition: color .15s ease; }
.pc-card:hover .pc-body h3 { color: var(--green-400); }
.pc-body p { margin: 0; color: var(--text-dim); font-size: 14px; line-height: 1.6; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.pc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.pc-author { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-dim); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-acts { display: inline-flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.pc-act {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 9px; border-radius: 10px;
  font-size: 13px; color: var(--text-dim); cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.pc-act:hover { background: var(--bg-2); color: var(--text); }
.pc-act.on { color: var(--green-400); }
.pc-act.pop svg { animation: pcPop .45s cubic-bezier(.2,.8,.2,1); }
.pc-feature-body .pc-act { border: 1px solid var(--line); padding: 12px 14px; border-radius: 999px; }
.pc-progress { position: fixed; left: 0; right: 0; top: 0; height: 3px; z-index: 9500; pointer-events: none; }
.pc-progress i { display: block; height: 100%; transform: scaleX(0); transform-origin: left; background: linear-gradient(90deg, var(--brand-deep), var(--green-400)); box-shadow: 0 0 12px var(--green-glow); }
.pg-post .post-detail h1 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.06; margin: 18px 0 16px; }
.pc-topic { --h: 150; display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.pc-standfirst { color: var(--text-dim); font-size: 19px; line-height: 1.6; margin: 0 0 24px; }
.pc-byline { display: flex; align-items: center; gap: 12px; padding-bottom: 8px; }
.pc-detail-cover { max-width: 1100px; margin: 0 auto; border-radius: 22px; border: 1px solid var(--line); aspect-ratio: 21 / 9; }
.pc-detail-acts {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; padding: 10px;
  border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.pc-detail-acts .pc-act { flex: 1 1 140px; justify-content: center; padding: 11px 12px; font-size: 14px; font-weight: 500; }

/* ---- forum ---- */
.fm-list { display: grid; gap: 12px; }
.fm-row {
  display: flex; align-items: center; gap: 18px; width: 100%; text-align: left; cursor: pointer;
  padding: 18px 20px; border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  animation: tvRise .45s cubic-bezier(.2,.8,.2,1) backwards;
  transition: transform .2s cubic-bezier(.2,.8,.2,1), border-color .2s ease, box-shadow .2s ease;
}
.fm-row:hover { transform: translateX(4px); border-color: var(--green-400); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 18px 40px -28px var(--green-glow); }
.fm-row.pinned { border-color: rgba(255,181,71,0.35); }
.fm-count {
  flex: 0 0 auto; width: 68px; height: 68px; border-radius: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  background: var(--bg-2); border: 1px solid var(--line);
  color: var(--text-dim);
}
.fm-count b { font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1; color: var(--text); }
.fm-count span { font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; }
.fm-count.hot { border-color: rgba(var(--brand-rgb),0.45); background: rgba(var(--brand-rgb),0.08); }
.fm-count.hot b { color: var(--green-400); }
.fm-count.none b { color: var(--text-mute); }
.fm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.fm-main h3 { font-size: 19px; line-height: 1.25; letter-spacing: -0.015em; margin: 0; }
.fm-main p { margin: 0; color: var(--text-dim); font-size: 14px; line-height: 1.55; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.fm-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.fm-tag {
  padding: 3px 9px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-dim); border: 1px solid var(--line-strong);
}
.fm-tag.pin { color: #ffb547; border-color: rgba(255,181,71,0.45); }
.fm-tag.hot { color: #02110a; background: var(--green-400); border-color: transparent; font-weight: 600; }
.fm-tag.open { color: #7dd3fc; border-color: rgba(125,211,252,0.45); }
.fm-meta { font-size: 11.5px; letter-spacing: 0.06em; color: var(--text-mute); }
.fm-user { color: var(--green-400); }
.fm-thumb { flex: 0 0 auto; width: 96px; height: 68px; border-radius: 12px; object-fit: cover; border: 1px solid var(--line); }
.fm-arrow { flex: 0 0 auto; color: var(--text-mute); transition: color .15s ease, transform .15s ease; }
.fm-row:hover .fm-arrow { color: var(--green-400); transform: translateX(3px); }
.fm-thread { max-width: 820px; margin: 0 auto; }
.fm-thread h1 { font-size: clamp(30px, 4vw, 46px); letter-spacing: -0.03em; line-height: 1.08; margin: 14px 0 12px; }
.fm-op {
  margin-top: 24px; padding: 24px 26px; border-radius: 20px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.fm-op-label { font-size: 10.5px; letter-spacing: 0.18em; color: var(--text-mute); margin-bottom: 10px; }
.fm-op p { margin: 0; color: var(--text); font-size: 16px; line-height: 1.7; white-space: pre-wrap; }
.fm-replies { display: grid; gap: 12px; }
.fm-reply {
  display: grid; grid-template-columns: 44px 1fr; gap: 14px;
  padding: 16px 20px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--surface);
  animation: tvRise .45s cubic-bezier(.2,.8,.2,1) backwards;
}
.fm-reply.op { border-color: rgba(var(--brand-rgb),0.35); }
.fm-reply-n { font-size: 12px; color: var(--text-mute); padding-top: 2px; }
.fm-reply-who { display: flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: 0.08em; margin-bottom: 6px; }
.fm-reply-body { font-size: 15px; color: var(--text); line-height: 1.7; white-space: pre-wrap; }

@media (max-width: 1100px) { .pc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .pc-stats { grid-template-columns: 1fr 1fr; }
  .pc-feature { grid-template-columns: 1fr; }
  .pc-feature-cover { min-height: 0; aspect-ratio: 16 / 9; }
  .pc-feature-body { padding: 22px; }
}
@media (max-width: 640px) {
  .pc-grid { grid-template-columns: 1fr; }
  .fm-row { gap: 12px; padding: 14px; }
  .fm-count { width: 54px; height: 54px; }
  .fm-count b { font-size: 19px; }
  .fm-thumb, .fm-arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pc-card, .pc-feature, .fm-row, .fm-reply, .pc-act.pop svg { animation: none; }
  .pc-card, .pc-feature, .fm-row, .pc-cover img, .pc-cover-word { transition: none; }
}

/* ---- sign-in window + member dashboard: light on the page, springy in motion.
   Everything animated here is transform/opacity only, so it stays smooth on
   slow machines. ---- */
@keyframes springIn { 0% { opacity: 0; transform: translateY(22px) scale(0.94); } 60% { opacity: 1; transform: translateY(-4px) scale(1.012); } 100% { opacity: 1; transform: none; } }
@keyframes popIn { 0% { opacity: 0; transform: scale(0.6); } 65% { opacity: 1; transform: scale(1.1); } 100% { opacity: 1; transform: scale(1); } }
@keyframes auShake { 0%,100% { transform: translateX(0); } 20% { transform: translateX(-7px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(3px); } }
@keyframes auBreathe { 0%,100% { transform: scale(1); opacity: .55; } 50% { transform: scale(1.18); opacity: .9; } }
@keyframes auBob { 0%,100% { transform: translateY(-3px); } 50% { transform: translateY(3px); } }
@keyframes auFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes dvDrift { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(-6%, 8%) scale(1.15); } 100% { transform: translate(0,0) scale(1); } }
@keyframes dvSheen { 0% { transform: translateX(-120%) skewX(-18deg); } 60%,100% { transform: translateX(320%) skewX(-18deg); } }

.au-backdrop {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: radial-gradient(circle at 50% 35%, rgba(13,138,74,0.22), transparent 55%), rgba(2,5,4,0.86);
  animation: auFade .2s ease backwards;
}
.au-card {
  position: relative; width: 100%; max-width: 430px; max-height: 92vh; overflow-y: auto;
  padding: 26px 30px 26px; border-radius: 26px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 40px 90px -30px rgba(0,0,0,0.95), 0 0 0 1px rgba(var(--brand-rgb),0.08);
  animation: springIn .55s cubic-bezier(.2,.9,.25,1) backwards;
}
.au-x {
  position: absolute; right: 14px; top: 14px; width: 32px; height: 32px; border-radius: 999px;
  font-size: 20px; line-height: 1; color: var(--text-dim);
  border: 1px solid var(--line); background: rgba(255,255,255,0.03); cursor: pointer;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), color .15s ease, border-color .15s ease;
}
.au-x:hover { transform: rotate(90deg) scale(1.1); color: #ff5d57; border-color: #ff5d57; }
.au-brand { display: flex; justify-content: center; margin-bottom: 14px; }
.au-logo { position: relative; width: 72px; height: 72px; display: flex; align-items: center; justify-content: center; animation: popIn .6s cubic-bezier(.34,1.56,.64,1) .08s backwards; }
.au-logo i { position: absolute; inset: -6px; border-radius: 999px; background: radial-gradient(circle, rgba(var(--brand-rgb),0.45), transparent 68%); animation: auBreathe 2.8s ease-in-out infinite; }
.au-logo img { position: relative; width: 100%; height: 100%; object-fit: contain; animation: auBob 3.6s ease-in-out infinite; }
.au-tabs {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr); padding: 4px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
}
.au-tabs button { position: relative; z-index: 1; padding: 9px 6px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-dim); cursor: pointer; transition: color .2s ease; white-space: nowrap; }
.au-tabs button.on { color: #02110a; }
.au-tabs-pill {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand-light), var(--green-400) 50%, var(--brand-deep));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 6px 16px -8px var(--green-glow);
  transition: transform .45s cubic-bezier(.34,1.56,.64,1);
}
.au-tabs[data-mode="register"] .au-tabs-pill { transform: translateX(100%); }
.au-tabs[data-mode="forgot"] .au-tabs-pill { transform: translateX(200%); }
.au-title { font-size: 24px; margin: 20px 0 16px; letter-spacing: -0.02em; text-align: center; }
/* Each piece of the form drops in a beat after the one above it. */
.au-pane > * { animation: springIn .5s cubic-bezier(.2,.9,.25,1) backwards; }
.au-pane > *:nth-child(1) { animation-delay: .02s; } .au-pane > *:nth-child(2) { animation-delay: .07s; }
.au-pane > *:nth-child(3) { animation-delay: .12s; } .au-pane > *:nth-child(4) { animation-delay: .17s; }
.au-pane > *:nth-child(5) { animation-delay: .22s; } .au-pane > *:nth-child(6) { animation-delay: .27s; }
.au-pane > *:nth-child(n+7) { animation-delay: .32s; }
.au-card .input { border-radius: 13px; padding: 13px 14px; transition: border-color .15s ease, box-shadow .2s ease, transform .2s cubic-bezier(.34,1.56,.64,1); }
.au-card .input:focus { transform: scale(1.012); }
.au-pw { position: relative; display: block; }
.au-pw .input { padding-right: 46px; }
.au-eye {
  position: absolute; right: 6px; top: 50%; margin-top: -17px; width: 34px; height: 34px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; color: var(--text-mute); cursor: pointer;
  transition: color .15s ease, transform .2s cubic-bezier(.34,1.56,.64,1);
}
.au-eye:hover { color: var(--green-400); transform: scale(1.15); }
.au-note { font-size: 13px; line-height: 1.5; margin-bottom: 12px; padding: 10px 13px; border-radius: 12px; }
.au-note.err { color: #ff5d57; background: rgba(255,93,87,0.09); border: 1px solid rgba(255,93,87,0.4); animation: auShake .4s ease backwards; }
.au-note.ok { color: var(--green-400); background: rgba(var(--brand-rgb),0.09); border: 1px solid rgba(var(--brand-rgb),0.4); animation: popIn .4s cubic-bezier(.34,1.56,.64,1) backwards; }
.au-go { padding: 15px 22px; border-radius: 14px; font-size: 15px; font-weight: 700; transition: transform .2s cubic-bezier(.34,1.56,.64,1), background .2s ease; }
.au-go:hover:not(:disabled) { transform: translateY(-2px) scale(1.015); }
.au-go:active:not(:disabled) { transform: scale(0.97); }
.au-go.busy { opacity: 0.75; }

/* member dashboard (the admin console shares .dash but not .dash-v2) */
.dash-v2 .dash-main > * { animation: springIn .5s cubic-bezier(.2,.9,.25,1) backwards; }
.dash-v2 .dash-main > *:nth-child(2) { animation-delay: .05s; } .dash-v2 .dash-main > *:nth-child(3) { animation-delay: .1s; }
.dash-v2 .dash-main > *:nth-child(4) { animation-delay: .15s; } .dash-v2 .dash-main > *:nth-child(5) { animation-delay: .2s; }
.dash-v2 .dash-main > *:nth-child(n+6) { animation-delay: .25s; }
.dash-v2 .dash-main:has(> .fade-in > .chat-shell) > * { animation: none; }
.dash-v2 .dash-link {
  position: relative; margin: 2px 10px; width: calc(100% - 20px); padding: 10px 14px; border-radius: 12px; border-left: 0;
  transition: color .15s ease, background .2s ease, transform .25s cubic-bezier(.34,1.56,.64,1);
}
.dash-v2 .dash-link:hover { transform: translateX(4px); background: rgba(255,255,255,0.04); }
.dash-v2 .dash-link:active { transform: scale(0.97); }
.dash-v2 .dash-link.active { background: rgba(var(--brand-rgb),0.1); box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb),0.28); }
.dash-v2 .dash-link.active::before {
  content: ""; position: absolute; left: -10px; top: 22%; bottom: 22%; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--green-400); box-shadow: 0 0 10px var(--green-glow);
  animation: popIn .35s cubic-bezier(.34,1.56,.64,1) backwards;
}
.dash-v2 .dash-link .dash-ic { transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.dash-v2 .dash-link:hover .dash-ic { transform: scale(1.18) rotate(-6deg); }
.dash-v2.dash-shell .dash-collapsed .dash-link { margin: 2px 8px; width: calc(100% - 16px); padding: 12px 0; }
.dash-v2 .dash-main .card { border-radius: 20px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.04); }
.dash-v2 .stat-tile {
  border-radius: 18px; background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), border-color .2s ease;
}
.dash-v2 .stat-tile:hover { transform: translateY(-5px) scale(1.02); border-color: rgba(var(--brand-rgb),0.45); }
.dash-v2 .dv-stats .stat-tile { animation: springIn .5s cubic-bezier(.2,.9,.25,1) backwards; }
.dash-v2 .dv-stats .stat-tile:nth-child(2) { animation-delay: .06s; } .dash-v2 .dv-stats .stat-tile:nth-child(3) { animation-delay: .12s; } .dash-v2 .dv-stats .stat-tile:nth-child(4) { animation-delay: .18s; }
.dv-ok { color: var(--green-400); display: inline-block; animation: popIn .5s cubic-bezier(.34,1.56,.64,1) .3s backwards; }

.dv-hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 24px 26px; margin-bottom: 14px; border-radius: 22px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(120deg, rgba(var(--brand-rgb),0.09), transparent 55%), linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.dv-hero-glow { position: absolute; right: -8%; top: -70%; width: 46%; aspect-ratio: 1; border-radius: 999px; background: radial-gradient(circle, rgba(var(--brand-rgb),0.22), transparent 65%); animation: dvDrift 9s ease-in-out infinite; pointer-events: none; }
.dv-hero-id { position: relative; display: flex; align-items: center; gap: 16px; min-width: 0; }
.dv-hero-av { flex: 0 0 auto; border-radius: 999px; box-shadow: 0 0 0 3px rgba(var(--brand-rgb),0.3); animation: popIn .6s cubic-bezier(.34,1.56,.64,1) .1s backwards; }
.dash-v2 .dash-main .dv-hero-title { font-size: clamp(22px, 2.6vw, 30px); margin: 4px 0 4px; }
.dv-hero-side { position: relative; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dv-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--text-dim); border: 1px solid var(--line-strong); background: rgba(0,0,0,0.25); }
.dv-chip i { width: 8px; height: 8px; border-radius: 999px; background: var(--text-mute); }
.dv-chip.on { color: var(--green-400); border-color: rgba(var(--brand-rgb),0.45); }
.dv-chip.on i { background: var(--green-400); box-shadow: 0 0 0 0 rgba(var(--brand-rgb),0.6); animation: tvPulse 2s ease-out infinite; }
.dv-quick { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 14px; }
.dv-q {
  display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 16px 8px; border-radius: 18px; cursor: pointer;
  border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  animation: popIn .5s cubic-bezier(.34,1.56,.64,1) backwards;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), border-color .2s ease, box-shadow .2s ease;
}
.dv-q:hover { transform: translateY(-6px) scale(1.04); border-color: var(--green-400); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 18px 34px -22px var(--green-glow); }
.dv-q:active { transform: scale(0.95); }
.dv-q-ic { width: 42px; height: 42px; border-radius: 13px; display: flex; align-items: center; justify-content: center; color: var(--green-400); background: rgba(var(--brand-rgb),0.09); border: 1px solid rgba(var(--brand-rgb),0.3); transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.dv-q:hover .dv-q-ic { transform: rotate(-8deg) scale(1.12); }
.dv-q-lb { font-size: 12.5px; font-weight: 600; color: var(--text-dim); text-align: center; }
.dv-q:hover .dv-q-lb { color: var(--text); }
.dv-banner {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 18px 22px; margin-bottom: 14px; border-radius: 18px;
  border: 1px solid rgba(var(--brand-rgb),0.28);
  background: linear-gradient(120deg, rgba(var(--brand-rgb3),0.09), rgba(10,14,20,0.4));
}
.dv-banner-trader::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 22%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.07), transparent); animation: dvSheen 5s ease-in-out infinite; pointer-events: none; }
.dv-banner-l { display: flex; align-items: center; gap: 14px; min-width: 0; }
.dv-banner-ic, .dv-banner-logo { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; color: var(--green-400); background: rgba(var(--brand-rgb3),0.12); border: 1px solid rgba(var(--brand-rgb3),0.4); font-weight: 700; overflow: hidden; }
.dv-banner-logo.has-logo { background: none; border: 0; }
.dv-banner-logo img { width: 100%; height: 100%; object-fit: contain; }
.dv-two { display: grid; grid-template-columns: 1fr 1.3fr; gap: 14px; margin-top: 14px; }
.dv-setup { display: flex; align-items: center; gap: 20px; padding: 24px; }
.dv-ring { --p: 0; flex: 0 0 auto; width: 84px; height: 84px; border-radius: 999px; background: conic-gradient(var(--green-400) calc(var(--p) * 1%), var(--line-strong) 0); display: flex; align-items: center; justify-content: center; animation: popIn .6s cubic-bezier(.34,1.56,.64,1) .2s backwards; }
.dv-ring span { width: 66px; height: 66px; border-radius: 999px; background: var(--surface); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.dv-steps { display: grid; gap: 6px; }
.dv-step { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 11px; font-size: 14px; text-align: left; color: var(--text); cursor: pointer; transition: background .15s ease, transform .25s cubic-bezier(.34,1.56,.64,1); }
.dv-step:not(.done):hover { background: rgba(var(--brand-rgb),0.07); transform: translateX(4px); }
.dv-step i { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 999px; border: 1.5px solid var(--line-strong); display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 11px; font-weight: 700; }
.dv-step span { flex: 1; }
.dv-step b { font-size: 12px; font-weight: 600; color: var(--green-400); }
.dv-step.done { color: var(--text-dim); cursor: default; }
.dv-step.done i { background: var(--green-400); border-color: var(--green-400); color: #02110a; }
@media (max-width: 1100px) { .dv-two { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .dv-quick { grid-template-columns: repeat(3, 1fr); }
  .dv-hero { padding: 18px; }
  .dv-setup { flex-direction: column; align-items: flex-start; }
  .au-card { padding: 22px 20px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .au-backdrop, .au-card, .au-logo, .au-logo i, .au-logo img, .au-pane > *, .au-note, .dash-v2 .dash-main > *, .dv-q, .dv-hero-glow, .dv-hero-av, .dv-banner-trader::after, .dv-ring, .dv-ok, .dv-chip.on i, .dash-v2 .dv-stats .stat-tile, .dash-v2 .dash-link.active::before { animation: none; }
  .au-tabs-pill, .dv-q, .dash-v2 .dash-link, .dash-v2 .stat-tile, .au-go, .au-x { transition: none; }
}

/* ---- dashboard tabs: one heading, one empty state, one loading state,
   and the lists/tables/cards they are built from ---- */
@keyframes dsShimmer { 0% { background-position: 180% 0; } 100% { background-position: -80% 0; } }
@keyframes dsWiggle { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-9deg); } 75% { transform: rotate(7deg); } }
.ds-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.ds-head-ic {
  flex: 0 0 auto; width: 54px; height: 54px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: var(--green-400); background: rgba(var(--brand-rgb),0.09); border: 1px solid rgba(var(--brand-rgb),0.32);
  box-shadow: 0 12px 26px -16px var(--green-glow);
  animation: popIn .55s cubic-bezier(.34,1.56,.64,1) backwards;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.ds-head:hover .ds-head-ic { transform: rotate(-8deg) scale(1.08); }
.ds-head-t { flex: 1; min-width: 220px; }
.dash-v2 .dash-main .ds-head h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 3px 0 3px; }
.dash-v2 .dash-main .ds-head .sub { margin: 0; font-size: 14px; max-width: 720px; }
.ds-head-a { display: flex; gap: 8px; flex-wrap: wrap; }
.ds-head.danger .ds-head-ic { color: #ff5d57; background: rgba(255,93,87,0.09); border-color: rgba(255,93,87,0.4); box-shadow: 0 12px 26px -16px rgba(255,93,87,0.6); }
.ds-head.danger .eyebrow { color: #ff5d57; }
.ds-err { color: #ff5d57; background: rgba(255,93,87,0.08); border: 1px solid rgba(255,93,87,0.35); padding: 10px 14px; border-radius: 12px; font-size: 13.5px; animation: auShake .4s ease backwards; }

.ds-empty { padding: 40px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ds-empty-ic {
  width: 64px; height: 64px; border-radius: 20px; margin-bottom: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); background: var(--bg-2); border: 1px dashed var(--line-strong);
  animation: popIn .6s cubic-bezier(.34,1.56,.64,1) .1s backwards, auBob 3.6s ease-in-out .7s infinite;
}
.ds-empty h3 { font-size: 21px; margin: 0; }
.ds-empty p { margin: 0 0 8px; max-width: 420px; }

.ds-loading { display: grid; gap: 12px; }
.ds-skel {
  height: 68px; border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%);
  background-size: 220% 100%;
  animation: dsShimmer 1.3s linear infinite;
}
.ds-skel-head { height: 54px; width: min(420px, 70%); margin-bottom: 8px; }

.ds-row {
  padding: 16px 18px; margin-bottom: 10px; border-left: 3px solid var(--line);
  animation: springIn .45s cubic-bezier(.2,.9,.25,1) backwards;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), border-color .2s ease;
}
.dash-v2 .dash-main .ds-row:hover { transform: translateX(5px); border-color: var(--line-strong); }
.dash-v2 .dash-main .ds-row.new { border-left-color: var(--green-400); }
.ds-msg { cursor: pointer; }
.ds-dot { display: inline-block; width: 8px; height: 8px; border-radius: 99px; background: var(--green-400); margin-right: 8px; box-shadow: 0 0 0 0 rgba(var(--brand-rgb),0.6); animation: tvPulse 2s ease-out infinite; }
.ds-caret { color: var(--text-mute); font-size: 18px; line-height: 1; transition: transform .3s cubic-bezier(.34,1.56,.64,1), color .15s ease; }
.ds-msg.open .ds-caret { transform: rotate(90deg); color: var(--green-400); }
.ds-msg-body { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.65; white-space: pre-wrap; color: var(--text); animation: springIn .4s cubic-bezier(.2,.9,.25,1) backwards; }

.ds-pill { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-mute); background: rgba(255,255,255,0.04); }
.ds-pill.ok { color: var(--green-400); background: rgba(var(--brand-rgb),0.1); }
.ds-pill.wait { color: #ffb547; background: rgba(255,181,71,0.1); }
.ds-pill.bad { color: #ff5d57; background: rgba(255,93,87,0.1); }
.dash-v2 .dash-main .table tbody tr { transition: background .15s ease; }
.dash-v2 .dash-main .table tbody tr:hover { background: rgba(var(--brand-rgb),0.04); }

.ds-plan { position: relative; overflow: hidden; padding: 30px; border-color: rgba(var(--brand-rgb),0.35) !important; }
.ds-plan::before { content: ""; position: absolute; right: -10%; top: -60%; width: 46%; aspect-ratio: 1; border-radius: 999px; background: radial-gradient(circle, rgba(var(--brand-rgb),0.18), transparent 65%); animation: dvDrift 9s ease-in-out infinite; pointer-events: none; }
.ds-plan.off { border-color: var(--line-strong) !important; }
.ds-plan.off::before { display: none; }
.ds-plan-top { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.ds-plan-name { font-size: clamp(24px, 3vw, 34px); margin: 14px 0 6px; letter-spacing: -0.02em; }
.ds-plan-price { font-size: clamp(34px, 4vw, 46px); font-weight: 600; letter-spacing: -0.03em; color: var(--green-400); animation: popIn .6s cubic-bezier(.34,1.56,.64,1) .15s backwards; }
.ds-facts { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.ds-facts-top { margin: 0 0 16px; }
.ds-fact {
  padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line);
  background: rgba(0,0,0,0.22);
  animation: springIn .5s cubic-bezier(.2,.9,.25,1) backwards;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), border-color .2s ease;
}
.ds-fact:nth-child(2) { animation-delay: .06s; } .ds-fact:nth-child(3) { animation-delay: .12s; }
.ds-fact:hover { transform: translateY(-4px); border-color: rgba(var(--brand-rgb),0.4); }
.ds-facts-top .ds-fact { background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.ds-fact-l { font-size: 10.5px; color: var(--text-dim); letter-spacing: 0.18em; text-transform: uppercase; }
.ds-fact-v { font-size: 21px; margin-top: 6px; }

.ds-dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.ds-dl { padding: 24px; animation: springIn .5s cubic-bezier(.2,.9,.25,1) backwards; transition: transform .3s cubic-bezier(.34,1.56,.64,1), border-color .2s ease; }
.dash-v2 .dash-main .ds-dl:hover { transform: translateY(-5px); border-color: rgba(var(--brand-rgb),0.45); }
.ds-dl-logo { width: 48px; height: 48px; border-radius: 13px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--bg-2); border: 1px solid var(--line-strong); font-family: var(--font-display); font-weight: 700; color: var(--green-400); }
.ds-dl-logo.has-logo { background: none; border: 0; }
.ds-dl-logo img { width: 100%; height: 100%; object-fit: contain; }
.ds-dl:hover .ds-dl-logo { animation: dsWiggle .5s ease; }

.ds-key { font-size: 14px; margin-top: 8px; padding: 12px 14px; border-radius: 12px; word-break: break-all; background: var(--bg-2); border: 1px solid var(--line); box-shadow: inset 0 1px 2px rgba(0,0,0,0.5); }
.ds-danger { border-color: rgba(255,93,87,0.4) !important; background: linear-gradient(180deg, rgba(255,93,87,0.06), var(--surface)) !important; }
.ds-saved { animation: popIn .45s cubic-bezier(.34,1.56,.64,1) backwards; }
.ds-stat { transition: transform .3s cubic-bezier(.34,1.56,.64,1), border-color .2s ease; }
.dash-v2 .dash-main .ds-stat:hover { transform: translateY(-4px) scale(1.02); border-color: rgba(var(--brand-rgb),0.4); }
.dash-v2 .dash-main .input, .dash-v2 .dash-main .select, .dash-v2 .dash-main .textarea { border-radius: 12px; }
@media (max-width: 760px) {
  .ds-facts { grid-template-columns: 1fr; }
  .ds-head-ic { width: 46px; height: 46px; border-radius: 14px; }
  .ds-plan { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .ds-head-ic, .ds-empty-ic, .ds-skel, .ds-row, .ds-msg-body, .ds-fact, .ds-dl, .ds-plan::before, .ds-plan-price, .ds-dot, .ds-err, .ds-saved, .ds-dl:hover .ds-dl-logo { animation: none; }
  .ds-row, .ds-fact, .ds-dl, .ds-stat, .ds-caret, .ds-head-ic { transition: none; }
}

/* ---- live chat (.chat-v2 only — the admin moderation view keeps the base look) ---- */
@keyframes chatIn { 0% { opacity: 0; transform: translateY(14px) scale(0.96); } 60% { opacity: 1; transform: translateY(-2px) scale(1.01); } 100% { opacity: 1; transform: none; } }
.chat-v2 .chat-side { background: linear-gradient(180deg, var(--bg-2), var(--surface)); padding-bottom: 12px; }
.chat-v2 .channel {
  margin: 2px 10px; padding: 9px 12px; border-radius: 12px; border-left: 0; width: calc(100% - 20px);
  transition: color .15s ease, background .2s ease, transform .25s cubic-bezier(.34,1.56,.64,1);
}
.chat-v2 .channel:hover { background: rgba(255,255,255,0.04); transform: translateX(4px); }
.chat-v2 .channel.active { background: rgba(var(--brand-rgb),0.1); box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb),0.28); }
.chat-v2 .channel.active .hash { color: var(--green-400); }
.chat-v2 .chat-head { padding: 14px 22px; background: linear-gradient(180deg, var(--surface-2), transparent); }
.chat-v2 .chat-stream { gap: 14px; padding: 22px 24px; }
.chat-v2 .msg { animation: chatIn .4s cubic-bezier(.2,.9,.25,1) backwards; }
.chat-v2 .msg .avatar { transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.chat-v2 .msg:hover .avatar { transform: scale(1.12) rotate(-5deg); }
.chat-v2 .msg .head { flex-wrap: wrap; row-gap: 2px; }
.chat-v2 .msg .body {
  width: fit-content; max-width: min(100%, 620px);
  margin-top: 5px; padding: 9px 13px;
  border-radius: 4px 16px 16px 16px;
  background: var(--surface-2); border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  text-align: left;
}
.chat-v2 .msg.self { grid-template-columns: 1fr 36px; }
.chat-v2 .msg.self > .avatar { order: 2; }
.chat-v2 .msg.self .head { justify-content: flex-end; }
.chat-v2 .msg.self > :not(.avatar) > *:not(.head) { margin-left: auto; width: fit-content; max-width: min(100%, 620px); }
.chat-v2 .msg.self .body {
  color: var(--text);
  border-radius: 16px 4px 16px 16px;
  background: linear-gradient(180deg, rgba(var(--brand-rgb),0.2), rgba(var(--brand-rgb),0.1));
  border-color: rgba(var(--brand-rgb),0.4);
}
.chat-v2 .chat-input { padding: 12px 16px 14px; gap: 8px; background: linear-gradient(0deg, var(--surface-2), transparent); }
.chat-v2 .chat-input .input {
  border-radius: 999px; padding: 12px 18px; background: var(--bg-2);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.5);
  transition: border-color .15s ease, box-shadow .2s ease;
}
.chat-v2 .chat-input > button:not(.btn), .chat-v2 .chat-input > label { transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
.chat-v2 .chat-input > button:not(.btn):hover, .chat-v2 .chat-input > label:hover { transform: scale(1.25) rotate(-8deg); }
.chat-send { padding: 11px 18px; transition: transform .2s cubic-bezier(.34,1.56,.64,1); }
.chat-send:hover:not(:disabled) { transform: translateY(-2px) scale(1.04); }
.chat-send:active:not(:disabled) { transform: scale(0.94); }
.chat-v2 .member { margin: 2px 10px; padding: 7px 10px; border-radius: 12px; transition: background .15s ease, transform .25s cubic-bezier(.34,1.56,.64,1); animation: chatIn .4s cubic-bezier(.2,.9,.25,1) backwards; }
.chat-v2 .member:hover { background: rgba(255,255,255,0.04); transform: translateX(-3px); }
.chat-v2 .member .status { box-shadow: 0 0 0 0 rgba(var(--brand-rgb),0.6); animation: tvPulse 2.2s ease-out infinite; }
.chat-empty { text-align: center; margin: auto; color: var(--text-mute); }
.chat-empty-ic {
  display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 20px; margin-bottom: 14px;
  color: var(--green-400); background: rgba(var(--brand-rgb),0.08); border: 1px solid rgba(var(--brand-rgb),0.3);
  animation: popIn .6s cubic-bezier(.34,1.56,.64,1) backwards, auBob 3.6s ease-in-out .7s infinite;
}

/* ---- SMM panel inside the dashboard ---- */
.smm-dashboard { display: grid; gap: 16px; }
.smm-dashboard .ds-head { margin-bottom: 0; }
.smm-dashboard .smm-dash-balance {
  border-radius: 16px; padding: 10px 12px 10px 16px;
  border-color: rgba(var(--brand-rgb),0.35);
  background: linear-gradient(120deg, rgba(var(--brand-rgb),0.1), rgba(0,0,0,0.2));
  animation: popIn .5s cubic-bezier(.34,1.56,.64,1) .1s backwards;
}
.smm-dashboard .smm-dash-balance strong { font-family: var(--font-display); font-size: 22px; font-variant-numeric: tabular-nums; }
.smm-seg { justify-self: start; }
.smm-pane { display: grid; gap: 16px; animation: springIn .45s cubic-bezier(.2,.9,.25,1) backwards; }
.smm-dashboard .smm-catalog-toolbar {
  border-radius: 18px; border-color: var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.smm-dashboard .smm-catalog-toolbar .input { border-radius: 12px; }
.smm-dashboard .table-wrap { border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), var(--surface)); overflow: hidden; }
.smm-dashboard .table tbody tr { animation: springIn .4s cubic-bezier(.2,.9,.25,1) backwards; transition: background .15s ease; }
.smm-dashboard .table tbody tr:nth-child(2) { animation-delay: .02s; } .smm-dashboard .table tbody tr:nth-child(3) { animation-delay: .04s; }
.smm-dashboard .table tbody tr:nth-child(4) { animation-delay: .06s; } .smm-dashboard .table tbody tr:nth-child(5) { animation-delay: .08s; }
.smm-dashboard .table tbody tr:nth-child(n+6) { animation-delay: .1s; }
.smm-dashboard .table tbody tr:hover { background: rgba(var(--brand-rgb),0.05); }
.smm-dashboard .table .btn { transition: transform .2s cubic-bezier(.34,1.56,.64,1); }
.smm-dashboard .table tr:hover .btn-primary { transform: scale(1.06); }
.smm-dashboard .smm-mobile-card { border-radius: 18px; animation: springIn .45s cubic-bezier(.2,.9,.25,1) backwards; }
.smm-dashboard .smm-empty { padding: 34px 20px; text-align: center; border-radius: 18px; border: 1px dashed var(--line-strong); color: var(--text-dim); }
.smm-dashboard .smm-wallet-hero {
  position: relative; overflow: hidden; border-radius: 22px; border-color: rgba(var(--brand-rgb),0.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
.smm-dashboard .smm-wallet-hero::before { content: ""; position: absolute; right: -8%; top: -70%; width: 40%; aspect-ratio: 1; border-radius: 999px; background: radial-gradient(circle, rgba(var(--brand-rgb),0.2), transparent 65%); animation: dvDrift 9s ease-in-out infinite; pointer-events: none; }
.smm-dashboard .smm-wallet-balance { font-family: var(--font-display); font-size: 44px; letter-spacing: -0.03em; display: inline-block; animation: popIn .6s cubic-bezier(.34,1.56,.64,1) .1s backwards; }
.smm-order-sheet { animation: springIn .45s cubic-bezier(.2,.9,.25,1) backwards; }
@media (prefers-reduced-motion: reduce) {
  .chat-v2 .msg, .chat-v2 .member, .chat-v2 .member .status, .chat-empty-ic, .smm-pane, .smm-dashboard .table tbody tr, .smm-dashboard .smm-mobile-card, .smm-dashboard .smm-dash-balance, .smm-dashboard .smm-wallet-balance, .smm-dashboard .smm-wallet-hero::before, .smm-order-sheet { animation: none; }
  .chat-v2 .channel, .chat-v2 .member, .chat-v2 .msg .avatar, .chat-send { transition: none; }
}

/* ---- custom-software request + gallery ---- */
.rq-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.rq-form { animation: springIn .5s cubic-bezier(.2,.9,.25,1) backwards; }
.rq-form-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.rq-progress { display: flex; align-items: center; gap: 10px; width: 170px; font-size: 11px; color: var(--text-dim); }
.rq-progress .tv-bar i { animation: none; }
.rq-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rq-wide { grid-column: 1 / -1; }
.rq-fields .field { display: block; }
.rq-fields .field .lbl { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.rq-count { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: none; color: var(--text-mute); }
.pg-request .input, .pg-request .textarea { border-radius: 12px; padding: 13px 14px; transition: border-color .15s ease, box-shadow .2s ease, transform .2s cubic-bezier(.34,1.56,.64,1); }
.pg-request .input:focus, .pg-request .textarea:focus { transform: scale(1.006); }
.rq-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.rq-chip {
  padding: 9px 14px; border-radius: 999px; font-size: 13px; font-weight: 500;
  color: var(--text-dim); border: 1px solid var(--line); background: rgba(255,255,255,0.02); cursor: pointer;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), color .15s ease, border-color .15s ease, background .15s ease;
}
.rq-chip:hover { transform: translateY(-2px); color: var(--text); border-color: var(--line-strong); }
.rq-chip:active { transform: scale(0.94); }
.rq-chip.on {
  color: #02110a; font-weight: 600; border-color: transparent;
  background: linear-gradient(180deg, var(--brand-light), var(--green-400) 50%, var(--brand-deep));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 8px 18px -10px var(--green-glow);
  animation: popIn .35s cubic-bezier(.34,1.56,.64,1) backwards;
}
.rq-side { display: grid; gap: 14px; }
.rq-side > * { animation: springIn .5s cubic-bezier(.2,.9,.25,1) backwards; }
.rq-side > *:nth-child(1) { animation-delay: .08s; } .rq-side > *:nth-child(2) { animation-delay: .16s; } .rq-side > *:nth-child(3) { animation-delay: .24s; }
.rq-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.rq-tag { padding: 7px 12px; border-radius: 999px; font-size: 12.5px; color: var(--text-dim); border: 1px solid var(--line); background: rgba(var(--brand-rgb),0.05); animation: popIn .45s cubic-bezier(.34,1.56,.64,1) backwards; }
.rq-done {
  width: 76px; height: 76px; border-radius: 999px; margin: 0 auto 22px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(var(--brand-rgb),0.08); border: 1px solid var(--green-400);
  box-shadow: 0 0 60px var(--green-glow);
  animation: popIn .7s cubic-bezier(.34,1.56,.64,1) backwards;
}

.gl-count { margin-top: 16px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); }
.gl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.gl-grid.few { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 880px; }
.gl-grid.few .gl-shot { aspect-ratio: 4 / 3; }
.gl-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  animation: springIn .55s cubic-bezier(.2,.9,.25,1) backwards;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), border-color .2s ease, box-shadow .2s ease;
}
.gl-card:hover { transform: translateY(-6px); border-color: var(--green-400); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 26px 50px -30px var(--green-glow); }
.gl-shot { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; cursor: zoom-in; background: var(--bg-2); }
.gl-shot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.gl-card:hover .gl-shot img { transform: scale(1.07); }
.gl-shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.5), transparent 45%); opacity: 0; transition: opacity .25s ease; }
.gl-card:hover .gl-shot::after { opacity: 1; }
.gl-zoom {
  position: absolute; left: 50%; top: 50%; z-index: 1; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  color: #02110a; background: var(--green-400);
  opacity: 0; transform: scale(0.4);
  transition: opacity .2s ease, transform .35s cubic-bezier(.34,1.56,.64,1);
}
.gl-card:hover .gl-zoom, .gl-shot:focus-visible .gl-zoom { opacity: 1; transform: scale(1); }
.gl-price { position: absolute; right: 12px; top: 12px; z-index: 1; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #02110a; background: var(--green-400); }
.gl-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.gl-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.lightbox { animation: auFade .2s ease backwards; }
.lightbox-img { animation: springIn .45s cubic-bezier(.2,.9,.25,1) backwards; }
@media (max-width: 900px) { .rq-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .rq-fields { grid-template-columns: 1fr; }
  .gl-grid.few { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .rq-form, .rq-side > *, .rq-tag, .rq-chip.on, .rq-done, .gl-card, .lightbox, .lightbox-img { animation: none; }
  .rq-chip, .gl-card, .gl-shot img, .gl-zoom { transition: none; }
}

/* ---- terms: a list of sections beside the text ---- */
.tm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.tm-meta span, .tm-print { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.tm-print { font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--green-400); border-color: rgba(var(--brand-rgb),0.4); cursor: pointer; transition: transform .25s cubic-bezier(.34,1.56,.64,1), background .15s ease; }
.tm-print:hover { transform: translateY(-2px) scale(1.04); background: rgba(var(--brand-rgb),0.1); }
.tm-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: start; }
.tm-grid.solo { grid-template-columns: minmax(0, 820px); }
.tm-toc {
  position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow-y: auto;
  display: flex; flex-direction: column; gap: 2px; padding: 16px 12px; border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.tm-toc-h { font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-mute); padding: 2px 10px 10px; }
.tm-toc-a {
  position: relative; padding: 8px 10px 8px 14px; border-radius: 10px; font-size: 13px; line-height: 1.35; color: var(--text-dim);
  animation: springIn .4s cubic-bezier(.2,.9,.25,1) backwards;
  transition: color .15s ease, background .2s ease, transform .25s cubic-bezier(.34,1.56,.64,1);
}
.tm-toc-a:hover { color: var(--text); background: rgba(255,255,255,0.04); transform: translateX(3px); }
.tm-toc-a.on { color: var(--green-400); background: rgba(var(--brand-rgb),0.09); }
.tm-toc-a.on::before { content: ""; position: absolute; left: 3px; top: 22%; bottom: 22%; width: 3px; border-radius: 3px; background: var(--green-400); box-shadow: 0 0 10px var(--green-glow); animation: popIn .3s cubic-bezier(.34,1.56,.64,1) backwards; }
.tm-body { padding: 34px 38px; font-size: 15.5px; line-height: 1.75; color: var(--text-dim); animation: springIn .5s cubic-bezier(.2,.9,.25,1) backwards; }
.tm-body > :first-child { margin-top: 0; }
.tm-body h2 {
  font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; color: var(--text);
  margin: 34px 0 10px; padding-top: 22px; border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.tm-body h2:first-of-type { border-top: 0; padding-top: 0; }
.tm-body p { margin: 0 0 14px; }
.tm-body strong { color: var(--text); }
.tm-body ul { margin: 0 0 14px; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.tm-body li { position: relative; padding-left: 22px; }
.tm-body li::before { content: ""; position: absolute; left: 4px; top: 0.72em; width: 7px; height: 7px; border-radius: 999px; background: var(--green-400); }
.tm-body a { color: var(--green-400); text-decoration: underline; }

/* ---- cart ---- */
.ca-pending:not(:empty) { margin-bottom: 18px; padding: 16px 20px; border-radius: 18px; border: 1px solid rgba(255,181,71,0.35); background: rgba(255,181,71,0.05); }
.ca-pending > div { margin-top: 0 !important; }
.ca-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; align-items: start; }
.ca-list { display: grid; gap: 12px; }
.ca-item {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 18px; border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  animation: springIn .45s cubic-bezier(.2,.9,.25,1) backwards;
  transition: border-color .2s ease, transform .25s cubic-bezier(.34,1.56,.64,1);
}
.ca-item:hover { border-color: var(--line-strong); transform: translateX(4px); }
.ca-thumb { flex: 0 0 auto; width: 68px; height: 68px; border-radius: 14px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--bg-2); border: 1px solid var(--line); color: var(--green-400); font-size: 13px; }
.ca-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ca-info { flex: 1; min-width: 160px; }
.ca-name { font-family: var(--font-display); font-weight: 600; font-size: 17px; }
.ca-each { font-size: 12px; color: var(--text-mute); margin-top: 3px; }
.ca-qty { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); box-shadow: inset 0 1px 2px rgba(0,0,0,0.5); }
.ca-qty button { width: 32px; height: 32px; border-radius: 999px; font-size: 17px; color: var(--text); cursor: pointer; transition: background .15s ease, transform .2s cubic-bezier(.34,1.56,.64,1); }
.ca-qty button:hover { background: var(--green-400); color: #02110a; transform: scale(1.12); }
.ca-qty button:active { transform: scale(0.88); }
.ca-qty span { min-width: 30px; text-align: center; font-size: 16px; font-weight: 600; animation: popIn .3s cubic-bezier(.34,1.56,.64,1) backwards; }
.ca-line { width: 96px; text-align: right; font-size: 19px; font-weight: 600; animation: popIn .3s cubic-bezier(.34,1.56,.64,1) backwards; }
.ca-remove { width: 32px; height: 32px; border-radius: 999px; font-size: 19px; line-height: 1; color: var(--text-mute); cursor: pointer; transition: color .15s ease, background .15s ease, transform .25s cubic-bezier(.34,1.56,.64,1); }
.ca-remove:hover { color: #ff5d57; background: rgba(255,93,87,0.1); transform: rotate(90deg) scale(1.1); }
.ca-summary { position: sticky; top: 88px; padding: 24px; border-color: var(--line-strong) !important; animation: springIn .5s cubic-bezier(.2,.9,.25,1) .1s backwards; }
.ca-summary .eyebrow { margin-bottom: 8px; }
.ca-total { display: flex; justify-content: space-between; align-items: baseline; margin: 10px 0 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.ca-total .mono { font-size: 12px; letter-spacing: 0.2em; color: var(--text-dim); }
.ca-total .h-display { font-size: 38px; font-weight: 600; letter-spacing: -0.03em; color: var(--green-400); animation: popIn .35s cubic-bezier(.34,1.56,.64,1) backwards; }
.ca-empty { display: block; width: 100%; margin-top: 12px; padding: 8px; font-size: 12.5px; color: var(--text-mute); cursor: pointer; transition: color .15s ease; }
.ca-empty:hover { color: #ff5d57; }
@media (max-width: 960px) {
  .tm-grid { grid-template-columns: 1fr; }
  .tm-toc { position: static; max-height: 260px; }
  .ca-grid { grid-template-columns: 1fr; }
  .ca-summary { position: static; }
}
@media (max-width: 640px) {
  .tm-body { padding: 22px 20px; font-size: 15px; }
  .ca-line { width: auto; margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .tm-toc-a, .tm-body, .tm-toc-a.on::before, .ca-item, .ca-summary, .ca-qty span, .ca-line, .ca-total .h-display { animation: none; }
  .tm-toc-a, .tm-print, .ca-item, .ca-qty button, .ca-remove { transition: none; }
}
@media print {
  .tm-toc, .tm-meta, .pc-progress, nav, header, footer, .grid-bg { display: none !important; }
  .tm-grid { display: block; }
  .tm-body { border: 0 !important; background: none !important; box-shadow: none !important; color: #000; padding: 0; }
  .tm-body h2, .tm-body strong, .pg-terms .pg-title { color: #000; }
}

/* ---- navigation bar. Its height stays 64px: the dashboard and chat are
   sized against it. ---- */
.nav-v2 { transition: background .25s ease, box-shadow .25s ease, border-color .25s ease; }
.nav-v2.scrolled { background: rgba(5,8,7,0.9); border-bottom-color: var(--line-strong); box-shadow: 0 14px 34px -22px rgba(0,0,0,0.95), 0 1px 0 rgba(var(--brand-rgb),0.08); }
.nav-brand img { transition: transform .45s cubic-bezier(.34,1.56,.64,1); }
.nav-brand:hover img { transform: rotate(-10deg) scale(1.12); }
.nav-v2 .nav-links { gap: 4px; }
.nav-v2 .nav-links .nav-link {
  padding: 8px 13px; border-radius: 999px;
  transition: color .15s ease, background .2s ease, transform .25s cubic-bezier(.34,1.56,.64,1);
}
.nav-v2 .nav-links .nav-link:hover { background: rgba(255,255,255,0.05); transform: translateY(-1px); }
.nav-v2 .nav-links .nav-link:active { transform: scale(0.95); }
.nav-v2 .nav-links .nav-link.active { color: var(--green-400); background: rgba(var(--brand-rgb),0.1); box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb),0.26); }
.nav-v2 .nav-links .nav-link.active::after {
  left: 50%; right: auto; bottom: 1px; width: 16px; height: 2px; margin-left: -8px; border-radius: 2px;
  animation: popIn .35s cubic-bezier(.34,1.56,.64,1) backwards;
}
.nav-chev { display: inline-block; font-size: 9px; margin-left: 4px; transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.nav-chev.open { transform: rotate(180deg); }
.nav-v2 .nav-dropdown-menu { border-radius: 18px; animation: springIn .35s cubic-bezier(.2,.9,.25,1) backwards; transform-origin: top right; }
.nav-v2 .nav-dropdown-item { border-radius: 10px; transition: background .15s ease, color .15s ease, transform .25s cubic-bezier(.34,1.56,.64,1); }
.nav-v2 .nav-dropdown-item:hover { transform: translateX(4px); }
.nav-ic {
  position: relative; width: 38px; height: 38px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-dim); cursor: pointer;
  transition: color .15s ease, background .2s ease, transform .3s cubic-bezier(.34,1.56,.64,1);
}
.nav-ic:hover { color: var(--green-400); background: rgba(var(--brand-rgb),0.09); transform: translateY(-2px) scale(1.08); }
.nav-ic:active { transform: scale(0.9); }
.nav-badge {
  position: absolute; top: 2px; right: 1px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
  font-size: 9.5px; font-weight: 700; line-height: 16px; text-align: center;
  color: #02110a; background: var(--green-400);
  animation: popIn .4s cubic-bezier(.34,1.56,.64,1) backwards;
}
.nav-v2 .nav-avatar-btn { border-radius: 999px; transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .2s ease; }
.nav-v2 .nav-avatar-btn:hover { transform: scale(1.1); box-shadow: 0 0 0 3px rgba(var(--brand-rgb),0.3); }
.nav-v2 .nav-burger { border-radius: 10px; transition: background .15s ease; }
.nav-v2 .nav-burger:hover { background: rgba(255,255,255,0.05); }
.nav-v2 .nav-burger span { transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .15s ease; transform-origin: center; }
.nav-v2 .nav-burger.open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-v2 .nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0.2); }
.nav-v2 .nav-burger.open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
/* The phone menu lives outside the header (portal), so it is styled on its own. */
.nav-mobile { border-radius: 22px 0 0 22px; }
.nav-mobile-body { padding: 10px 14px 24px; gap: 2px; }
.nav-mobile-link {
  padding: 12px 14px; border-bottom: 0; border-radius: 12px;
  transition: background .15s ease, color .15s ease, transform .25s cubic-bezier(.34,1.56,.64,1);
}
.nav-mobile-link:hover, .nav-mobile-link:active { background: rgba(255,255,255,0.05); transform: translateX(4px); }
.nav-mobile-link.active { background: rgba(var(--brand-rgb),0.1); box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb),0.26); }
.nav-mobile.open .nav-mobile-link { animation: springIn .4s cubic-bezier(.2,.9,.25,1) backwards; }
.nav-mobile.open .nav-mobile-link:nth-child(2) { animation-delay: .03s; } .nav-mobile.open .nav-mobile-link:nth-child(3) { animation-delay: .06s; }
.nav-mobile.open .nav-mobile-link:nth-child(4) { animation-delay: .09s; } .nav-mobile.open .nav-mobile-link:nth-child(5) { animation-delay: .12s; }
.nav-mobile.open .nav-mobile-link:nth-child(6) { animation-delay: .15s; } .nav-mobile.open .nav-mobile-link:nth-child(n+7) { animation-delay: .18s; }
.nav-mobile-close { width: 36px; height: 36px; border-radius: 999px; transition: transform .3s cubic-bezier(.34,1.56,.64,1), color .15s ease; }
.nav-mobile-close:hover { transform: rotate(90deg); color: #ff5d57; }

/* ---- footer ---- */
.footer-v2 { background: linear-gradient(180deg, transparent, rgba(13,138,74,0.05)); padding-top: 40px; }
.ft-products { margin-bottom: 40px; padding: 20px 22px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.04); }
.ft-products-h { font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 14px; }
.ft-products-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.ft-prod {
  display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(0,0,0,0.2);
  font-size: 13px; font-weight: 600; color: var(--text-dim);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), border-color .2s ease, color .15s ease;
}
.ft-prod > span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.footer-v2 .ft-prod:hover { transform: translateY(-4px); border-color: var(--c, var(--green-400)); color: var(--text); }
.ft-prod-logo {
  flex: 0 0 auto; width: 32px; height: 32px; border-radius: 9px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-2); border: 1px solid var(--c, var(--line-strong)); color: var(--c, var(--green-400));
  font-family: var(--font-display); font-size: 10.5px; font-weight: 700;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.ft-prod-logo.has-logo { background: none; border: 0; }
.ft-prod-logo img { width: 100%; height: 100%; object-fit: contain; }
.ft-prod:hover .ft-prod-logo { transform: rotate(-8deg) scale(1.14); }
.footer-v2 ul a { display: inline-block; transition: color .15s ease, transform .25s cubic-bezier(.34,1.56,.64,1); }
.footer-v2 ul a:hover { transform: translateX(4px); }
.ft-bottom { font-size: 12px; color: var(--text-mute); flex-wrap: wrap; gap: 12px; }
.ft-top {
  width: 38px; height: 38px; border-radius: 999px; font-size: 16px; cursor: pointer;
  color: var(--green-400); border: 1px solid rgba(var(--brand-rgb),0.4); background: rgba(var(--brand-rgb),0.07);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .15s ease;
}
.ft-top:hover { transform: translateY(-5px) scale(1.1); background: rgba(var(--brand-rgb),0.16); }
.ft-top:active { transform: scale(0.9); }
@media (max-width: 1100px) { .ft-products-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .ft-products-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ft-products { padding: 16px; } }
@media (prefers-reduced-motion: reduce) {
  .nav-badge, .nav-v2 .nav-dropdown-menu, .nav-mobile.open .nav-mobile-link, .nav-v2 .nav-links .nav-link.active::after { animation: none; }
  .nav-ic, .nav-brand img, .nav-v2 .nav-links .nav-link, .nav-v2 .nav-burger span, .ft-prod, .ft-prod-logo, .ft-top, .footer-v2 ul a { transition: none; }
}

/* ---- applications: a dock of app icons ---- */
@keyframes apDrop { 0% { opacity: 0; transform: translateY(-46px) scale(0.6); } 55% { opacity: 1; transform: translateY(8px) scale(1.06); } 75% { transform: translateY(-4px) scale(0.98); } 100% { opacity: 1; transform: none; } }
@keyframes apBob { 0%,100% { transform: translateY(-5px); } 50% { transform: translateY(5px); } }
.ap-hero { padding-bottom: 96px; min-height: calc(100vh - 64px); display: flex; align-items: center; }
.ap-hero > .container { width: 100%; }
.ap-glow { position: absolute; left: 50%; top: 38%; width: min(760px, 90vw); aspect-ratio: 1; margin-left: calc(min(760px, 90vw) / -2); margin-top: calc(min(760px, 90vw) / -2); border-radius: 999px; background: radial-gradient(circle, rgba(13,138,74,0.3), transparent 62%); animation: auBreathe 7s ease-in-out infinite; pointer-events: none; }
.ap-title { margin-left: auto; margin-right: auto; }
.ap-lede { margin-left: auto !important; margin-right: auto !important; }
.ap-dock { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 210px)); gap: 20px; justify-content: center; margin-top: 44px; }
.ap-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 26px 16px 20px; border-radius: 26px; color: inherit; text-decoration: none; cursor: pointer;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 22px 46px -32px rgba(0,0,0,0.95);
  animation: apDrop .7s cubic-bezier(.2,.9,.25,1) backwards;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), border-color .2s ease, box-shadow .2s ease;
}
.ap-card.still { cursor: default; }
.ap-card:hover { transform: translateY(-10px) scale(1.04); border-color: rgba(var(--brand-rgb),0.55); box-shadow: inset 0 1px 0 rgba(255,255,255,0.07), 0 30px 56px -30px var(--green-glow); }
.ap-card:active { transform: scale(0.96); }
.ap-icon { position: relative; width: 112px; height: 112px; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; animation: apBob 4.2s ease-in-out infinite; }
.ap-card:nth-child(2n) .ap-icon { animation-delay: -1.4s; } .ap-card:nth-child(3n) .ap-icon { animation-delay: -2.6s; }
.ap-icon i { position: absolute; inset: 8%; border-radius: 999px; background: radial-gradient(circle, rgba(var(--brand-rgb),0.35), transparent 68%); opacity: 0.5; transition: opacity .25s ease, transform .35s cubic-bezier(.34,1.56,.64,1); }
.ap-card:hover .ap-icon i { opacity: 1; transform: scale(1.35); }
.ap-icon img { position: relative; width: 100%; height: 100%; object-fit: contain; border-radius: 24%; transition: transform .4s cubic-bezier(.34,1.56,.64,1); filter: drop-shadow(0 14px 22px rgba(0,0,0,0.6)); }
.ap-card:hover .ap-icon img { transform: rotate(-6deg) scale(1.08); }
.ap-name { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.ap-sub { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-mute); }
.ap-go { margin-top: 8px; padding: 6px 13px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--green-400); border: 1px solid rgba(var(--brand-rgb),0.35); background: rgba(var(--brand-rgb),0.07); transition: background .15s ease, color .15s ease; }
.ap-card:hover .ap-go { color: #02110a; background: var(--green-400); }

/* ---- advice ---- */
.pg-advice .tv-tools { align-items: flex-start; }
.av-lead {
  display: grid; grid-template-columns: 1.15fr 1fr; width: 100%; text-align: left; overflow: hidden; cursor: pointer;
  margin-bottom: 22px; border-radius: 24px; border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 30px 70px -44px rgba(0,0,0,0.95);
  animation: springIn .55s cubic-bezier(.2,.9,.25,1) backwards;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), border-color .2s ease;
}
.av-lead:hover { transform: translateY(-4px); border-color: var(--green-400); }
.av-lead-cover { position: relative; min-height: 300px; overflow: hidden; background: var(--bg-2); }
.av-lead-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.av-lead:hover .av-lead-cover img { transform: scale(1.06); }
.av-lead-body { padding: 32px; display: flex; flex-direction: column; gap: 12px; justify-content: center; min-width: 0; }
.av-lead-body h2 { font-size: clamp(24px, 2.8vw, 36px); letter-spacing: -0.03em; line-height: 1.1; margin: 0; }
.av-lead-body p { color: var(--text-dim); font-size: 15.5px; line-height: 1.65; margin: 0; }
.av-wrap { display: flex; animation: springIn .5s cubic-bezier(.2,.9,.25,1) backwards; }
.av-wrap > .advice-card { width: 100%; }
.pg-advice .advice-card { border-radius: 20px; transition: transform .3s cubic-bezier(.34,1.56,.64,1), border-color .2s ease, box-shadow .2s ease; }
.pg-advice .advice-card:hover { transform: translateY(-6px); }
.pg-advice .advice-card-cover img { transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.pg-advice .advice-card:hover .advice-card-cover img { transform: scale(1.07); }
.pg-advice .advice-card-more { transition: transform .25s cubic-bezier(.34,1.56,.64,1); display: inline-block; }
.pg-advice .advice-card:hover .advice-card-more { transform: translateX(5px); }
.av-article { animation: springIn .5s cubic-bezier(.2,.9,.25,1) backwards; }
.av-article .advice-article-tag { padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(var(--brand-rgb),0.35); background: rgba(var(--brand-rgb),0.07); }
.av-article .advice-article-cover { border-radius: 22px; }
.av-article .advice-body { color: var(--text); opacity: 0.86; }
@media (max-width: 900px) {
  .av-lead { grid-template-columns: 1fr; }
  .av-lead-cover { min-height: 0; aspect-ratio: 16 / 9; }
  .av-lead-body { padding: 22px; }
}
@media (max-width: 560px) {
  .ap-dock { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ap-icon { width: 84px; height: 84px; }
  .ap-card { padding: 20px 10px 16px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .ap-card, .ap-icon, .ap-glow, .av-lead, .av-wrap, .av-article { animation: none; }
  .ap-card, .ap-icon img, .ap-icon i, .av-lead, .pg-advice .advice-card { transition: none; }
}

/* ---- predictions + invest ---- */
.pr-card { border-radius: 22px; animation: springIn .5s cubic-bezier(.2,.9,.25,1) backwards; transition: transform .3s cubic-bezier(.34,1.56,.64,1), border-color .2s ease; }
.pg-predict .pr-card:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.pr-card.closed { opacity: 0.72; }
.pg-predict .pr-card.closed:hover { transform: none; }
.pr-status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; border: 1px solid var(--line-strong); color: var(--text-mute); }
.pr-status i { width: 7px; height: 7px; border-radius: 999px; background: var(--text-mute); }
.pr-status.on { color: var(--green-400); border-color: rgba(var(--brand-rgb),0.4); }
.pr-status.on i { background: var(--green-400); animation: tvPulse 2s ease-out infinite; }
.pr-outcome { border-radius: 14px; transition: border-color .15s ease, transform .25s cubic-bezier(.34,1.56,.64,1), background .15s ease; }
.pr-outcome:not(:disabled):hover { transform: translateX(5px); background: rgba(var(--brand-rgb),0.05); }
.pr-outcome:not(:disabled):active { transform: scale(0.98); }
.pr-outcome:disabled { cursor: default; }
.pr-outcome:disabled:hover { border-color: var(--line); }
.pr-outcome.lead { border-color: rgba(var(--brand-rgb),0.3); }
.pr-bar { height: 6px; border-radius: 999px; background: var(--line); overflow: hidden; }
.pr-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand-deep), var(--green-400)); transform-origin: left; animation: tvFill .9s cubic-bezier(.2,.8,.2,1) both; }
.pricing-grid.iv-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.iv-card { animation: springIn .5s cubic-bezier(.2,.9,.25,1) backwards; }
.iv-card .plan-price .unit { display: block; margin: 8px 0 0; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.iv-terms { display: grid; gap: 8px; }
.iv-term { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,0.22); }
.iv-term span { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); }
.iv-term b { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
@media (max-width: 1100px) { .pricing-grid.iv-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .pricing-grid.iv-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .pr-card, .iv-card, .pr-bar i, .pr-status.on i { animation: none; }
  .pr-card, .pr-outcome { transition: none; }
}

/* ---- machines for hire (/vps) ---- */
.pg-vps.mch-page { padding-top: 0; }
.pg-vps .mch-top { padding-top: 56px; overflow: hidden; }
.pg-vps .mch-title { font-size: clamp(36px, 4.8vw, 64px); line-height: 1.04; margin: 18px 0 12px; }
.pg-vps .mch-title .accent { color: var(--green-400); font-style: italic; font-weight: 500; }
.pg-vps .mch-sub { font-size: 16.5px; max-width: 600px; }
.pg-vps .mch-side { border-radius: 20px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.04); }
.pg-vps .mch-side-item { border-radius: 12px; transition: background .15s ease, color .15s ease, transform .25s cubic-bezier(.34,1.56,.64,1); }
.pg-vps .mch-side-item:hover { transform: translateX(4px); }
.pg-vps .mch-sort .input { border-radius: 999px; padding: 7px 14px; }
.pg-vps .mch-card {
  border-radius: 20px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  animation: springIn .5s cubic-bezier(.2,.9,.25,1) backwards;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), border-color .2s ease, box-shadow .2s ease;
}
.pg-vps .mch-card:hover { transform: translateY(-7px); border-color: rgba(var(--brand-rgb),0.5); box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 26px 50px -30px var(--green-glow); }
.pg-vps .mch-card-img img { transition: transform .45s cubic-bezier(.34,1.56,.64,1); }
.pg-vps .mch-card:hover .mch-card-img img { transform: scale(1.08) rotate(-2deg); }
.pg-vps .mch-card-specs { display: flex; flex-wrap: wrap; gap: 6px; }
.mch-spec { padding: 4px 9px; border-radius: 999px; font-size: 11.5px; color: var(--text-dim); border: 1px solid var(--line); background: rgba(0,0,0,0.25); }
.pg-vps .mch-card-foot { border-top: 1px solid var(--line); }
.pg-vps .mch-card-price { font-size: 26px; font-weight: 600; }
.pg-vps .mch-card .btn { transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
.pg-vps .mch-card:hover .btn { transform: scale(1.06); }
.pg-vps .mch-trust { background: none; border: 0; margin-top: 0; padding: 0 0 20px; }
.pg-vps .mch-trust-grid { gap: 12px; padding: 0; }
.pg-vps .mch-trust-item {
  align-items: center; padding: 16px; border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), border-color .2s ease;
}
.pg-vps .mch-trust-item:hover { transform: translateY(-4px); border-color: rgba(var(--brand-rgb),0.4); }
.mch-trust-ic { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: rgba(var(--brand-rgb),0.08); border: 1px solid rgba(var(--brand-rgb),0.3); transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.pg-vps .mch-trust-item:hover .mch-trust-ic { transform: rotate(-8deg) scale(1.1); }
.pg-vps .mch-trust-item svg { margin-top: 0; }
.pg-vps .lp-callout-card { border-radius: 24px; background: radial-gradient(ellipse at 0% 0%, rgba(var(--brand-rgb),0.1), transparent 60%), linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.05); }
.pg-vps .lp-callout-card .accent { color: var(--green-400); font-style: italic; font-weight: 500; }
.pg-vps .lp-pill { transition: transform .25s cubic-bezier(.34,1.56,.64,1), border-color .15s ease; }
.pg-vps .lp-pill:hover { transform: translateY(-3px); border-color: var(--green-400); }
.pg-vps .lp-term { border-radius: 22px; }

/* ---- share & earn (/share) ---- */
.pg-share .hero.lp-hero { min-height: 0; padding-top: 64px; padding-bottom: 40px; }
.sh-title { font-size: clamp(40px, 5.6vw, 76px) !important; line-height: 1.02 !important; }
.pg-share .hero-stats { border-top: 0; padding-top: 0; margin-top: 36px; gap: 12px; }
.pg-share .hero-stats .stat {
  padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  animation: springIn .5s cubic-bezier(.2,.9,.25,1) backwards;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), border-color .2s ease;
}
.pg-share .hero-stats .stat:nth-child(2) { animation-delay: .07s; } .pg-share .hero-stats .stat:nth-child(3) { animation-delay: .14s; }
.pg-share .hero-stats .stat:hover { transform: translateY(-4px); border-color: rgba(var(--brand-rgb),0.4); }
.pg-share .hero-stats .stat .v { font-size: 26px; color: var(--green-400); }
.pg-share .lp-diagram { border-radius: 22px; }
.pg-share .lp-step-grid { position: relative; }
.sh-step {
  border-radius: 20px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  animation: springIn .5s cubic-bezier(.2,.9,.25,1) backwards;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), border-color .2s ease;
}
.sh-step:hover { transform: translateY(-6px); border-color: rgba(var(--brand-rgb),0.45); }
.sh-step .lp-step-n {
  width: 48px; height: 48px; border-radius: 14px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--green-400);
  background: rgba(var(--brand-rgb),0.09); border: 1px solid rgba(var(--brand-rgb),0.32);
  transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.sh-step:hover .lp-step-n { transform: rotate(-8deg) scale(1.1); }
.pg-share .lp-final-card, .pg-vps .lp-final-card { border-radius: 26px; }

/* ---------- proxies + smm (public pages) ---------- */
.pg-proxies .lp-hero, .pg-smm .lp-hero { padding-top: 56px; }
.pg-proxies .hero-grid > div:first-child > *, .pg-smm .smm-hero > * { animation: springIn .55s cubic-bezier(.2,.9,.25,1) backwards; }
.pg-proxies .hero-grid > div:first-child > :nth-child(2), .pg-smm .smm-hero > :nth-child(2) { animation-delay: .06s; }
.pg-proxies .hero-grid > div:first-child > :nth-child(3), .pg-smm .smm-hero > :nth-child(3) { animation-delay: .12s; }
.pg-proxies .hero-grid > div:first-child > :nth-child(4), .pg-smm .smm-hero > :nth-child(4) { animation-delay: .18s; }
.pg-proxies .hero-grid > div:first-child > :nth-child(n+5), .pg-smm .smm-hero > :nth-child(n+5) { animation-delay: .24s; }
.pg-proxies .lp-pill, .pg-smm .smm-platform-chip {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 6px 14px -10px rgba(0,0,0,0.8);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), border-color .2s ease, color .2s ease;
}
.pg-proxies .lp-pill:hover { transform: translateY(-3px) scale(1.04); border-color: rgba(var(--brand-rgb),0.5); color: var(--text); }
.pg-proxies .lp-globe { animation: popIn .7s cubic-bezier(.34,1.56,.64,1) .15s backwards; }
.pg-proxies .lp-globe-frame { border-radius: 26px; box-shadow: 0 30px 60px -34px rgba(125,211,252,0.45); animation: auBob 7s ease-in-out infinite; }
.pg-proxies .lp-type-card, .pg-proxies .lp-feature, .pg-smm .lp-feature {
  border-radius: 20px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 14px 30px -22px rgba(0,0,0,0.9);
  animation: springIn .55s cubic-bezier(.2,.9,.25,1) backwards;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), border-color .2s ease, box-shadow .25s ease;
}
.pg-proxies .lp-type-card:hover, .pg-proxies .lp-feature:hover, .pg-smm .lp-feature:hover {
  transform: translateY(-6px);
  border-color: var(--lp-c, var(--green-400));
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 22px 40px -24px color-mix(in srgb, var(--lp-c, var(--green-400)) 55%, transparent);
}
.pg-proxies .lp-type-card { padding: 28px; }
.pg-proxies .lp-type-card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--lp-c); transform: scaleX(.25); transform-origin: left; transition: transform .45s cubic-bezier(.34,1.56,.64,1); }
.pg-proxies .lp-type-card:hover::before { transform: scaleX(1); }
.pg-proxies .lp-type-glow { transition: transform .5s cubic-bezier(.34,1.56,.64,1); }
.pg-proxies .lp-type-card:hover .lp-type-glow { transform: scale(1.5); }
.pg-proxies .lp-feature:nth-child(2), .pg-smm .lp-feature:nth-child(2) { animation-delay: .08s; }
.pg-proxies .lp-feature:nth-child(3), .pg-smm .lp-feature:nth-child(3) { animation-delay: .16s; }
.pg-proxies .lp-feature:nth-child(4), .pg-smm .lp-feature:nth-child(4) { animation-delay: .24s; }
.pg-proxies .lp-feature-ic, .pg-smm .lp-feature-ic { transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.pg-proxies .lp-feature:hover .lp-feature-ic, .pg-smm .lp-feature:hover .lp-feature-ic { transform: rotate(-8deg) scale(1.12); }
.pg-proxies .lp-final-card, .pg-smm .lp-final-card { border-radius: 26px; }

.pg-smm .smm-hero { max-width: 820px; text-align: center; }
.pg-smm .smm-platform-chip { animation: popIn .5s cubic-bezier(.34,1.56,.64,1) backwards; cursor: default; }
.pg-smm .smm-platform-chip:hover { transform: translateY(-4px) scale(1.06); border-color: var(--smm-c); color: var(--text); }
.pg-smm .smm-platform-dot { animation: tvPulse 2.4s ease-in-out infinite; }
.pg-smm .smm-stat-band { border-top: 0; padding-top: 0; gap: 12px; max-width: 780px; }
.pg-smm .smm-stat {
  padding: 18px 10px; border-radius: 18px; border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 14px 30px -22px rgba(0,0,0,0.9);
  animation: popIn .55s cubic-bezier(.34,1.56,.64,1) backwards;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), border-color .2s ease;
}
.pg-smm .smm-stat:nth-child(2) { animation-delay: .08s; } .pg-smm .smm-stat:nth-child(3) { animation-delay: .16s; } .pg-smm .smm-stat:nth-child(4) { animation-delay: .24s; }
.pg-smm .smm-stat:hover { transform: translateY(-5px); border-color: rgba(var(--brand-rgb),0.45); }
.pg-smm .smm-stat .v { color: var(--green-400); }
.pg-smm .smm-notice { border-radius: 20px !important; animation: none; }
@media (max-width: 900px) {
  .pg-proxies .lp-type-grid { grid-template-columns: 1fr; }
  .pg-proxies .lp-feature-grid, .pg-smm .lp-feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .pg-proxies .lp-feature-grid, .pg-smm .lp-feature-grid { grid-template-columns: 1fr; }
  .pg-smm .smm-stat-band { grid-template-columns: 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .pg-proxies *, .pg-smm * { animation: none !important; transition: none !important; }
}
@media (max-width: 900px) { .pg-vps .mch-trust-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pg-vps .mch-trust-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .pg-vps .mch-card, .pg-share .hero-stats .stat, .sh-step { animation: none; }
  .pg-vps .mch-card, .pg-vps .mch-trust-item, .sh-step, .pg-vps .lp-pill { transition: none; }
}

/* ---------- dashboard: machines tab ---------- */
.mc-step { display: flex; align-items: center; gap: 10px; font-size: 17px; margin: 26px 0 12px; letter-spacing: -0.01em; }
.mc-n {
  width: 28px; height: 28px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px; color: var(--green-400);
  background: rgba(var(--brand-rgb),0.09); border: 1px solid rgba(var(--brand-rgb),0.32);
}
.mc-grid { display: grid; gap: 12px; }
.mc-tools { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.mc-specs { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.mc-pick {
  position: relative; padding: 16px; border-radius: 18px; cursor: pointer; user-select: none;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 14px 30px -22px rgba(0,0,0,0.9);
  animation: springIn .5s cubic-bezier(.2,.9,.25,1) backwards;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), border-color .2s ease, box-shadow .25s ease, background .2s ease;
}
.mc-spec { padding: 20px; }
.mc-pick:hover { transform: translateY(-4px); border-color: rgba(var(--brand-rgb),0.4); }
.mc-pick:active { transform: scale(.97); }
.mc-pick.on {
  border-color: var(--green-400);
  background: linear-gradient(180deg, rgba(var(--brand-rgb),0.12), rgba(var(--brand-rgb),0.03));
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb),0.12), 0 20px 36px -24px var(--green-glow);
}
.mc-pick.off { opacity: .5; cursor: not-allowed; }
.mc-pick.off:hover { transform: none; border-color: var(--line); }
.mc-tick {
  width: 20px; height: 20px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #04130c; background: var(--green-400);
  transform: scale(0); transition: transform .35s cubic-bezier(.34,1.56,.64,1);
}
.mc-pick.on .mc-tick { transform: scale(1); }
.mc-tools .mc-tick { position: absolute; top: 14px; right: 14px; }
.mc-price { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--green-400); }
.mc-price small { font-size: 11px; font-weight: 500; color: var(--text-mute); margin-left: 2px; }
.mc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mc-chips span { font-family: var(--font-mono); font-size: 10.5px; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-dim); }
.mc-order { padding: 22px; margin-bottom: 16px; border-radius: 20px; }
.mc-months .seg-btn { padding: 8px 14px; }
.mc-note {
  margin-top: 14px; padding: 12px 16px; border-radius: 14px; font-size: 13px; line-height: 1.55;
  background: rgba(var(--brand-rgb),0.05); border: 1px solid var(--line); border-left: 3px solid var(--green-400);
}
.mc-total { font-size: 26px; font-weight: 600; }
.mc-total span { display: inline-block; color: var(--green-400); animation: popIn .4s cubic-bezier(.34,1.56,.64,1) backwards; }
.mc-box { padding: 22px; margin-bottom: 12px; border-radius: 20px; animation: springIn .5s cubic-bezier(.2,.9,.25,1) backwards; transition: transform .35s cubic-bezier(.34,1.56,.64,1), border-color .2s ease; }
.mc-box:hover { transform: translateY(-3px); border-color: rgba(var(--brand-rgb),0.35); }
.mc-box.mc-expired, .mc-box.mc-revoked { border-color: rgba(255,93,87,0.35); }
.mc-box.mc-locked { border-color: rgba(255,181,71,0.4); }
.mc-creds {
  margin-top: 14px; padding: 14px 16px; border-radius: 14px; line-height: 1.8;
  font-family: var(--font-mono); font-size: 13px; overflow-wrap: anywhere;
  background: #050b08; border: 1px dashed rgba(var(--brand-rgb),0.3);
}
.mc-req { padding: 16px 18px; margin-bottom: 8px; border-radius: 16px; animation: springIn .45s cubic-bezier(.2,.9,.25,1) backwards; }

/* ---------- dashboard: share & earn (affiliate) tab ---------- */
.af-label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; color: var(--text-dim); margin-bottom: 10px; }
.af-card { padding: 22px; border-radius: 20px; animation: springIn .5s cubic-bezier(.2,.9,.25,1) backwards; }
.af-hero {
  position: relative; overflow: hidden; padding: 28px; margin-bottom: 16px; border-radius: 22px;
  border: 1px solid rgba(var(--brand-rgb),0.3);
  background: linear-gradient(120deg, rgba(var(--brand-rgb),0.09), rgba(10,14,20,0.4));
  animation: springIn .55s cubic-bezier(.2,.9,.25,1) backwards;
}
.af-hero::before {
  content: ""; position: absolute; right: -8%; top: -60%; width: 42%; aspect-ratio: 1; border-radius: 999px;
  background: radial-gradient(circle, rgba(var(--brand-rgb),0.2), transparent 65%);
  animation: dvDrift 9s ease-in-out infinite; pointer-events: none;
}
.af-hero > * { position: relative; }
.af-link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 12px 12px 16px; border-radius: 16px;
  background: #050b08; border: 1px dashed rgba(var(--brand-rgb),0.4);
  transition: border-color .2s ease, box-shadow .3s ease;
}
.af-link.copied { border-style: solid; border-color: var(--green-400); box-shadow: 0 0 0 4px rgba(var(--brand-rgb),0.14); }
.af-link .se-hero-link { font-size: 16px; font-weight: 700; color: var(--green-400); word-break: break-all; flex: 1; min-width: 200px; }
.af-share-btn {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  padding: 9px 14px; border-radius: 12px; font-size: 12.5px; font-weight: 600; color: var(--text);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 6px 14px -10px rgba(0,0,0,0.8);
  animation: popIn .45s cubic-bezier(.34,1.56,.64,1) backwards;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), border-color .2s ease;
}
.af-share-btn:hover { transform: translateY(-3px) scale(1.05); border-color: var(--af-c, var(--green-400)); }
.af-share-btn:active { transform: scale(.95); }
.af-bar { height: 12px; border-radius: 999px; background: rgba(255,255,255,0.06); margin-top: 12px; overflow: hidden; }
.af-bar i {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--green-400), #19c97a); box-shadow: 0 0 12px rgba(var(--brand-rgb),.5);
  transform-origin: left; animation: tvFill 1s cubic-bezier(.2,.9,.25,1) .2s backwards; transition: width .6s ease;
}
.af-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--text-mute); filter: grayscale(1);
  background: rgba(255,255,255,0.03); border: 1px solid var(--line);
  animation: popIn .45s cubic-bezier(.34,1.56,.64,1) backwards;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.af-badge.hit { filter: none; color: var(--green-400); background: rgba(var(--brand-rgb),0.12); border-color: rgba(var(--brand-rgb),0.45); }
.af-badge:hover { transform: translateY(-3px) scale(1.05); }
.af-table tbody tr { animation: springIn .4s cubic-bezier(.2,.9,.25,1) backwards; transition: background .15s ease; }
.af-table tbody tr:hover { background: rgba(var(--brand-rgb),0.05); }
.af-avatar {
  display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; margin-right: 9px;
  border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--green-400);
  background: rgba(var(--brand-rgb),0.1); border: 1px solid rgba(var(--brand-rgb),0.3);
}
.af-ppc .input { border-radius: 14px; }
@media (max-width: 560px) {
  .af-hero { padding: 20px; }
  .af-link .se-hero-link { min-width: 0; flex-basis: 100%; }
  .mc-specs, .mc-tools { grid-template-columns: 1fr 1fr; }
  .mc-spec { padding: 16px; }
}
@media (max-width: 400px) { .mc-specs { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .mc *, .af *, .af-hero::before { animation: none !important; transition: none !important; }
}

/* ---------- dashboard: proxies tab ---------- */
.pxd-card { padding: 26px; margin-bottom: 14px; border-radius: 20px; animation: springIn .5s cubic-bezier(.2,.9,.25,1) backwards; }
.pxd-status { position: relative; overflow: hidden; border-color: rgba(var(--brand-rgb),0.3); background: linear-gradient(120deg, rgba(var(--brand-rgb),0.08), rgba(10,14,20,0.4)); }
.pxd-status::before {
  content: ""; position: absolute; right: -8%; top: -70%; width: 40%; aspect-ratio: 1; border-radius: 999px;
  background: radial-gradient(circle, rgba(var(--brand-rgb),0.2), transparent 65%);
  animation: dvDrift 9s ease-in-out infinite; pointer-events: none;
}
.pxd-status.expired { border-color: rgba(255,93,87,0.35); background: linear-gradient(120deg, rgba(255,93,87,0.07), rgba(10,14,20,0.4)); }
.pxd-status.expired::before { background: radial-gradient(circle, rgba(255,93,87,0.16), transparent 65%); }
.pxd-status > * { position: relative; }
.pxd-days { text-align: right; }
.pxd-days .h-display { display: inline-block; animation: popIn .6s cubic-bezier(.34,1.56,.64,1) .15s backwards; }
.pxd-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; background: var(--green-400); box-shadow: 0 0 8px var(--green-400); animation: tvPulse 2.2s ease-in-out infinite; }
.pxd-status.expired .pxd-dot { background: #ff5d57; box-shadow: 0 0 8px #ff5d57; animation: none; }
.pxd-chip {
  padding: 5px 12px; border-radius: 999px; font-size: 11px; border: 1px solid var(--line-strong);
  background: rgba(var(--brand-rgb),0.05); animation: popIn .45s cubic-bezier(.34,1.56,.64,1) backwards;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), border-color .2s ease;
}
.pxd-chip:hover { transform: translateY(-2px) scale(1.05); border-color: rgba(var(--brand-rgb),0.5); }
.pxd-token {
  flex: 1 1 300px; padding: 12px 14px; border-radius: 14px; font-size: 13px; overflow-x: auto; white-space: nowrap;
  background: #050b08; border: 1px dashed rgba(var(--brand-rgb),0.4); color: var(--green-400);
  transition: border-color .2s ease, box-shadow .3s ease;
}
.pxd-token.copied { border-style: solid; border-color: var(--green-400); box-shadow: 0 0 0 4px rgba(var(--brand-rgb),0.14); }
.pxd-warn { padding: 20px 22px; margin-bottom: 14px; border-radius: 18px; border-left: 3px solid #ffb547; background: rgba(255,181,71,0.05); animation: springIn .5s cubic-bezier(.2,.9,.25,1) backwards; }
.pxd-warn.red { border-left-color: #ff5d57; background: rgba(255,93,87,0.05); }
.pxd-packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.pxd-pack {
  position: relative; padding: 16px; border-radius: 18px; text-align: left; cursor: pointer; color: var(--text); font: inherit;
  border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: 0 1px 0 rgba(255,255,255,0.05) inset, 0 14px 30px -22px rgba(0,0,0,0.9);
  animation: springIn .5s cubic-bezier(.2,.9,.25,1) backwards;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), border-color .2s ease, box-shadow .25s ease;
}
.pxd-pack:hover:not(:disabled) { transform: translateY(-5px); border-color: var(--green-400); box-shadow: 0 20px 36px -24px var(--green-glow); }
.pxd-pack:active:not(:disabled) { transform: scale(.96); }
.pxd-pack:disabled { opacity: .6; cursor: wait; }
.pxd-pack-price { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--green-400); margin-top: 4px; }
.pxd-save { display: inline-block; margin-top: 6px; padding: 3px 8px; border-radius: 999px; font-size: 10px; letter-spacing: .08em; color: #04130c; background: var(--green-400); }
.pxd-credits { font-size: 12px; color: var(--green-400); padding: 5px 11px; border-radius: 999px; border: 1px solid rgba(var(--brand-rgb),0.35); background: rgba(var(--brand-rgb),0.07); animation: popIn .4s cubic-bezier(.34,1.56,.64,1) backwards; }
.pxd-filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-bottom: 14px; padding: 14px; border-radius: 16px; background: rgba(255,255,255,0.02); border: 1px solid var(--line); }
.pxd-filters .input { border-radius: 12px; }
.pxd-table .table { border-radius: 14px; overflow: hidden; }
.pxd-table tbody tr { animation: springIn .4s cubic-bezier(.2,.9,.25,1) backwards; transition: background .15s ease; }
.pxd-table tbody tr:hover { background: rgba(var(--brand-rgb),0.05); }
.pxd-speed { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; }
.pxd-reveal td { animation: popIn .35s cubic-bezier(.34,1.56,.64,1) backwards; }

/* ---------- dashboard: settings tab ---------- */
.st-card { padding: 28px; max-width: 720px; margin-bottom: 16px; border-radius: 20px; animation: springIn .5s cubic-bezier(.2,.9,.25,1) backwards; }
.st-h { font-size: 20px; margin: 0 0 18px; }
.st-avatar { position: relative; border-radius: 999px; padding: 4px; background: conic-gradient(from 0deg, var(--green-400), rgba(var(--brand-rgb),0.1), var(--green-400)); animation: popIn .6s cubic-bezier(.34,1.56,.64,1) backwards; transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.st-avatar:hover { transform: scale(1.06) rotate(-3deg); }
.st-avatar.busy { animation: stSpin 1.2s linear infinite; }
.st-avatar.busy > * { animation: stSpin 1.2s linear infinite reverse; }
@keyframes stSpin { to { transform: rotate(360deg); } }
.st-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.st-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.st-grid .input, .st-grid .select { border-radius: 12px; transition: border-color .2s ease, box-shadow .25s ease; }
.st-grid .input:focus, .st-grid .select:focus { box-shadow: 0 0 0 4px rgba(var(--brand-rgb),0.12); }
.st-save {
  position: sticky; bottom: 14px; z-index: 5; display: flex; gap: 10px; flex-wrap: wrap;
  max-width: 720px; padding: 12px; border-radius: 18px;
  border: 1px solid var(--line); background: rgba(8,16,12,0.86); backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px -24px rgba(0,0,0,0.9);
  animation: springIn .5s cubic-bezier(.2,.9,.25,1) .16s backwards;
  transition: border-color .25s ease, box-shadow .3s ease;
}
.st-save.saved { border-color: var(--green-400); box-shadow: 0 0 0 4px rgba(var(--brand-rgb),0.12); }
@media (max-width: 560px) {
  .st-card, .pxd-card { padding: 20px; }
  .st-grid { grid-template-columns: 1fr; }
  .pxd-days { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .pxd *, .st *, .pxd-status::before { animation: none !important; transition: none !important; }
}

/* ---------- dashboard: billing tab ---------- */
.bl-card { padding: 26px; margin-bottom: 16px; border-radius: 20px; animation: springIn .5s cubic-bezier(.2,.9,.25,1) backwards; }
.bl-sub { position: relative; overflow: hidden; }
.bl-sub.bl-active { border-color: rgba(var(--brand-rgb),0.3); background: linear-gradient(120deg, rgba(var(--brand-rgb),0.08), rgba(10,14,20,0.4)); }
.bl-sub.bl-cancelled { border-color: rgba(255,181,71,0.35); background: linear-gradient(120deg, rgba(255,181,71,0.06), rgba(10,14,20,0.4)); }
.bl-sub.bl-active::before {
  content: ""; position: absolute; right: -8%; top: -80%; width: 40%; aspect-ratio: 1; border-radius: 999px;
  background: radial-gradient(circle, rgba(var(--brand-rgb),0.2), transparent 65%);
  animation: dvDrift 9s ease-in-out infinite; pointer-events: none;
}
.bl-sub > * { position: relative; }
.bl-plan { font-size: 22px; margin-top: 6px; letter-spacing: -0.015em; }
.bl-pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; border: 1px solid currentColor; font-size: 11px; letter-spacing: .08em; }
.bl-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.bl-active .bl-dot { animation: tvPulse 2.2s ease-in-out infinite; }
.bl-method {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 16px; margin-top: 10px; border-radius: 16px;
  border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), var(--surface));
  animation: springIn .45s cubic-bezier(.2,.9,.25,1) backwards;
  transition: transform .35s cubic-bezier(.34,1.56,.64,1), border-color .2s ease, opacity .3s ease;
}
.bl-method:hover { transform: translateY(-3px); border-color: rgba(var(--brand-rgb),0.4); }
.bl-method.going { opacity: .5; transform: scale(.98); }
.bl-chip { border-radius: 10px; transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.bl-method:hover .bl-chip { transform: rotate(-6deg) scale(1.08); }
.bl-inv { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 14px; border: 1px solid var(--line); }
.bl-inv .table { min-width: 560px; }
.bl-inv tbody tr { animation: springIn .4s cubic-bezier(.2,.9,.25,1) backwards; transition: background .15s ease; }
.bl-inv tbody tr:hover { background: rgba(var(--brand-rgb),0.05); }
.bl-amt { font-family: var(--font-display); font-weight: 600; white-space: nowrap; }
.bl .ds-facts-top .ds-fact { animation: popIn .5s cubic-bezier(.34,1.56,.64,1) backwards; }
.bl .ds-facts-top .ds-fact:nth-child(2) { animation-delay: .07s; } .bl .ds-facts-top .ds-fact:nth-child(3) { animation-delay: .14s; }

/* ---------- dashboard: api tab ---------- */
.ak-card { position: relative; overflow: hidden; padding: 28px; border-radius: 20px; animation: springIn .5s cubic-bezier(.2,.9,.25,1) backwards; transition: border-color .3s ease, box-shadow .3s ease; }
.ak-card.open { border-color: rgba(var(--brand-rgb),0.4); box-shadow: 0 22px 44px -30px var(--green-glow); }
.ak-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 7px; background: var(--green-400); box-shadow: 0 0 8px var(--green-400); animation: tvPulse 2.2s ease-in-out infinite; }
.ak-key {
  margin-top: 10px; padding: 14px 16px; border-radius: 14px; overflow-wrap: anywhere;
  background: #050b08; border: 1px dashed rgba(var(--brand-rgb),0.4); color: var(--green-400);
  animation: popIn .4s cubic-bezier(.34,1.56,.64,1) backwards;
  transition: border-color .2s ease, box-shadow .3s ease;
}
.ak-key.none { color: var(--text-mute); border-color: var(--line-strong); }
.ak-key.copied { border-style: solid; border-color: var(--green-400); box-shadow: 0 0 0 4px rgba(var(--brand-rgb),0.14); }
.ak-actions .btn { transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.ak-actions .btn:hover:not(:disabled) { transform: translateY(-2px) scale(1.04); }
.ak-msg { margin: 16px 0 0; padding: 10px 14px; border-radius: 12px; font-size: 13px; background: rgba(255,255,255,0.03); border: 1px solid var(--line); animation: springIn .4s cubic-bezier(.2,.9,.25,1) backwards; }
@media (max-width: 560px) { .bl-card, .ak-card { padding: 20px; } }
@media (prefers-reduced-motion: reduce) {
  .bl *, .ak *, .bl-sub::before { animation: none !important; transition: none !important; }
}

/* ---------- live chat: messenger bubbles ----------
   Bubble colours come from --bub-* set on .chat-shell by the chosen template;
   nothing else on the page takes its colour from them. */
@keyframes bubIn { 0% { opacity: 0; transform: scale(.35) translateY(18px); } 55% { opacity: 1; transform: scale(1.07) translateY(-3px); } 78% { transform: scale(.97); } 100% { opacity: 1; transform: none; } }
@keyframes bubOut { 0% { opacity: 1; transform: none; } 35% { transform: scale(1.12); } 100% { opacity: 0; transform: scale(.2) rotate(-8deg); } }
@keyframes emoBob { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(-7px) rotate(-6deg); } 50% { transform: translateY(0) rotate(0); } 75% { transform: translateY(-4px) rotate(6deg); } }
@keyframes emoPop { 0% { opacity: 0; transform: scale(0) rotate(-30deg); } 70% { opacity: 1; transform: scale(1.25) rotate(8deg); } 100% { opacity: 1; transform: none; } }
@keyframes timerTick { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.chat-v2 .chat-stream { gap: 3px; padding: 20px 22px; }
.chat-v2 .bub { display: flex; align-items: flex-end; gap: 8px; max-width: 100%; }
.chat-v2 .bub.first { margin-top: 12px; }
.chat-v2 .bub.me { flex-direction: row-reverse; }
.chat-v2 .bub > .avatar { width: 30px; height: 30px; flex: 0 0 30px; font-size: 11px; transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.chat-v2 .bub:hover > .avatar { transform: scale(1.15) rotate(-6deg); }
.chat-v2 .bub-gap { flex: 0 0 30px; }
.chat-v2 .bub-col { display: flex; flex-direction: column; min-width: 0; max-width: min(78%, 620px); }
.chat-v2 .bub.me .bub-col { align-items: flex-end; }
.chat-v2 .bub-name { display: flex; gap: 8px; align-items: baseline; font-size: 12px; color: var(--text-dim); margin: 0 0 3px 12px; }
.chat-v2 .bub-name .mono { font-size: 9.5px; letter-spacing: .16em; }
.chat-v2 .bub-row { display: flex; align-items: center; gap: 6px; min-width: 0; }
.chat-v2 .bub.me .bub-row { flex-direction: row-reverse; }
.chat-v2 .bub-body {
  position: relative; min-width: 0; padding: 8px 13px 6px; font-size: 14.5px; line-height: 1.45;
  background: var(--bub-them); color: var(--bub-them-text);
  border-radius: 6px 20px 20px 6px; transform-origin: bottom left;
  animation: bubIn .5s cubic-bezier(.2,.9,.25,1) backwards;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), box-shadow .25s ease;
}
.chat-v2 .bub.first .bub-body { border-top-left-radius: 20px; }
.chat-v2 .bub.last .bub-body { border-bottom-left-radius: 20px; }
.chat-v2 .bub.me .bub-body {
  background: var(--bub-me); color: var(--bub-me-text);
  border-radius: 20px 6px 6px 20px; transform-origin: bottom right;
}
.chat-v2 .bub.me.first .bub-body { border-top-right-radius: 20px; }
.chat-v2 .bub.me.last .bub-body { border-bottom-right-radius: 20px; }
.chat-v2 .bub-body:hover { transform: scale(1.025); box-shadow: 0 10px 22px -14px rgba(0,0,0,0.9); }
.chat-v2 .bub-text { white-space: pre-wrap; word-break: break-word; }
.chat-v2 .bub-text a { color: inherit !important; text-decoration: underline; }
.chat-v2 .bub-meta { display: flex; gap: 7px; justify-content: flex-end; align-items: center; margin-top: 2px; font-size: 10px; opacity: .68; white-space: nowrap; }
.chat-v2 .bub-timer { animation: timerTick 1s ease-in-out infinite; font-weight: 700; opacity: 1; }
.chat-v2 .bub-fail { color: #ff5d57; font-weight: 700; }
.chat-v2 .bub.pending .bub-body { opacity: .7; }
.chat-v2 .bub.failed .bub-body { box-shadow: 0 0 0 2px #ff5d57; }
.chat-v2 .bub-body.timed { box-shadow: 0 0 0 1.5px rgba(255,255,255,0.35) inset; }
.chat-v2 .bub.leaving .bub-body { animation: bubOut .55s cubic-bezier(.6,-0.3,.7,.3) forwards; pointer-events: none; }
.chat-v2 .bub.leaving .bub-actions, .chat-v2 .bub.leaving > .avatar { opacity: 0; transition: opacity .2s ease; }
.chat-v2 .bub-quote {
  display: block; margin: 0 0 5px; padding: 5px 9px; border-radius: 12px; font-size: 12px; max-width: 420px; overflow: hidden;
  background: rgba(0,0,0,0.2); border-left: 3px solid currentColor;
}
.chat-v2 .bub-quote b { display: block; font-size: 11.5px; }
.chat-v2 .bub-quote span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .85; }
.chat-v2 .bub-img { display: block; max-width: min(280px, 100%); max-height: 240px; border-radius: 14px; margin: 2px 0 6px; }
/* 1–3 emoji on their own: big, no bubble, always moving */
.chat-v2 .bub-body.jumbo, .chat-v2 .bub.me .bub-body.jumbo { background: transparent; color: var(--text-dim); padding: 2px 4px; box-shadow: none; }
.chat-v2 .bub-emoji { display: inline-block; font-size: 46px; line-height: 1.15; animation: emoBob 2.4s ease-in-out infinite; cursor: default; transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.chat-v2 .bub-emoji:hover { animation-play-state: paused; transform: scale(1.35) rotate(-10deg); }
.chat-v2 .bub-actions { display: flex; align-items: center; gap: 2px; opacity: 0; transform: scale(.8); transition: opacity .15s ease, transform .25s cubic-bezier(.34,1.56,.64,1); flex-shrink: 0; }
.chat-v2 .bub:hover .bub-actions, .chat-v2 .bub:focus-within .bub-actions { opacity: 1; transform: none; }
.chat-v2 .bub-actions button {
  width: 26px; height: 26px; border-radius: 999px; border: 0; cursor: pointer; font-size: 13px; line-height: 1;
  color: var(--text-dim); background: rgba(255,255,255,0.06);
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), background .15s ease, color .15s ease;
}
.chat-v2 .bub-actions button:hover { transform: scale(1.2); background: rgba(255,255,255,0.14); color: var(--text); }
.chat-v2 .bub-actions button.del:hover { background: rgba(255,93,87,0.2); color: #ff5d57; }
.chat-v2 .bub-actions .mono { font-size: 9px; color: var(--text-mute); padding: 0 4px; }
@media (hover: none) { .chat-v2 .bub-actions { opacity: .75; transform: none; } }

/* composer */
.chat-v2 .ci-btn {
  position: relative; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 999px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  color: var(--text-dim); border: 1px solid var(--line); background: var(--surface-2);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), color .15s ease, border-color .15s ease, background .15s ease;
}
.chat-v2 .chat-input > .ci-btn:hover, .chat-v2 .ci-btn:hover { transform: translateY(-3px) scale(1.1) rotate(-6deg); color: var(--text); border-color: var(--line-strong); }
.chat-v2 .ci-btn:active { transform: scale(.88); }
.chat-v2 .ci-btn.on { color: var(--text); border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.08); }
.chat-v2 .ci-btn.timed::after { content: ""; position: absolute; top: 3px; right: 3px; width: 9px; height: 9px; border-radius: 50%; background: #ffb547; box-shadow: 0 0 8px #ffb547; animation: timerTick 1s ease-in-out infinite; }
.chat-v2 .ci-emo { font-size: 19px; line-height: 1; display: inline-block; }
.chat-v2 .ci-btn:hover .ci-emo { animation: emoBob .9s ease-in-out infinite; }
.chat-v2 .bub-swatch { width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,0.25); }
.chat-v2 .bub-send {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 999px; border: 0; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 700;
  background: var(--bub-me); color: var(--bub-me-text); opacity: .55;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .2s ease, box-shadow .25s ease;
}
.chat-v2 .bub-send.ready { opacity: 1; box-shadow: 0 10px 22px -10px rgba(0,0,0,0.9); animation: popIn .35s cubic-bezier(.34,1.56,.64,1); }
.chat-v2 .bub-send:hover:not(:disabled) { transform: translateY(-3px) scale(1.1) rotate(-10deg); }
.chat-v2 .bub-send:active:not(:disabled) { transform: scale(.85) translateX(4px); }
.chat-v2 .bub-send:disabled { cursor: not-allowed; }
.chat-v2 .ci-context {
  display: flex; align-items: center; gap: 10px; margin: 8px 14px 0; padding: 8px 14px; border-radius: 16px;
  font-size: 12px; color: var(--text-dim); background: rgba(255,255,255,0.04); border: 1px solid var(--line);
  animation: springIn .35s cubic-bezier(.2,.9,.25,1) backwards;
}
.chat-v2 .ci-context > button { margin-left: auto; background: transparent; border: 0; color: var(--text-dim); cursor: pointer; font-size: 16px; }
.chat-v2 .ci-error { margin: 8px 14px 0; padding: 10px 14px; border-radius: 14px; border-color: #ff5d57; color: #ff5d57; font-size: 13px; animation: springIn .35s cubic-bezier(.2,.9,.25,1) backwards; }
.chat-v2 .ci-pop {
  position: absolute; z-index: 30; padding: 10px; border-radius: 18px;
  background: var(--bg-2, #08120d); border: 1px solid var(--line-strong);
  box-shadow: 0 22px 44px -18px rgba(0,0,0,0.85);
  transform-origin: bottom left; animation: bubIn .35s cubic-bezier(.2,.9,.25,1) backwards;
}
.chat-v2 .ci-pop-h { font-family: var(--font-mono); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-dim); padding: 2px 6px 8px; }
.chat-v2 .ci-pop-f { font-size: 11px; color: var(--text-mute); padding: 8px 6px 2px; line-height: 1.45; }
.chat-v2 .emo-pop { bottom: 100%; left: 10px; margin-bottom: 8px; width: 292px; display: flex; flex-wrap: wrap; gap: 2px; }
.chat-v2 .emo { background: transparent; border: 0; cursor: pointer; font-size: 22px; line-height: 1; padding: 6px; border-radius: 12px; animation: emoPop .4s cubic-bezier(.34,1.56,.64,1) backwards; transition: transform .25s cubic-bezier(.34,1.56,.64,1), background .15s ease; }
.chat-v2 .emo:hover { transform: scale(1.5) rotate(-10deg) translateY(-3px); background: rgba(255,255,255,0.07); }
.chat-v2 .emo:active { transform: scale(.8); }
.chat-v2 .ttl-pop { bottom: 100%; left: 60px; margin-bottom: 8px; width: 236px; }
.chat-v2 .ttl-opt { display: flex; justify-content: space-between; width: 100%; padding: 9px 12px; border-radius: 12px; border: 0; cursor: pointer; font: inherit; font-size: 13px; text-align: left; color: var(--text); background: transparent; transition: background .15s ease, transform .25s cubic-bezier(.34,1.56,.64,1); }
.chat-v2 .ttl-opt:hover { background: rgba(255,255,255,0.06); transform: translateX(4px); }
.chat-v2 .ttl-opt.on { background: rgba(255,181,71,0.12); color: #ffb547; }
.chat-v2 .bub-themes { top: 100%; right: 0; margin-top: 10px; width: 270px; transform-origin: top right; }
.chat-v2 .bub-theme-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.chat-v2 .bub-theme { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 8px 2px; border-radius: 14px; border: 1px solid transparent; background: transparent; cursor: pointer; font: inherit; font-size: 10.5px; color: var(--text-dim); animation: emoPop .4s cubic-bezier(.34,1.56,.64,1) backwards; transition: transform .25s cubic-bezier(.34,1.56,.64,1), background .15s ease; }
.chat-v2 .bub-theme:hover { transform: translateY(-3px) scale(1.06); background: rgba(255,255,255,0.05); }
.chat-v2 .bub-theme.on { border-color: rgba(255,255,255,0.45); color: var(--text); background: rgba(255,255,255,0.06); }
.chat-v2 .bub-theme-prev { display: flex; flex-direction: column; gap: 3px; width: 40px; }
.chat-v2 .bub-theme-prev i { display: block; height: 11px; width: 26px; border-radius: 999px; }
.chat-v2 .bub-theme-prev i:last-child { align-self: flex-end; }
@media (max-width: 760px) {
  .chat-v2 .chat-stream { padding: 14px 12px; }
  .chat-v2 .bub-col { max-width: 84%; }
  .chat-v2 .ci-btn { width: 34px; height: 34px; flex-basis: 34px; }
  .chat-v2 .chat-input { gap: 6px; padding: 10px 10px 12px; }
  .chat-v2 .emo-pop { left: 6px; width: min(292px, calc(100vw - 24px)); }
  .chat-v2 .ttl-pop { left: 6px; }
  .chat-v2 .bub-emoji { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .chat-v2 .bub-body, .chat-v2 .bub-emoji, .chat-v2 .emo, .chat-v2 .bub-theme, .chat-v2 .ci-pop, .chat-v2 .bub-timer, .chat-v2 .ci-context, .chat-v2 .bub-send, .chat-v2 .ci-btn.timed::after { animation: none !important; }
  .chat-v2 .bub.leaving .bub-body { opacity: 0; }
  .chat-v2 .bub-body, .chat-v2 .ci-btn, .chat-v2 .bub-send, .chat-v2 .emo, .chat-v2 .bub-actions, .chat-v2 .bub-actions button { transition: none; }
}

/* ---------- live chat: channel switcher in the header (phones only) ----------
   The channel sidebar is hidden at ≤760px, so there the channel name becomes a
   button that opens the channel list. On wider screens it is plain text. */
.chat-v2 .chat-head-l { position: relative; min-width: 0; }
.chat-v2 .chat-chan-btn { display: block; min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: default; pointer-events: none; }
.chat-v2 .chat-chan-name { font-size: 22px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-v2 .chat-chan-sub { display: block; margin-top: 4px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }
.chat-v2 .chat-chan-caret { display: none; }
.chat-v2 .chan-pop { top: 100%; left: 0; margin-top: 10px; width: 260px; max-height: min(60vh, 420px); overflow-y: auto; transform-origin: top left; }
.chat-v2 .chan-pop .ttl-opt.on { background: rgba(var(--brand-rgb),0.1); color: var(--green-400); }
.chat-v2 .chan-pop-actions { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; padding: 10px 4px 2px; border-top: 1px solid var(--line); }
@media (max-width: 760px) {
  .chat-v2 .chat-chan-btn { pointer-events: auto; cursor: pointer; margin: -6px -10px; padding: 6px 10px; border-radius: 14px; transition: background .15s ease; }
  .chat-v2 .chat-chan-btn:hover, .chat-v2 .chat-chan-btn.on { background: rgba(255,255,255,0.06); }
  .chat-v2 .chat-chan-caret { display: inline-block; font-size: 12px; color: var(--text-dim); transition: transform .25s ease; }
  .chat-v2 .chat-chan-btn.on .chat-chan-caret { transform: rotate(180deg); }
  .chat-v2 .chat-chan-name { font-size: 19px; max-width: 46vw; }
  .chat-v2 .chan-pop { width: min(280px, calc(100vw - 24px)); }
}

/* ---------- pop-out chat boxes (ChatPopupBody in ui.jsx) ----------
   Same bubbles, colour templates and timers as the /chat page — the box carries
   .chat-v2 so those rules apply — only smaller. */
.chat-pop { position: relative; height: 100%; display: flex; flex-direction: column; background: var(--bg, #020504); }
.chat-pop.embedded { background: var(--bg-2, #04120b); }
.chat-pop-note { margin: auto; font-size: 12px; text-align: center; color: var(--text-mute); }
.chat-v2.chat-pop .chat-stream { gap: 2px; padding: 10px 10px 8px; }
.chat-v2.chat-pop .bub { gap: 6px; }
.chat-v2.chat-pop .bub.first { margin-top: 8px; }
.chat-v2.chat-pop .bub > .avatar { width: 24px; height: 24px; flex: 0 0 24px; font-size: 9.5px; }
.chat-v2.chat-pop .bub-gap { flex: 0 0 24px; }
.chat-v2.chat-pop .bub-col { max-width: 80%; }
.chat-v2.chat-pop .bub-name { margin-left: 10px; font-size: 10.5px; }
.chat-v2.chat-pop .bub-body { padding: 6px 10px 4px; font-size: 13px; border-radius: 5px 16px 16px 5px; }
.chat-v2.chat-pop .bub.first .bub-body { border-top-left-radius: 16px; }
.chat-v2.chat-pop .bub.last .bub-body { border-bottom-left-radius: 16px; }
.chat-v2.chat-pop .bub.me .bub-body { border-radius: 16px 5px 5px 16px; }
.chat-v2.chat-pop .bub.me.first .bub-body { border-top-right-radius: 16px; }
.chat-v2.chat-pop .bub.me.last .bub-body { border-bottom-right-radius: 16px; }
.chat-v2.chat-pop .bub-meta { font-size: 9px; }
.chat-v2.chat-pop .bub-img { max-width: 100%; max-height: 180px; border-radius: 10px; }
.chat-v2.chat-pop .bub-emoji { font-size: 34px; }
.chat-v2.chat-pop .bub-actions button { width: 22px; height: 22px; font-size: 11px; }
.chat-v2.chat-pop .ci-context { gap: 8px; margin: 6px 8px 0; padding: 6px 10px; border-radius: 12px; font-size: 11px; }
.chat-v2.chat-pop .chat-input { gap: 5px; padding: 8px; border-top: 1px solid var(--line); }
.chat-v2.chat-pop .chat-input .input { flex: 1; min-width: 0; padding: 8px 12px; font-size: 12.5px; }
.chat-v2.chat-pop .ci-btn { width: 28px; height: 28px; flex: 0 0 28px; }
.chat-v2.chat-pop .ci-emo { font-size: 15px; }
.chat-v2.chat-pop .bub-swatch { width: 14px; height: 14px; }
.chat-v2.chat-pop .bub-send { width: 32px; height: 32px; flex: 0 0 32px; }
.chat-v2.chat-pop .ci-pop { padding: 8px; border-radius: 14px; }
.chat-v2.chat-pop .emo-pop { left: 6px; right: 6px; width: auto; margin-bottom: 6px; }
.chat-v2.chat-pop .emo { padding: 4px; font-size: 18px; }
.chat-v2.chat-pop .ttl-pop { left: 6px; width: min(220px, calc(100% - 12px)); margin-bottom: 6px; }
.chat-v2.chat-pop .bub-themes { top: auto; bottom: 100%; left: 6px; right: 6px; width: auto; margin: 0 0 6px; transform-origin: bottom right; }
@media (prefers-reduced-motion: reduce) {
  .chat-v2 .chat-chan-btn, .chat-v2 .chat-chan-caret { transition: none; }
}

/* ---------- dashboard: overview / purchases / downloads / inbox / danger zone ----------
   Small shared pieces these tabs were drawing with inline styles. */
.ds-acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ds-acts.end { justify-content: flex-end; flex-wrap: nowrap; }
.dash-v2 .dash-main .btn.ds-red { color: var(--red, #ff5d57); border-color: rgba(255,93,87,0.4); }
.dash-v2 .dash-main .btn.ds-red:hover:not(:disabled) { background: rgba(255,93,87,0.08); border-color: #ff5d57; }
.dash-v2 .dash-main .btn:disabled { opacity: .5; cursor: not-allowed; }
.ds-new { padding: 2px 7px; border-radius: 999px; font-size: 10px; font-weight: 700; letter-spacing: .08em; color: #02110a; background: var(--green-400); animation: popIn .45s cubic-bezier(.34,1.56,.64,1) backwards; }
.ds-note {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 14px; padding: 12px 16px; border-radius: 14px; font-size: 13px;
  color: var(--green-400); background: rgba(var(--brand-rgb),0.06); border: 1px solid rgba(var(--brand-rgb),0.4);
  animation: springIn .4s cubic-bezier(.2,.9,.25,1) backwards;
}
.ds-note.err { color: #ff5d57; background: rgba(255,93,87,0.06); border-color: rgba(255,93,87,0.45); }
.ds-msg:focus-visible { outline: 2px solid var(--green-400); outline-offset: 2px; }
.dash-v2 .dash-main .input.ds-ok-input { border-color: var(--green-400); box-shadow: 0 0 0 4px rgba(var(--brand-rgb),0.1); }
/* purchases table: scrolls sideways inside its card on narrow screens */
.dash-v2 .dash-main .ds-table { padding: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ds-table .table { min-width: 760px; }
/* The phone rule ".card table { display: block }" splits the header and the body
   into two separately-sized tables, so the columns stop lining up. These two
   tables scroll inside their own wrapper instead, and stay real tables. */
.dash-v2 .dash-main .ds-table .table, .dash-v2 .dash-main .bl-inv .table { display: table; overflow: visible; white-space: normal; }
.dash-v2 .dash-main .ds-table .table thead, .dash-v2 .dash-main .bl-inv .table thead { display: table-header-group; width: auto; min-width: 0; }
.dash-v2 .dash-main .ds-table .table tbody, .dash-v2 .dash-main .bl-inv .table tbody { display: table-row-group; width: auto; min-width: 0; }
/* overview: orders still waiting for payment */
.dv-pend { display: grid; gap: 8px; }
.dv-pend-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px 14px; flex-wrap: wrap;
  padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0,0,0,0.2);
  animation: springIn .45s cubic-bezier(.2,.9,.25,1) backwards;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), border-color .2s ease;
}
.dv-pend-row:hover { transform: translateX(4px); border-color: rgba(255,181,71,0.4); }
.dv-pend-t { display: flex; align-items: center; gap: 12px; flex: 1 1 220px; min-width: 0; }
.dash-v2 .dash-main .dv-pend-t .ds-pill { flex: 0 0 auto; min-width: max-content; }
.dash-v2 .dash-main .ds-acts .btn { min-width: max-content; white-space: nowrap; }
.dv-pend-d { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dv-pend-m { font-size: 11px; color: var(--text-mute); white-space: nowrap; }
/* downloads: one row per operating system */
.ds-os-list { display: flex; flex-direction: column; gap: 10px; }
.ds-os {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--line-strong); background: var(--surface-2);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), border-color .2s ease;
}
.ds-os:not(.off):hover { transform: translateX(4px); border-color: rgba(var(--brand-rgb),0.45); }
.ds-os.off { background: transparent; border-style: dashed; border-color: var(--line); opacity: .6; }
.ds-os img { flex: 0 0 auto; object-fit: contain; }
.ds-os-t { flex: 1; min-width: 0; }
.ds-os-n { font-size: 14px; font-weight: 600; }
.ds-os-x { flex: 0 0 auto; font-size: 11px; color: var(--text-mute); }
.ds-os .btn { flex: 0 0 auto; }
/* Full download + Portable side by side; a link not added yet is a grey, unclickable pill. */
.ds-os2 { flex-wrap: wrap; }
.ds-os-g { width: 28px; text-align: center; font-size: 20px; color: var(--green-400); flex: 0 0 auto; }
.ds-os-kinds { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.ds-os-na {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15;
  padding: 5px 12px; border-radius: 10px; font-size: 12px; font-weight: 600;
  color: var(--text-mute); background: rgba(128,128,128,0.12); border: 1px dashed var(--line);
  cursor: not-allowed; user-select: none;
}
.ds-os-na small { font-size: 9.5px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; opacity: .8; }
@media (max-width: 560px) {
  .ds-os-kinds { width: 100%; justify-content: stretch; }
  .ds-os-kinds > * { flex: 1 1 0; }
  .dv-pend-row .ds-acts { width: 100%; }
  .dv-pend-row .ds-acts .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .ds-new, .ds-note, .dv-pend-row { animation: none; }
  .dv-pend-row, .ds-os { transition: none; }
}

/* ---------- admin: Orders (.ao) + Users (.au) ---------- */
.ao-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.ao-stat-btn { text-align: left; font: inherit; color: inherit; cursor: pointer; border: 1px solid var(--line); }
.ao-stat-btn.on { border-color: rgba(var(--brand-rgb),0.5) !important; box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb),0.25); }
.ao-stats .stat-tile .muted { font-size: 11.5px; margin-top: 4px; }
.ao-warn { color: #ffb547; } .ao-info { color: #6cb8ff; }
.ao-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin-bottom: 12px; }
.ao-tabs, .au-segs { display: flex; flex-wrap: wrap; gap: 6px; }
.ao-tab, .au-seg {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; font: inherit; font-size: 12.5px; font-weight: 600;
  color: var(--text-dim); background: var(--bg-2); border: 1px solid var(--line); cursor: pointer; white-space: nowrap;
  transition: color .15s ease, border-color .15s ease, background .15s ease, transform .25s cubic-bezier(.34,1.56,.64,1);
}
.ao-tab, .au-seg { flex: 0 0 auto; min-width: max-content; }
.ao-tab span, .au-seg span { min-width: 20px; padding: 1px 7px; border-radius: 999px; font-family: var(--font-mono); font-size: 10.5px; text-align: center; color: var(--text-mute); background: rgba(255,255,255,0.05); }
.ao-tab:hover, .au-seg:hover { color: var(--text); transform: translateY(-1px); }
.ao-tab.on, .au-seg.on { color: var(--green-400); border-color: rgba(var(--brand-rgb),0.45); background: rgba(var(--brand-rgb),0.08); }
.ao-tab.on span, .au-seg.on span { color: #02110a; background: var(--green-400); }
.au-seg.hot:not(.on) span { color: #1a1200; background: #ffb547; }
.ao-tools, .au-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ao-search { position: relative; flex: 1 1 260px; min-width: 200px; max-width: 420px; }
.ao-search .input { width: 100%; padding: 9px 30px 9px 14px; border-radius: 999px; font-size: 13px; }
.ao-search button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); padding: 2px 4px; font-size: 16px; line-height: 1; color: var(--text-mute); background: transparent; border: 0; cursor: pointer; }
.ao-search button:hover { color: var(--text); }
.adm-v2 .dash-main .input.ao-select { width: auto; padding: 8px 12px; font-size: 12.5px; border-radius: 999px; }
.adm-v2 .dash-main .card.ao-tablecard, .adm-v2 .dash-main .card.au-tablecard { padding: 0; overflow: hidden; }
.ao-tablecard .admin-table-wrap, .au-tablecard .admin-table-wrap { border: 0; border-radius: 0; margin: 0; }
.ao-no { font-size: 12.5px; color: var(--text); white-space: nowrap; }
.ao-table td[data-label="Order"] .ao-sub, .ao-table td[data-label="Customer"] .ao-sub { white-space: nowrap; }
.ao-table td[data-label="Item"] { width: 100%; }
.ao-sub { font-size: 11px; color: var(--text-mute); }
.ao-name { font-weight: 600; }
.ao-item { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ao-method { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; padding: 2px 8px; border-radius: 6px; color: var(--text-dim); background: rgba(255,255,255,0.05); }
.ao-amt { text-align: right; font-family: var(--font-display); font-weight: 600; white-space: nowrap; }
.ao-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; }
.ao-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .04em; white-space: nowrap; border: 1px solid transparent; }
.ao-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ao-pill.ok   { color: var(--green-400); background: rgba(var(--brand-rgb),0.1);  border-color: rgba(var(--brand-rgb),0.3); }
.ao-pill.warn { color: #ffb547; background: rgba(255,181,71,0.1);  border-color: rgba(255,181,71,0.3); }
.ao-pill.info { color: #6cb8ff; background: rgba(108,184,255,0.1); border-color: rgba(108,184,255,0.32); }
.ao-pill.bad  { color: #ff5d57; background: rgba(255,93,87,0.1);   border-color: rgba(255,93,87,0.3); }
.ao-pill.mute { color: var(--text-mute); background: rgba(255,255,255,0.04); border-color: var(--line); }
.ao-pill.info i { animation: tvPulse 2s ease-out infinite; }
/* order drawer */
.ao-drawer-back { position: fixed; inset: 0; z-index: 1200; background: rgba(0,0,0,0.55); backdrop-filter: blur(3px); animation: auFade .2s ease backwards; }
.ao-drawer {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(480px, 100%); overflow-y: auto; padding: 22px 22px 28px;
  background: linear-gradient(180deg, var(--surface-3, #14241d), var(--surface)); border-left: 1px solid var(--line-strong);
  box-shadow: -30px 0 70px -20px rgba(0,0,0,0.8); animation: aoSlide .32s cubic-bezier(.2,.9,.25,1) backwards;
}
@keyframes aoSlide { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.ao-drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ao-drawer-head h3 { margin: 6px 0 2px; font-size: 18px; overflow-wrap: anywhere; }
.ao-x { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 999px; font-size: 20px; line-height: 1; color: var(--text-dim); background: rgba(255,255,255,0.05); border: 0; cursor: pointer; transition: transform .25s cubic-bezier(.34,1.56,.64,1), color .15s ease; }
.ao-x:hover { transform: rotate(90deg); color: #ff5d57; }
.ao-hero { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 18px 0 12px; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: rgba(0,0,0,0.22); }
.ao-hero-amt { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.ao-hero-amt span { font-size: 13px; color: var(--text-mute); font-family: var(--font-mono); }
.ao-note { margin: 0 0 12px; padding: 10px 13px; border-radius: 12px; font-size: 13px; }
.ao-note.info { color: #6cb8ff; background: rgba(108,184,255,0.08); border: 1px solid rgba(108,184,255,0.3); }
.ao-facts { display: grid; grid-template-columns: 96px 1fr; gap: 0; margin: 0 0 18px; font-size: 13.5px; }
.ao-facts dt, .ao-facts dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line); }
.ao-facts dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); padding-top: 11px; }
.ao-facts dd { min-width: 0; overflow-wrap: anywhere; }
.ao-facts dd.mono { font-size: 12.5px; }
.ao-facts a { color: var(--green-400); }
.ao-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.ao-actions.main .btn { flex: 1 1 auto; }
.ao-amber { color: #ffb547 !important; border-color: rgba(255,181,71,0.5) !important; }
.ao-compose { display: grid; gap: 6px; }
.ao-compose .lbl { margin-top: 6px; }
/* users */
.au-segs { margin-bottom: 12px; }
.au-tools { margin-bottom: 12px; }
.au-count { font-size: 12px; }
.au-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.au-av { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--green-400); background: rgba(var(--brand-rgb),0.1); border: 1px solid rgba(var(--brand-rgb),0.25); }
.au-av.lg { flex-basis: 56px; width: 56px; height: 56px; font-size: 18px; }
.au-av img { width: 100%; height: 100%; object-fit: cover; }
.au-vhead { display: flex; align-items: center; gap: 14px; min-width: 0; }
.au-name { font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.au-mail { font-size: 11px; color: var(--text-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au-ref { color: var(--green-400); opacity: .8; }
.au-tag { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .12em; padding: 1px 7px; border-radius: 999px; color: var(--text-dim); border: 1px solid var(--line-strong); }
.au-tag.admin { color: #ffb547; border-color: rgba(255,181,71,0.4); }
.au-small { font-size: 11.5px; }
.au-dim { color: var(--text-mute); }
.au-left { margin-left: 6px; color: var(--green-400); }
.au-left.warn { color: #ffb547; } .au-left.bad { color: #ff8d57; }
.au-banned td { opacity: .55; }
.au-none { text-align: center; padding: 30px !important; color: var(--text-mute); }
.au-sort { display: inline-flex; align-items: center; gap: 5px; width: 100%; padding: 0; font: inherit; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: inherit; background: transparent; border: 0; cursor: pointer; }
.au-sort span { font-size: 9px; opacity: .45; }
.au-sort:hover, .au-sort.on { color: var(--green-400); }
.au-sort.on span { opacity: 1; }
.au-bulk {
  position: sticky; top: 8px; z-index: 50; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-bottom: 12px; padding: 10px 14px; border-radius: 16px;
  background: linear-gradient(180deg, var(--surface-3, #14241d), var(--surface)); border: 1px solid rgba(var(--brand-rgb),0.4);
  box-shadow: 0 14px 34px -14px rgba(0,0,0,0.85); animation: springIn .35s cubic-bezier(.2,.9,.25,1) backwards;
}
.au-bulk-n { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--green-400); margin-right: 4px; }
.au-bulk-x { margin-left: auto; font: inherit; font-size: 12px; color: var(--text-mute); background: transparent; border: 0; cursor: pointer; }
.au-bulk-x:hover { color: var(--text); }
@media (max-width: 1100px) { .ao-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Phones: a tab heading's buttons drop below the title instead of squeezing it
   into a narrow column (the phone rule `.dash-main * { min-width: 0 }` removes
   the title's 220px floor). Applies to every DashHead, member and admin. */
@media (max-width: 760px) {
  .ds-head-t { flex: 1 1 calc(100% - 70px); }
  .ds-head-a { flex: 1 1 100%; }
}
@media (max-width: 760px) {
  .ao-bar { align-items: stretch; }
  .ao-tabs, .au-segs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .ao-tabs::-webkit-scrollbar, .au-segs::-webkit-scrollbar { display: none; }
  .ao-search { max-width: none; }
  .ao-drawer { padding: 18px 16px 90px; }
  .ao-facts { grid-template-columns: 84px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .ao-drawer, .ao-drawer-back, .au-bulk, .ao-pill.info i { animation: none; }
  .ao-tab, .au-seg, .ao-x { transition: none; }
}

/* ---------- pop-out chat box: the frame and its title bar ---------- */
.chat-popframe {
  position: fixed; z-index: 98; display: flex; flex-direction: column; overflow: hidden;
  border-radius: 18px 18px 0 0; border: 1px solid var(--line-strong);
  background: var(--bg-2); box-shadow: 0 24px 60px -18px rgba(0,0,0,0.85), 0 0 0 1px rgba(var(--brand-rgb),0.06);
  animation: springIn .4s cubic-bezier(.2,.9,.25,1) backwards;
}
.chat-popframe.moved { border-radius: 18px; }
.chat-popframe-head {
  display: flex; align-items: center; gap: 6px; padding: 8px 10px; cursor: move;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.chat-popframe-btn {
  width: 26px; height: 26px; flex: 0 0 26px; padding: 0; border-radius: 999px; font-size: 16px; line-height: 1;
  color: var(--text-dim); background: rgba(255,255,255,0.05); border: 0; cursor: pointer;
  transition: transform .25s cubic-bezier(.34,1.56,.64,1), background .15s ease, color .15s ease;
}
.chat-popframe-btn:hover { transform: scale(1.12); color: var(--text); background: rgba(255,255,255,0.12); }
.chat-popframe-btn.x:hover { color: #ff5d57; background: rgba(255,93,87,0.18); }
@media (prefers-reduced-motion: reduce) { .chat-popframe { animation: none; } .chat-popframe-btn { transition: none; } }

/* ---------- settings: email-change code · danger zone code · billing ---------- */
.st-hint { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--text-dim); }
.st-hint b { color: var(--text); font-weight: 600; }
.st-pw { animation: springIn .4s cubic-bezier(.2,.9,.25,1) backwards; }
.st-pending { border-color: rgba(255,181,71,0.45) !important; background: linear-gradient(120deg, rgba(255,181,71,0.07), transparent 60%), linear-gradient(180deg, var(--surface-2), var(--surface)) !important; }
.st-code-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dash-v2 .dash-main .input.st-code { width: 150px; flex: 0 0 150px; font-size: 20px; letter-spacing: 0.3em; text-align: center; padding: 10px 8px; }
.ds-linkbtn { padding: 0; font: inherit; font-size: 12.5px; color: var(--text-dim); background: transparent; border: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ds-linkbtn:hover { color: var(--green-400); }
.ds-fact-s { font-family: var(--font-body); font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--text-dim); }

/* ---------- predictions + invest: data comes from the server ---------- */
.pg-none { padding: 44px 24px; text-align: center; animation: springIn .5s cubic-bezier(.2,.9,.25,1) backwards; }
.pg-none h3 { font-size: 22px; margin: 0 0 8px; }
.pg-none p { margin: 0; }
.pr-outcome.still { cursor: default; }
.pr-outcome.still:hover { transform: none; background: transparent; }
.pricing-grid.iv-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.iv-body { margin: 14px 0 0; font-size: 13px; line-height: 1.55; }
.iv-note { margin: 20px 0 0; font-size: 12.5px; text-align: center; }
@media (max-width: 1100px) { .pricing-grid.iv-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .st-pw, .pg-none { animation: none; } }

/* ---------- admin console (.adm-v2) + manager console (.mgr-v2) ----------
   The admin screens are styled inline, screen by screen. This block gives all
   of them the member dashboard's look through the pieces they share: the
   sidebar, cards, stat tiles, tables, inputs, buttons and the loading / empty /
   error states. Nothing here changes what a screen does. */

/* --border was used ~90 times in the admin (row dividers, outlines) but was
   never defined, so those lines were silently missing. */
:root { --border: var(--line); }

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

/* sidebar */
.adm-v2 .dash-side { background: linear-gradient(180deg, var(--bg-2), var(--surface)); }
.adm-mark { color: #02110a; font-weight: 700; background: linear-gradient(135deg, var(--green-400), var(--green-700)); box-shadow: 0 0 0 3px rgba(var(--brand-rgb),0.18); }
.adm-search { position: relative; padding: 0 14px 12px; }
.adm-search .input { width: 100%; padding: 9px 30px 9px 14px; font-size: 12.5px; border-radius: 999px; background: var(--bg-2); box-shadow: inset 0 1px 2px rgba(0,0,0,0.5); transition: border-color .15s ease, box-shadow .2s ease; }
.adm-search .input:focus { border-color: rgba(var(--brand-rgb),0.5); box-shadow: 0 0 0 4px rgba(var(--brand-rgb),0.1); }
.adm-search-x { position: absolute; right: 22px; top: 7px; padding: 4px; font-size: 14px; line-height: 1; color: var(--text-mute); background: transparent; border: 0; cursor: pointer; }
.adm-search-x:hover { color: var(--text); }
.adm-v2 .dash-side .group-toggle { padding: 12px 24px 6px; }
.adm-v2 .dash-navgroup:not(.is-collapsed) .group-toggle { color: var(--text-dim); }
.adm-v2 .dash-link {
  position: relative; margin: 2px 10px; width: calc(100% - 20px); padding: 9px 14px; border-radius: 12px; border-left: 0; font-size: 13.5px;
  transition: color .15s ease, background .2s ease, transform .25s cubic-bezier(.34,1.56,.64,1);
}
.adm-v2 .dash-link:hover { transform: translateX(4px); background: rgba(255,255,255,0.04); }
.adm-v2 .dash-link:active { transform: scale(0.97); }
.adm-v2 .dash-link.active { background: rgba(var(--brand-rgb),0.1); box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb),0.28); }
.adm-v2 .dash-link.active::before {
  content: ""; position: absolute; left: -10px; top: 22%; bottom: 22%; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--green-400); box-shadow: 0 0 10px var(--green-glow);
  animation: popIn .35s cubic-bezier(.34,1.56,.64,1) backwards;
}
.adm-v2 .dash-link .dash-ic { transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.adm-v2 .dash-link:hover .dash-ic { transform: scale(1.18) rotate(-6deg); }
.adm-badge { margin-left: auto; padding: 1px 7px; border-radius: 999px; font-size: 10px; font-weight: 700; color: #02110a; background: var(--green-400); box-shadow: 0 0 12px rgba(var(--brand-rgb),0.5); }

/* page: each screen eases in when its tab opens */
.adm-v2 .dash-main > * { animation: admIn .32s ease backwards; }
.adm-v2 .dash-main > *:nth-child(2) { animation-delay: .04s; }
.adm-v2 .dash-main > *:nth-child(3) { animation-delay: .08s; }
.adm-v2 .dash-main > *:nth-child(n+4) { animation-delay: .12s; }
.adm-v2 .dash-main h2 { font-size: clamp(22px, 2.4vw, 28px); }
.adm-v2 .dash-main h3, .adm-v2 .dash-main h4 { font-family: var(--font-display); letter-spacing: -0.01em; }
.adm-v2 .dash-main .card { border-radius: 18px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.04); }

/* stat tiles: as many per row as fit, and only the clickable ones lift */
.adm-v2 .stat-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.adm-v2 .stat-tile, .mgr-v2 .stat-tile {
  padding: 16px 18px; border-radius: 18px; background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), border-color .2s ease;
}
.adm-v2 .stat-tile .val, .mgr-v2 .stat-tile .val { font-size: clamp(20px, 2vw, 27px); overflow-wrap: anywhere; }
.adm-v2 .stat-tile.is-link { cursor: pointer; }
.adm-v2 .stat-tile.is-link:hover { transform: translateY(-4px); border-color: rgba(var(--brand-rgb),0.45); }
.adm-v2 .stat-tile.is-link:focus-visible { outline: 2px solid var(--green-400); outline-offset: 2px; }
.adm-chev { float: right; font-size: 14px; line-height: 1; opacity: .45; transition: transform .25s cubic-bezier(.34,1.56,.64,1), opacity .15s ease; }
.stat-tile.is-link:hover .adm-chev { transform: translateX(3px); opacity: 1; color: var(--green-400); }

/* tables: quiet header, a little air, row highlight. Only vertical padding is
   added so no table gets wider than it was. */
.adm-v2 .dash-main table { border-collapse: collapse; }
.adm-v2 .dash-main table th { font-family: var(--font-mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); }
.adm-v2 .dash-main table tbody tr { transition: background .15s ease; }
.adm-v2 .dash-main table tbody tr:hover { background: rgba(var(--brand-rgb),0.04); }
@media (min-width: 1025px) {
  .adm-v2 .dash-main table th, .adm-v2 .dash-main table td { padding-top: 8px; padding-bottom: 8px; }
}

/* inputs + buttons */
.adm-v2 .dash-main .input, .adm-v2 .dash-main .select, .adm-v2 .dash-main .textarea,
.mgr-v2 .input, .mgr-v2 .select, .mgr-v2 .textarea { border-radius: 12px; transition: border-color .15s ease, box-shadow .2s ease; }
.adm-v2 .dash-main .input:focus, .adm-v2 .dash-main .select:focus, .adm-v2 .dash-main .textarea:focus,
.mgr-v2 .input:focus, .mgr-v2 .select:focus, .mgr-v2 .textarea:focus { box-shadow: 0 0 0 4px rgba(var(--brand-rgb),0.1); }
.adm-v2 .dash-main .btn, .mgr-v2 .btn { transition: transform .25s cubic-bezier(.34,1.56,.64,1), background .15s ease, border-color .15s ease, color .15s ease; }
.adm-v2 .dash-main .btn:hover:not(:disabled), .mgr-v2 .btn:hover:not(:disabled) { transform: translateY(-1px); }
.adm-v2 .dash-main .btn:active:not(:disabled), .mgr-v2 .btn:active:not(:disabled) { transform: scale(0.97); }
.adm-v2 .dash-main .btn:disabled, .mgr-v2 .btn:disabled { cursor: not-allowed; }
.btn.adm-danger { color: var(--red); border-color: rgba(255,93,87,0.4); }
.btn.adm-danger:hover:not(:disabled) { background: rgba(255,93,87,0.08); border-color: var(--red); }

/* empty + error states */
.adm-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 36px 24px; text-align: center; color: var(--text-mute); }
.adm-empty-ic, .mgr-gate-ic {
  position: relative; width: 56px; height: 56px; border-radius: 18px;
  background: var(--bg-2); border: 1px dashed var(--line-strong);
  animation: popIn .5s cubic-bezier(.34,1.56,.64,1) backwards;
}
.adm-empty-ic::after { content: ""; position: absolute; inset: 0; margin: auto; width: 20px; height: 2px; border-radius: 2px; background: var(--text-mute); opacity: .7; }
.adm-err { padding: 22px 24px; border-color: rgba(255,93,87,0.5) !important; background: linear-gradient(180deg, rgba(255,93,87,0.06), var(--surface)) !important; }
.adm-err-msg { margin-bottom: 10px; color: var(--red); }

/* ---- manager console ---- */
.mgr-v2 { max-width: 1100px; margin: 0 auto; padding: 30px 20px 60px; }
.mgr-v2 .ds-head h2 { font-size: clamp(22px, 2.4vw, 28px); margin: 3px 0 0; }
.mgr-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin-bottom: 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2); box-shadow: inset 0 1px 2px rgba(0,0,0,0.5); }
.mgr-tab { padding: 9px 18px; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 600; color: var(--text-dim); background: transparent; border: 0; cursor: pointer; white-space: nowrap; transition: color .2s ease, background .2s ease, transform .25s cubic-bezier(.34,1.56,.64,1); }
.mgr-tab:hover { color: var(--text); transform: translateY(-1px); }
.mgr-tab.on { color: #02110a; background: linear-gradient(180deg, var(--brand-light), var(--green-400) 50%, var(--brand-deep)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 6px 16px -8px var(--green-glow); }
.mgr-pane > * { animation: springIn .45s cubic-bezier(.2,.9,.25,1) backwards; }
.mgr-pane > *:nth-child(2) { animation-delay: .05s; } .mgr-pane > *:nth-child(3) { animation-delay: .1s; }
.mgr-v2 .card { border-radius: 20px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.04); }
.mgr-card { padding: 22px; }
.mgr-h { font-size: 18px; margin: 0 0 14px; }
.mgr-cap { margin-bottom: 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }
.mgr-link { position: relative; overflow: hidden; padding: 22px; margin-bottom: 16px; border-color: rgba(var(--brand-rgb),0.3) !important; background: linear-gradient(120deg, rgba(var(--brand-rgb),0.08), transparent 55%), linear-gradient(180deg, var(--surface-2), var(--surface)) !important; }
.mgr-code { padding: 10px 14px; border-radius: 12px; font-size: 13px; overflow-wrap: anywhere; color: var(--green-400); background: #050b08; border: 1px dashed rgba(var(--brand-rgb),0.4); transition: border-color .2s ease, box-shadow .3s ease; }
.mgr-code.copied { border-style: solid; border-color: var(--green-400); box-shadow: 0 0 0 4px rgba(var(--brand-rgb),0.14); }
.mgr-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
.mgr-stats .stat-tile { animation: springIn .5s cubic-bezier(.2,.9,.25,1) backwards; }
.mgr-stats .stat-tile:nth-child(2) { animation-delay: .06s; } .mgr-stats .stat-tile:nth-child(3) { animation-delay: .12s; } .mgr-stats .stat-tile:nth-child(4) { animation-delay: .18s; }
.mgr-stats .stat-tile:hover { transform: translateY(-4px); border-color: rgba(var(--brand-rgb),0.4); }
.mgr-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 14px; border: 1px solid var(--line); }
.mgr-v2 .mgr-tablewrap .table { display: table; white-space: normal; font-size: 13px; }
.mgr-v2 .mgr-tablewrap .table thead { display: table-header-group; width: auto; min-width: 0; }
.mgr-v2 .mgr-tablewrap .table tbody { display: table-row-group; width: auto; min-width: 0; }
.mgr-v2 .mgr-tablewrap .table th, .mgr-v2 .mgr-tablewrap .table td { padding: 11px 14px; }
.mgr-v2 .mgr-tablewrap .table tbody tr:last-child td { border-bottom: 0; }
.mgr-v2 .mgr-tablewrap .table tbody tr { transition: background .15s ease; }
.mgr-v2 .mgr-tablewrap .table tbody tr:hover { background: rgba(var(--brand-rgb),0.04); }
.mgr-bub { align-self: flex-start; max-width: 75%; padding: 9px 13px; border-radius: 6px 16px 16px 16px; font-size: 13px; white-space: pre-wrap; background: rgba(255,255,255,0.06); animation: springIn .35s cubic-bezier(.2,.9,.25,1) backwards; }
.mgr-bub.me { align-self: flex-end; border-radius: 16px 6px 16px 16px; background: rgba(var(--brand-rgb),0.14); }
.mgr-gate { display: flex; justify-content: center; padding-top: 80px; }
.mgr-gate-card { display: flex; flex-direction: column; align-items: center; gap: 10px; width: min(460px, 100%); padding: 40px 28px; text-align: center; animation: springIn .5s cubic-bezier(.2,.9,.25,1) backwards; }
.mgr-gate-card h2 { margin: 6px 0 0; font-size: 24px; }
.mgr-gate-card p { margin: 0 0 8px; }
.mgr-gate-ic::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 14px; margin: -4px 0 0 -9px; border-radius: 4px; background: var(--text-mute); box-shadow: 0 -9px 0 -5px var(--bg-2), 0 -9px 0 -3px var(--text-mute); opacity: .8; }
@media (max-width: 760px) {
  .mgr-v2 { padding: 20px 16px 110px; }
  .mgr-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; border-radius: 18px; scrollbar-width: none; }
  .mgr-tabs::-webkit-scrollbar { display: none; }
  .mgr-tab { flex: 0 0 auto; padding: 9px 14px; }
  .mgr-bub { max-width: 88%; }
}
@media (prefers-reduced-motion: reduce) {
  .adm-v2 .dash-main > *, .adm-v2 .dash-link.active::before, .adm-empty-ic, .mgr-gate-ic, .mgr-gate-card, .mgr-pane > *, .mgr-stats .stat-tile, .mgr-bub { animation: none; }
  .adm-v2 .dash-link, .adm-v2 .dash-link .dash-ic, .adm-v2 .stat-tile, .mgr-v2 .stat-tile, .adm-chev, .adm-v2 .dash-main .btn, .mgr-v2 .btn, .mgr-tab, .mgr-code { transition: none; }
  .adm-v2 .dash-link:hover, .adm-v2 .stat-tile.is-link:hover, .mgr-stats .stat-tile:hover, .adm-v2 .dash-main .btn:hover:not(:disabled), .mgr-v2 .btn:hover:not(:disabled), .mgr-tab:hover { transform: none; }
}

/* utilities */
.row { display: flex; gap: 16px; align-items: center; }
.between { justify-content: space-between; }
.muted { color: var(--text-dim); }
.text-mono { font-family: var(--font-mono); }
.text-green { color: var(--green-400); }
.center { text-align: center; }

/* =============================================================
   CYYBOT 8 — streaming-specific components
   ============================================================= */

/* ---- dashboard preview mockup ---- */
.dashboard-mock {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: #07100c;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7), 0 0 80px -20px rgba(var(--brand-rgb),0.15);
  font-family: var(--font-body);
  position: relative;
  z-index: 2;
}
.dm-titlebar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: #050b08;
  border-bottom: 1px solid var(--line);
}
.dm-traffic { display: flex; gap: 6px; }
.dm-traffic i {
  width: 10px; height: 10px; border-radius: 999px;
  background: var(--line-strong);
}
.dm-traffic i:nth-child(1) { background: #ff5d57; }
.dm-traffic i:nth-child(2) { background: #ffb547; }
.dm-traffic i:nth-child(3) { background: var(--green-400); }
.dm-title {
  font-size: 11px; color: var(--text-dim); letter-spacing: 0.06em;
  flex: 1; text-align: center;
}
.dm-time { font-size: 10px; color: var(--text-mute); }

.dm-body {
  display: grid; grid-template-columns: 130px 1fr;
  min-height: 360px;
}
.dm-side {
  background: #060d0a;
  border-right: 1px solid var(--line);
  padding: 14px 0;
  font-size: 11px;
}
.dm-side-group {
  font-family: var(--font-mono);
  font-size: 8.5px; letter-spacing: 0.2em;
  color: var(--text-mute);
  padding: 14px 14px 6px;
}
.dm-link {
  display: flex; align-items: center; gap: 8px;
  width: 100%;
  padding: 6px 14px;
  font-size: 11px;
  color: var(--text-dim);
  border-left: 2px solid transparent;
  text-align: left;
}
.dm-link:hover { color: var(--text); }
.dm-link.active { color: var(--green-400); border-left-color: var(--green-400); background: rgba(var(--brand-rgb),0.06); }
.dm-icon { color: var(--green-400); width: 12px; display: inline-block; text-align: center; font-size: 11px; }

.dm-content { padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.dm-content-head { display: flex; justify-content: space-between; align-items: baseline; }
.dm-content-head h4 { margin: 0; font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.dm-date { font-size: 9.5px; color: var(--text-mute); letter-spacing: 0.05em; }

.dm-stat-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px;
}
.dm-stat {
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 6px;
  display: flex; flex-direction: column; gap: 4px;
}
.dm-section-title { font-size: 9px; letter-spacing: 0.2em; color: var(--text-mute); }
.dm-panels { display: grid; grid-template-columns: 0.9fr 1.4fr; gap: 8px; }
.dm-panel { border: 1px solid var(--line); border-radius: 6px; padding: 10px 10px; background: var(--bg-2); }
.dm-panel-head { font-size: 11px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.dm-actions { display: grid; gap: 4px; }
.dm-action {
  text-align: left;
  font-size: 10px; color: var(--green-400);
  padding: 4px 6px;
  border-radius: 3px;
  font-family: var(--font-mono);
}
.dm-action:hover { background: rgba(var(--brand-rgb),0.06); }
.dm-log {
  font-size: 9.5px; line-height: 1.7;
  color: var(--text-dim);
  max-height: 130px; overflow: hidden;
}

/* ---- platform pills ---- */
.platforms-row {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
}
.platform-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--text-dim);
  font-weight: 500;
}
.platform-dot {
  width: 8px; height: 8px; border-radius: 999px;
  box-shadow: 0 0 8px currentColor;
}
.platforms-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
}
.platform-card {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-weight: 500;
}

/* ---- streaming goals cards ---- */
.goals-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.goal-card {
  padding: 32px 28px;
  display: flex; flex-direction: column;
  text-align: center;
  align-items: center;
}
.goal-icon {
  width: 64px; height: 64px;
  border-radius: 999px;
  background: var(--green-400);
  color: #02110a;
  font-size: 28px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 30px var(--green-glow);
  margin-bottom: 20px;
}
.pay-chip {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.1em;
  padding: 4px 8px;
  border: 1px solid var(--text-dim);
  border-radius: 3px;
  color: var(--text);
  background: #fff;
  color: #02110a;
}

/* ---- services grid ---- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card {
  position: relative;
  padding: 32px 26px 22px;
  text-align: center;
  display: flex; flex-direction: column; align-items: stretch;
  min-height: 280px;
  transition: border-color .2s ease, transform .2s ease;
}
.service-card:hover { border-color: var(--green-400); transform: translateY(-2px); }
.service-num {
  position: absolute; top: 14px; right: 16px;
  font-size: 11px; color: var(--text-mute); letter-spacing: 0.15em;
}
.service-cta {
  margin-top: auto;
  font-family: var(--font-mono); font-size: 12px;
  color: var(--green-400);
  border-bottom: 1px solid var(--green-400);
  align-self: center;
  padding: 14px 0 4px;
  letter-spacing: 0.05em;
}
.service-cta:hover { color: #5dffb1; border-bottom-color: #5dffb1; }

/* ---- new pricing plan cards (silver/gold/pro) ---- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
/* Every card is the same height, reads top-down on the left edge (name, price,
   what you get) and ends in a button pinned to the bottom, so three plans line
   up row for row. The featured plan is marked by its border and glow, not by
   being pushed out of line. */
.plan-card {
  position: relative;
  padding: 28px 26px 26px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border-radius: 20px;
  display: flex; flex-direction: column; gap: 14px;
  text-align: left;
  align-items: stretch;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 18px 40px -28px rgba(0,0,0,0.9);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.plan-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.plan-card.featured {
  border-color: rgba(var(--brand-rgb),0.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 0 0 1px rgba(var(--brand-rgb),0.18), 0 24px 60px -28px var(--green-glow);
}
.plan-card.featured::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--green-400), transparent);
}
.plan-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}
.plan-line {
  width: 100%;
  height: 1px;
  background: var(--line);
}
.plan-price {
  font-family: var(--font-display);
  font-size: 46px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 4px 0;
}
.plan-price .curr { font-size: 22px; font-weight: 500; vertical-align: top; line-height: 1.3; margin-right: 3px; color: var(--text-dim); }
.plan-price .unit { font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--text-mute); margin-left: 6px; }
.plan-features {
  list-style: none; padding: 0; margin: 4px 0 0;
  display: grid; gap: 11px;
  width: 100%;
  font-size: 14px; line-height: 1.45;
  color: var(--text-dim);
}
.plan-features li {
  display: flex; align-items: flex-start; gap: 10px;
  justify-content: flex-start;
}
.plan-features li svg { margin-top: 3px; }
.plan-features + .plan-cta, .plan-card > p + .plan-cta { margin-top: auto; }
.plan-features { margin-bottom: 14px; }
.plan-cta {
  width: 100%;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 14px 22px;
}
/* ---- FAQ ---- */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r);
  padding: 18px 20px;
  cursor: pointer;
  transition: border-color .15s ease;
}
.faq-item:hover { border-color: var(--line-strong); }
.faq-item.open { border-color: var(--line-strong); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 17px; font-weight: 500;
}
.faq-caret { color: var(--green-400); font-size: 13px; }
.faq-a {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px; color: var(--text-dim); line-height: 1.65;
}

/* ---- pay with crypto ---- */
.crypto-hero {
  position: relative; padding: 96px 0 80px;
  border-bottom: 1px solid var(--line);
}
.crypto-hero::after {
  content: ""; position: absolute; top: 0; right: 0;
  width: 220px; height: 220px;
  background: linear-gradient(135deg, var(--green-500), var(--green-700));
  clip-path: polygon(40% 0, 100% 0, 100% 60%, 80% 60%, 80% 40%, 60% 40%, 60% 60%, 40% 60%);
  opacity: 0.7;
}
.wallet-row {
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: 18px; align-items: center;
  padding: 18px 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-lg);
}
.wallet-label {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 600;
  letter-spacing: 0.05em;
}
.wallet-addr {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-dim);
  overflow-wrap: anywhere;
}

/* ---- download page ---- */
.dl-card {
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: 24px;
  padding: 28px 32px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-lg);
}

/* =============================================================
   v3 — Company landing, products, forum, tutorials, FB posts
   ============================================================= */

/* ---- nav extras ---- */
.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-avatar-btn { display: flex; align-items: center; gap: 8px; }
.nav-burger { display: none; flex-direction: column; gap: 4px; padding: 8px; }
.nav-burger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text); transition: transform .15s ease;
}
/* ---- mobile drawer ---- */
/* Dim overlay behind the drawer. Fades in/out; sits below the drawer. */
.nav-mobile-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 9998;
}
.nav-mobile-overlay.open { opacity: 1; visibility: visible; }

/* Right-side slide-in panel. Off-canvas by default (translateX 100%),
   slides to 0 when .open. Capped width so it never fills the whole page. */
.nav-mobile {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(82vw, 340px);
  display: flex; flex-direction: column;
  background: rgba(8,11,10,0.98);
  backdrop-filter: blur(18px);
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 50px rgba(0,0,0,0.5);
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  z-index: 9999;
  overscroll-behavior: contain;
}
.nav-mobile.open { transform: translateX(0); }

.nav-mobile-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.nav-mobile-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; letter-spacing: 1px;
  color: var(--text-dim);
}
.nav-mobile-close {
  font-size: 26px; line-height: 1;
  color: var(--text); padding: 0 6px;
  background: none; border: 0; cursor: pointer;
}
.nav-mobile-body {
  flex: 1; overflow-y: auto;
  display: flex; flex-direction: column;
  padding: 8px 22px 24px;
}
.nav-mobile-link {
  text-align: left;
  padding: 13px 0;
  font-size: 15px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--line);
}
.nav-mobile-link.active { color: var(--green-400); }
.nav-mobile-link:last-child { border-bottom: 0; }

@media (max-width: 1180px) {
  .nav-links { display: none; }
  .nav-hide-md { display: none; }
  .nav-burger { display: flex; }
}
@media (max-width: 540px) {
  .nav-hide-sm { display: none; }
}

/* ---- hero visual stack ---- */
.hero-visual-stack {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center;
  gap: 24px;
}
.hero-orbit {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  max-width: 460px;
  display: flex; align-items: center; justify-content: center;
}
.hero-orbit .rings { position: absolute; inset: 0; }
.hero-orbit .rings i {
  position: absolute; inset: 0;
  border: 1px dashed rgba(var(--brand-rgb),0.18);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}
.hero-orbit .rings i:nth-child(2) { inset: 8%; animation-duration: 60s; animation-direction: reverse; border-style: solid; border-color: rgba(var(--brand-rgb),0.08); }
.hero-orbit .rings i:nth-child(3) { inset: 18%; animation-duration: 90s; }
.hero-orbit img {
  position: relative; z-index: 2;
  width: 56%; height: auto;
  filter: drop-shadow(0 0 50px rgba(var(--brand-rgb),0.4));
  animation: float 6s ease-in-out infinite;
}
.hud-corner {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--green-400);
}
.hud-corner.tl { top: 0; left: 0; }
.hud-corner.tr { top: 0; right: 0; }
.hud-corner.bl { bottom: 0; left: 0; color: var(--text-dim); }
.hud-corner.br { bottom: 0; right: 0; color: var(--text-dim); }

.hero-product-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
  max-width: 460px;
}
.hero-pill {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  transition: border-color .15s ease, transform .15s ease;
  animation: pillIn 0.5s ease backwards;
}
.hero-pill:hover {
  border-color: var(--c, var(--green-400));
  transform: translateX(2px);
}
.hero-pill-dot {
  width: 8px; height: 8px; border-radius: 999px;
  box-shadow: 0 0 8px currentColor;
}
@keyframes pillIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: none; }
}

/* ---- home launcher: product logos + names on the left, brand on the right ---- */
.hero.hero-launch { padding: 48px 0; }
.hero.hero-launch h1 {
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 28px;
}
.launch-hint {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 12px;
}
.launch-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  max-width: 640px;
}
.launch-item {
  display: flex; align-items: center; gap: 14px;
  min-width: 0;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
  animation: pillIn 0.45s ease backwards;
}
.launch-item:hover, .launch-item:focus-visible {
  border-color: var(--c, var(--green-400));
  background: var(--bg-2);
  transform: translateY(-2px);
  outline: none;
}
.launch-glyph {
  flex: 0 0 auto;
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-2);
  border: 1px solid var(--c, var(--line-strong));
  color: var(--c, var(--green-400));
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700; letter-spacing: 0.04em;
}
.launch-glyph.has-logo, .product-tile-glyph.has-logo {
  background: none; border: 0; overflow: hidden;
}
.launch-glyph.has-logo img, .product-tile-glyph.has-logo img {
  width: 100%; height: 100%; object-fit: contain; display: block;
}
.launch-text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.launch-name {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.launch-tag {
  font-size: 12.5px; line-height: 1.35; color: var(--text-dim); margin-top: 2px;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden;
}
.launch-arrow {
  flex: 0 0 auto;
  color: var(--text-mute);
  transition: color .15s ease, transform .15s ease;
}
.launch-item:hover .launch-arrow { color: var(--c, var(--green-400)); transform: translateX(3px); }
.launch-more { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; max-width: 640px; }
.launch-chip {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px; color: var(--text-dim);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.launch-chip:hover { border-color: var(--green-400); color: var(--green-400); }
@media (max-width: 1100px) {
  .hero.hero-launch .hero-orbit { max-width: 260px; }
}
@media (max-width: 640px) {
  .hero.hero-launch { padding: 28px 0 40px; min-height: 0; }
  .launch-list { grid-template-columns: 1fr; }
  .hero.hero-launch .hero-visual-stack { display: none; }
}

/* ---- products showcase ---- */
.products-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.product-tile {
  text-align: left;
  padding: 30px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  display: flex; flex-direction: column; gap: 12px;
  min-height: 320px;
  position: relative; overflow: hidden;
  transition: transform .2s ease, border-color .2s ease;
}
.product-tile::before {
  content: ""; position: absolute;
  top: 0; right: 0; width: 200px; height: 200px;
  background: radial-gradient(circle, var(--c, var(--green-400)) 0%, transparent 60%);
  opacity: 0.06; transition: opacity .2s ease;
  pointer-events: none;
}
.product-tile:hover { transform: translateY(-3px); border-color: var(--c, var(--green-400)); }
.product-tile:hover::before { opacity: 0.14; }
.product-tile.flagship {
  background: linear-gradient(180deg, rgba(var(--brand-rgb),0.04), var(--surface));
  border-color: var(--line-strong);
  grid-column: span 1;
}

.product-tile-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 8px;
}
.product-tile-glyph {
  width: 54px; height: 54px; border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700;
  color: var(--c, var(--green-400));
  letter-spacing: 0.04em;
}
.product-tile-glyph-dot {
  position: absolute; top: 8px; right: 8px;
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--c, var(--green-400));
  box-shadow: 0 0 8px currentColor;
}
.product-tile-cat {
  font-size: 10.5px; letter-spacing: 0.2em;
  color: var(--text-mute); text-transform: uppercase;
}
.product-tile-name {
  font-size: 26px; font-weight: 600;
  letter-spacing: -0.02em; margin: 4px 0 4px;
  line-height: 1.05;
}
.product-tile-tagline {
  color: var(--c, var(--green-400));
  font-style: italic; font-size: 14px; margin: 0;
}
.product-tile-short {
  color: var(--text-dim);
  font-size: 13.5px; line-height: 1.55;
  margin: 0;
}
.product-tile-foot {
  margin-top: auto; padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.product-tile-from {
  font-size: 9.5px; letter-spacing: 0.22em;
  color: var(--text-mute);
}
.product-tile-price {
  font-size: 28px; font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-top: 2px;
}
.product-tile-cta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--c, var(--green-400));
}

/* ---- product detail ---- */
.feature-list {
  display: grid; gap: 12px;
}
.feature-item {
  display: grid; grid-template-columns: 56px 1fr;
  align-items: center; gap: 18px;
  padding: 18px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.feature-num {
  font-size: 18px; font-weight: 600;
  color: var(--green-400);
  letter-spacing: -0.02em;
}
.feature-text { font-size: 15.5px; line-height: 1.55; }

/* ---- stats band ---- */
.stats-band {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 24px; align-items: center;
}

/* ---- CTA strip ---- */
.cta-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.cta-card {
  text-align: left;
  padding: 28px;
  display: flex; flex-direction: column; gap: 6px;
  transition: transform .2s ease, border-color .2s ease;
}
.cta-card:hover { transform: translateY(-3px); border-color: var(--green-400); }
.cta-card-arrow {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--green-400);
}

/* ---- FB-style feed ---- */
.feed {
  display: grid; gap: 24px;
  max-width: 720px; margin: 0 auto;
}
.fb-post {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.fb-pin {
  background: rgba(255,181,71,0.1);
  color: #ffb547;
  padding: 8px 24px;
  font-size: 10.5px; letter-spacing: 0.18em;
  border-bottom: 1px solid var(--line);
}
.fb-post-head {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 24px 14px;
}
.fb-post-body { padding: 0 24px 18px; }
.fb-post-title {
  font-size: 22px; font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  line-height: 1.2;
  cursor: pointer;
}
.fb-post-title:hover { color: var(--green-400); }
.fb-post-excerpt {
  color: var(--text-dim);
  font-size: 14.5px; line-height: 1.6;
  margin: 0;
}
.fb-read-more {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green-400);
}
.fb-cover {
  aspect-ratio: 21/9;
  background: linear-gradient(135deg, var(--green-800), var(--bg-2));
  position: relative; cursor: pointer;
  overflow: hidden;
}
.fb-cover::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 14px, rgba(var(--brand-rgb),0.05) 14px 15px);
}
.fb-cover-label {
  position: absolute; top: 16px; left: 16px;
  font-size: 10.5px; letter-spacing: 0.22em;
  color: var(--green-400);
  background: rgba(5,8,7,0.7);
  border: 1px solid var(--line-strong);
  padding: 4px 10px; border-radius: 999px;
  text-transform: uppercase;
}
.fb-stats {
  display: flex; padding: 12px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-dim);
}
.fb-actions {
  display: flex; padding: 6px 12px;
  border-bottom: 1px solid var(--line);
}
.fb-action {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px;
  font-size: 14px; font-weight: 500;
  color: var(--text-dim);
  border-radius: 6px;
  transition: background .15s ease, color .15s ease;
}
.fb-action:hover { background: var(--bg-2); color: var(--text); }
.fb-action.active { color: var(--green-400); }
.fb-comments { padding: 14px 24px 20px; display: grid; gap: 12px; }
.fb-comments-disabled {
  text-align: center;
  padding: 18px;
  background: var(--bg-2); border-radius: 8px;
  font-size: 11px; letter-spacing: 0.18em; color: var(--text-mute);
}
.fb-comment-input { display: flex; gap: 10px; align-items: center; }
.fb-comment {
  display: flex; gap: 10px;
}
.fb-comment-bubble {
  background: var(--bg-2);
  border-radius: 14px;
  padding: 10px 14px;
  flex: 1;
}
.fb-show-more {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green-400);
  padding: 6px 12px;
  text-align: left;
}

/* ---- Forum ---- */
.forum-list { display: grid; gap: 12px; }
.forum-thread {
  text-align: left;
  display: grid; grid-template-columns: 80px 1fr;
  gap: 18px; padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .15s ease;
}
.forum-thread:hover { border-color: var(--green-400); }
.forum-thread-num {
  font-size: 22px;
  color: var(--text-mute);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.forum-thread-title {
  font-family: var(--font-display);
  font-size: 20px; font-weight: 600;
  letter-spacing: -0.015em;
  margin: 10px 0 8px;
}
.forum-thread-excerpt {
  color: var(--text-dim);
  font-size: 14px; line-height: 1.55;
  margin: 0 0 10px;
}
.forum-thread-meta {
  font-size: 11.5px; letter-spacing: 0.1em;
  color: var(--text-mute);
}
.forum-thread-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
}
.forum-replies { display: grid; gap: 14px; }
.forum-reply {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 2px solid var(--green-400);
  border-radius: var(--r);
  padding: 18px 22px;
}

/* ---- Forum: card grid (public page + admin editor) ---- */
.forum-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}
.forum-card {
  text-align: left;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .18s ease, transform .18s ease;
}
.forum-card:hover { border-color: var(--green-400); transform: translateY(-3px); }
.forum-card-cover { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-2); }
.forum-card-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.forum-card-pin {
  position: absolute; top: 10px; left: 10px;
  background: rgba(5,8,7,0.72); border: 1px solid rgba(255,181,71,0.5);
  color: #ffb547; font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.16em; padding: 3px 8px; border-radius: 999px;
}
.forum-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.forum-card-title { font-family: var(--font-display); font-size: 19px; font-weight: 600; letter-spacing: -0.015em; margin: 2px 0 0; line-height: 1.25; }
.forum-card-excerpt { color: var(--text-dim); font-size: 14px; line-height: 1.55; margin: 0; }
.forum-card-meta { font-size: 11.5px; letter-spacing: 0.06em; color: var(--text-mute); margin-top: auto; }

/* ---- Gallery lightbox (dark full-screen image viewer) ---- */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(2, 5, 4, 0.94);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; user-select: none;
  touch-action: none;   /* we handle pinch/pan ourselves */
  animation: lbFade .18s ease;
}
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lightbox-img {
  max-width: 92vw; max-height: 86vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
  transition: transform .08s ease-out;
  will-change: transform;
}
.lightbox-x {
  position: absolute; top: 16px; right: 20px; z-index: 2;
  width: 44px; height: 44px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
  color: var(--text); font-size: 26px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.lightbox-x:hover { border-color: var(--green-400); color: var(--green-400); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 52px; height: 52px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  color: var(--text); font-size: 30px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.lightbox-nav:hover { border-color: var(--green-400); color: var(--green-400); }
.lightbox-nav.prev { left: 18px; }
.lightbox-nav.next { right: 18px; }
.lightbox-cap {
  position: absolute; left: 50%; bottom: 78px; transform: translateX(-50%);
  max-width: min(680px, 90vw); text-align: center;
  background: rgba(5, 8, 7, 0.72); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 16px; color: var(--text);
}
.lightbox-tools {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px; z-index: 2;
  background: rgba(18, 22, 20, 0.9); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 10px;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.lightbox-tools button {
  width: 34px; height: 34px; border-radius: 999px;
  background: transparent; border: 1px solid var(--line);
  color: var(--text); font-size: 18px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.lightbox-tools button:hover { border-color: var(--green-400); color: var(--green-400); }
@media (max-width: 640px) {
  .lightbox-nav { width: 42px; height: 42px; font-size: 24px; }
  .lightbox-nav.prev { left: 8px; } .lightbox-nav.next { right: 8px; }
  .lightbox-cap { bottom: 74px; font-size: 13px; }
}

/* ---- Tutorials ---- */
.tutorial-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.tutorial-card {
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .15s ease, transform .15s ease;
}
.tutorial-card:hover { border-color: var(--green-400); transform: translateY(-2px); }
.tutorial-thumb {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--green-800), var(--bg-2));
  overflow: hidden;
}
.tutorial-thumb::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 14px, rgba(var(--brand-rgb),0.04) 14px 15px);
}
.tutorial-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 999px;
  background: var(--green-400);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 30px var(--green-glow);
  z-index: 1;
}
.tutorial-play.big { width: 88px; height: 88px; }
.tutorial-duration {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(5,8,7,0.8); padding: 4px 8px;
  font-size: 11px; letter-spacing: 0.1em;
  border-radius: 4px; z-index: 1;
}
.tutorial-product {
  position: absolute; top: 12px; left: 12px;
  background: rgba(5,8,7,0.7);
  border: 1px solid var(--line-strong);
  color: var(--green-400);
  padding: 4px 10px;
  font-size: 10px; letter-spacing: 0.18em;
  border-radius: 999px; z-index: 1;
  text-transform: uppercase;
}
.tutorial-body { padding: 18px 20px 20px; }
.tutorial-title {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0 0 10px;
  line-height: 1.3;
}
.tutorial-meta {
  font-size: 11px; letter-spacing: 0.1em;
  color: var(--text-mute); text-transform: uppercase;
}
.tutorial-player {
  aspect-ratio: 16/9;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  position: relative; overflow: hidden;
}
.tutorial-player-inner {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--green-800), var(--bg));
  display: flex; align-items: center; justify-content: center;
}
.tutorial-player-inner::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 14px, rgba(var(--brand-rgb),0.04) 14px 15px);
}

/* ---- modal ---- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(2,5,4,0.78);
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
  padding: 20px;
}
.modal-card { width: 520px; max-width: 100%; padding: 36px; }

/* ---- responsive overrides for v3 ---- */
@media (max-width: 1100px) {
  .products-showcase, .tutorial-grid, .cta-strip { grid-template-columns: repeat(2, 1fr); }
  .stats-band { grid-template-columns: 1fr 1fr; }
  .product-detail-grid, .contact-grid, .request-grid, .editor-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 760px) {
  .products-showcase, .tutorial-grid, .cta-strip { grid-template-columns: 1fr; }
  .forum-thread { grid-template-columns: 1fr; }
  .forum-thread-num { font-size: 14px; }
  .stats-band { grid-template-columns: 1fr; }
  .hero-product-pills { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .section-tight { padding: 40px 0; }
  .feature-item { grid-template-columns: 40px 1fr; gap: 12px; padding: 14px 16px; }
}
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .platforms-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr !important; gap: 32px !important; }
}
@media (max-width: 760px) {
  .hero-visual { display: none; }
  .pricing-grid, .posts-grid, .goals-grid, .services-grid { grid-template-columns: 1fr; }
  .plan-card.featured { transform: none; }
  .plan-card.featured:hover { transform: translateY(-3px); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .checkout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .dash, .chat-shell { grid-template-columns: 1fr; }
  /* On phones the page scrolls normally under the floating bottom nav, so
     undo the desktop viewport-lock/inner-scroll and let content flow. */
  .dash { height: auto; overflow: visible; }
  .dash-main { overflow-y: visible; min-height: 0; }
  .dash-side { display: none; }
  .chat-side { display: none; }
  /* Make room for the sticky bottom nav so content isn't hidden behind it. */
  .dash-shell { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .dash-main { padding: 18px 16px 24px; }
  .dash-main h2 { font-size: 24px; }
  .dash-main .sub { margin-bottom: 18px; font-size: 13px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-tile { padding: 14px; min-width: 0; }
  .stat-tile .val { font-size: 26px; }
  .nav-links { display: none; }
  .wallet-row { grid-template-columns: 1fr; text-align: left; }

  /* =========================================================
     Admin dashboard — mobile responsiveness fixes.
     Prior bug: inline `gridTemplateColumns: "1fr 1fr"` on the
     two "Recent users / Recent orders" cards plus other admin
     sub-pages couldn't be overridden via CSS, so on a phone the
     cards stayed two-up at ~150px each and overflowed the
     viewport horizontally — producing the cut-off layout with
     side-arrows the user complained about. The rules below:
       1. Clip horizontal overflow on the shell + main panel so a
          stray child element never makes the whole page scrollable.
       2. Force min-width:0 on every descendant so flex/grid
          children can shrink past their content's intrinsic size
          (the real cause of the overflow).
       3. Provide a `.dash-2col` helper that the JSX uses instead
          of inline `1fr 1fr` so it can collapse to a single column.
     ========================================================= */
  .dash-shell, .dash-main, .dash-main > * { overflow-x: hidden; }
  .dash-main, .dash-main * { min-width: 0; }
  .dash-2col { display: grid; grid-template-columns: 1fr !important; gap: 12px !important; }
  /* Common admin tables become horizontally scrollable instead of
     overflowing the page when content is wider than the screen. */
  .dash-main .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .dash-main table { min-width: 0; }
  /* The chat-shell used by Live Moderation has 3 columns on desktop;
     force a single column stack on phones (channels & online sidebars
     would otherwise crush the message stream to nothing). */
  .dash-main .chat-shell,
  .dash-main [data-mod-shell] { grid-template-columns: 1fr !important; height: auto !important; }
}

/* Desktop admin dashboard: the "Recent users / Recent orders" two-column grid.
   Grid items default to min-width:auto, so a very long order title (the SMM
   "Spotify Plays | 🌍USA | 💸Cheapest…" strings) would stretch its column and
   push the whole page wide, squeezing the Recent-users box. min-width:0 lets
   the column shrink so the title ellipsis-truncates (full text on hover via
   the title tooltip), and the columns stack on cramped laptop widths. */
.dash-2col > * { min-width: 0; }
@media (max-width: 1200px) { .dash-2col { grid-template-columns: 1fr !important; } }

/* Mobile Live Chat tab: make the chat fill the screen so the message box
   stays pinned at the bottom and only the message stream scrolls — instead
   of the whole page scrolling and the input floating mid-content. Scoped
   with :has() so it ONLY affects the chat tab; every other dashboard tab
   keeps normal page scrolling. The floating bottom nav is already hidden
   while chatting (body.chat-hide-nav), so we can reclaim its padding. */
@media (max-width: 760px) {
  .dash-shell:has(.chat-shell) {
    height: calc(100dvh - 64px);   /* sits directly under the sticky top nav */
    display: flex; flex-direction: column;
    overflow: hidden;
    padding-bottom: 0;
  }
  .dash-shell:has(.chat-shell) .dash-mtop { flex-shrink: 0; }
  .dash-shell:has(.chat-shell) .dash {
    flex: 1; min-height: 0; height: auto; overflow: hidden;
  }
  .dash-main:has(> .fade-in > .chat-shell) {
    height: 100%; min-height: 0; overflow: hidden; padding: 0;
  }
  .dash-main > .fade-in { height: 100%; }
  .dash-main .chat-shell {
    height: 100% !important;
    grid-template-columns: 1fr !important;
  }
}

/* Very narrow phones (≤380px) — give stat tiles more breathing room
   by collapsing the 2-column grid to a single column. Avoids the
   "squeezed" look the user described. */
@media (max-width: 380px) {
  .stat-grid { grid-template-columns: 1fr !important; }
  .stat-tile .val { font-size: 28px; }
}

/* =========================================================
   Mobile dashboard shell (top bar + floating bottom nav + sheet)
   Hidden on desktop; shown ≤760px.
   ========================================================= */
.dash-mtop, .dash-mbottom, .mnav-arrows { display: none; }

/* When the on-screen keyboard is up (body.kb-open is set by index.html
   on any focused text input), slide the floating mobile nav + corner
   arrows down off-screen so they stop covering the field being typed
   into. They snap back when the input blurs.

   Same behaviour when the chat page is open (body.chat-hide-nav) — the
   floating island would otherwise cover the message input pinned to
   the bottom of the screen. A double-tap toggles body.nav-peek to bring
   them back into view without leaving the page. */
@media (max-width: 760px) {
  body.kb-open .dash-mbottom,
  body.kb-open .mnav-arrow,
  body.chat-hide-nav .dash-mbottom,
  body.chat-hide-nav .mnav-arrow {
    transform: translateY(140%);
    opacity: 0;
    pointer-events: none;
    transition: transform .18s ease-out, opacity .15s ease-out;
  }
  body.chat-hide-nav.nav-peek:not(.kb-open) .dash-mbottom,
  body.chat-hide-nav.nav-peek:not(.kb-open) .mnav-arrow {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  /* Admin page: double-tap toggles `nav-peek` (start: visible).
     When the toggle is OFF (body lacks .nav-peek), slide the floating
     nav + the < > arrows out of view so the admin gets a clean canvas.
     Double-tap again restores them. */
  body.admin-hide-toggle:not(.nav-peek) .dash-mbottom,
  body.admin-hide-toggle:not(.nav-peek) .mnav-arrow {
    transform: translateY(140%);
    opacity: 0;
    pointer-events: none;
    transition: transform .2s ease-out, opacity .18s ease-out;
  }
}

@media (max-width: 760px) {
  .mnav-arrows {
    display: block;
    position: fixed; left: 0; right: 0;
    bottom: calc(96px + env(safe-area-inset-bottom));
    z-index: 49; pointer-events: none;
  }
  .mnav-arrow {
    pointer-events: auto;
    position: fixed;
    bottom: calc(96px + env(safe-area-inset-bottom));
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(18,22,20,0.92);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border: 1px solid rgba(var(--brand-rgb),0.18);
    color: var(--text);
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
    cursor: pointer;
  }
  .mnav-arrow:active { transform: scale(0.92); }
  .mnav-arrow-l { left: 14px; }
  .mnav-arrow-r { right: 14px; }
}

/* SVG-as-mask icon. Color follows currentColor so active states tint green. */
.dash-ic {
  display: inline-block; width: 22px; height: 22px;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain;     mask-size: contain;
  flex-shrink: 0;
}
.dash-ic-sm { width: 18px; height: 18px; }

@media (max-width: 760px) {
  /* ---- Top bar: sticky, glassy, shows current section ---- */
  .dash-mtop {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 12px 16px;
    background: rgba(10,14,12,0.85);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 40;
  }
  .dash-mtop-l { display: flex; align-items: center; gap: 12px; min-width: 0; }
  .dash-mtop-name { font-weight: 600; font-size: 15px; line-height: 1.15; color: var(--text); }
  .dash-mtop-sub {
    font-family: var(--font-mono); font-size: 10px;
    color: var(--green-400); letter-spacing: 0.2em; text-transform: uppercase;
    margin-top: 2px;
  }
  .dash-mtop-r { display: flex; align-items: center; gap: 8px; }
  .dash-mtop-more {
    background: rgba(255,255,255,0.04); color: var(--text);
    border: 1px solid var(--line);
    width: 38px; height: 38px; border-radius: 12px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 20px;
  }
  .dash-mtop-more:active { transform: scale(0.96); }

  /* ---- Floating bottom nav (Facebook-style island) ---- */
  .dash-mbottom {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px;
    position: fixed; left: 12px; right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 50;
    background: rgba(18,22,20,0.92);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border: 1px solid rgba(var(--brand-rgb),0.12);
    border-radius: 22px;
    padding: 10px 8px;
    box-shadow:
      0 18px 40px -10px rgba(0,0,0,0.7),
      0 2px 0 0 rgba(255,255,255,0.03) inset,
      0 0 0 1px rgba(0,0,0,0.4);
  }
  .dash-mbottom-btn {
    background: transparent; border: 0; color: var(--text-dim);
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 6px 2px; cursor: pointer;
    border-radius: 14px;
    transition: color .15s ease, background .15s ease, transform .1s ease;
  }
  .dash-mbottom-btn:active { transform: scale(0.94); }
  .dash-mbottom-btn .dash-mbottom-lb {
    font-size: 10px; letter-spacing: 0.04em; font-weight: 500;
    line-height: 1;
  }
  .dash-mbottom-btn.active { color: var(--green-400); }
  .dash-mbottom-btn.active .dash-ic {
    filter: drop-shadow(0 0 8px rgba(var(--brand-rgb),0.55));
  }

  /* ---- "More" bottom sheet ---- */
  .dash-msheet-backdrop {
    position: fixed; inset: 0; z-index: 60;
    background: rgba(0,0,0,0.55);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    display: flex; align-items: flex-end;
    animation: dashFade .15s ease-out;
  }
  .dash-msheet {
    width: 100%; max-height: 88vh; overflow-y: auto;
    background: linear-gradient(180deg, #14181a 0%, #0c100e 100%);
    border-top: 1px solid rgba(var(--brand-rgb),0.15);
    border-radius: 22px 22px 0 0;
    padding: 8px 0 calc(24px + env(safe-area-inset-bottom));
    box-shadow: 0 -20px 50px rgba(0,0,0,0.6);
    animation: dashSlide .22s cubic-bezier(.22,1,.36,1);
  }
  .dash-msheet::before {
    content: ""; display: block;
    width: 38px; height: 4px; border-radius: 4px;
    background: rgba(255,255,255,0.18);
    margin: 8px auto 4px;
  }
  .dash-msheet-head {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 20px 14px;
    border-bottom: 1px solid var(--line);
  }
  .dash-msheet-x {
    background: rgba(255,255,255,0.04); color: var(--text-dim);
    border: 1px solid var(--line); border-radius: 10px;
    width: 34px; height: 34px; font-size: 22px; cursor: pointer; line-height: 1;
  }
  .dash-msheet-group { padding: 6px 0 10px; border-bottom: 1px solid var(--line); }
  .dash-msheet-group:last-child { border-bottom: 0; }
  .dash-msheet-glabel {
    font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.22em;
    color: var(--text-mute); text-transform: uppercase;
    padding: 12px 20px 6px;
  }
  .dash-msheet-link {
    display: flex; align-items: center; gap: 14px;
    width: 100%; background: transparent; border: 0;
    color: var(--text); font-size: 15px; font-weight: 500;
    padding: 13px 20px; cursor: pointer; text-align: left;
    transition: background .12s ease;
  }
  .dash-msheet-link:active { background: rgba(var(--brand-rgb),0.06); }
  .dash-msheet-link.active { color: var(--green-400); background: rgba(var(--brand-rgb),0.07); }
  .dash-msheet-link.active .dash-ic {
    filter: drop-shadow(0 0 6px rgba(var(--brand-rgb),0.5));
  }

  @keyframes dashSlide { from { transform: translateY(100%); } to { transform: translateY(0); } }
  @keyframes dashFade  { from { opacity: 0; } to { opacity: 1; } }
}

/* =============================================================
   Admin responsive overrides — keep dashboards usable on phones.
   ============================================================= */

/* Generic row.between should wrap, not overflow, on small screens. */
@media (max-width: 860px) {
  .row.between { flex-wrap: wrap; gap: 10px; }
  .row.between > .row { flex-wrap: wrap; }
  .eyebrow + h2 { font-size: 22px; line-height: 1.15; }
  h2 + .sub { font-size: 13px; }

  /* Stat-tile grids: any inline grid-template-columns: repeat(4, 1fr) collapses to 2x2 */
  [style*="repeat(4, 1fr)"] { grid-template-columns: repeat(2, 1fr) !important; }
  [style*="repeat(4,1fr)"]  { grid-template-columns: repeat(2, 1fr) !important; }
  /* Two-up panels (donuts, side-by-side cards) collapse to single column */
  [style*="gridTemplateColumns: \"1fr 1fr\""],
  [style*="grid-template-columns: 1fr 1fr"] { grid-template-columns: 1fr !important; }

  /* Stat number shrink — keeps the figure inside the card */
  .card [style*="fontSize: 32"], .card [style*="font-size: 32"] {
    font-size: 24px !important;
  }
  .card { padding: 14px !important; }

  /* Tables: allow horizontal scroll inside the card so columns don't collide. */
  .card > table,
  .card table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }
  .card > table thead, .card > table tbody { display: table; width: 100%; min-width: 560px; }

  /* Coupon / form grids with 6-column layout — wrap to two columns */
  [style*="1fr 1fr 1fr 1fr 1fr auto"] {
    grid-template-columns: 1fr 1fr !important;
  }

  /* Inbox: two-pane shell becomes single column; list shrinks. */
  [data-mod-shell] { grid-template-columns: 1fr !important; min-height: 0 !important; }
  [data-mod-shell] > .card:first-child > div:last-child { max-height: 380px !important; }

  /* Inbox top tabs: horizontal scroll, never overlap. The buttons get
     hard-clamped widths and the muted "· In-site web chat" hint vanishes
     so labels don't collide on phones. */
  div[data-inbox-tabs].row,
  [data-inbox-tabs] {
    display: flex !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    gap: 0 !important;
  }
  [data-inbox-tabs] > button {
    flex: 0 0 auto !important;
    padding: 10px 14px !important;
    min-width: max-content;
    white-space: nowrap;
  }
  [data-inbox-tabs] > button > .muted,
  [data-inbox-tabs] > button .muted { display: none !important; }

  /* Header rows (// SUPPORT, // MODERATION, etc.) — the right-side action
     buttons must NEVER overlap the title block. Force them onto their own
     line, full width, wrapping. */
  .row.between {
    flex-wrap: wrap !important;
    align-items: flex-start !important;
  }
  .row.between > .row {
    width: 100%;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .row.between > .row > * { flex: 0 0 auto; }

  /* Search + status filter row in inbox left pane */
  .card .input { font-size: 14px; }

  /* Users / Orders / Customers tables — squeeze fonts a touch */
  table { font-size: 12px; }

  /* Admin section titles row — make the header eyebrow + control row stack cleanly */
  .row.between > div:first-child { min-width: 0; flex: 1 1 100%; }
  .row.between > .row:last-child { flex: 1 1 100%; justify-content: flex-start; }
}

/* Tablet (≤1100px) — relax 4-up grids into 2x2 but keep larger numbers. */
@media (max-width: 1100px) and (min-width: 861px) {
  [style*="repeat(4, 1fr)"] { grid-template-columns: repeat(2, 1fr) !important; }
}

/* Phone (≤480px) — tighter still. */
@media (max-width: 480px) {
  .card [style*="fontSize: 32"], .card [style*="font-size: 32"] { font-size: 20px !important; }
  .eyebrow + h2 { font-size: 19px; }
  .card { padding: 12px !important; }
  [style*="1fr 1fr 1fr 1fr 1fr auto"] { grid-template-columns: 1fr !important; }
  /* Stat tiles allowed to go full-width when needed */
  [data-stat-tiles] { grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
}

/* Orders detail modal — opens when admin clicks an order row */
.admin-modal-backdrop {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(2,6,4,0.72); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: dashFade 0.18s ease;
}
.admin-modal {
  width: min(560px, 100%); max-height: 90vh; overflow: auto;
  background: var(--card, #0a1a13);
  border: 1px solid var(--border, #143226);
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(var(--brand-rgb),0.08);
  padding: 22px;
}
.admin-modal h3 { margin: 0 0 14px; font-size: 20px; }
.admin-modal-row {
  display: grid; grid-template-columns: 110px 1fr; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 13px;
}
.admin-modal-row:last-of-type { border-bottom: 0; }
.admin-modal-row .lbl {
  color: var(--text-mute, #4d6a5c); letter-spacing: 0.14em;
  font-size: 10px; text-transform: uppercase; padding-top: 2px;
}
.admin-modal-actions {
  display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px;
  flex-wrap: wrap;
}
.admin-modal-close {
  background: transparent; border: none; color: var(--text-dim);
  font-size: 22px; cursor: pointer; padding: 4px 8px; line-height: 1;
}
.admin-row-click { cursor: pointer; transition: background 0.12s; }
.admin-row-click:hover { background: rgba(var(--brand-rgb),0.04); }

/* Admin → Products → Download links (src/admin_v3.jsx ProductLinksView) — redesigned 2026-11-05 */
.pl-seg { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 14px;
  border: 1px solid var(--border, #143226); border-radius: 999px; background: rgba(255,255,255,0.02); }
.pl-seg button { border: 0; background: transparent; color: var(--text-dim); font: inherit; font-size: 13px;
  padding: 7px 16px; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s; }
.pl-seg button.on { background: var(--green-400); color: #04140c; font-weight: 600; }

.pl-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.pl-tile { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; text-align: left;
  border: 1px solid var(--border, #143226); background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  color: inherit; font: inherit; animation: plIn .4s ease; }
button.pl-tile { cursor: pointer; transition: border-color .2s, transform .2s; }
button.pl-tile:hover { border-color: rgba(var(--brand-rgb),0.4); transform: translateY(-1px); }
.pl-tile b { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pl-tile span { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mute); }
.pl-tile.ok b { color: var(--green-400); }
.pl-tile.bad.hot { border-color: rgba(255,93,87,0.45); background: rgba(255,93,87,0.07); }
.pl-tile.bad.hot b { color: #ff5d57; }

.pl-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.pl-bar .ak-in { flex: 1 1 220px; max-width: 360px; }
.pl-bar .ak-btn.pri { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }

.pl-list { display: flex; flex-direction: column; gap: 8px; }
.pl-in { animation: plIn .35s ease; }   /* no fill: rows stay visible even if animations are paused */
@keyframes plIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.pl-card { border: 1px solid var(--border, #143226); border-radius: 14px; background: var(--card, #0a1a13);
  overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.pl-card:hover { border-color: rgba(var(--brand-rgb),0.28); }
.pl-card.open { border-color: rgba(var(--brand-rgb),0.4); box-shadow: 0 10px 30px -18px rgba(var(--brand-rgb),0.5); }
.pl-card.has-bad { border-color: rgba(255,93,87,0.45); }
.pl-head { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; background: transparent;
  color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pl-head img, .pl-ph { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; flex: none;
  border: 1px solid var(--border, #143226); }
.pl-ph { display: grid; place-items: center; font-weight: 700; color: var(--green-400); background: rgba(var(--brand-rgb),0.06); }
.pl-title { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.pl-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-meta { display: flex; gap: 12px; align-items: center; font-size: 11.5px; color: var(--text-mute); }
.pl-pf { display: inline-flex; align-items: center; gap: 5px; }
.pl-count { opacity: .8; }
.pl-hidden { margin-left: 8px; font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-mute); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }
.pl-caret { color: var(--text-mute); transition: transform .3s ease; }
.pl-card.open .pl-caret { transform: rotate(180deg); color: var(--green-400); }
.pl-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.pl-card.open .pl-body { grid-template-rows: 1fr; }
.pl-body-in { overflow: hidden; min-height: 0; container-type: inline-size; }
@container (max-width: 680px) { .pl-groups { grid-template-columns: 1fr; } }

.pl-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: rgba(255,255,255,0.18); }
.pl-dot.d-ok   { background: var(--green-400); box-shadow: 0 0 0 3px rgba(var(--brand-rgb),0.15); }
.pl-dot.d-bad  { background: #ff5d57; box-shadow: 0 0 0 3px rgba(255,93,87,0.18); animation: plPulse 1.6s ease infinite; }
.pl-dot.d-wait { background: #ffb547; animation: plPulse 1s ease infinite; }
.pl-dot.d-idle { background: rgba(255,255,255,0.45); }
.pl-dot.d-none { background: transparent; border: 1px dashed rgba(255,255,255,0.25); }
@keyframes plPulse { 50% { opacity: .45; } }

.pl-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 2px 14px 14px; }
.pl-group { border: 1px solid var(--border, #143226); border-radius: 12px; padding: 8px; background: rgba(255,255,255,0.015); min-width: 0;
  animation: plIn .3s ease; }
.pl-group.other { grid-column: 1 / -1; }
.pl-gh { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: var(--text-dim); padding: 2px 4px 6px; }
.pl-glyph { width: 16px; text-align: center; color: var(--green-400); }

.pl-slot { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "os chip" "acts acts";
  gap: 6px 10px; align-items: center; min-width: 0;
  padding: 8px; border-radius: 10px; border: 1px solid transparent; transition: border-color .2s, background .2s; }
.pl-slot > .pl-os { grid-area: os; }
.pl-slot > .pl-chip, .pl-slot > .pl-edit { grid-area: chip; }
.pl-slot > .pl-acts { grid-area: acts; }
.pl-slot + .pl-slot { border-top: 1px solid rgba(255,255,255,0.04); }
.pl-slot.s-bad { border-color: rgba(255,93,87,0.4); background: rgba(255,93,87,0.06); }
.pl-slot.editing { border-color: rgba(var(--brand-rgb),0.45); background: rgba(var(--brand-rgb),0.04); }
.pl-os { display: flex; align-items: center; gap: 7px; min-width: 92px; }
.pl-kind { font-size: 10.5px; font-weight: 600; letter-spacing: .03em; padding: 2px 8px; border-radius: 999px;
  color: var(--green-400); background: rgba(var(--brand-rgb),0.1); }
.pl-kind.portable { color: #7cc4ff; background: rgba(124,196,255,0.12); }
.pl-from { font-size: 10px; color: #ffb547; }
.pl-chip { display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; justify-self: stretch;
  padding: 6px 10px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.08); background: rgba(255,255,255,0.03);
  color: inherit; font: inherit; font-size: 12px; cursor: pointer; transition: border-color .2s, background .2s; }
.pl-chip:hover { border-color: rgba(var(--brand-rgb),0.45); background: rgba(var(--brand-rgb),0.06); }
.pl-chip b { font-weight: 600; white-space: nowrap; }
.pl-chip span { color: var(--text-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 11px; }
.pl-chip.empty { border-style: dashed; color: var(--text-mute); }
.pl-ver { margin-left: auto; font-style: normal; font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 6px;
  color: #c9b6ff; background: rgba(139,123,255,0.14); white-space: nowrap; flex: none; }
.pl-ver.none { color: var(--text-mute); background: rgba(255,255,255,0.05); font-weight: 500; }
.pl-slot.editing > .pl-edit { grid-area: acts; }   /* full slot width while editing */
.pl-edit { flex-wrap: wrap; }
.pl-edit .pl-input { flex: 1 1 100% !important; width: 100% !important; }
.pl-edit .pl-ver-in { flex: 0 1 120px !important; width: 120px !important; min-width: 0; font-size: 12px !important; margin-right: auto; }
.pl-edit { display: flex; gap: 6px; align-items: center; min-width: 0; }
.pl-input { font-size: 12px !important; min-width: 0; flex: 1; }
.pl-acts { display: flex; gap: 4px; align-items: center; justify-content: flex-end; min-width: 0; }
.pl-acts:empty { display: none; }
.pl-acts .pl-badge { margin-right: auto; }
.pl-ico { padding-left: 8px !important; padding-right: 8px !important; min-width: 30px; justify-content: center; }
.pl-none { font-size: 12px; color: var(--text-mute); }
.pl-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 600;
  padding: 4px 9px; border-radius: 999px; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
  animation: plIn .25s ease both; }
.pl-ok { color: var(--green-400); background: rgba(var(--brand-rgb),0.1); }
.pl-bad { color: #ff5d57; background: rgba(255,93,87,0.12); }
.pl-wait { color: var(--text-dim); background: rgba(255,255,255,0.05); }
.pl-spin { width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  animation: plSpin .7s linear infinite; display: inline-block; }
@keyframes plSpin { to { transform: rotate(360deg); } }
.pl-modal { width: min(680px, 100%); }
.pl-modal .pl-groups { padding: 0; }
.pl-switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; }
.pl-switch input { position: absolute; opacity: 0; pointer-events: none; }
.pl-track { width: 36px; height: 20px; border-radius: 999px; background: rgba(255,255,255,0.12); position: relative; transition: background .2s; }
.pl-track span { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.pl-switch input:checked + .pl-track { background: var(--green-400); }
.pl-switch input:checked + .pl-track span { transform: translateX(16px); }
.pl-switch input:focus-visible + .pl-track { outline: 2px solid var(--green-400); outline-offset: 2px; }
@media (max-width: 760px) {
  .pl-groups { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pl-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pl-bar .ak-in { max-width: none; flex-basis: 100%; }
  .pl-bar .ak-btn.pri { margin-left: 0; flex: 1; justify-content: center; }
  .pl-slot { grid-template-columns: minmax(0, 1fr); grid-template-areas: "os" "chip" "acts"; }
  .pl-edit { flex-wrap: wrap; }
  .pl-seg { display: flex; }
  .pl-seg button { flex: 1; }
}

/* Stack-on-smaller-screens tables — opt in by adding data-stack to the <table>.
   On tablets/small laptops AND phones, each <tr> becomes a card and each <td>
   becomes a stacked labeled row. Headers are hidden. Action cells wrap freely
   so all buttons stay reachable. Breakpoint raised 640→1024 so admin tables
   (Users, etc.) never overflow into an unreadable horizontal scroll on the
   common laptop/tablet widths — every field is visible as a labeled card. */
@media (max-width: 1024px) {
  table[data-stack] { display: block; width: 100%; min-width: 0 !important; white-space: normal !important; }
  table[data-stack] thead { display: none; }
  table[data-stack] tbody { display: block; }
  table[data-stack] tr {
    display: block;
    border: 1px solid var(--border, #143226) !important;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
    background: rgba(255,255,255,0.015);
  }
  table[data-stack] td {
    display: block;
    text-align: left !important;
    padding: 4px 0 !important;
    border: none !important;
    font-size: 13px;
    white-space: normal !important;
    max-width: none !important;
    overflow: visible !important;
    text-overflow: clip !important;
  }
  table[data-stack] td[data-label]::before {
    content: attr(data-label);
    display: inline-block;
    width: 90px;
    color: var(--text-mute, #4d6a5c);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-right: 8px;
    vertical-align: top;
  }
  /* Action cells (last cell with buttons): no label, full row of wrapped buttons */
  table[data-stack] td[data-actions] {
    margin-top: 8px;
    padding-top: 8px !important;
    border-top: 1px solid rgba(255,255,255,0.05) !important;
    display: flex; flex-wrap: wrap; gap: 6px;
  }
  table[data-stack] td[data-actions] > * { margin: 0 !important; }
  /* Override the table-scroll rule from the earlier block — these don't scroll, they stack */
  .card > table[data-stack] { display: block; overflow: visible; }
  .card > table[data-stack] thead, .card > table[data-stack] tbody { display: block; min-width: 0; }
}

/* ── CyyTrader trading page ─────────────────────────────────────────── */
.trading-glow{
  position:absolute; top:-160px; right:-120px; width:520px; height:520px;
  background:radial-gradient(circle, rgba(var(--brand-rgb3),0.12), transparent 62%);
  pointer-events:none; z-index:1; filter:blur(8px);
}
.trading-page .tradingview-widget-container{ border-radius:12px; overflow:hidden; }
@media (max-width: 900px){
  .trading-hero-grid{ grid-template-columns:1fr !important; }
  .trading-charts-grid{ grid-template-columns:1fr !important; }
}

/* ── Affiliate command centre + Manager console (v50–v52) ───────────── */
/* Grids collapse gracefully: 4-up stats → 2-up on phones, 2-up feature
   cards → single column, chat master-detail → stacked. Tables that can't
   shrink scroll horizontally inside .se-tablewrap instead of squishing. */
.se-grid2 { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:12px; margin-bottom:16px; }
.se-grid4 { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:12px; margin-bottom:16px; }
.se-tablewrap { overflow-x:auto; -webkit-overflow-scrolling:touch; }
.se-tablewrap > table { min-width:420px; }
.mgr-chat-grid { display:grid; grid-template-columns:minmax(240px,320px) 1fr; gap:12px; min-height:500px; }

@media (max-width: 860px){
  .se-grid2 { grid-template-columns:1fr; }
  .se-grid4 { grid-template-columns:repeat(2, minmax(0,1fr)); }
  .mgr-chat-grid { grid-template-columns:1fr; min-height:0; }
  .mgr-chat-list { max-height:280px !important; }
  .se-sharebtns button { flex:1 1 calc(33.33% - 8px); justify-content:center; }
  .se-hero-link { font-size:13px !important; }
}
@media (max-width: 480px){
  .se-sharebtns button { flex:1 1 calc(50% - 6px); }
  .se-grid4 { gap:8px; }
  .se-grid4 .card, .se-grid2 .card { padding:14px !important; }
}

/* =============================================================
   Admin data table (Users tab + attachment recipient tables)
   Professional bordered/zebra table with sticky header and
   Windows-Explorer-style click-to-filter column headers.
   ============================================================= */
.admin-table-wrap {
  overflow: auto;
  max-width: 100%;
  min-width: 0;
  border: 1px solid var(--border, #143226);
  border-radius: 12px;
  background: rgba(255,255,255,0.012);
  -webkit-overflow-scrolling: touch;
}
/* Make the horizontal scrollbar visible so it's obvious wide tables scroll. */
.admin-table-wrap::-webkit-scrollbar { height: 10px; }
.admin-table-wrap::-webkit-scrollbar-thumb { background: rgba(var(--brand-rgb),0.28); border-radius: 6px; }

/* Desktop (table mode, ≥1025px): cap the long "User" column (the +bot emails
   are very long) and truncate with an ellipsis so every column — including the
   View action — stays on-screen without needing to scroll sideways. Below
   1025px the table stacks into cards (see data-stack block) and shows full text. */
@media (min-width: 1025px) {
  .users-table td[data-label="User"] { max-width: 240px; }
  .users-table td[data-label="User"] > div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  /* Pin the Actions column (View / Premium) to the right edge of the scroll
     area so it's ALWAYS visible — even when the sidebar squeezes the table
     narrower than its natural width. Without this the buttons slid off-screen
     and the only horizontal scrollbar sat at the bottom of a long table,
     out of reach. */
  .users-table thead th:last-child,
  .users-table td[data-actions] {
    position: sticky;
    right: 0;
    z-index: 3;
    background: #0a140f;
    box-shadow: -12px 0 16px -12px rgba(0,0,0,0.75);
  }
  .users-table thead th:last-child { z-index: 6; background: var(--surface, #0b1310); }
  /* Keep the pinned cell readable when its row is selected/hovered. */
  .users-table tbody tr.is-selected td[data-actions] { background: #0e1c15; }
  .users-table tbody tr:hover td[data-actions] { background: #0d1a13; }
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.admin-table thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--surface, #0b1310);
  color: var(--text-dim, #8aa098);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border, #143226);
  border-right: 1px solid rgba(255,255,255,0.04);
  white-space: nowrap;
}
.admin-table thead th:last-child { border-right: none; }
.admin-table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  border-right: 1px solid rgba(255,255,255,0.03);
  vertical-align: middle;
}
.admin-table tbody td:last-child { border-right: none; }
.admin-table tbody tr:nth-child(even) { background: rgba(255,255,255,0.014); }
.admin-table tbody tr:hover { background: rgba(var(--brand-rgb),0.05); }
.admin-table tbody tr.is-selected { background: rgba(var(--brand-rgb),0.08) !important; }
.admin-table tbody tr:last-child td { border-bottom: none; }

/* Column header filter (Windows-style) */
.col-filter { position: relative; display: inline-block; }
.col-filter-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: none; cursor: pointer;
  color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit;
  padding: 2px 4px; border-radius: 5px;
}
.col-filter-btn:hover { color: var(--green-400, var(--green-400)); background: rgba(var(--brand-rgb),0.06); }
.col-filter-btn.active { color: var(--green-400, var(--green-400)); }
.col-filter-caret { font-size: 9px; opacity: 0.8; }
.col-filter-btn.active .col-filter-caret { color: var(--green-400, var(--green-400)); }
.col-filter-menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 60;
  min-width: 200px; max-width: 280px;
  background: var(--bg-2, #080d0b);
  border: 1px solid var(--border, #1b3a2c);
  border-radius: 10px;
  box-shadow: 0 10px 34px rgba(0,0,0,0.55);
  padding: 6px;
  text-transform: none; letter-spacing: normal;
}
.col-filter-menu-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 8px; font-size: 11px; color: var(--text-mute, #5c7268);
  border-bottom: 1px solid rgba(255,255,255,0.05); margin-bottom: 4px;
}
.col-filter-clear {
  background: transparent; border: none; cursor: pointer;
  color: var(--green-400, var(--green-400)); font-size: 11px; padding: 0;
}
.col-filter-list { max-height: 260px; overflow: auto; }
.col-filter-opt {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 6px; cursor: pointer;
  font-size: 12px; color: var(--text, #cfe6d9); font-weight: 500;
}
.col-filter-opt:hover { background: rgba(var(--brand-rgb),0.07); }
.col-filter-opt-label { flex: 1; text-transform: capitalize; }
.col-filter-opt-count {
  font-size: 10px; color: var(--text-mute, #5c7268);
  background: rgba(255,255,255,0.05); border-radius: 999px; padding: 1px 7px;
}
.col-filter-empty { padding: 8px; font-size: 12px; color: var(--text-mute, #5c7268); }

/* Status pills */
.pill {
  display: inline-block; font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; padding: 3px 9px; border-radius: 999px;
  border: 1px solid transparent;
}
.pill-ok     { color: var(--green-400, var(--green-400)); background: rgba(var(--brand-rgb),0.10); border-color: rgba(var(--brand-rgb),0.30); }
.pill-warn   { color: #ffb547; background: rgba(255,181,71,0.10); border-color: rgba(255,181,71,0.30); }
.pill-danger { color: #ff5d57; background: rgba(255,93,87,0.10); border-color: rgba(255,93,87,0.30); }

/* =============================================================
   Attachments admin
   ============================================================= */
.att-badge {
  font-size: 9px; font-weight: 800; letter-spacing: 0.12em;
  padding: 3px 8px; border-radius: 5px;
  background: rgba(255,255,255,0.06); color: var(--text-dim, #8aa098);
}
.att-badge[data-kind="file"] { color: var(--green-400, var(--green-400)); background: rgba(var(--brand-rgb),0.10); }
.att-badge[data-kind="link"] { color: #7db4ff; background: rgba(125,180,255,0.10); }
.att-picker {
  position: absolute; z-index: 40; top: calc(100% + 4px); left: 0; right: 0;
  background: var(--bg-2, #080d0b);
  border: 1px solid var(--border, #1b3a2c);
  border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  max-height: 260px; overflow: auto; padding: 4px;
}
.att-picker-row {
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  width: 100%; text-align: left; background: transparent; border: none;
  cursor: pointer; padding: 8px 10px; border-radius: 6px; color: var(--text, #cfe6d9);
}
.att-picker-row:hover { background: rgba(var(--brand-rgb),0.07); }

/* ---------------- Free trial (products.jsx: TrialCTA / TrialStrip) ---------------- */
.btn-trial {
  border: 1px solid rgba(255,181,71,0.55);
  color: var(--amber);
  background: linear-gradient(180deg, rgba(255,181,71,0.12), rgba(255,181,71,0.04));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.btn-trial:hover { border-color: var(--amber); background: rgba(255,181,71,0.18); transform: translateY(-1px); }
.btn-trial:disabled { opacity: 0.6; transform: none; cursor: default; }
.trial-pill {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--amber); border: 1px solid rgba(255,181,71,0.4); background: rgba(255,181,71,0.07);
}
.trial-pill.on { color: var(--green-400); border-color: rgba(var(--brand-rgb),0.4); background: rgba(var(--brand-rgb),0.06); }
.trial-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: 0 0 7px; }
.trial-strip {
  border: 1px solid rgba(255,181,71,0.3); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,181,71,0.06), rgba(255,181,71,0.015));
  padding: 14px 18px; margin: 0 0 18px;
}
.trial-strip-head {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 6px;
}
.trial-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; flex-wrap: wrap; }
.trial-row + .trial-row { border-top: 1px solid rgba(255,181,71,0.14); }
.trial-row strong { font-size: 14.5px; }
.trial-sub { display: block; font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }
.trial-sub.on { color: var(--green-400); }

/* ---------------- Time-limited offers (data.jsx: SaleWas / SaleBanner) ---------------- */
.sale-was { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-dim); margin-bottom: 2px; }
.sale-was s { text-decoration-thickness: 1.5px; }
.sale-was b { font-size: 11.5px; font-weight: 700; color: #1a1205; background: var(--amber); border-radius: 999px; padding: 2px 8px; }
.sale-banner {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  border: 1px solid rgba(255,181,71,0.4); border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255,181,71,0.1), rgba(255,181,71,0.03));
  padding: 12px 16px; margin: 0 0 22px; font-size: 14.5px; line-height: 1.5;
}
.sale-badge {
  font-family: var(--font-mono); font-weight: 700; font-size: 12.5px; letter-spacing: 0.06em;
  color: #1a1205; background: var(--amber); border-radius: 999px; padding: 5px 12px; white-space: nowrap;
}

/* ---------------- CyyTrader 2 page (src/trading.jsx) ---------------- */
.tr-two { color: var(--amber); font-style: italic; font-weight: 500; }
.tr-lead { color: var(--text-dim); font-size: 17px; line-height: 1.65; max-width: 760px; margin: 0 0 30px; }
.tr-fine { color: var(--text-mute); font-size: 12px; line-height: 1.6; margin: 16px 0 0; max-width: 820px; }
.tr-howto { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tr-pillars { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tr-pillar {
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
}
.tr-pillar-k { color: var(--green-400); font-size: 11px; letter-spacing: 0.18em; margin-bottom: 10px; }
.tr-pillar h3 { font-size: 18px; line-height: 1.3; margin: 0 0 8px; letter-spacing: 0; text-transform: none; }
.tr-pillar p { color: var(--text-dim); font-size: 14.5px; line-height: 1.65; margin: 0; }
.tr-cmp-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.tr-cmp { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tr-cmp th {
  text-align: left; padding: 14px 18px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-dim); background: var(--surface-2); border-bottom: 1px solid var(--line);
}
.tr-cmp th:nth-child(2) { color: var(--green-400); }
.tr-cmp td { padding: 14px 18px; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.5; }
.tr-cmp-what { font-weight: 600; width: 28%; }
.tr-cmp-us { color: var(--text); background: rgba(var(--brand-rgb),0.04); }
.tr-cmp-us svg { vertical-align: -3px; margin-right: 6px; }
.tr-cmp-them { color: var(--text-dim); }
.tr-faq { display: grid; gap: 10px; max-width: 860px; }
.tr-faq details { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); padding: 0 18px; }
.tr-faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; font-size: 16px; list-style: none; position: relative; padding-right: 28px; }
.tr-faq summary::-webkit-details-marker { display: none; }
.tr-faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; color: var(--green-400); font-size: 20px; font-weight: 400; }
.tr-faq details[open] summary::after { content: "–"; }
.tr-faq details p { color: var(--text-dim); font-size: 15px; line-height: 1.7; margin: 0 0 16px; }
@media (max-width: 1024px) {
  .tr-cmp-what { width: auto; }
  .tr-lead { font-size: 15.5px; }
}

/* ── Trading tools page (/tools) — src/trader_tools.jsx ───────────────────── */
.tt-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.tt-empty { color: var(--text-dim); text-align: center; padding: 48px 18px; }
.tt-title { color: var(--text-mute); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 12px; }
.tt-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.tt-asof { color: var(--text-mute); font-size: 11.5px; }
.tt-heat { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 2.4fr); gap: 16px; align-items: start; }
.tt-rank-row { display: grid; grid-template-columns: 16px 40px 1fr 62px; align-items: center; gap: 10px; padding: 6px 0; }
.tt-rank-pos { color: var(--text-mute); font-size: 11px; text-align: right; }
.tt-rank-ccy { font-size: 15px; letter-spacing: 0.02em; }
.tt-rank-bar { position: relative; height: 10px; border-radius: 5px; background: rgba(255,255,255,0.04); overflow: hidden; }
.tt-rank-bar::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line-strong); }
.tt-rank-bar i { position: absolute; top: 0; bottom: 0; border-radius: 5px; opacity: 0.85; transition: width .4s ease; }
.tt-rank-val { font-size: 12.5px; text-align: right; }
.tt-rank-val.up { color: var(--green-400); } .tt-rank-val.down { color: var(--red); }
.tt-tip { display: flex; flex-wrap: wrap; gap: 6px 12px; justify-content: space-between; width: 100%; margin-top: 12px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line-strong); background: rgba(var(--brand-rgb),0.05); color: var(--text-dim); font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; }
.tt-tip:hover { border-color: var(--green-400); }
.tt-tip b { color: var(--text); } .tt-tip-go { color: var(--green-400); }
.tt-grid { min-width: 0; }
.tt-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tt-table { display: grid; gap: 4px; min-width: 540px; }
.tt-cell { display: grid; place-items: center; height: 36px; border-radius: 7px; font-size: 11.5px; border: 0; color: var(--text); }
.tt-head { color: var(--text-mute); letter-spacing: 0.06em; }
.tt-self { color: var(--line-strong); background: rgba(255,255,255,0.02); }
.tt-val { cursor: pointer; font-family: var(--font-mono); transition: transform .15s, box-shadow .2s; }
.tt-val:hover { transform: scale(1.06); box-shadow: 0 0 0 1px var(--text); position: relative; z-index: 1; }
.tt-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.tt-tile { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 10px 12px; border-radius: 8px; border: 0; color: var(--text); cursor: pointer; font: inherit; text-align: left; transition: transform .15s, box-shadow .2s; }
.tt-tile:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--text); }
.tt-tile b { font-size: 13.5px; } .tt-tile span { font-size: 11.5px; }

.tt-calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.tt-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.tt-field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--text-dim); min-width: 0; }
.tt-field small { color: var(--text-mute); font-size: 10.5px; margin-left: 4px; }
.tt-field .input, .tt-field .select { width: 100%; }
.tt-risk { display: flex; gap: 8px; align-items: center; }
.tt-risk .input { flex: 1; min-width: 0; }
.tt-result { border-color: var(--line-strong); }
.tt-big { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tt-big b { font-family: var(--font-mono); font-size: 46px; line-height: 1; color: var(--green-400); }
.tt-result.empty .tt-big b { color: var(--line-strong); }
.tt-side { font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; padding: 4px 8px; border-radius: 6px; }
.tt-side.buy { background: rgba(var(--brand-rgb),0.14); color: var(--green-400); } .tt-side.sell { background: rgba(255,93,87,0.14); color: var(--red); }
.tt-msg { color: var(--text-dim); font-size: 13px; line-height: 1.5; margin: 12px 0 0; }
.tt-msg.warn { color: var(--amber); } .tt-msg.bad { color: var(--red); }
.tt-rows { margin-top: 14px; }
.tt-rows > div { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.tt-rows span { color: var(--text-dim); } .tt-rows b { text-align: right; font-family: var(--font-mono); font-weight: 500; }
.tt-rows b.good { color: var(--green-400); } .tt-rows b.bad { color: var(--red); }
.tt-fine { color: var(--text-mute); font-size: 11.5px; line-height: 1.6; margin: 14px 0 0; }
.tt-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.tt-cta h3 { font-size: 18px; margin: 0 0 6px; letter-spacing: 0; text-transform: none; }
.tt-cta p { color: var(--text-dim); font-size: 14px; margin: 0; max-width: 620px; }
@media (max-width: 900px) {
  .tt-heat, .tt-calc { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .tt-form { grid-template-columns: 1fr; }
  .tt-big b { font-size: 38px; }
}

/* ── Dashboard mode switch + Trading dashboard — src/dashboard.jsx, src/trader_dash.jsx ── */
.dash-mode { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 22px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-2, var(--surface)); }
.dash-mode-btn { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-dim); cursor: pointer; transition: color .15s ease, background .15s ease; }
.dash-mode-btn:hover { color: var(--text); }
.dash-mode-btn.on { color: #02110a; background: var(--green-400); }
.dash-main:has(> .fade-in > .chat-shell) .dash-mode { display: none; }

.td-card, .td-result, .td-shot, .td-explain { padding: 18px; }
.td-row { display: flex; gap: 10px; flex-wrap: wrap; }
.td-sec { margin-top: 18px; }
.td-err { margin: 0 0 14px; padding: 10px 14px; border-radius: 8px; border: 1px solid rgba(255,93,87,0.4); background: rgba(255,93,87,0.07); color: var(--red); font-size: 13.5px; }
.td-split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 16px; align-items: start; }

@media (max-width: 640px) { .td-open-btn { width: 100%; text-align: center; } }
/* Trading referral programme */
.td-share { padding: 18px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 12px; }
.td-share-stats { margin-bottom: 6px; }

/* AI picture analysis: the reading, and past ones */
.td-drop-keep { margin-top: 6px; font-size: 12px; color: var(--green-400); }
.td-read-main { margin: 14px 0 4px; font-size: 15px; line-height: 1.65; color: var(--text); }
.td-read-cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 14px 0; }
.td-read-cases > div { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.td-read-cases > div.up { border-color: rgba(var(--brand-rgb),0.35); background: rgba(var(--brand-rgb),0.05); }
.td-read-cases > div.down { border-color: rgba(255,93,87,0.35); background: rgba(255,93,87,0.05); }
.td-read-cases p { margin: 6px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--text-dim); }
.td-past { display: flex; flex-direction: column; gap: 10px; }
.td-past-it { padding: 0; overflow: hidden; }
.td-past-top { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; text-align: left; cursor: pointer; }
.td-past-top img { flex: 0 0 auto; width: 64px; height: 48px; object-fit: cover; border-radius: 8px; background: #0a110e; }
.td-past-top > span:nth-child(2) { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.td-past-top small { font-size: 11.5px; }
.td-past-top .td-state { flex: 0 0 auto; font-size: 11px; }
.td-past-body { padding: 0 12px 12px; }
.td-past-body .td-read { border: 0; padding: 4px 0 0; background: none; box-shadow: none; }

/* MT5 VPS: the lock card, the grace notice, the admin Users cell */
.td-vps { margin-bottom: 14px; }
.td-vps .tt-fine { max-width: 520px; margin: 16px auto 0; }
.td-err.td-warn { border-color: rgba(255,181,71,0.45); background: rgba(255,181,71,0.07); color: var(--amber); }
.au-vps-sel { display: block; margin-top: 5px; max-width: 150px; padding: 3px 6px; font-size: 11.5px; color: var(--text); background: var(--bg-2, var(--surface)); border: 1px solid var(--line); border-radius: 6px; }
/* /dashboard: the entrance. Two buttons, centred, nothing else. */
.dash-choose { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 96px 20px 40px; overflow: hidden; }
.dash-choose-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 34px; justify-content: center; width: 100%; perspective: 1100px; }
.dash-choose-btn { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 30%; --c1: var(--green-400); --c2: #19c8ff; --glow: rgba(var(--brand-rgb),0.45);
  position: relative; aspect-ratio: 1 / 1.08; padding: 0; border: 0; border-radius: 30px; background: none; cursor: pointer; color: var(--text);
  transform-style: preserve-3d; -webkit-tap-highlight-color: transparent;
  animation: dc-drop .9s cubic-bezier(.2, 1.5, .4, 1) both, dc-float 5.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * .14s), calc(.9s + var(--i) * .6s); }
.dash-choose-btn.is-streaming { --c1: #b06bff; --c2: #ff4fa3; --glow: rgba(176,107,255,0.45); }
/* the light that runs round the edge */
.dash-choose-ring { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .18s ease-out;
  box-shadow: 0 18px 60px -18px var(--glow), 0 0 0 1px rgba(255,255,255,0.06); }
.dash-choose-ring::before { content: ""; position: absolute; inset: -60%; background: conic-gradient(from 0deg, transparent 0 55%, var(--c1) 70%, var(--c2) 82%, transparent 94%); animation: dc-spin 3.2s linear infinite; }
.dash-choose-face { position: absolute; inset: 2px; border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 22px; text-align: center;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .18s ease-out;
  background: radial-gradient(circle at var(--mx) var(--my), color-mix(in srgb, var(--c1) 26%, transparent), transparent 55%), linear-gradient(160deg, #0d1a15, #060b09 70%); }
/* the flash across the face */
.dash-choose-face::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 38%; transform: skewX(-20deg); pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent); animation: dc-shine 3.6s ease-in-out infinite; animation-delay: calc(1.2s + var(--i) * 1.1s); }
.dash-choose-ic { display: inline-grid; place-items: center; width: 92px; height: 92px; border-radius: 26px; color: #04130d; background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 10px 34px -6px var(--glow); animation: dc-pulse 2.2s ease-in-out infinite; animation-delay: calc(var(--i) * .5s); }
.dash-choose-ic .dash-ic { width: 46px; height: 46px; }
.dash-choose-btn b { font-size: 34px; font-weight: 800; line-height: 1.05; letter-spacing: 0.01em; background: linear-gradient(90deg, #fff, var(--c1)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dash-choose-t { max-width: 230px; font-size: 13px; line-height: 1.45; color: var(--text-dim); }
.dash-choose-go { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-top: 4px; border-radius: 999px; font-size: 20px; color: #04130d; background: var(--c1); animation: dc-nudge 1.4s ease-in-out infinite; }
.dash-choose-btn:hover, .dash-choose-btn:focus-visible { animation-play-state: running, paused; outline: none; }
.dash-choose-btn:hover .dash-choose-ring, .dash-choose-btn:focus-visible .dash-choose-ring { box-shadow: 0 26px 80px -14px var(--glow), 0 0 0 1px rgba(255,255,255,0.14); }
.dash-choose-btn:hover .dash-choose-ring::before, .dash-choose-btn:focus-visible .dash-choose-ring::before { animation-duration: 1.2s; }
.dash-choose-btn:hover .dash-choose-face, .dash-choose-btn:hover .dash-choose-ring { transition-duration: .06s; }
.dash-choose-btn { transition: scale .12s ease; } .dash-choose-btn:active { scale: .93; }
@keyframes dc-drop { 0% { opacity: 0; transform: translateY(-70px) scale(.6) rotate(-6deg); } 55% { opacity: 1; transform: translateY(12px) scale(1.06) rotate(2deg); } 75% { transform: translateY(-6px) scale(.98) rotate(-1deg); } 100% { opacity: 1; transform: none; } }
@keyframes dc-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes dc-spin { to { transform: rotate(360deg); } }
@keyframes dc-shine { 0%, 55% { left: -60%; } 85%, 100% { left: 130%; } }
@keyframes dc-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.09) rotate(-3deg); } }
@keyframes dc-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }
@media (max-width: 720px) {
  .dash-choose { padding: 84px 18px 28px; }
  .dash-choose-grid { grid-template-columns: minmax(0, 320px); gap: 22px; }
  .dash-choose-btn { aspect-ratio: 1 / 0.62; border-radius: 26px; }
  .dash-choose-face { border-radius: 24px; gap: 8px; padding: 16px; }
  .dash-choose-ic { width: 62px; height: 62px; border-radius: 18px; } .dash-choose-ic .dash-ic { width: 32px; height: 32px; }
  .dash-choose-btn b { font-size: 28px; }
  .dash-choose-go { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .dash-choose-btn, .dash-choose-ring::before, .dash-choose-face::after, .dash-choose-ic, .dash-choose-go { animation: none; }
  .dash-choose-ring, .dash-choose-face { transform: none; }
}
/* inside a dashboard: where you are, and the way back to the entrance */
.dash-where { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.dash-where-back { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-dim); background: var(--bg-2, var(--surface)); cursor: pointer; transition: color .15s ease, border-color .15s ease; }
.dash-where-back:hover { color: var(--text); border-color: var(--green-400); }
.dash-where-now { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-400); }
/* Trading home: the Open chart button and the three facts under it */
.td-go { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 30px 28px; margin-bottom: 14px; text-decoration: none; color: var(--text); border-color: rgba(var(--brand-rgb),0.45); background: linear-gradient(120deg, rgba(var(--brand-rgb),0.14), rgba(var(--brand-rgb),0.02) 70%); transition: transform .15s ease, border-color .15s ease; }
.td-go:hover, .td-go:focus-visible { transform: translateY(-2px); border-color: var(--green-400); }
.td-go-t { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.td-go-t b { font-size: 30px; font-weight: 700; line-height: 1.1; }
.td-go-a { flex: 0 0 auto; display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 999px; font-size: 26px; color: #02110a; background: var(--green-400); }
.td-nomt5 { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 18px; margin-bottom: 14px; }
.td-nomt5 p { flex: 1 1 320px; margin: 0; color: var(--text-dim); font-size: 14px; line-height: 1.6; }
.td-facts { padding: 4px 18px; }
.td-fact { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.td-fact:first-child { border-top: 0; }
.td-fact-k { flex: 0 0 96px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-mute); }
.td-fact-v { flex: 1 1 auto; min-width: 0; font-size: 14px; line-height: 1.5; }
.td-fact .btn { flex: 0 0 auto; text-decoration: none; }
.td-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 999px; background: var(--text-mute); vertical-align: 1px; }
.td-dot.ok { background: var(--green-400); } .td-dot.wait { background: var(--amber); } .td-dot.bad { background: var(--red); }
@media (max-width: 560px) {
  .td-go { padding: 22px 18px; } .td-go-t b { font-size: 24px; }
  .td-fact { flex-wrap: wrap; gap: 6px 12px; } .td-fact-k { flex-basis: 100%; } .td-fact-v { flex-basis: 60%; }
}
.td-locked { text-align: center; padding: 34px 22px; }
.td-locked h3 { font-size: 20px; margin: 12px 0 8px; }
.td-locked p { max-width: 460px; margin: 0 auto 18px; }
.td-locked .td-row { justify-content: center; }
.td-locked-ic { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; color: var(--amber); background: rgba(255,181,71,0.08); border: 1px solid rgba(255,181,71,0.35); }

.td-result-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.td-state { flex: 0 0 auto; padding: 10px 14px; border-radius: 10px; font-family: var(--font-mono); font-size: 15px; font-weight: 700; letter-spacing: 0.06em; }
.td-state.up { color: #02110a; background: var(--green-400); }
.td-state.down { color: #fff; background: var(--red); }
.td-state.wait { color: #1a0f00; background: var(--amber); }
.td-state.none { color: var(--text-dim); background: rgba(255,255,255,0.06); border: 1px solid var(--line-strong); }
.td-result-sym { font-size: 11px; letter-spacing: 0.14em; color: var(--text-mute); }
.td-result-action { font-size: 15px; font-weight: 600; line-height: 1.35; }
.td-levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.td-levels > div { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,0.02); }
.td-levels span { font-size: 11px; color: var(--text-mute); }
.td-levels b { font-size: 15px; font-weight: 500; }
.td-result .good { color: var(--green-400); }
.td-result .bad { color: var(--red); }
.td-why { margin: 0; padding-left: 18px; color: var(--text-dim); font-size: 13.5px; line-height: 1.6; }
.td-why li + li { margin-top: 6px; }
.td-htf { display: flex; gap: 8px; flex-wrap: wrap; }
.td-htf-chip { padding: 5px 10px; border-radius: 999px; font-size: 12px; border: 1px solid var(--line-strong); color: var(--text-dim); }
.td-htf-chip.up { color: var(--green-400); border-color: rgba(var(--brand-rgb),0.4); }
.td-htf-chip.down { color: var(--red); border-color: rgba(255,93,87,0.4); }
.td-record { margin: 0; color: var(--text-dim); font-size: 13.5px; line-height: 1.6; }
.td-record b { color: var(--text); font-weight: 600; }

.td-drop { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 54px 20px; text-align: center; cursor: pointer; border: 1.5px dashed var(--line-strong); border-radius: var(--r-lg); background: rgba(255,255,255,0.015); transition: border-color .15s ease, background .15s ease; }
.td-drop:hover, .td-drop.over { border-color: var(--green-400); background: rgba(var(--brand-rgb),0.05); }
.td-drop-ic { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; color: var(--green-400); background: rgba(var(--brand-rgb),0.08); }
.td-shot img { display: block; width: 100%; max-height: 460px; object-fit: contain; border-radius: 8px; margin-bottom: 12px; background: #000; }

@keyframes td-run { to { transform: translateX(-50%); } }
.td-meter { height: 6px; margin-top: 10px; border-radius: 3px; background: rgba(255,255,255,0.06); overflow: hidden; }
.td-meter i { display: block; height: 100%; border-radius: 3px; background: var(--green-400); transition: width .4s ease; }
.td-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; margin-top: 16px; }
.td-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; cursor: pointer; transition: transform .15s ease, border-color .15s ease; }
.td-card:hover { transform: translateY(-3px); border-color: var(--green-400); }
.td-card h3 { font-size: 16px; margin: 6px 0 0; letter-spacing: 0; text-transform: none; }
.td-card p { margin: 0; color: var(--text-dim); font-size: 13px; line-height: 1.5; }
.td-card-ic { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px; border-radius: 10px; color: var(--green-400); background: rgba(var(--brand-rgb),0.08); }
.td-card-go { margin-top: auto; padding-top: 8px; font-size: 11.5px; color: var(--green-400); }
.td-explain h3 { font-size: 16px; margin: 18px 0 6px; letter-spacing: 0; text-transform: none; }
.td-explain h3:first-child { margin-top: 0; }
.td-explain p { margin: 0 0 12px; color: var(--text-dim); font-size: 14px; line-height: 1.65; max-width: 720px; }

@media (max-width: 1100px) { .td-split { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .dash-mode { display: flex; }
  .dash-mode-btn { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .td-pulse-run { animation: none; } }

/* ── Trading dashboard: the interactive chart, MT5 accounts, trade box ── */

.td-trade-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0 10px; }
.td-msg { margin: 10px 0 0; font-size: 13px; line-height: 1.5; }
.td-msg.good, .td-pos .good { color: var(--green-400); }
.td-msg.bad, .td-pos .bad { color: var(--red); }

.td-setup, .td-acc { padding: 18px; margin-bottom: 14px; }
.td-setup ol { margin: 14px 0 6px; padding-left: 20px; color: var(--text-dim); font-size: 14px; line-height: 1.7; }
.td-setup ol b { color: var(--text); font-weight: 600; }
.td-setup a { color: var(--green-400); }
.td-setup code { font-family: var(--font-mono); font-size: 12.5px; color: var(--green-400); }
.td-token { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border: 1px dashed var(--line-strong); border-radius: 8px; background: rgba(var(--brand-rgb),0.04); }
.td-token code { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.td-acc-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.td-acc-head > div { flex: 1; min-width: 180px; }
.td-acc-id { font-size: 12px; color: var(--text-dim); margin-left: 6px; }
.td-acc-co { font-size: 12px; margin-top: 2px; }
.td-pos { margin-top: 12px; }
.td-pos-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13px; }
.td-pos-row > b:last-of-type { margin-left: auto; }
.td-pos-side { padding: 3px 8px; border-radius: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; }
.td-pos-side.buy { color: var(--green-400); background: rgba(var(--brand-rgb),0.12); }
.td-pos-side.sell { color: var(--red); background: rgba(255,93,87,0.12); }
@media (max-width: 640px) {
  .td-trade-grid { grid-template-columns: 1fr 1fr; }
}

/* Trading dashboard: Servers page */
.td-inst-note { flex-basis: 100%; margin: 0; font-size: 12.5px; color: var(--text-dim); }
.td-inst-note.bad { color: var(--red); }
.td-levels .td-meter { margin-top: 6px; }

.td-agentlog { margin: 12px 0 4px; padding: 12px 14px; max-height: 320px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: rgba(5,8,7,0.6); color: var(--text-dim); font: 11.5px/1.6 var(--font-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
/* Broker picker: find the company, then its server */
.td-step { display: flex; align-items: center; gap: 10px; margin: 16px 0 10px; font: 600 12px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); }
.td-step span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(var(--brand-rgb),0.12); color: var(--green-400); font-size: 12px; }
.td-co-search { display: flex; gap: 10px; }
.td-co-search .input { flex: 1; min-width: 0; }
.td-co-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 12px; max-height: 280px; overflow-y: auto; }
.td-co-list button { display: flex; flex-direction: column; gap: 3px; padding: 11px 13px; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(5,8,7,0.5); color: var(--text); text-align: left; font-size: 13.5px; cursor: pointer; transition: border-color .15s, background .15s, transform .12s; }
.td-co-list button:hover, .td-co-list button:focus-visible { border-color: var(--green-400); background: rgba(var(--brand-rgb),0.07); outline: 0; transform: translateY(-1px); }
.td-co-list span, .td-co-picked small { color: var(--text-mute); font-size: 11.5px; }
.td-co-picked { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 13px; margin-bottom: 10px; border: 1px solid rgba(var(--brand-rgb),0.45); border-radius: 10px; background: rgba(var(--brand-rgb),0.06); }
.td-co-picked span { display: flex; flex-direction: column; min-width: 0; }
.td-co .select { width: 100%; }
.td-linkbtn { display: inline-block; margin-top: 10px; padding: 0; border: 0; background: none; color: var(--text-mute); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.td-linkbtn:hover { color: var(--green-400); }
.td-spin { display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; border: 2px solid var(--green-400); border-right-color: transparent; border-radius: 50%; animation: td-turn .8s linear infinite; }
@keyframes td-turn { to { transform: rotate(360deg); } }
@media (max-width: 520px) { .td-co-search { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { .td-spin { animation: none; } .td-co-list button { transition: none; } }

/* Website MT5 login: broker search, consent line, busy meter, broker chips */
.td-connect-grid { align-items: start; }
.td-agree { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 0; color: var(--text-dim); font-size: 13px; line-height: 1.55; cursor: pointer; }
.td-agree input { margin-top: 3px; flex: none; accent-color: var(--green-400); }
.td-meter-busy i { width: 35%; animation: td-busy 1.4s ease-in-out infinite; }
@keyframes td-busy { 0% { transform: translateX(-100%); } 100% { transform: translateX(290%); } }
@media (prefers-reduced-motion: reduce) { .td-meter-busy i { animation: none; width: 100%; opacity: .4; } }
.td-broker-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.td-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 9px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 12px; color: var(--text-dim); }
.td-chip button { width: 20px; height: 20px; border: 0; border-radius: 50%; background: transparent; color: var(--text-mute); font-size: 15px; line-height: 1; cursor: pointer; }
.td-chip button:hover { background: rgba(255,93,87,0.15); color: var(--red); }

/* =============================================================
   Admin > Trading servers (src/admin_servers.jsx)
   ============================================================= */
.ts { --ts-g: var(--green-400, var(--green-400)); }
.ts-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.ts-hero h2 { margin: 4px 0 0; font-size: 26px; letter-spacing: 0; }
.ts-stats { display: grid; grid-template-columns: repeat(4, minmax(92px, 1fr)); gap: 10px; }
.ts-stat { padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(160deg, rgba(var(--brand-rgb),0.07), transparent 70%); animation: ts-rise .5s cubic-bezier(.2,1.2,.4,1) both; }
.ts-stat:nth-child(2) { animation-delay: .06s; } .ts-stat:nth-child(3) { animation-delay: .12s; } .ts-stat:nth-child(4) { animation-delay: .18s; }
.ts-stat b { display: block; font-size: 22px; font-weight: 600; line-height: 1.1; color: var(--text); }
.ts-stat b small { font-size: 13px; color: var(--text-mute); font-weight: 400; }
.ts-stat span { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-mute); }

.ts-tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2, var(--surface)); overflow-x: auto; scrollbar-width: none; }
.ts-tabs::-webkit-scrollbar { display: none; }
.ts-tab { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--text-dim); cursor: pointer; white-space: nowrap; transition: color .15s ease, background .2s ease, transform .12s ease; }
.ts-tab:hover { color: var(--text); }
.ts-tab:active { transform: scale(.96); }
.ts-tab.on { color: #02110a; background: var(--ts-g); box-shadow: 0 6px 22px -8px rgba(var(--brand-rgb),0.6); }
.ts-tab em { font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,0.08); }
.ts-tab.on em { background: rgba(2,17,10,0.18); }

.ts-pane { animation: ts-fade .28s ease both; }
.ts-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.ts-grow { flex: 1 1 auto; }
.ts-search { flex: 1 1 260px; max-width: 460px; display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 42px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2, var(--surface)); color: var(--text-mute); transition: border-color .15s ease, box-shadow .15s ease; }
.ts-search:focus-within { border-color: var(--ts-g); box-shadow: 0 0 0 3px rgba(var(--brand-rgb),0.12); }
.ts-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--text); font: inherit; font-size: 14px; }
.ts-search button { width: 22px; height: 22px; border-radius: 999px; color: var(--text-dim); background: rgba(255,255,255,0.08); cursor: pointer; line-height: 1; }
.ts-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.ts-chip { padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--text-dim); cursor: pointer; transition: all .15s ease; }
.ts-chip:hover { color: var(--text); border-color: rgba(var(--brand-rgb),0.4); }
.ts-chip.on { color: var(--ts-g); border-color: var(--ts-g); background: rgba(var(--brand-rgb),0.09); }
.ts-count { padding: 4px 10px; border-radius: 999px; font-size: 12px; color: var(--text-dim); background: rgba(255,255,255,0.05); }
.ts-hint, .ts-note { font-size: 12.5px; color: var(--text-mute); margin: 0 0 14px; }
.ts-note { margin: 0; } .ts-note.good { color: var(--ts-g); } .ts-note.bad { color: var(--red); }
.ts-dim { color: var(--text-mute); font-size: 12px; }
.ts-empty { padding: 34px 16px; text-align: center; color: var(--text-mute); border: 1px dashed var(--line); border-radius: 14px; }
.ts-select { height: 34px; padding: 0 28px 0 11px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: 12.5px; color: var(--text); background: var(--bg-2, var(--surface)); cursor: pointer; max-width: 170px; }
.ts-select:focus { outline: 0; border-color: var(--ts-g); }
.ts-x { width: 26px; height: 26px; border-radius: 8px; font-size: 17px; line-height: 1; color: var(--text-mute); cursor: pointer; }
.ts-x:hover { color: var(--red); background: rgba(255,93,87,0.1); }

/* the switch that replaces a checkbox */
.ts-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; color: var(--text-dim); font-size: 13px; font-weight: 600; text-align: left; }
.ts-switch:disabled { opacity: .5; cursor: default; }
.ts-switch-track { flex: 0 0 auto; position: relative; width: 44px; height: 24px; border-radius: 999px; background: rgba(255,255,255,0.1); border: 1px solid var(--line); transition: background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.ts-switch-knob { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 999px; background: #8aa098; transition: transform .22s cubic-bezier(.3,1.6,.5,1), background .2s ease; }
.ts-switch.on { color: var(--text); }
.ts-switch.on .ts-switch-track { background: rgba(var(--brand-rgb),0.22); border-color: var(--ts-g); box-shadow: 0 0 14px -2px rgba(var(--brand-rgb),0.5); }
.ts-switch.on .ts-switch-knob { transform: translateX(20px); background: var(--ts-g); }
.ts-switch:focus-visible .ts-switch-track { outline: 2px solid var(--ts-g); outline-offset: 2px; }

/* a three-way choice: Paid only | Allow | Block */
.ts-seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2, var(--surface)); }
.ts-seg button { padding: 5px 10px; border-radius: 7px; font-size: 12px; font-weight: 600; color: var(--text-mute); cursor: pointer; transition: all .15s ease; white-space: nowrap; }
.ts-seg button:hover { color: var(--text); }
.ts-seg button.on { color: #02110a; background: #9fb3aa; }
.ts-seg button.on.allowed { background: var(--ts-g); }
.ts-seg button.on.blocked { color: #fff; background: var(--red); }

/* how many MT5 accounts a user may have */
.ts-max { display: inline-flex; align-items: center; gap: 5px; padding: 3px 6px; border: 1px solid var(--line); border-radius: 10px; }
.ts-max button { width: 22px; height: 22px; border-radius: 7px; color: var(--text); cursor: pointer; line-height: 1; transition: all .12s ease; }
.ts-max button:hover:not(:disabled) { color: var(--ts-g); background: rgba(var(--brand-rgb),0.1); }
.ts-max button:disabled { opacity: .3; cursor: default; }
.ts-max b { min-width: 30px; text-align: center; font-size: 12.5px; }
.ts-max small { font-size: 9.5px; letter-spacing: .1em; color: var(--text-mute); }

/* servers */
.ts-servers { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 16px; }
.ts-server { padding: 18px; animation: ts-rise .5s cubic-bezier(.2,1.2,.4,1) both; animation-delay: calc(var(--n, 0) * .07s); transition: border-color .2s ease, box-shadow .2s ease; }
.ts-server.on { border-color: rgba(var(--brand-rgb),0.28); box-shadow: 0 18px 50px -30px rgba(var(--brand-rgb),0.5); }
.ts-server-top { display: flex; gap: 18px; align-items: center; }
.ts-server-id { flex: 1 1 auto; min-width: 0; }
.ts-server-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ts-server-name b { font-size: 17px; overflow-wrap: anywhere; }
.ts-server-id > small { display: block; margin-top: 3px; font-size: 10.5px; overflow-wrap: anywhere; }
.ts-rings { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.ts-ring { position: relative; width: 58px; text-align: center; }
.ts-ring svg { display: block; width: 58px; height: 58px; transform: rotate(-90deg); }
.ts-ring-bg { fill: none; stroke: rgba(255,255,255,0.07); stroke-width: 5; }
.ts-ring-fg { fill: none; stroke: var(--ts-g); stroke-width: 5; stroke-linecap: round; transition: stroke-dashoffset .8s cubic-bezier(.3,1,.4,1), stroke .3s ease; filter: drop-shadow(0 0 4px rgba(var(--brand-rgb),0.6)); }
.ts-ring.hot .ts-ring-fg { stroke: var(--red); filter: drop-shadow(0 0 4px rgba(255,93,87,0.7)); }
.ts-ring b { position: absolute; left: 0; right: 0; top: 20px; font-size: 12px; font-weight: 600; }
.ts-ring span { display: block; margin-top: 2px; font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-mute); }
.ts-ring.off b { color: var(--text-mute); }
.ts-seats { flex: 1 1 90px; min-width: 90px; }
.ts-seats > b { font-size: 20px; font-weight: 600; } .ts-seats > b small { font-size: 12px; color: var(--text-mute); font-weight: 400; }
.ts-seats .td-meter { margin-top: 5px; }
.ts-seats > span { display: flex; align-items: center; justify-content: space-between; margin-top: 5px; font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-mute); }
.ts-seats button, .ts-step button { width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); cursor: pointer; line-height: 1; transition: all .12s ease; }
.ts-seats button:hover, .ts-step button:hover { border-color: var(--ts-g); color: var(--ts-g); }
.ts-seats button:active, .ts-step button:active { transform: scale(.88); }
.ts-server-ctl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }

/* the drawn PC */
.ts-pc { flex: 0 0 190px; width: 190px; height: auto; }
.ts-pc-case { fill: #101a16; stroke: #25382f; stroke-width: 1.5; }
.ts-pc-screen { fill: #050908; stroke: #1a2a23; stroke-width: 1; }
.ts-pc-slot { fill: #1b2a23; }
.ts-pc-txt { font: 600 7.5px var(--font-mono, monospace); fill: #5c7268; letter-spacing: .06em; }
.ts-pc-off { font: 700 11px var(--font-mono, monospace); fill: #3c4d45; letter-spacing: .2em; }
.ts-pc-led { fill: #3a4a42; }
.ts-pc-fanring { fill: #0a110e; stroke: #25382f; stroke-width: 1.5; }
.ts-pc-blades path { fill: #2c4037; }
.ts-pc-hub { fill: #25382f; }
.ts-pc-ram { fill: #18241e; stroke: #25382f; stroke-width: 1; }
.ts-pc-bar { fill: #16231d; transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(.12); }
.ts-pc.on .ts-pc-case { stroke: rgba(var(--brand-rgb),0.45); }
.ts-pc.on .ts-pc-screen { fill: #04140d; stroke: rgba(var(--brand-rgb),0.35); }
.ts-pc.on .ts-pc-txt { fill: var(--ts-g); }
.ts-pc.on .ts-pc-led { fill: var(--ts-g); animation: ts-blink 1.6s ease-in-out infinite; filter: drop-shadow(0 0 3px var(--green-400)); }
.ts-pc.on .ts-pc-blades { transform-box: fill-box; transform-origin: 50% 50%; animation: ts-spin var(--spin, 2s) linear infinite; }
.ts-pc.on .ts-pc-blades path { fill: rgba(var(--brand-rgb),0.55); }
.ts-pc.on .ts-pc-hub { fill: var(--ts-g); }
.ts-pc.on .ts-pc-bar { fill: var(--ts-g); opacity: .85; animation: ts-eq 1.9s ease-in-out infinite; }
.ts-pc-ram.lit { fill: rgba(25,200,255,0.75); stroke: #19c8ff; }
.ts-pc.on .ts-pc-ram.lit { animation: ts-ram 2.2s ease-in-out infinite; filter: drop-shadow(0 0 3px rgba(25,200,255,0.7)); }
@keyframes ts-spin { to { transform: rotate(360deg); } }
@keyframes ts-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes ts-eq { 0%, 100% { transform: scaleY(calc(var(--load, .3) * .35)); } 30% { transform: scaleY(calc(var(--load, .3) * 1)); } 60% { transform: scaleY(calc(var(--load, .3) * .55)); } 80% { transform: scaleY(calc(var(--load, .3) * .9)); } }
@keyframes ts-ram { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes ts-rise { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes ts-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes ts-shimmer { to { background-position: -200% 0; } }

/* MT5 accounts on a server */
.ts-insts { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ts-insts-h { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 12px; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); cursor: pointer; background: rgba(255,255,255,0.02); }
.ts-insts-h em { font-style: normal; padding: 1px 7px; border-radius: 999px; background: rgba(255,255,255,0.07); }
.ts-insts-h i { margin-left: auto; font-style: normal; transition: transform .2s ease; } .ts-insts-h i.up { transform: rotate(180deg); }
.ts-inst { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 12px; border-top: 1px solid var(--line); animation: ts-fade .25s ease both; }
.ts-inst-id { display: flex; flex-direction: column; min-width: 0; } .ts-inst-id small { font-size: 11px; color: var(--text-mute); overflow-wrap: anywhere; }
.ts-inst-ops { display: inline-flex; gap: 5px; flex-wrap: wrap; margin-left: auto; }
.ts-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 999px; background: var(--text-mute); }
.ts-dot.ok { background: var(--ts-g); box-shadow: 0 0 8px var(--ts-g); } .ts-dot.wait { background: var(--amber); } .ts-dot.bad { background: var(--red); }

/* users */
/* Indicators tab: one switch per strategy / indicator */
.ts-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.ts-tool { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 9px 12px 9px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,0.02); transition: border-color .2s ease, background .2s ease; animation: ts-fade .3s ease both; animation-delay: calc(var(--n, 0) * 18ms); }
.ts-tool b { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .2s ease; }
.ts-tool-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.16); transition: background .2s ease, box-shadow .2s ease; }
.ts-tool.on { border-color: rgba(var(--brand-rgb),0.35); background: rgba(var(--brand-rgb),0.05); }
.ts-tool.on b { color: var(--text); }
.ts-tool.on .ts-tool-dot { background: var(--ts-g); box-shadow: 0 0 10px var(--ts-g); }
.ts-tool.no { opacity: .55; }
.ts-tool .ds-pill { flex: none; }
.ts-tools-bulk { display: flex; gap: 6px; margin-left: auto; }
.ts-seg button em { font-style: normal; font-size: 11px; opacity: .7; margin-left: 4px; }
@media (max-width: 640px) {
  .ts-tools { grid-template-columns: minmax(0, 1fr); }
  .ts-tools-seg { display: flex; width: 100%; }
  .ts-tools-seg button { flex: 1; min-width: 0; padding-left: 6px; padding-right: 6px; }
  .ts-tools-bulk { margin-left: 0; width: 100%; }
  .ts-tools-bulk .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .ts-tool { animation: none; } }

.ts-users { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.ts-user { display: grid; grid-template-columns: 40px minmax(150px, 1.3fr) minmax(96px, .7fr) minmax(140px, 1.1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--line); animation: ts-fade .3s ease both; animation-delay: calc(var(--n, 0) * .025s); transition: background .15s ease; }
.ts-user:first-child { border-top: 0; }
.ts-user:hover { background: rgba(var(--brand-rgb),0.03); }
.ts-ava { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; overflow: hidden; font-weight: 700; color: #04130d; background: linear-gradient(135deg, var(--ts-g), #19c8ff); }
.ts-ava img { width: 100%; height: 100%; object-fit: cover; }
.ts-user-id { display: flex; flex-direction: column; min-width: 0; }
.ts-user-id b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-user-id small { font-size: 11.5px; color: var(--text-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-user-st { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; } .ts-user-st small { font-size: 10.5px; color: var(--text-mute); }
.ts-user-acc { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
.ts-user-ctl { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ts-acc { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; font-size: 11.5px; font-family: var(--font-mono, monospace); }
.ts-acc i { width: 7px; height: 7px; border-radius: 999px; background: var(--text-mute); }
.ts-acc.on i { background: var(--ts-g); box-shadow: 0 0 6px var(--ts-g); }
.ts-acc small { color: var(--text-mute); font-family: inherit; }
.ts-acc button { margin-left: 2px; color: var(--text-mute); cursor: pointer; } .ts-acc button:hover { color: var(--red); }
.ts-skel .ts-ava, .ts-skel b, .ts-skel small { color: transparent; border-radius: 8px; background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.04) 75%); background-size: 200% 100%; animation: ts-shimmer 1.2s linear infinite; }
.ts-skel b { width: 140px; } .ts-skel small { width: 190px; margin-top: 5px; }
.ts-end { height: 1px; }

/* groups + settings */
.ts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.ts-group { padding: 16px; display: flex; flex-direction: column; gap: 12px; animation: ts-rise .45s cubic-bezier(.2,1.2,.4,1) both; animation-delay: calc(var(--n, 0) * .06s); }
.ts-group-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .ts-group-h b { font-size: 17px; overflow-wrap: anywhere; }
.ts-group-n { display: flex; gap: 16px; font-size: 12px; color: var(--text-mute); } .ts-group-n b { font-size: 16px; color: var(--text); margin-right: 4px; }
.ts-group-s { display: flex; gap: 6px; flex-wrap: wrap; min-height: 28px; align-items: center; }
.ts-group .ts-select { max-width: none; width: 100%; }
.ts-set { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); align-items: start; }
.ts-card { padding: 18px; display: flex; flex-direction: column; gap: 14px; animation: ts-rise .45s cubic-bezier(.2,1.2,.4,1) both; }
.ts-card h3 { margin: 0; font-size: 16px; letter-spacing: 0; text-transform: none; }
.ts-card h3 small { display: block; margin-top: 3px; font-size: 12px; font-weight: 400; color: var(--text-mute); }
.ts-wide { grid-column: 1 / -1; }
.ts-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; transition: opacity .2s ease; }
.ts-fields.dim { opacity: .45; }
.ts-fields label { display: flex; flex-direction: column; gap: 5px; } .ts-fields span { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-mute); }
.ts-step { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-dim); } .ts-step b { min-width: 22px; text-align: center; font-size: 16px; color: var(--text); } .ts-step span { margin-right: auto; }
.ts-pair { margin-bottom: 14px; } .ts-pair ol { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.8; color: var(--text-dim); }
.ts-pair-code small { display: block; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-mute); }
.ts-pair-code code { display: inline-block; margin-top: 6px; padding: 8px 16px; border: 1px dashed var(--ts-g); border-radius: 12px; font-size: 26px; letter-spacing: 0.16em; color: var(--ts-g); }
.ts .card.ts-card + .ts-servers, .ts form.ts-card { margin-bottom: 14px; }

@media (max-width: 900px) {
  .ts-user { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .ts-user-acc { grid-column: 2 / -1; }
  .ts-user-ctl { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (max-width: 640px) {
  .ts-hero h2 { font-size: 22px; }
  .ts-stats { width: 100%; grid-template-columns: repeat(2, 1fr); }
  .ts-tab { padding: 10px 8px; gap: 6px; font-size: 13px; } .ts-tab em { display: none; }
  .ts-server { padding: 14px; }
  .ts-server-top { flex-direction: column; align-items: stretch; gap: 10px; }
  .ts-pc { flex: none; width: 100%; max-width: 250px; margin: 0 auto; }
  .ts-rings { justify-content: space-between; }
  .ts-seats { flex-basis: 100%; }
  .ts-inst-ops { margin-left: 0; width: 100%; }
  .ts-search { flex-basis: 100%; max-width: none; }
  .ts-select { max-width: none; flex: 1 1 120px; }
  .ts-seg { flex: 1 1 auto; } .ts-seg button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .ts-stat, .ts-server, .ts-pane, .ts-user, .ts-group, .ts-card, .ts-inst { animation: none; }
  .ts-pc.on .ts-pc-blades, .ts-pc.on .ts-pc-bar, .ts-pc.on .ts-pc-led, .ts-pc.on .ts-pc-ram.lit, .ts-skel .ts-ava, .ts-skel b, .ts-skel small { animation: none; }
  .ts-pc.on .ts-pc-bar { transform: scaleY(var(--load, .3)); }
}

/* Order tables in the dashboards (Purchases, Billing): on a phone each order
   is a card, not a table to be dragged sideways. */
@media (max-width: 700px) {
  .dash-v2 .dash-main .ds-table .table.ds-stack, .dash-v2 .dash-main .bl-inv .table.ds-stack { display: block; min-width: 0; width: 100%; }
  .dash-v2 .dash-main .table.ds-stack thead { display: none; }
  .dash-v2 .dash-main .table.ds-stack tbody { display: block; width: 100%; }
  .dash-v2 .dash-main .table.ds-stack tr { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; padding: 14px; border-top: 1px solid var(--line); }
  .dash-v2 .dash-main .table.ds-stack tr:first-child { border-top: 0; }
  .dash-v2 .dash-main .table.ds-stack td { display: block; padding: 0; border: 0; text-align: left !important; min-width: 0; white-space: normal; }
  .dash-v2 .dash-main .table.ds-stack td[data-label]::before { content: attr(data-label); display: block; font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-mute); }
  .dash-v2 .dash-main .table.ds-stack td.ds-stack-main { grid-column: 1 / -1; font-weight: 600; overflow-wrap: anywhere; }
  .dash-v2 .dash-main .table.ds-stack td.ds-stack-main::before { display: none; }
  .dash-v2 .dash-main .table.ds-stack td.ds-stack-acts { grid-column: 1 / -1; }
  .dash-v2 .dash-main .table.ds-stack td.ds-stack-acts .ds-acts { justify-content: flex-start; flex-wrap: wrap; }
  .dash-v2 .dash-main .table.ds-stack td.ds-stack-acts:empty { display: none; }
}
