/* =====================================================================
   SMThemeTv — bundled component stylesheet (base + client)
   Author: Shahid Malla — https://shahidmalla.com
   Loaded by SMThemeTv WHMCS templates. Pairs with custom.css (which
   re-skins the Nexus Bootstrap components for un-converted pages).
   ===================================================================== */

/* ============================================================
   STREAMLINE IPTV — WHMCS Theme
   base.css  ·  Design tokens, reset, shared primitives
   Used by BOTH the public site and the client area.
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

/* ---------- Design tokens ---------- */
:root {
  /* Brand — cinematic teal / cyan (ABC IPTV direction) */
  --brand:        #1ba3c9;
  --brand-600:    #1690b3;
  --brand-700:    #127a99;
  --brand-soft:   rgba(27, 163, 201, 0.12);
  --brand-glow:   rgba(27, 163, 201, 0.40);
  --cyan:         #5fd0ec;   /* light cyan for gradients / accents */
  --cyan-2:       #3ec4e6;
  --gold:         #f5c84b;
  --gold-soft:    rgba(245, 200, 75, 0.14);

  /* Neutrals — light (public) */
  --bg:           #0b0b12;
  --paper:        #ffffff;
  --ink:          #14141c;
  --ink-2:        #3b3b48;
  --muted:        #6b6b7b;
  --line:         #e7e7ef;
  --surface:      #f6f6fb;

  /* Dark surfaces — cinematic teal/blue (client + dark sections) */
  --d-bg:         #071f29;
  --d-bg-2:       #0a2a38;
  --d-card:       rgba(13, 44, 57, 0.66);
  --d-card-2:     rgba(18, 56, 71, 0.7);
  --d-line:       rgba(255,255,255,0.09);
  --d-line-2:     rgba(120,210,235,0.22);
  --d-ink:        #eaf6fb;
  --d-muted:      #8fb2c0;

  /* Status */
  --green:        #34d399;
  --green-bg:     rgba(52, 211, 153, 0.14);
  --amber:        #fbbf24;
  --amber-bg:     rgba(251, 191, 36, 0.14);
  --red:          #f87171;
  --red-bg:       rgba(248, 113, 113, 0.14);
  --blue:         #60a5fa;
  --blue-bg:      rgba(96, 165, 250, 0.14);

  /* Radius / shadow / spacing */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --shadow-sm: 0 2px 8px rgba(20,20,40,.06);
  --shadow:    0 14px 40px rgba(20,20,50,.10);
  --shadow-lg: 0 30px 80px rgba(20,20,50,.18);
  --shadow-d:  0 24px 60px rgba(0,0,0,.45);

  --maxw: 1200px;
  --nav-h: 76px;

  --font: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-ui: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
/* lists: scoped resets only */
h1,h2,h3,h4,h5 { line-height: 1.18; font-weight: 800; letter-spacing: -0.02em; }
hr { border: none; border-top: 1px solid var(--line); }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.wrap-wide { max-width: 1360px; }
.row { display: flex; }
.col { display: flex; flex-direction: column; }
.center { align-items: center; }
.between { justify-content: space-between; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; }
.gap-20 { gap: 20px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; }
.grow { flex: 1; }
.hide { display: none !important; }
@media (max-width: 860px){ .wrap { padding-inline: 18px; } }

/* ---------- Icon system (magicoon-style: rounded, smooth) ---------- */
.ic { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2;
      fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none;
      vertical-align: middle; }
.ic-sm { width: 16px; height: 16px; stroke-width: 2.1; }
.ic-lg { width: 28px; height: 28px; stroke-width: 1.9; }
.ic-xl { width: 44px; height: 44px; stroke-width: 1.8; }
/* filled glyphs (star, play, etc.) */
.ic-fill { fill: currentColor; stroke: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font); font-weight: 700; font-size: 15px;
  padding: 12px 20px; border-radius: 12px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap; border: 1px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 22px var(--brand-glow); }
.btn-primary:hover { background: var(--brand-600); box-shadow: 0 12px 30px var(--brand-glow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-gold { background: var(--gold); color: #2a2300; box-shadow: 0 8px 22px var(--gold-soft); }
.btn-gold:hover { filter: brightness(1.04); }
.btn-sm { padding: 9px 14px; font-size: 13.5px; border-radius: 10px; }
.btn-lg { padding: 15px 26px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; justify-content: center; }
.btn-icon { padding: 11px; border-radius: 11px; }

/* ---------- Badges / pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px;
        font-family: var(--font-ui); font-weight: 600; font-size: 12.5px;
        padding: 5px 11px; border-radius: 999px; line-height: 1; }
.pill-brand { background: var(--brand-soft); color: var(--brand); }
.pill-green { background: var(--green-bg); color: #0f9b6e; }
.pill-amber { background: var(--amber-bg); color: #b87900; }
.pill-red   { background: var(--red-bg);   color: #c33; }
.pill-blue  { background: var(--blue-bg);  color: #2563eb; }
.pill-dot::before { content:""; width:7px; height:7px; border-radius:50%; background: currentColor; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.input, .select, .textarea {
  width: 100%; font-family: var(--font-ui); font-size: 15px;
  padding: 13px 15px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.textarea { resize: vertical; min-height: 120px; }
.input-icon { position: relative; }
.input-icon .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-icon .input { padding-left: 44px; }

/* ---------- Utilities ---------- */
.muted { color: var(--muted); }
.eyebrow { font-family: var(--font-ui); font-weight: 700; font-size: 12.5px;
           letter-spacing: .14em; text-transform: uppercase; color: var(--brand); }
.tag { font-family: var(--font-ui); font-size: 12px; font-weight: 600; color: var(--muted); }
.divider { height: 1px; background: var(--line); }


/* ============================================================
   STREAMLINE — client.css
   POST-LOGIN client area. Full IPTV "TV" experience:
   dark canvas, glass cards, channel / movie / series UI,
   gold + violet accents. Clean & modern.
   ============================================================ */

body.app {
  /* brighter cyan accent reads better on the cinematic dark canvas */
  --brand:      #2bb6da;
  --brand-600:  #1ea0c4;
  --brand-soft: rgba(43,182,218,.16);
  --brand-glow: rgba(43,182,218,.45);
  color: var(--d-ink);
  min-height: 100vh;
  background:
    radial-gradient(1200px 700px at 82% -12%, rgba(43,182,218,.20), transparent 58%),
    radial-gradient(900px 600px at -8% 4%,    rgba(20,90,120,.32),  transparent 55%),
    radial-gradient(700px 500px at 50% 120%,  rgba(43,182,218,.08), transparent 60%),
    linear-gradient(160deg, #0a2a38 0%, #071f29 48%, #061a23 100%);
  background-attachment: fixed;
}
/* cinematic blurred "movie wall" backdrop + vignette */
body.app::before {
  content:""; position: fixed; inset:0; pointer-events:none; z-index:0;
  background:
    radial-gradient(420px 300px at 12% 24%, rgba(60,150,180,.16), transparent 70%),
    radial-gradient(460px 320px at 88% 32%, rgba(40,120,160,.14), transparent 70%),
    radial-gradient(120% 120% at 50% -10%, transparent 55%, rgba(0,0,0,.55));
}

/* ---------- App shell ---------- */
.shell { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; position: relative; z-index:1; }

/* Sidebar */
.side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: rgba(8,32,42,.78); backdrop-filter: blur(22px);
  border-right: 1px solid var(--d-line); padding: 22px 16px;
  display:flex; flex-direction: column; gap: 6px;
}
.side-link.active { box-shadow: inset 0 0 0 1px rgba(120,210,235,.18); }
.side .brand { color: var(--d-ink); margin: 6px 8px 22px; }
.side .brand .logo { box-shadow: 0 6px 18px var(--brand-glow); }
.nav-group { font-family: var(--font-ui); font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--d-muted);
  padding: 16px 12px 8px; }
.side-link { display:flex; align-items:center; gap: 13px; padding: 11px 13px;
  border-radius: 12px; color: var(--d-muted); font-weight: 600; font-size: 14.5px;
  transition: .15s; position: relative; }
.side-link:hover { background: rgba(255,255,255,.04); color: var(--d-ink); }
.side-link.active { background: var(--brand-soft); color: #fff; }
.side-link.active::before { content:""; position:absolute; left:-16px; top:50%;
  transform: translateY(-50%); width:4px; height:22px; border-radius:0 4px 4px 0; background: var(--brand); }
.side-link .ic { flex:none; }
.side-link .badge { margin-left:auto; background: var(--brand); color:#fff;
  font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; font-family: var(--font-ui); }
.side-foot { margin-top: auto; padding: 14px 8px 6px; }
.plan-chip { background: linear-gradient(135deg, rgba(27,163,201,.22), rgba(245,200,75,.12));
  border: 1px solid var(--d-line); border-radius: var(--r); padding: 16px; }
.plan-chip .ttl { font-size: 13px; color: var(--d-muted); }
.plan-chip b { display:block; font-size: 16px; margin: 2px 0 10px; }
.bar { height: 7px; border-radius: 999px; background: rgba(255,255,255,.1); overflow: hidden; }
.bar > i { display:block; height:100%; border-radius:999px;
  background: linear-gradient(90deg, var(--brand), var(--cyan)); }

/* Main column */
.main { min-width: 0; display:flex; flex-direction: column; }

/* Topbar */
.topbar { position: sticky; top:0; z-index: 20;
  height: 74px; display:flex; align-items:center; gap: 18px; padding: 0 30px;
  background: rgba(7,28,38,.72); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--d-line); }
.topbar h1 { font-size: 21px; }
.search { position: relative; max-width: 420px; flex: 1; }
.search .ic { position:absolute; left:14px; top:50%; transform:translateY(-50%); color: var(--d-muted); }
.search input { width:100%; background: rgba(255,255,255,.05); border:1px solid var(--d-line);
  color: var(--d-ink); padding: 11px 14px 11px 42px; border-radius: 12px; font-family: var(--font-ui); font-size:14px; }
.search input:focus { outline:none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.search input::placeholder { color: var(--d-muted); }
.topbar .sp { margin-left:auto; }
.icon-btn { width:42px;height:42px;border-radius:12px; border:1px solid var(--d-line);
  display:grid;place-items:center; color: var(--d-muted); position:relative; transition:.15s; }
.icon-btn:hover { color: var(--d-ink); border-color: var(--d-line-2); background: rgba(255,255,255,.04); }
.icon-btn .dot { position:absolute; top:9px; right:10px; width:8px;height:8px;border-radius:50%;
  background: var(--gold); box-shadow: 0 0 0 3px var(--d-bg); }
.avatar { width:42px;height:42px;border-radius:50%; display:grid;place-items:center; font-weight:800;
  color:#fff; background: linear-gradient(135deg, var(--brand), var(--cyan)); flex:none; }
.user-chip { display:flex; align-items:center; gap:11px; padding: 5px 6px 5px 5px;
  border:1px solid var(--d-line); border-radius: 999px; }
.user-chip .nm { font-size: 13.5px; line-height:1.2; }
.user-chip .nm small { display:block; color: var(--d-muted); font-size: 11.5px; }

/* Content area */
.content { padding: 30px; display:flex; flex-direction: column; gap: 26px; }
@media (max-width: 1024px){
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left:-280px; z-index:60; transition:.25s; width:264px; }
  .side.open { left:0; }
  .menu-btn { display:grid !important; }
}
.menu-btn { display:none; }

/* ---------- Welcome banner / hero (cinematic, ABC-style) ---------- */
.welcome { position: relative; overflow:hidden; border-radius: var(--r-xl);
  border:1px solid var(--d-line); backdrop-filter: blur(6px);
  background:
    radial-gradient(800px 360px at 88% -20%, rgba(43,182,218,.34), transparent 60%),
    radial-gradient(500px 300px at 10% 120%, rgba(20,90,120,.40), transparent 60%),
    linear-gradient(120deg, rgba(11,44,58,.92), rgba(7,28,38,.92));
  padding: 32px 34px; box-shadow: var(--shadow-d); }
.welcome::after { content:""; position:absolute; right:-40px; bottom:-60px;
  width:300px; height:300px; border-radius:50%; pointer-events:none;
  background: radial-gradient(circle, rgba(43,182,218,.22), transparent 65%); }
.welcome .greet { font-size: 13px; color: var(--d-muted); font-family: var(--font-ui); }
.welcome h2 { font-size: clamp(24px, 3vw, 34px); margin-top: 4px; }
.welcome p { color: var(--d-muted); margin-top: 8px; max-width: 480px; }
.welcome-meta { display:flex; gap: 26px; margin-top: 22px; flex-wrap:wrap; }
.welcome-meta .m b { font-size: 22px; }
.welcome-meta .m span { display:block; font-family:var(--font-ui); font-size:12.5px; color:var(--d-muted); }
.welcome .clock { position:absolute; right:34px; top:30px; text-align:right; }
.welcome .clock .t { font-size: 30px; font-weight: 800; letter-spacing:-.02em; }
.welcome .clock .d { font-family:var(--font-ui); font-size:13px; color: var(--d-muted); }
@media (max-width:680px){ .welcome .clock { display:none; } }

/* ---------- Big TV category cards (Live TV / Movies / Series) ---------- */
.tv-cards { display:grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.tv-card { position: relative; overflow: hidden; border-radius: var(--r-xl);
  min-height: 196px; padding: 26px; display:flex; flex-direction: column; justify-content: space-between;
  border:1px solid var(--d-line);
  background: linear-gradient(150deg, rgba(255,255,255,.08), rgba(255,255,255,.015));
  backdrop-filter: blur(14px); transition: .22s; cursor: pointer; }
.tv-card:hover { transform: translateY(-6px); border-color: var(--d-line-2);
  box-shadow: var(--shadow-d); }
.tv-card .tv-ico { width: 78px; height: 78px; align-self: flex-end; color: var(--cyan);
  opacity:.98; filter: drop-shadow(0 8px 18px rgba(43,182,218,.35)); }
.tv-card.live .tv-ico { color: var(--cyan); }
.tv-card.movies .tv-ico { color: #fff; filter: drop-shadow(0 8px 18px rgba(255,255,255,.18)); }
.tv-card.series .tv-ico { color: var(--cyan); }
.tv-card h3 { font-size: 25px; }
.tv-card .count { font-family: var(--font-ui); font-size: 14px; color: var(--d-ink); font-weight:600; }
.tv-card .upd { display:flex; align-items:center; gap:6px; color: var(--d-muted);
  font-family: var(--font-ui); font-size: 12px; margin-top: 4px; }
.tv-card::after { content:""; position:absolute; inset:0; border-radius: inherit;
  background: radial-gradient(320px 140px at 80% 115%, rgba(43,182,218,.20), transparent 60%); pointer-events:none; }
.tv-card.live { border-top: 2px solid rgba(43,182,218,.5); }
@media (max-width: 900px){ .tv-cards { grid-template-columns: 1fr; } }

/* ---------- Stat cards ---------- */
.stats { display:grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.stat { background: var(--d-card); backdrop-filter: blur(14px); border:1px solid var(--d-line);
  border-radius: var(--r-lg); padding: 20px; transition:.2s; }
.stat:hover { border-color: var(--d-line-2); }
.stat .si { width:44px;height:44px;border-radius:12px;display:grid;place-items:center;margin-bottom:14px; }
.stat .si.v { background: var(--brand-soft); color: var(--brand); }
.stat .si.g { background: var(--gold-soft); color: var(--gold); }
.stat .si.gr { background: var(--green-bg); color: var(--green); }
.stat .si.b { background: var(--blue-bg); color: var(--blue); }
.stat .val { font-size: 28px; font-weight: 800; letter-spacing:-.02em; }
.stat .lbl { font-family: var(--font-ui); font-size: 13px; color: var(--d-muted); margin-top: 2px; }
.stat .trend { font-family: var(--font-ui); font-size: 12.5px; margin-top: 8px; display:flex; gap:5px; align-items:center; }
.stat .trend.up { color: var(--green); } .stat .trend.down { color: var(--red); }
@media (max-width: 1100px){ .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- Panels ---------- */
.panel { background: var(--d-card); backdrop-filter: blur(16px); border:1px solid var(--d-line);
  border-radius: var(--r-lg); overflow:hidden; box-shadow: 0 14px 40px rgba(0,0,0,.28); }
.panel-head { display:flex; align-items:center; justify-content: space-between; gap:14px;
  padding: 20px 22px; border-bottom: 1px solid var(--d-line); }
.panel-head h3 { font-size: 17px; }
.panel-head .link { font-family: var(--font-ui); font-size: 13.5px; color: var(--brand); font-weight:600;
  display:flex; align-items:center; gap:5px; }
.panel-body { padding: 22px; }
.panel-body.flush { padding: 0; }
.grid-2c { display:grid; grid-template-columns: 1.6fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 1000px){ .grid-2c { grid-template-columns: 1fr; } }

/* ---------- Channel / content rails ---------- */
.rail { display:grid; grid-template-columns: repeat(6,1fr); gap: 14px; }
.chan { aspect-ratio: 1; border-radius: var(--r); border:1px solid var(--d-line);
  background: var(--d-card-2); display:grid; place-items:center; transition:.2s; position:relative; }
.chan:hover { border-color: var(--brand); transform: translateY(-3px); }
.chan .logo-txt { font-weight: 800; font-size: 15px; color: var(--d-ink); opacity:.9; }
.chan .live { position:absolute; top:8px; right:8px; background: var(--red); color:#fff;
  font-size:9px; font-weight:800; padding:2px 6px; border-radius:5px; font-family:var(--font-ui); letter-spacing:.05em; }
@media (max-width: 900px){ .rail { grid-template-columns: repeat(3,1fr); } }

.vod { display:grid; grid-template-columns: repeat(5,1fr); gap: 16px; }
.poster { border-radius: var(--r); overflow:hidden; border:1px solid var(--d-line);
  background: var(--d-card-2); transition:.2s; cursor:pointer; }
.poster:hover { transform: translateY(-4px); border-color: var(--brand); }
.poster .art { aspect-ratio: 2/3; position:relative;
  background: linear-gradient(160deg, #241f33, #14121c); display:grid; place-items:center; }
.poster .art .ic { color: rgba(255,255,255,.25); width:42px; height:42px; }
.poster .art .rt { position:absolute; top:8px; left:8px; background: rgba(0,0,0,.6);
  color: var(--gold); font-size:11px; font-weight:700; padding:3px 7px; border-radius:7px;
  font-family:var(--font-ui); display:flex; align-items:center; gap:3px; }
.poster .art .play { position:absolute; inset:0; display:grid; place-items:center; opacity:0; transition:.2s;
  background: rgba(27,163,201,.25); }
.poster:hover .art .play { opacity:1; }
.poster .art .play span { width:48px;height:48px;border-radius:50%; background:#fff; color: var(--brand);
  display:grid; place-items:center; }
.poster .meta { padding: 10px 12px; }
.poster .meta b { font-size: 13.5px; display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.poster .meta span { font-family:var(--font-ui); font-size:12px; color: var(--d-muted); }
@media (max-width: 1100px){ .vod { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 640px){ .vod { grid-template-columns: repeat(2,1fr); } }

/* ---------- Tables ---------- */
.tbl { width:100%; border-collapse: collapse; font-size: 14.5px; }
.tbl thead th { text-align:left; font-family: var(--font-ui); font-size: 12px; font-weight:700;
  letter-spacing:.06em; text-transform: uppercase; color: var(--d-muted);
  padding: 14px 22px; border-bottom:1px solid var(--d-line); }
.tbl tbody td { padding: 16px 22px; border-bottom:1px solid var(--d-line); }
.tbl tbody tr:last-child td { border-bottom:none; }
.tbl tbody tr { transition:.15s; }
.tbl tbody tr:hover { background: rgba(255,255,255,.025); }
.tbl .strong { font-weight: 700; }
.tbl .ic-cell { display:flex; align-items:center; gap:12px; }
.tbl .mini { width:38px;height:38px;border-radius:10px;background: var(--d-card-2);
  display:grid;place-items:center; color: var(--brand); flex:none; }

/* Status chips (dark) */
.chip { display:inline-flex; align-items:center; gap:6px; font-family:var(--font-ui);
  font-weight:600; font-size:12.5px; padding:5px 11px; border-radius:999px; }
.chip::before { content:""; width:7px;height:7px;border-radius:50%; background: currentColor; }
.chip.active { background: var(--green-bg); color: var(--green); }
.chip.pending { background: var(--amber-bg); color: var(--amber); }
.chip.unpaid { background: var(--red-bg); color: var(--red); }
.chip.paid { background: var(--green-bg); color: var(--green); }
.chip.cancelled { background: rgba(255,255,255,.08); color: var(--d-muted); }
.chip.open { background: var(--blue-bg); color: var(--blue); }
.chip.answered { background: var(--brand-soft); color: var(--brand); }

/* ---------- Service / detail layout ---------- */
.detail-grid { display:grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
@media (max-width: 1000px){ .detail-grid { grid-template-columns: 1fr; } }
.kv { display:flex; justify-content: space-between; gap:16px; padding: 13px 0; border-bottom:1px solid var(--d-line); }
.kv:last-child { border-bottom:none; }
.kv .k { color: var(--d-muted); font-family: var(--font-ui); font-size: 14px; }
.kv .v { font-weight: 600; text-align:right; }

/* Credential / playlist box */
.cred { background: var(--d-bg-2); border:1px solid var(--d-line); border-radius: var(--r);
  padding: 14px 16px; display:flex; align-items:center; justify-content: space-between; gap: 12px; }
.cred .lbl { font-family:var(--font-ui); font-size:12px; color: var(--d-muted); }
.cred code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 13.5px; color: var(--d-ink); }
.copy-btn { color: var(--brand); }

/* ---------- Invoice ---------- */
.invoice-paper { background: var(--d-card); border:1px solid var(--d-line); border-radius: var(--r-lg);
  padding: 36px; }
.invoice-top { display:flex; justify-content: space-between; gap: 24px; flex-wrap:wrap; margin-bottom: 32px; }
.invoice-top .amt { font-size: 38px; font-weight:800; }

/* ---------- Tickets ---------- */
.ticket-thread { display:flex; flex-direction: column; gap: 18px; }
.msg { display:flex; gap: 14px; }
.msg .bubble { background: var(--d-card-2); border:1px solid var(--d-line);
  border-radius: 14px; padding: 16px 18px; flex:1; }
.msg.staff .bubble { background: var(--brand-soft); border-color: rgba(27,163,201,.25); }
.msg .who { display:flex; align-items:center; justify-content: space-between; gap:10px; margin-bottom:8px; }
.msg .who b { font-size: 14px; } .msg .who span { font-family:var(--font-ui); font-size:12px; color: var(--d-muted); }
.msg p { font-size: 14.5px; color: var(--d-ink); }

/* ---------- Profile / forms (dark) ---------- */
.form-grid { display:grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px){ .form-grid { grid-template-columns: 1fr; } }
.d-field label { color: var(--d-muted); font-size: 13.5px; font-weight:600; margin-bottom:7px; display:block; }
.d-input, .d-select, .d-textarea { width:100%; background: var(--d-bg-2); border:1px solid var(--d-line);
  color: var(--d-ink); padding: 12px 14px; border-radius: 11px; font-family: var(--font-ui); font-size: 14.5px; }
.d-input:focus, .d-select:focus, .d-textarea:focus { outline:none; border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft); }
.d-textarea { min-height: 120px; resize: vertical; }

/* ---------- Tabs ---------- */
.tabs { display:flex; gap:4px; border-bottom: 1px solid var(--d-line); padding: 0 4px; }
.tabs a { padding: 14px 16px; font-family: var(--font-ui); font-weight:600; font-size:14px;
  color: var(--d-muted); border-bottom: 2px solid transparent; margin-bottom:-1px; transition:.15s; }
.tabs a:hover { color: var(--d-ink); }
.tabs a.active { color: var(--brand); border-bottom-color: var(--brand); }

/* ---------- Order / store (dark) ---------- */
.plan-d { background: var(--d-card); border:1px solid var(--d-line); border-radius: var(--r-xl);
  padding: 28px; display:flex; flex-direction:column; }
.plan-d.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow-d); }
.plan-d .price { font-size: 40px; font-weight: 800; }
.plan-d .price span { font-size: 15px; color: var(--d-muted); font-weight:600; }
.plan-d ul { margin: 20px 0; display:flex; flex-direction:column; gap: 12px; }
.plan-d ul li { display:flex; gap:10px; font-size:14.5px; }
.plan-d ul li .ic { color: var(--gold); flex:none; }

/* ---------- Empty / helpers ---------- */
.empty { text-align:center; padding: 50px 20px; color: var(--d-muted); }
.empty .ei { width:64px;height:64px;border-radius:18px;background: var(--d-card-2);
  display:grid;place-items:center;margin:0 auto 16px; color: var(--brand); }
.notice { display:flex; gap:12px; padding:16px 18px; border-radius: var(--r);
  background: var(--brand-soft); border:1px solid rgba(27,163,201,.25); }
.notice .ic { color: var(--brand); flex:none; margin-top:1px; }
.notice p { font-size: 14px; }
.section-title { display:flex; align-items:center; justify-content: space-between; gap:14px; }
.section-title h2 { font-size: 20px; }

/* ============================================================
   ADD-ON LAYER  ·  dark auth, account dropdown, minimal public
   ============================================================ */

/* ---------- Dark full-screen auth (logged-out, abstract) ---------- */
.authx { position: relative; z-index: 1; min-height: 100vh;
  display: grid; place-items: center; padding: 40px 20px; }
.authx-card { width: 100%; max-width: 420px; text-align: center; }
.authx-logo { display:inline-flex; align-items:center; gap:12px; justify-content:center;
  font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--d-ink); }
.authx-logo .logo { width: 52px; height: 52px; border-radius: 15px;
  background: linear-gradient(135deg, var(--brand), var(--cyan));
  display:grid; place-items:center; color:#fff; box-shadow: 0 10px 30px var(--brand-glow); }
.authx-logo b { color: var(--cyan); }
.authx h1 { font-size: 34px; margin-top: 34px; }
.authx .sub { color: var(--d-muted); margin-top: 12px; font-size: 15px; max-width: 340px;
  margin-inline:auto; line-height: 1.55; }
.authx form { margin-top: 32px; display:flex; flex-direction: column; gap: 16px; text-align:left; }
.authx-input { position: relative; }
.authx-input > .ic { position:absolute; left:18px; top:50%; transform:translateY(-50%); color: var(--d-muted); }
.authx-input .eye { position:absolute; right:16px; top:50%; transform:translateY(-50%); color: var(--d-muted); }
.authx-input input { width:100%; background: rgba(255,255,255,.04); border:1px solid var(--d-line);
  color: var(--d-ink); padding: 17px 18px 17px 50px; border-radius: 999px;
  font-family: var(--font-ui); font-size: 15px; transition:.15s; }
.authx-input input:focus { outline:none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft);
  background: rgba(255,255,255,.06); }
.authx-input input::placeholder { color: var(--d-muted); }
.btn-pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px; padding: 16px 26px; font-size: 16px; line-height: 1;
  background: linear-gradient(135deg, var(--cyan), var(--brand));
  color:#04222c; font-weight: 800; box-shadow: 0 14px 34px var(--brand-glow); width:100%; border:none; }
.btn-pill:hover { filter: brightness(1.05); }
.authx .meta { display:flex; align-items:center; justify-content: space-between; font-size: 14px;
  color: var(--d-muted); margin-top: -2px; }
.authx .meta a { color: var(--cyan); font-weight:600; }
.authx .swap { margin-top: 26px; color: var(--d-muted); font-size: 14.5px; }
.authx .swap a { color: var(--cyan); font-weight: 700; }
.authx .ver { margin-top: 30px; color: var(--d-muted); font-size: 12.5px; opacity:.7; }
.authx .checkbox { color: var(--d-muted); }
.authx .checkbox input { accent-color: var(--brand); }

/* ---------- Account dropdown (topbar, WHMCS-style) ---------- */
.dropdown { position: relative; }
.dropdown > .user-chip { cursor: pointer; }
.dd-menu { position: absolute; right: 0; top: calc(100% + 10px); width: 244px;
  background: rgba(10,38,50,.96); backdrop-filter: blur(20px);
  border: 1px solid var(--d-line); border-radius: var(--r); padding: 8px;
  box-shadow: var(--shadow-d); z-index: 40; display: none; }
.dropdown.open .dd-menu { display: block; }
.dd-head { padding: 12px 12px 14px; border-bottom: 1px solid var(--d-line); margin-bottom: 6px;
  display:flex; align-items:center; gap:11px; }
.dd-head .nm b { font-size: 14px; } .dd-head .nm small { display:block; color: var(--d-muted); font-size:12px; }
.dd-item { display:flex; align-items:center; gap:11px; padding: 10px 12px; border-radius: 10px;
  color: var(--d-muted); font-size: 14px; font-weight: 500; transition:.15s; }
.dd-item:hover { background: rgba(255,255,255,.05); color: var(--d-ink); }
.dd-item.danger { color: var(--red); }
.dd-sep { height:1px; background: var(--d-line); margin: 6px 4px; }

/* ---------- Minimal public (logged-out, dark, NO tv) ---------- */
.pbar { position: sticky; top:0; z-index: 30; height: 70px; display:flex; align-items:center;
  padding: 0 30px; gap: 20px; background: rgba(7,28,38,.72); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--d-line); }
.pbar .brand { color: var(--d-ink); }
.pbar .brand .logo { background: linear-gradient(135deg, var(--brand), var(--cyan)); color:#fff; }
.pbar .brand b { color: var(--cyan); }
.pbar nav { display:flex; gap: 4px; margin-left: 14px; }
.pbar nav a { font-family: var(--font-ui); font-weight:600; font-size:14px; color: var(--d-muted);
  padding: 9px 13px; border-radius: 10px; }
.pbar nav a:hover { color: var(--d-ink); background: rgba(255,255,255,.05); }
.pbar .sp { margin-left:auto; }
@media (max-width:760px){ .pbar nav { display:none; } }

.pwrap { position: relative; z-index:1; max-width: 1120px; margin-inline:auto; padding: 56px 24px; }
.psec-head { text-align:center; max-width: 620px; margin: 0 auto 40px; }
.psec-head h2 { font-size: clamp(26px,3.2vw,36px); }
.psec-head p { color: var(--d-muted); font-size: 16px; margin-top: 12px; }
.peyebrow { font-family: var(--font-ui); font-weight:700; font-size:12px; letter-spacing:.14em;
  text-transform: uppercase; color: var(--cyan); }

.mini-foot { position: relative; z-index:1; border-top: 1px solid var(--d-line);
  padding: 22px 24px; display:flex; align-items:center; justify-content: space-between; gap:14px;
  flex-wrap: wrap; max-width: 1120px; margin: 30px auto 0;
  font-family: var(--font-ui); font-size: 13px; color: var(--d-muted); }
.mini-foot a { color: var(--d-muted); }
.mini-foot a:hover { color: var(--d-ink); }
.mini-foot .fnav { display:flex; gap: 18px; flex-wrap: wrap; }

/* News / announcement cards (dark) */
.news { display:grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.news-card { background: var(--d-card); backdrop-filter: blur(14px); border:1px solid var(--d-line);
  border-radius: var(--r-lg); padding: 24px; transition:.2s; }
.news-card:hover { border-color: var(--d-line-2); transform: translateY(-3px); }
.news-card .date { font-family:var(--font-ui); font-size:12.5px; color: var(--d-muted); }
.news-card h3 { font-size: 18px; margin: 10px 0 8px; }
.news-card p { color: var(--d-muted); font-size: 14.5px; }
.news-card a.more { color: var(--cyan); font-weight:600; font-size:14px; display:inline-flex; gap:5px;
  align-items:center; margin-top: 14px; }
@media (max-width: 860px){ .news { grid-template-columns: 1fr; } }

/* Pricing (dark, reuse plan-d) */
.pricing-grid { display:grid; grid-template-columns: repeat(3,1fr); gap: 20px; align-items:stretch; }
.plan-d .pn { font-family: var(--font-ui); font-weight:700; font-size:13px; letter-spacing:.1em;
  text-transform: uppercase; color: var(--cyan); }
@media (max-width: 860px){ .pricing-grid { grid-template-columns: 1fr; } }

/* Dark pill select inside authx */
.authx-input select { width:100%; background: rgba(255,255,255,.04); border:1px solid var(--d-line);
  color: var(--d-ink); padding: 17px 40px 17px 50px; border-radius: 999px;
  font-family: var(--font-ui); font-size: 15px; appearance: none; -webkit-appearance: none; cursor:pointer; }
.authx-input select:focus { outline:none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.authx-input .chev-r { position:absolute; right:18px; top:50%; transform:translateY(-50%); color: var(--d-muted); pointer-events:none; }

/* =====================================================================
   WHMCS shell compatibility — keep Bootstrap content tidy inside our
   .content / .pwrap containers (for pages not yet converted 1:1).
   ===================================================================== */
body.smtheme { overflow-x: hidden; }
.smtheme .content > .row,
.smtheme .pwrap > .row { margin-left: 0; margin-right: 0; }
.smtheme .content .container,
.smtheme .pwrap .container { max-width: 100%; padding-left: 0; padding-right: 0; }
.smtheme .authx-page { position: relative; z-index: 1; }
/* WHMCS tiles / breadcrumb spacing inside content */
.smtheme .content .master-breadcrumb,
.smtheme .content .breadcrumb { margin-bottom: 4px; }
/* WHMCS pageheader / title rows */
.smtheme .content .page-header,
.smtheme .content > h1:first-child { margin-top: 0; }
/* Make WHMCS .panel-heading/.panel-title readable */
.smtheme .panel-title, .smtheme .card-title { color: var(--d-ink); }
/* Tables list from WHMCS */
.smtheme .table-list, .smtheme table.table { background: transparent; }
/* Account dropdown popover (notifications) on dark */
.smtheme .popover-body { color: var(--d-ink); }
.smtheme .client-alerts { list-style: none; margin: 0; padding: 6px; }
.smtheme .client-alerts li a { display: flex; gap: 8px; padding: 8px 10px; color: var(--d-muted); border-radius: 8px; }
.smtheme .client-alerts li a:hover { background: rgba(255,255,255,.05); color: var(--d-ink); }
/* keep our pill button arrow inline anywhere it's reused */
.btn-pill svg { flex: none; }
