:root {
  --bg: #07080c;
  --card: #12151e;
  --card2: #171b27;
  --line: #262c3a;
  --line2: #32394a;
  --tx: #e8ecf4;
  --mut: #8b94a7;
  --ac: #2563eb;
  --ac2: #3b82f6;
  --aqua: #00e5cc;
  --teal: #00c9b1;
  --ok: #22c55e;
  --bad: #ef4444;
  --amber: #f59e0b;
  --sky: #38bdf8;
  --cyan: #06b6d4;
  --lime: #84cc16;
  --orange: #f97316;
  --gold: #facc15;
  --emerald: #10b981;
  --radius: 16px;
  --shadow: 0 12px 40px rgba(0, 0, 0, .45);
  --glow: 0 0 40px rgba(37, 99, 235, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--tx);
  min-height: 100vh;
  overflow-x: hidden;
}

a { color: var(--ac2); transition: color .2s; }
a:hover { color: #60a5fa; }

/* Ambient background */
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(37, 99, 235, .16), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 18%, rgba(0, 229, 204, .10), transparent 50%),
    radial-gradient(ellipse 40% 30% at 10% 60%, rgba(37, 99, 235, .06), transparent 50%);
}

/* Header */
.site-header, header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(38, 44, 58, .7);
  position: sticky;
  top: 0;
  background: rgba(7, 8, 12, .75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--tx);
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--ac), var(--aqua));
  box-shadow: 0 0 16px rgba(37, 99, 235, .4);
}
.brand b, header b { font-size: 17px; letter-spacing: .3px; }
nav a {
  margin-left: 16px;
  text-decoration: none;
  color: var(--mut);
  font-size: 14px;
  transition: color .2s, transform .2s;
}
nav a:hover { color: var(--tx); transform: translateY(-1px); }

main {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 16px 80px;
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, .35); }
  50% { box-shadow: 0 0 0 10px rgba(37, 99, 235, 0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.fade-up { animation: fadeUp .6s ease both; }
.delay-1 { animation-delay: .12s; }

/* Hero */
.hero {
  display: grid;
  gap: 28px;
  padding: 20px 0 36px;
}
@media (min-width: 800px) {
  .hero {
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
    gap: 40px;
    padding: 36px 0 48px;
  }
}
.hero-copy h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.75rem);
  line-height: 1.15;
  margin: 12px 0 14px;
  letter-spacing: -.02em;
}
.grad {
  background: linear-gradient(120deg, var(--ac2), var(--aqua));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy p {
  color: var(--mut);
  max-width: 420px;
  margin: 0;
  font-size: 15.5px;
}
.pill-tag {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px solid rgba(37, 99, 235, .35);
  color: var(--ac2);
  background: rgba(37, 99, 235, .1);
}

/* Auth panel */
.auth-panel { width: 100%; max-width: 400px; }
.g-btn-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 4px;
  min-height: 44px;
}
.or-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 12px;
  color: var(--mut);
  font-size: 13px;
}
.or-line::before, .or-line::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.or-line span { white-space: nowrap; }

.card, .auth-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.auth-card:hover {
  border-color: var(--line2);
  box-shadow: var(--shadow), var(--glow);
}

.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, .03);
  padding: 4px;
  border-radius: 12px;
}
.tabs button {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--mut);
  padding: 9px 12px;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
}
.tabs button.on {
  background: rgba(37, 99, 235, .2);
  color: var(--tx);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
.tabs button.ghost:hover { color: var(--tx); background: rgba(255, 255, 255, .04); }

input {
  width: 100%;
  background: #0e1118;
  border: 1px solid var(--line);
  color: var(--tx);
  padding: 12px 14px;
  border-radius: 12px;
  font: inherit;
  margin-bottom: 10px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
input:focus {
  border-color: var(--ac);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .2);
}
input::placeholder { color: #5c6578; }

.btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 12px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s, box-shadow .2s, filter .2s, background .2s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn.primary {
  background: linear-gradient(135deg, var(--ac), #1d4ed8);
  color: #fff;
  box-shadow: 0 6px 20px rgba(37, 99, 235, .35);
}
.btn.primary:hover:not(:disabled) {
  filter: brightness(1.08);
  box-shadow: 0 8px 28px rgba(37, 99, 235, .45);
  transform: translateY(-1px);
}
.btn.wide { width: 100%; }
.btn.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--tx);
}
.btn.ghost:hover { border-color: var(--ac); color: var(--ac2); }

.forgot, .link-btn {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--mut);
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  padding: 0;
  text-decoration: none;
  transition: color .2s;
}
.forgot:hover, .link-btn:hover { color: var(--ac2); }

.code-hint {
  text-align: center;
  color: var(--mut);
  font-size: 14px;
  margin: 0 0 14px;
  line-height: 1.5;
}
.code-hint strong { color: var(--tx); }
.code-input {
  text-align: center;
  font-size: 28px;
  letter-spacing: 10px;
  font-weight: 700;
  font-family: ui-monospace, Menlo, monospace;
  padding: 16px 12px;
  margin-bottom: 12px;
}
.code-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}

.msg { min-height: 1.2em; margin: 10px 0 0; font-size: 13.5px; }
.msg.err { color: var(--bad); }
.msg.ok { color: var(--ok); }
.hide { display: none !important; }

/* Browse section */
.browse-section { margin-top: 20px; }
.section-head { margin-bottom: 14px; }
.section-head h2 { margin: 0 0 4px; font-size: 22px; }
.content-tabs { margin-bottom: 16px; }
.content-tabs button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--mut);
  padding: 8px 14px;
  border-radius: 99px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  margin-right: 6px;
  margin-bottom: 6px;
  transition: all .2s;
}
.content-tabs button:hover { border-color: var(--line2); color: var(--tx); }
.content-tabs button.on {
  background: rgba(37, 99, 235, .18);
  border-color: rgba(37, 99, 235, .5);
  color: var(--tx);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.grid .card, .ccard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  cursor: default;
}
.grid .card:hover, .ccard:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, .45);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .35), 0 0 20px rgba(37, 99, 235, .12);
}
.ccard h4, .grid .card b { margin: 0 0 6px; font-size: 15px; }
.ccard p, .grid .card p { margin: 0; color: var(--mut); font-size: 13px; }
.empty-state { grid-column: 1 / -1; text-align: center; padding: 28px; }

.mut { color: var(--mut); }
.err { color: var(--bad); }
.ok { color: var(--ok); }

/* Bottom / services / portfolio */
.sec { margin: 36px 0 14px; font-size: 22px; }
.sub { margin: 22px 0 12px; font-size: 16px; color: var(--mut); font-weight: 600; }

.pf-card {
  background: linear-gradient(145deg, rgba(37, 99, 235, .12), rgba(0, 229, 204, .08));
  border: 1px solid rgba(37, 99, 235, .28);
  border-radius: 20px;
  padding: 24px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.pf-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, .5);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35), var(--glow);
}
.pf-main h3 { margin: 0 0 4px; font-size: 22px; }
.pf-main .role { color: var(--aqua); margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chips span {
  font-size: 12px;
  padding: 5px 11px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line);
  color: var(--mut);
  transition: border-color .2s, color .2s;
}
.chips span:hover { border-color: var(--ac); color: var(--tx); }
.about { color: var(--mut); margin: 0 0 10px; }
.pf-card blockquote {
  margin: 0;
  padding: 10px 14px;
  border-left: 3px solid var(--ac);
  background: rgba(0, 0, 0, .25);
  border-radius: 0 10px 10px 0;
  color: var(--tx);
  font-style: normal;
  font-size: 14px;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  justify-content: center;
}
.social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--tx);
  text-decoration: none;
  font-size: 13px;
  transition: transform .2s, border-color .2s, background .2s, box-shadow .2s;
}
.social a svg { width: 18px; height: 18px; }
.social a:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .3);
}
.social a.s-tg:hover { border-color: #2AABEE; color: #2AABEE; }
.social a.s-ig:hover { border-color: #f97316; color: #f97316; }
.social a.s-wa:hover { border-color: #25D366; color: #25D366; }
.social a.s-x:hover { border-color: #fff; color: #fff; }
.social a.s-yt:hover { border-color: #FF0000; color: #FF0000; }

/* Floating logo */
.logo-fab {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 30;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
  animation: float 4s ease-in-out infinite;
  filter: drop-shadow(0 8px 20px rgba(37, 99, 235, .35));
  transition: transform .25s, filter .25s;
}
.logo-fab:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 10px 28px rgba(37, 99, 235, .55));
  animation: none;
}
.logo-fab svg { width: 56px; height: 56px; display: block; }

.fab-pop {
  position: fixed;
  left: 16px;
  bottom: 80px;
  z-index: 31;
  width: 260px;
  background: var(--card2);
  border: 1px solid var(--line2);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
  animation: fadeUp .25s ease both;
}
.fab-pop .fp-top { margin-bottom: 12px; }
.fab-pop .fp-icons {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.fab-pop .fp-icons a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  color: var(--tx);
  transition: transform .2s, border-color .2s, color .2s;
}
.fab-pop .fp-icons a svg { width: 16px; height: 16px; }
.fab-pop .fp-icons a:hover { transform: translateY(-2px); }

.foot {
  text-align: center;
  padding: 24px 16px 40px;
  color: var(--mut);
  font-size: 13px;
  position: relative;
  z-index: 1;
}

/* ---------- Dashboard (existing classes) ---------- */
.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(7, 8, 12, .85);
  backdrop-filter: blur(12px);
  z-index: 15;
}
.topbar .brand { font-size: 16px; }
.coin-pill {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 99px;
  background: rgba(245, 158, 11, .12);
  border: 1px solid rgba(245, 158, 11, .35);
  color: #fbbf24;
  font-weight: 600;
  font-size: 14px;
  transition: transform .2s, box-shadow .2s;
}
.coin-pill:hover { transform: scale(1.04); box-shadow: 0 0 16px rgba(245, 158, 11, .25); }
.iconbtn {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--tx);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.iconbtn:hover { border-color: var(--ac); background: rgba(37, 99, 235, .1); }

.drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: 280px;
  background: var(--card2);
  border-right: 1px solid var(--line);
  z-index: 40;
  transform: translateX(-105%);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  display: flex;
  flex-direction: column;
  padding: 16px 0;
}
.drawer.open { transform: translateX(0); }
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  z-index: 35;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.scrim.show { opacity: 1; pointer-events: auto; }
.drawer nav { flex: 1; padding: 8px 12px; overflow-y: auto; }
.drawer nav h4 {
  margin: 16px 8px 6px;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--mut);
}
.drawer nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--tx);
  margin-bottom: 2px;
  transition: background .2s;
}
.drawer nav a:hover { background: rgba(255, 255, 255, .05); }
.drawer nav a .ic { width: 22px; text-align: center; }
.drawer .dfoot {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}
.ubox { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.uav {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ac), var(--aqua));
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
}
.uinfo { display: flex; flex-direction: column; min-width: 0; }
.uinfo b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uinfo small { color: var(--mut); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logout {
  width: 100%;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--bad);
  padding: 10px;
  border-radius: 10px;
  font: inherit;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.logout:hover { background: rgba(249, 115, 22, .1); border-color: var(--bad); }
.soon { font-size: 10px; margin-left: 6px; color: var(--amber); }
.soonlink { opacity: .7; pointer-events: none; }

.hero2 { margin-bottom: 18px; }
.hero2 h1 { margin: 8px 0 6px; font-size: 26px; }
.hero2 p { color: var(--mut); margin: 0 0 14px; }
.badge {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 1.2px;
  padding: 6px 12px;
  border-radius: 99px;
  border: 1px solid var(--line);
  color: var(--mut);
  background: rgba(255, 255, 255, .04);
}
.badge.on {
  color: var(--aqua);
  border-color: rgba(0, 229, 204, .45);
  background: rgba(0, 229, 204, .1);
}
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-btn {
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--line);
  color: var(--tx);
  padding: 11px 16px;
  border-radius: 12px;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  transition: transform .2s, border-color .2s, background .2s;
}
.pill-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: var(--ac);
  background: rgba(37, 99, 235, .12);
}
.pill-btn:disabled { opacity: .55; cursor: default; }

.refcard {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(245, 158, 11, .35);
  background: linear-gradient(135deg, rgba(245, 158, 11, .12), rgba(245, 158, 11, .03));
  margin-bottom: 8px;
  transition: transform .25s, box-shadow .25s;
}
.refcard:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(245, 158, 11, .12);
}
.rc-ic {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center; font-size: 22px;
  background: rgba(245, 158, 11, .18);
}
.rc-txt { flex: 1 1 180px; display: flex; flex-direction: column; }
.rc-txt span { color: var(--mut); font-size: 14px; }
.refcard input { flex: 1 1 200px; margin: 0; }
.amber {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1a1200;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  padding: 11px 16px;
  cursor: pointer;
  transition: transform .2s, filter .2s;
}
.amber:hover { filter: brightness(1.06); transform: translateY(-1px); }

.eyebrow {
  margin: 26px 0 0;
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--mut);
  text-transform: uppercase;
}
.sec2 { margin: 4px 0 14px; font-size: 22px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.tile:hover {
  transform: translateY(-3px);
  border-color: var(--line2);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
}
.tile .ic {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; font-size: 20px; margin-bottom: 12px;
}
.t1 { background: rgba(0, 229, 204, .14); }
.t2 { background: rgba(56, 189, 248, .16); }
.t3 { background: rgba(249, 115, 22, .16); }
.t4 { background: rgba(132, 204, 22, .14); }
.tile .num { font-size: 30px; font-weight: 700; line-height: 1.1; }
.tile .num.sm { font-size: 20px; padding: 5px 0; }

.pair-code {
  font: 700 38px/1.2 ui-monospace, Menlo, monospace;
  letter-spacing: 6px;
  text-align: center;
  padding: 18px 10px;
  margin: 12px 0;
  border-radius: 14px;
  background: #0e1118;
  border: 1px dashed var(--ac);
  color: #93c5fd;
}
.qr-img {
  display: block;
  margin: 12px auto;
  width: 240px;
  max-width: 100%;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
}
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}
.plan {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 14px 10px;
  background: #0e1118;
  border: 1px solid var(--line);
  color: var(--tx);
  border-radius: 12px;
  cursor: pointer;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.plan b { font-size: 20px; color: var(--aqua); }
.plan span { color: var(--mut); font-size: 14px; }
.plan:hover {
  border-color: var(--ac);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, .2);
}

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--mut); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }

@media (max-width: 520px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .hero-copy h1 { font-size: 1.7rem; }
  .code-input { letter-spacing: 6px; font-size: 22px; }
}

/* ========== Dashboard polish ========== */
.dash-body { background: var(--bg); }
.dash-main {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 22px 16px 90px;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(38, 44, 58, .8);
  position: sticky;
  top: 0;
  background: rgba(7, 8, 12, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 25;
}
.topbar .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--tx);
  font-size: 15px;
}
.topbar .brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 7px;
}
.coin-pill {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 99px;
  background: rgba(245, 158, 11, .1);
  border: 1px solid rgba(245, 158, 11, .4);
  color: #fbbf24;
  font-weight: 700;
  font-size: 14px;
  transition: transform .2s, box-shadow .2s;
}
.coin-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(245, 158, 11, .22);
}
.coin-label {
  font-weight: 500;
  font-size: 12px;
  color: rgba(251, 191, 36, .75);
  text-transform: lowercase;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  z-index: 35;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(300px, 88vw);
  background: #0e1219;
  border-right: 1px solid var(--line);
  z-index: 40;
  transform: translateX(-105%);
  transition: transform .28s cubic-bezier(.2, .8, .2, 1);
  display: flex;
  flex-direction: column;
  padding: 0;
}
.drawer.open { transform: translateX(0); }
.dhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
}
.dhead .brand-text { font-size: 16px; display: block; }
.dhead small {
  display: block;
  font-size: 10px;
  letter-spacing: 1.4px;
  color: var(--aqua);
  margin-top: 2px;
}
.dnav { flex: 1; padding: 10px 12px; overflow-y: auto; }
.dnav h4 {
  margin: 16px 8px 6px;
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--mut);
}
.dnav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 11px;
  text-decoration: none;
  color: var(--tx);
  margin-bottom: 2px;
  transition: background .15s, color .15s;
}
.dnav a:hover { background: rgba(37, 99, 235, .12); }
.dnav a.on {
  background: rgba(37, 99, 235, .18);
  color: #93c5fd;
  border: 1px solid rgba(37, 99, 235, .35);
}
.dnav a .ic {
  width: 22px;
  text-align: center;
  color: var(--aqua);
  font-size: 13px;
}
.dfoot {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}
.ubox { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.uav {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ac), var(--aqua));
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  overflow: hidden;
  flex-shrink: 0;
}
.uav img { width: 100%; height: 100%; object-fit: cover; }
.uinfo { display: flex; flex-direction: column; min-width: 0; }
.uinfo b {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.uinfo small {
  color: var(--mut);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.logout {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(239, 68, 68, .4);
  color: #f87171;
  padding: 10px;
  border-radius: 10px;
  font: inherit;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.logout:hover {
  background: rgba(239, 68, 68, .12);
  border-color: var(--bad);
}
.soon {
  font-size: 10px;
  margin-left: 6px;
  color: var(--amber);
  font-style: normal;
}
.soonlink { opacity: .55; pointer-events: none; }

.hero2 { margin-bottom: 18px; }
.hero2 h1 {
  margin: 8px 0 6px;
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  letter-spacing: -.02em;
}
.hero2 p { color: var(--mut); margin: 0 0 14px; font-size: 15px; }

.pill-btn.accent {
  background: rgba(37, 99, 235, .18);
  border-color: rgba(37, 99, 235, .45);
  color: #93c5fd;
}
.pill-btn.accent:hover:not(:disabled) {
  background: rgba(37, 99, 235, .28);
  border-color: var(--ac2);
  color: #fff;
}

.dash-card {
  margin-bottom: 14px;
  padding: 18px;
}
.dash-card:hover {
  border-color: var(--line2);
  box-shadow: var(--shadow);
  transform: none;
}
.card-title {
  display: block;
  margin-bottom: 10px;
  font-size: 15px;
  letter-spacing: .2px;
}

#botBody .tabs { margin-bottom: 12px; }
#botBody button:not(.ghost):not(.link-btn) {
  background: linear-gradient(135deg, var(--ac), #1d4ed8);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 11px 16px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  margin-top: 6px;
  transition: filter .2s, transform .15s;
}
#botBody button:not(.ghost):not(.link-btn):hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
#botBody button.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--mut);
  border-radius: 10px;
  padding: 9px 14px;
  font: inherit;
  cursor: pointer;
  margin-top: 8px;
  transition: border-color .2s, color .2s;
}
#botBody button.ghost:hover {
  border-color: var(--bad);
  color: #f87171;
}

.table-wrap { overflow-x: auto; }
#tx { width: 100%; border-collapse: collapse; font-size: 13.5px; }
#tx th, #tx td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
}
#tx th {
  color: var(--mut);
  font-weight: 500;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .6px;
}

.t2 { background: rgba(239, 68, 68, .14); }
.t3 { background: rgba(245, 158, 11, .14); }
.t4 { background: rgba(37, 99, 235, .14); }

/* ========== Media cards & hot ========== */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}
.ccard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.ccard:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, .45);
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
}
.ccard.is-hot { border-color: rgba(239, 68, 68, .4); }
.cc-img {
  position: relative;
  aspect-ratio: 16/10;
  background: #0e1118;
  overflow: hidden;
}
.cc-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cc-placeholder {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #12151e, #1a2233);
}
.cc-body { padding: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.cc-cat {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--aqua);
}
.cc-body b { font-size: 14px; line-height: 1.3; }
.cc-body p { font-size: 12.5px; margin: 0; flex: 1; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cc-actions .btn { padding: 8px 12px; font-size: 12px; border-radius: 10px; }
.is-locked .cc-img img { filter: brightness(.55); }
.tag-hot {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .8px;
  padding: 3px 8px;
  border-radius: 6px;
}
.tag-feat {
  background: rgba(37, 99, 235, .25);
  color: #93c5fd;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
td .tag-hot { position: static; }

.hot-section { margin: 28px 0; }
.section-head { margin-bottom: 14px; }
.section-head h2 { margin: 0 0 4px; }

.hero-points {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: var(--mut);
  font-size: 14px;
}
.hero-points li {
  padding: 6px 0 6px 22px;
  position: relative;
}
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 10px rgba(0, 229, 204, .5);
}

.cta-band {
  margin: 40px 0 20px;
  padding: 28px 22px;
  text-align: center;
  border-radius: 18px;
  border: 1px solid rgba(37, 99, 235, .35);
  background: linear-gradient(145deg, rgba(37, 99, 235, .12), rgba(0, 229, 204, .06));
}
.cta-band h2 { margin: 0 0 8px; font-size: 22px; }
.cta-band p { color: var(--mut); margin: 0 0 16px; }
.lock-note { text-align: center; margin-top: 12px; font-size: 13px; }

/* Admin */
.admin-tabs { margin-bottom: 16px; }
.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
@media (max-width: 600px) { .row-2 { grid-template-columns: 1fr; } }
.row-2 select, .row-2 input, textarea {
  width: 100%;
  background: #0e1118;
  border: 1px solid var(--line);
  color: var(--tx);
  padding: 11px 12px;
  border-radius: 12px;
  font: inherit;
  margin-bottom: 0;
}
textarea { resize: vertical; margin-bottom: 10px; }
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--mut);
}
.checks label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.checks input { width: auto; margin: 0; }
.actions-cell { white-space: nowrap; }
.actions-cell button {
  margin: 2px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(37, 99, 235, .15);
  color: var(--tx);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.actions-cell button.ghost {
  background: transparent;
}
.actions-cell button.bad {
  background: rgba(239, 68, 68, .12);
  border-color: rgba(239, 68, 68, .4);
  color: #f87171;
}
#fileBox { margin-bottom: 10px; }
#fileBox input[type=file] { margin-top: 6px; }

/* Phone + country on signup */
.phone-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  position: relative;
}
.phone-row input#phone { flex: 1; margin-bottom: 0; }
.cc-wrap { position: relative; flex: 0 0 auto; }
.cc-btn {
  height: 100%;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #0e1118;
  color: var(--tx);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.cc-btn:hover { border-color: var(--ac2); }
.cc-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  width: min(280px, 80vw);
  background: var(--card2);
  border: 1px solid var(--line2);
  border-radius: 12px;
  padding: 8px;
  z-index: 50;
  box-shadow: var(--shadow);
}
.cc-panel input { margin-bottom: 6px; }
.cc-list {
  max-height: 220px;
  overflow-y: auto;
}
.cc-list button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  text-align: left;
  padding: 9px 10px;
  border: none;
  background: transparent;
  color: var(--tx);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  border-radius: 8px;
}
.cc-list button:hover { background: rgba(37, 99, 235, .12); }

/* Top-up modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0,0,0,.65);
  display: grid;
  place-items: center;
  padding: 16px;
}
.modal.hide { display: none !important; }
.modal-card {
  width: min(420px, 100%);
  background: var(--card2);
  border: 1px solid var(--line2);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.topup-presets {
  display: flex;
  gap: 8px;
  margin: 8px 0 12px;
  flex-wrap: wrap;
}
.topup-presets button {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--tx);
  font: inherit;
  cursor: pointer;
}
.topup-presets button:hover { border-color: var(--ac2); }
.topup-total {
  font-size: 18px;
  font-weight: 700;
  color: var(--aqua);
  margin: 4px 0 12px;
}
#topupCountry { margin-bottom: 12px; }

/* ---- wallet / notifications / support / status bar (no pink or purple) ---- */
a.coin-pill { text-decoration: none; }
.status-bar {
  position: sticky; top: 0; z-index: 60; padding: 9px 16px; text-align: center; font-size: 13.5px;
  background: rgba(56, 189, 248, .14); border-bottom: 1px solid rgba(56, 189, 248, .4); color: var(--sky);
}
.status-bar.warn { background: rgba(249, 115, 22, .16); border-bottom-color: rgba(249, 115, 22, .45); color: #fdba74; }
.bell { position: relative; text-decoration: none; display: grid; place-items: center; color: var(--tx); }
.bell-count {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--orange); color: #1a0d00; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.notif-list { display: flex; flex-direction: column; gap: 10px; }
.notif {
  display: flex; gap: 12px; padding: 14px; border-radius: var(--radius); background: var(--card);
  border: 1px solid var(--line); color: var(--tx); text-decoration: none;
}
.notif:hover { border-color: var(--line2); color: var(--tx); }
.notif.unread { border-color: rgba(37, 99, 235, .55); background: linear-gradient(145deg, rgba(37, 99, 235, .12), var(--card)); }
.n-ic { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; background: rgba(56, 189, 248, .14); color: var(--sky); }
.n-success .n-ic, .n-payment .n-ic { background: rgba(34, 197, 94, .14); color: var(--ok); }
.n-referral .n-ic { background: rgba(250, 204, 21, .14); color: var(--gold); }
.n-warning .n-ic { background: rgba(249, 115, 22, .16); color: var(--orange); }
.n-error .n-ic { background: rgba(239, 68, 68, .16); color: var(--bad); }
.n-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.spill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(56, 189, 248, .14); color: var(--sky); }
.s-success, .s-approved, .s-answered { background: rgba(34, 197, 94, .15); color: var(--ok); }
.s-pending, .s-open { background: rgba(250, 204, 21, .15); color: var(--gold); }
.s-failed, .s-rejected { background: rgba(239, 68, 68, .15); color: var(--bad); }
.s-closed { background: rgba(255, 255, 255, .08); color: var(--mut); }
.ticket p { margin: 8px 0; white-space: pre-wrap; }
.t-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.t-reply { margin: 10px 0; padding: 10px 12px; border-left: 3px solid var(--emerald); background: rgba(16, 185, 129, .08); border-radius: 8px; }

/* ========== Library: movies, football, tools ========== */
.center { text-align: center; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar input, .toolbar select { flex: 1 1 140px; margin: 0; min-width: 0; }
.chips { margin-bottom: 14px; overflow-x: auto; white-space: nowrap; }
button.mcard { text-align: left; font: inherit; color: inherit; padding: 0; cursor: pointer; }
.mcard .cc-img { position: relative; aspect-ratio: 2 / 3; }
.cc-price { position: absolute; left: 8px; bottom: 8px; }
.tag-free, .tag-price { font-size: 10px; font-weight: 700; letter-spacing: .5px; padding: 3px 8px; border-radius: 999px; }
.tag-free { background: rgba(34, 197, 94, .18); color: var(--ok); border: 1px solid rgba(34, 197, 94, .4); }
.tag-price { background: rgba(245, 158, 11, .18); color: var(--amber); border: 1px solid rgba(245, 158, 11, .45); }
.wide-card { max-width: 720px; width: 94vw; max-height: 92vh; overflow-y: auto; }
.player { width: 100%; max-height: 60vh; background: #000; border-radius: 12px; margin-bottom: 10px; }
.poster { width: 100%; max-height: 40vh; object-fit: cover; border-radius: 12px; margin-bottom: 10px; }

.match { display: block; width: 100%; text-align: left; font: inherit; color: inherit; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; cursor: pointer; transition: border-color .2s, transform .15s; }
.match:hover { border-color: var(--ac); transform: translateY(-1px); }
.match.is-live { border-color: rgba(0, 229, 204, .45); box-shadow: 0 0 24px rgba(0, 229, 204, .08); }
.m-line { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin: 6px 0; }
.m-team { display: flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0; }
.m-team.r { justify-content: flex-end; text-align: right; }
.m-team img { width: 22px; height: 22px; object-fit: contain; }
.m-score { font-size: 20px; color: var(--aqua); min-width: 56px; text-align: center; }
.m-foot { display: flex; gap: 8px; align-items: center; font-size: 12px; }
.live-dot { color: var(--aqua); font-weight: 700; }
.live-dot::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); margin-right: 6px; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .25; } }

.dl-result { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; margin-top: 12px; }
.dl-result img { width: 140px; max-width: 100%; border-radius: 10px; }
.dl-result > div { flex: 1 1 220px; min-width: 0; }
.dl-result .cc-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.cc-actions .btn { padding: 8px 14px; }
select {
  width: 100%; padding: 12px 14px; background: var(--card2); color: var(--tx);
  border: 1px solid var(--line2); border-radius: 12px; font: inherit; margin: 6px 0;
}
select:focus { outline: none; border-color: var(--ac2); }
.toolbar select { flex: 1 1 140px; margin: 0; }

/* ===== payment processing steps ===== */
.steps { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.step { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--card2); border: 1px solid var(--line); color: var(--mut); }
.step.done { color: var(--tx); border-color: rgba(34, 197, 94, .35); }
.step.active { color: var(--tx); border-color: var(--aqua); box-shadow: 0 0 18px rgba(0, 229, 204, .12); animation: pulse 1.4s infinite; }
.step.failed { color: var(--tx); border-color: rgba(239, 68, 68, .5); }

/* ---- TMDB import (admin) ---- */
.tmdb-box { margin: 10px 0 16px; padding: 12px; border: 1px dashed var(--line2); border-radius: var(--radius); background: rgba(56, 189, 248, .05); }
.tm-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 10px; }
.tm-card { display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 6px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--tx); cursor: pointer; }
.tm-card:hover { border-color: var(--sky); }
.tm-card img, .tm-noimg { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; background: rgba(255, 255, 255, .06); display: grid; place-items: center; font-size: 12px; }
.tm-card b { font-size: 13px; line-height: 1.2; }
.tmdb-note { text-align: center; font-size: 12px; padding: 14px 16px 28px; }

/* ---- Discover page + where-to-watch ---- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 12px; }
.tabs button { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--mut); cursor: pointer; }
.tabs button.on { color: var(--tx); border-color: var(--sky); background: rgba(56, 189, 248, .12); }
.disc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.disc-card { display: flex; flex-direction: column; gap: 5px; text-align: left; padding: 7px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--tx); cursor: pointer; }
.disc-card:hover { border-color: var(--sky); }
.disc-card b { font-size: 13px; line-height: 1.25; }
.disc-thumb { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: rgba(255, 255, 255, .06); }
.disc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.disc-thumb em { position: absolute; right: 6px; bottom: 6px; font-style: normal; font-size: 11px; padding: 1px 6px; border-radius: 6px; background: rgba(0, 0, 0, .7); }
.embed-wrap { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; margin: 10px 0; }
.embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.where-row { margin: 10px 0; }
.where-group { margin: 6px 0; }
.where-chip { display: inline-flex; align-items: center; gap: 6px; margin: 3px 6px 3px 0; padding: 4px 10px 4px 4px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(16, 185, 129, .08); color: var(--tx); text-decoration: none; font-size: 13px; }
.where-chip img { width: 22px; height: 22px; border-radius: 50%; }

/* ========== PRIMEHUB: Netflix-style movies page ========== */
.nf-main { max-width: 1400px; margin: 0 auto; padding: 0 0 40px; position: relative; z-index: 1; }
.nf-hero {
  position: relative; min-height: 46vh; display: flex; align-items: flex-end;
  background: #1a1c20 center top / cover no-repeat; overflow: hidden;
}
.nf-hero.plain { min-height: 30vh; background: linear-gradient(135deg, #1a1c20, #0d0e11); }
.nf-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, var(--bg) 3%, rgba(7, 8, 12, .25) 55%, rgba(7, 8, 12, .7)), linear-gradient(to right, rgba(7, 8, 12, .85), transparent 70%);
}
.nf-hero-in { position: relative; padding: 28px 16px 30px; max-width: 640px; }
.nf-hero h1 { font-size: clamp(28px, 6vw, 54px); line-height: 1.05; font-weight: 800; margin: 10px 0 8px; letter-spacing: -.5px; }
.nf-hero p { color: #cfd6e4; margin: 0 0 16px; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nf-hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.nf-bar { position: sticky; top: 56px; z-index: 12; display: flex; flex-direction: column; gap: 10px; padding: 12px 16px; background: rgba(7, 8, 12, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nf-searchrow { display: flex; gap: 10px; }
.nf-searchrow input { flex: 1; margin: 0; }
.nf-genres { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; align-items: center; }
.nf-genres::-webkit-scrollbar { display: none; }
.nf-genres.hide { display: none; }
.nf-pill { flex: 0 0 auto; border: 1px solid var(--line2); background: transparent; color: var(--mut); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; cursor: pointer; transition: .2s; }
.nf-pill:hover { color: var(--tx); border-color: var(--ac2); }
.nf-pill.on { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--ac), var(--teal)); }
.nf-sep { flex: 0 0 1px; height: 22px; background: var(--line2); margin: 0 4px; }
.nf-note { margin: 12px 16px 0; padding: 10px 14px; border-radius: 12px; border: 1px dashed var(--amber); color: var(--amber); font-size: 13px; }

.nf-row { margin: 22px 0 0; }
.nf-row h2 { font-size: 18px; margin: 0 16px 10px; font-weight: 700; }
.nf-scroll-wrap { position: relative; }
.nf-scroll { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding: 0 16px; padding: 8px 16px 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.nf-scroll::-webkit-scrollbar { display: none; }
.nf-card { flex: 0 0 auto; position: relative; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #23262c; color: var(--tx); cursor: pointer; scroll-snap-align: start; transition: transform .2s ease, box-shadow .2s ease; text-align: left; }
.nf-scroll.poster .nf-card { width: 138px; aspect-ratio: 2 / 3; }
.nf-scroll.wide .nf-card { width: 236px; aspect-ratio: 16 / 9; }
@media (min-width: 760px) { .nf-scroll.poster .nf-card { width: 170px; } .nf-scroll.wide .nf-card { width: 300px; } .nf-row h2, .nf-hero-in, .nf-bar { padding-left: 28px; padding-right: 28px; } .nf-row h2 { margin-left: 0; margin-right: 0; } .nf-scroll { padding-left: 28px; padding-right: 28px; scroll-padding: 0 28px; } }
.nf-card:hover, .nf-card:focus-visible { transform: scale(1.07); z-index: 3; box-shadow: 0 16px 36px rgba(0, 0, 0, .65); outline: 2px solid var(--aqua); }
.nf-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nf-ph { display: grid; place-items: center; height: 100%; padding: 10px; text-align: center; font-weight: 600; font-size: 14px; background: linear-gradient(135deg, #1f2227, #2a2d33); color: #cfd3da; }
.nf-ov { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 9px 9px; display: flex; flex-direction: column; gap: 2px; background: linear-gradient(transparent, rgba(0, 0, 0, .92)); opacity: 0; transition: opacity .2s; }
.nf-card:hover .nf-ov, .nf-card:focus-visible .nf-ov { opacity: 1; }
@media (hover: none) { .nf-ov { opacity: 1; padding-top: 22px; } }
.nf-ov b { font-size: 13px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nf-ov small { color: #b6bfd0; font-size: 11px; }
.nf-tag { position: absolute; top: 7px; left: 7px; font-size: 10px; font-weight: 800; letter-spacing: .4px; padding: 3px 7px; border-radius: 6px; background: rgba(0, 0, 0, .72); color: var(--aqua); }
.nf-tag.free { color: var(--ok); }
.nf-tag.price { color: var(--amber); }
.nf-arrow { display: none; }
@media (hover: hover) and (min-width: 900px) {
  .nf-arrow { display: grid; place-items: center; position: absolute; top: 8px; bottom: 18px; width: 46px; z-index: 5; border: 0; background: rgba(7, 8, 12, .72); color: #fff; font-size: 34px; opacity: 0; transition: opacity .2s; cursor: pointer; }
  .nf-scroll-wrap:hover .nf-arrow { opacity: 1; }
  .nf-arrow.l { left: 0; border-radius: 0 10px 10px 0; }
  .nf-arrow.r { right: 0; border-radius: 10px 0 0 10px; }
}

/* ========== Dashboard: services overview ========== */
.svc-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 22px; }
@media (min-width: 700px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .svc-grid { grid-template-columns: repeat(4, 1fr); } }
.svc-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; color: var(--tx); text-decoration: none; transition: transform .2s, border-color .2s; }
.svc-card:hover { transform: translateY(-3px); border-color: var(--ac2); }
.svc-card .ic { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; }
.svc-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.svc-txt b { font-size: 15px; }
.svc-txt .mut { font-size: 13px; line-height: 1.4; }
.svc-txt em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--aqua); }
.watch-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.watch-list .btn { text-align: left; max-width: 100%; }
.watch-list .btn small { opacity: .8; font-weight: 500; }
