/* IB Player Pro — UI layer (2026). Loaded last on every page.
   Modern CSS only, no build step: native nesting, oklch colours, color-mix(), :has(),
   cross-document View Transitions and scroll-driven animations (with graceful fallbacks). */

:root {
  --font: "Geist", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --bg: oklch(0.16 0.012 270);
  --bg-2: oklch(0.18 0.014 270);
  --surface: oklch(0.205 0.016 270);
  --surface-2: oklch(0.235 0.018 270);
  --border: oklch(0.29 0.02 270 / 0.7);
  --border-2: oklch(0.36 0.025 270 / 0.7);
  --text: oklch(0.97 0.004 270);
  --text-2: oklch(0.76 0.015 270);
  --muted: oklch(0.6 0.02 270);
  --accent: oklch(0.63 0.2 265);
  --accent-2: oklch(0.64 0.21 300);
  --green: oklch(0.72 0.19 150);
  --amber: oklch(0.78 0.16 75);
  --red: oklch(0.64 0.21 25);
  --grad: linear-gradient(135deg, var(--accent), var(--accent-2));
  --ring: 0 0 0 3px color-mix(in oklch, var(--accent) 35%, transparent);
  --glass: color-mix(in oklch, var(--surface) 72%, transparent);
  --radius: 18px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ── Base ─────────────────────────────────────────────────────────────── */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
.nav { view-transition-name: site-nav; }
.sidebar { view-transition-name: admin-sidebar; }
.dash-side { view-transition-name: account-sidebar; }

body { font-family: var(--font); font-feature-settings: "ss01", "cv11"; text-rendering: optimizeLegibility; }
.btn, .input, select, textarea, button { font-family: var(--font); }
code, kbd, .mono { font-family: var(--mono); }
h1, h2, h3 { letter-spacing: -.025em; }
p { text-wrap: pretty; }
::selection { background: color-mix(in oklch, var(--accent) 45%, transparent); }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 10px; }

/* Lucide icons (stroke) — override older fill-based icon rules */
svg.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; fill: none !important; stroke: currentColor; stroke-width: 2; }
.btn svg.i { width: 1.1em; height: 1.1em; margin-inline: -2px 0; }
.btn svg.i:last-child:not(:first-child) { margin-inline: 0 -2px; }

/* Buttons */
.btn { border-radius: 12px; font-weight: 650; letter-spacing: -.01em; transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s; }
.btn-primary {
  background: var(--grad); border-color: color-mix(in oklch, white 20%, transparent);
  box-shadow: 0 1px 0 color-mix(in oklch, white 25%, transparent) inset, 0 14px 40px -14px color-mix(in oklch, var(--accent) 70%, transparent);
  &:hover { box-shadow: 0 1px 0 color-mix(in oklch, white 25%, transparent) inset, 0 18px 50px -12px color-mix(in oklch, var(--accent) 80%, transparent); }
}
.btn-ghost { background: color-mix(in oklch, white 5%, transparent); border-color: color-mix(in oklch, white 12%, transparent); }
.btn-lg { height: 56px; border-radius: 15px; padding-inline: 26px; }

/* Nav */
.nav { background: color-mix(in oklch, var(--bg) 70%, transparent); border-bottom-color: color-mix(in oklch, white 7%, transparent); }
.nav-inner { height: 76px; }
.nav .brand { width: 92px; }
.nav-links { gap: 6px; }
.nav-links > a:not(.btn) { padding: 8px 12px; border-radius: 10px; font-size: 14.5px; transition: background .15s, color .15s; display: inline-flex; align-items: center; gap: 7px; }
.nav-links > a:not(.btn), .nav-links > a:not(.btn):visited { color: #A9ADBB; }
.nav-links > a:not(.btn):hover, .nav-links > a:not(.btn):focus-visible, .nav-links > a:not(.btn).active { color: #F5F6FA; }
.nav-links > a:not(.btn):hover, .nav-links > a.active { background: color-mix(in oklch, white 6%, transparent); }
.nav-links .btn { margin-left: 6px; }

.kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: color-mix(in oklch, var(--accent) 12%, transparent); border: 1px solid color-mix(in oklch, var(--accent) 30%, transparent); color: oklch(0.8 0.1 265); letter-spacing: .12em; font-size: 11.5px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 750; letter-spacing: -.035em; margin-top: 16px; }

/* Scroll-driven reveal (no JavaScript) */
@supports (animation-timeline: view()) {
  .reveal { animation: ibp-reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
}
@keyframes ibp-reveal { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal, .orb { animation: none !important; }
  @view-transition { navigation: none; }
}

/* ── Landing: hero ─────────────────────────────────────────────────────── */
.hero3 { position: relative; isolation: isolate; overflow: clip; padding: clamp(84px, 11vw, 150px) 0 72px; text-align: center; }
.hero3-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  & .orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; animation: ibp-drift 16s ease-in-out infinite alternate; }
  & .o1 { width: 560px; aspect-ratio: 1; background: oklch(0.55 0.22 265); top: -220px; left: 6%; }
  & .o2 { width: 500px; aspect-ratio: 1; background: oklch(0.55 0.24 300); top: -140px; right: 4%; animation-delay: -5s; }
  & .o3 { width: 420px; aspect-ratio: 1; background: oklch(0.6 0.14 210 / .7); top: 260px; left: 38%; animation-delay: -10s; opacity: .35; }
  & .grid-lines {
    position: absolute; inset: 0;
    background-image: linear-gradient(color-mix(in oklch, white 6%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in oklch, white 6%, transparent) 1px, transparent 1px);
    background-size: 64px 64px; background-position: center top;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 25%, transparent 75%);
  }
}
@keyframes ibp-drift { to { transform: translate3d(50px, 40px, 0) scale(1.12); } }
.hero3::after { content: ""; position: absolute; inset: auto 0 0; height: 160px; z-index: -1; background: linear-gradient(transparent, var(--bg)); }
.hero3-inner { display: flex; flex-direction: column; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 99px;
  background: var(--glass); border: 1px solid color-mix(in oklch, white 12%, transparent); backdrop-filter: blur(14px);
  color: var(--text-2); font-size: 13.5px; font-weight: 550; transition: border-color .2s, color .2s;
  &:hover { color: var(--text); border-color: color-mix(in oklch, var(--accent) 50%, transparent); }
  & > svg.i { width: 15px; height: 15px; transition: transform .2s var(--ease); }
  &:hover > svg.i { transform: translateX(3px); }
}
.pill-tag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 700; & svg.i { width: 13px; height: 13px; } }
.hero3 h1 { font-size: clamp(46px, 8.4vw, 98px); font-weight: 800; letter-spacing: -.055em; line-height: .98; margin: 28px 0 24px; }
.hero3 h1 .grad-text { background: linear-gradient(92deg, oklch(0.78 0.13 260), oklch(0.75 0.17 300) 60%, oklch(0.8 0.12 330)); -webkit-background-clip: text; background-clip: text; padding-bottom: .06em; }
.hero3 .lead { font-size: clamp(17px, 1.7vw, 20px); color: var(--text-2); max-width: 680px; margin: 0; line-height: 1.6; }
.hero3 .hero-cta { justify-content: center; margin: 34px 0 0; }
.proof {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; padding: 0; margin: 28px 0 0; color: var(--text-2); font-size: 14px;
  & li { display: inline-flex; align-items: center; gap: 8px; }
  & svg.i { color: oklch(0.78 0.12 265); }
}
.platforms { margin-top: 54px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.platforms-label { color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.platform-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; }
.platform {
  display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 16px; border-radius: 13px;
  background: color-mix(in oklch, white 4%, transparent); border: 1px solid color-mix(in oklch, white 9%, transparent);
  color: var(--text-2); font-weight: 600; font-size: 14px; transition: border-color .2s, background .2s, color .2s, transform .2s var(--ease);
  & svg { width: 18px; height: 18px; fill: currentColor; }
  & small { font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--amber); padding: 2px 6px; border-radius: 6px; background: color-mix(in oklch, var(--amber) 14%, transparent); }
  &:hover { color: var(--text); transform: translateY(-2px); border-color: color-mix(in oklch, white 18%, transparent); }
  &.on { color: var(--text); border-color: color-mix(in oklch, var(--accent) 45%, transparent); background: color-mix(in oklch, var(--accent) 12%, transparent); }
}

/* Metrics strip */
.metrics {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border-radius: 22px; overflow: hidden;
  background: var(--border); border: 1px solid var(--border);
  & > div { display: flex; align-items: center; gap: 14px; padding: 22px; background: var(--bg-2); }
  & .m-ic { flex: none; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in oklch, var(--accent) 14%, transparent); color: oklch(0.8 0.11 265); }
  & b { display: block; font-size: 15.5px; }
  & small { color: var(--muted); font-size: 13px; }
}

/* Bento features */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; grid-auto-flow: dense; }
.bento-card {
  position: relative; overflow: hidden; padding: 28px; border-radius: 22px;
  background: linear-gradient(180deg, color-mix(in oklch, white 3%, transparent), transparent), var(--surface);
  border: 1px solid var(--border); transition: border-color .25s, transform .25s var(--ease);
  &::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
    background: radial-gradient(500px circle at 20% 0%, color-mix(in oklch, var(--accent) 16%, transparent), transparent 45%); }
  &:hover { transform: translateY(-3px); border-color: color-mix(in oklch, var(--accent) 40%, transparent); &::before { opacity: 1; } }
  &.wide { grid-column: span 2; }
  & h3 { font-size: 19px; margin: 18px 0 8px; }
  & p { color: var(--text-2); margin: 0; font-size: 15px; max-width: 60ch; }
}
.fi {
  width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; color: #fff;
  background: var(--grad); box-shadow: 0 10px 30px -10px color-mix(in oklch, var(--accent) 80%, transparent), 0 1px 0 color-mix(in oklch, white 30%, transparent) inset;
  & svg.i { width: 23px; height: 23px; }
}

/* Feature groups */
.fgroup2 {
  padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border);
  & h3 { display: flex; align-items: center; gap: 12px; font-size: 17.5px; margin-bottom: 14px; }
  & ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
  & li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: 14.5px; }
  & li svg.i { color: var(--green); width: 17px; height: 17px; margin-top: 3px; }
}
.fg-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in oklch, var(--accent) 14%, transparent); color: oklch(0.8 0.11 265); & svg.i { width: 19px; height: 19px; } }

/* Steps */
.steps3 {
  list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: none;
  & li { position: relative; padding: 28px; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); }
  & h3 { font-size: 19px; margin: 18px 0 8px; }
  & p { color: var(--text-2); margin: 0; }
}
.s-ic { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: color-mix(in oklch, var(--accent-2) 16%, transparent); color: oklch(0.8 0.13 300); & svg.i { width: 23px; height: 23px; } }
.s-n { position: absolute; top: 22px; right: 26px; font: 700 34px/1 var(--mono); color: color-mix(in oklch, white 8%, transparent); }

/* Pricing cards */
.plan { border-radius: 24px; background: linear-gradient(180deg, color-mix(in oklch, white 3%, transparent), transparent), var(--surface); }
.plan.featured { border: 1.5px solid color-mix(in oklch, var(--accent) 70%, transparent); box-shadow: 0 30px 80px -40px color-mix(in oklch, var(--accent) 80%, transparent); }
.plan h3 { display: flex; align-items: center; gap: 10px; }
.plan-ic { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: color-mix(in oklch, var(--accent) 14%, transparent); color: oklch(0.8 0.11 265); & svg.i { width: 19px; height: 19px; } }
.card.center > .plan-ic { width: 56px; height: 56px; border-radius: 17px; & svg.i { width: 28px; height: 28px; } }
.plan ul.checks { display: grid; gap: 10px; & li { padding: 0; display: flex; gap: 10px; align-items: center; &::before { content: none; } } & svg.i { color: var(--green); width: 18px; height: 18px; } }
.notice svg.i { flex: none; width: 18px; height: 18px; color: #f87171; margin-top: 1px; }

/* Devices */
.device { border-radius: 20px; transition: transform .25s var(--ease), border-color .25s; &:hover { transform: translateY(-3px); } }

/* FAQ */
.faq2 details {
  border: 1px solid var(--border); border-radius: 16px; background: var(--surface); margin-bottom: 10px; overflow: hidden;
  & summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-weight: 600; font-size: 16px; }
  & summary::-webkit-details-marker { display: none; }
  & summary svg.i { color: var(--muted); transition: transform .25s var(--ease); }
  &[open] summary svg.i { transform: rotate(180deg); }
  & p { padding: 0 20px 18px; margin: 0; color: var(--text-2); }
  &:hover { border-color: var(--border-2); }
}
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq2 details::details-content { height: 0; overflow: clip; transition: height .3s var(--ease), content-visibility .3s allow-discrete; }
  .faq2 details[open]::details-content { height: auto; }
}

/* Final CTA */
.cta2 {
  position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: clamp(46px, 7vw, 80px) 24px; border-radius: 30px;
  background: radial-gradient(600px circle at 15% 0%, color-mix(in oklch, var(--accent) 40%, transparent), transparent 55%),
              radial-gradient(600px circle at 90% 100%, color-mix(in oklch, var(--accent-2) 38%, transparent), transparent 55%), var(--surface);
  border: 1px solid var(--border-2);
  & h2 { font-size: clamp(28px, 4.6vw, 48px); font-weight: 800; letter-spacing: -.04em; margin: 18px 0 10px; }
  & p { color: var(--text-2); }
  & .hero-cta { justify-content: center; margin-bottom: 0; }
}
.cta2-ic { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--grad); color: #fff; box-shadow: var(--shadow); & svg.i { width: 28px; height: 28px; } }

/* Footer */
.footer { background: color-mix(in oklch, var(--bg-2) 80%, transparent); }
.footer .brand { width: 120px; }
.footer a:not(.brand) { transition: color .15s; }

/* ── Account dashboard (sidebar app layout) ─────────────────────────────── */
.page:has(.dash) { padding: 28px 0 70px; }
.wrap:has(> .dash) { max-width: 1320px; }
.dash { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 32px; align-items: start; }
.dash-side {
  position: sticky; top: 96px; display: flex; flex-direction: column; gap: 14px; padding: 16px; border-radius: 22px;
  background: var(--glass); border: 1px solid var(--border); backdrop-filter: blur(16px);
}
.dash-user {
  display: flex; align-items: center; gap: 12px; padding: 6px 6px 4px; min-width: 0;
  & .avatar { width: 46px; height: 46px; border-radius: 14px; font-size: 16px; box-shadow: none; }
}
.dash-user-txt { display: grid; min-width: 0; & b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } & small { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
.dash-plan {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 12px; border-radius: 15px; color: var(--text);
  background: color-mix(in oklch, white 4%, transparent); border: 1px solid var(--border);
  & > svg.i { width: 20px; height: 20px; color: var(--amber); }
  & span { display: grid; line-height: 1.25; } & small { color: var(--muted); font-size: 11.5px; } & b { font-size: 14px; }
  &.on { background: color-mix(in oklch, var(--accent) 12%, transparent); border-color: color-mix(in oklch, var(--accent) 35%, transparent); }
  &:hover { color: var(--text); border-color: var(--border-2); }
}
.dash-nav, .dash-side-foot { display: grid; gap: 2px; }
.dash-nav a, .dash-side-foot a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--text-2); font-weight: 550; font-size: 14.5px;
  transition: background .15s, color .15s;
  & svg.i { width: 19px; height: 19px; opacity: .85; }
  & em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 700; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; display: grid; place-items: center; background: color-mix(in oklch, white 8%, transparent); color: var(--text); }
  &:hover { background: color-mix(in oklch, white 5%, transparent); color: var(--text); }
}
.dash-nav a.active { background: color-mix(in oklch, var(--accent) 16%, transparent); color: var(--text); box-shadow: inset 2px 0 0 var(--accent);
  & svg.i { color: oklch(0.8 0.12 265); opacity: 1; } & em { background: var(--accent); color: #fff; } }
.dash-side-foot { padding-top: 12px; border-top: 1px solid var(--border); & a { font-size: 13.5px; padding: 8px 12px; } }
.dash-main { min-width: 0; container-type: inline-size; container-name: dash; }
.dash-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 6px 0 22px;
  & h1 { font-size: clamp(26px, 3vw, 34px); font-weight: 750; margin: 0 0 4px; }
  & p { color: var(--text-2); margin: 0; }
}
.dash-head-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Overview */
.ov2 { display: grid; gap: 16px; }
.plan-hero {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 28px; border-radius: 24px;
  background: radial-gradient(500px circle at 0% 0%, color-mix(in oklch, var(--accent) 28%, transparent), transparent 60%),
              radial-gradient(420px circle at 100% 100%, color-mix(in oklch, var(--accent-2) 22%, transparent), transparent 60%), var(--surface);
  border: 1px solid color-mix(in oklch, var(--accent) 30%, transparent);
  & h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 28px; margin: 4px 0 6px; }
  & p { color: var(--text-2); margin: 0 0 16px; }
}
.plan-hero.state-trial_ended, .plan-hero.state-preview, .plan-hero.state-expired { border-color: color-mix(in oklch, var(--amber) 35%, transparent); }
.plan-hero-main { display: flex; gap: 18px; align-items: flex-start; min-width: 0; }
.plan-hero-ic { flex: none; width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 12px 32px -12px color-mix(in oklch, var(--accent) 80%, transparent); & svg.i { width: 26px; height: 26px; } }
.eyebrow-sm { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.plan-hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* Days-left ring: conic gradient masked to a circle outline */
.ring { --p: 0; position: relative; flex: none; width: 128px; aspect-ratio: 1; display: grid; place-content: center; text-align: center; }
.ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from -90deg, var(--accent), var(--accent-2) calc(var(--p) * 1%), color-mix(in oklch, white 9%, transparent) 0);
  mask: radial-gradient(farthest-side, transparent calc(100% - 11px), #000 calc(100% - 10px)); }
.ring > div { position: relative; display: grid; }
.ring b { font-size: 34px; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.ring small { color: var(--muted); font-size: 12px; margin-top: 4px; }

.quick-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.quick-tiles a {
  --c: 79 124 255; display: grid; gap: 4px; padding: 18px; border-radius: 18px; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); transition: transform .2s var(--ease), border-color .2s, background .2s;
  & b { font-size: 15px; margin-top: 10px; } & small { color: var(--muted); font-size: 13px; }
  &:hover { color: var(--text); transform: translateY(-2px); border-color: rgb(var(--c) / .45); background: linear-gradient(180deg, rgb(var(--c) / .08), transparent), var(--surface); }
}
.qt-ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: rgb(var(--c) / .15); color: rgb(var(--c)); & svg.i { width: 21px; height: 21px; } }

.stat-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat-cards a {
  display: grid; gap: 6px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); color: var(--text);
  & span { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 550; } & span svg.i { width: 16px; height: 16px; }
  & b { font-size: 28px; font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
  &:hover { color: var(--text); border-color: var(--border-2); }
}

.ov2-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.list-card { padding: 20px; border-radius: 20px;
  & .card-head { margin-bottom: 10px; } & h3 { display: flex; align-items: center; gap: 9px; font-size: 16.5px; margin: 0; } & h3 svg.i { color: oklch(0.8 0.11 265); width: 18px; height: 18px; } }
.link-more { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; color: var(--text-2); & svg.i { width: 15px; height: 15px; } &:hover { color: var(--text); } }
.rows { list-style: none; padding: 0; margin: 0; display: grid;
  & li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--border); min-width: 0; }
  & li:first-child { border-top: 0; }
}
.row-ic { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in oklch, white 6%, transparent); color: var(--text-2);
  & svg.i { width: 18px; height: 18px; }
  &.t-xtream { background: color-mix(in oklch, var(--accent-2) 16%, transparent); color: oklch(0.8 0.13 300); }
  &.t-m3u { background: color-mix(in oklch, var(--accent) 16%, transparent); color: oklch(0.8 0.11 265); }
  &.t-file { background: color-mix(in oklch, var(--amber) 16%, transparent); color: var(--amber); }
  &.t-tv { background: color-mix(in oklch, var(--green) 14%, transparent); color: var(--green); }
  &.t-msg { background: color-mix(in oklch, var(--accent) 14%, transparent); color: oklch(0.8 0.11 265); }
}
.row-txt { display: grid; min-width: 0; flex: 1; & b { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } & small { color: var(--muted); font-size: 12.5px; } }
.kv-rows .row-txt { & small { order: -1; } }
.dot-status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); white-space: nowrap;
  &::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: color-mix(in oklch, white 25%, transparent); }
  &.on { color: var(--green); &::before { background: var(--green); box-shadow: 0 0 0 3px color-mix(in oklch, var(--green) 25%, transparent); } }
}
.empty-sm { display: grid; justify-items: start; gap: 10px; padding: 6px 0 4px; & p { color: var(--text-2); font-size: 14px; margin: 0; } }
.empty-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: color-mix(in oklch, white 6%, transparent); color: var(--text-2); & svg.i { width: 21px; height: 21px; } }

/* Existing account pages inside the new shell */
.dash-main .card { border-radius: 20px; }
.dash-main .page-head { margin-top: 0; }

@container dash (max-width: 820px) {
  .quick-tiles, .stat-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov2-cols { grid-template-columns: minmax(0, 1fr); }
}
@container dash (max-width: 520px) {
  .plan-hero { flex-direction: column; align-items: flex-start; }
}

/* ── Admin polish ─────────────────────────────────────────────────────── */
.admin .sidebar nav a svg.i { width: 18px; height: 18px; stroke-width: 1.9; opacity: .85; }
.admin .sidebar nav a.active svg.i { stroke: oklch(0.8 0.12 265); opacity: 1; }
.admin .icon-link svg.i, .admin .global-search svg.i { width: 17px; height: 17px; }
.admin .global-search svg.i { stroke: var(--muted); }
.admin .top-actions .btn svg.i { stroke: #fff; width: 16px; height: 16px; }
.admin .kpi .label .ic svg.i { stroke: var(--kpi-c, var(--accent)); width: 15px; height: 15px; }
.admin .quick a .ic svg.i { stroke: var(--c); width: 19px; height: 19px; }
.admin .attention .lvl { width: auto; height: auto; background: none !important; box-shadow: none !important; display: grid; place-items: center;
  & svg.i { width: 18px; height: 18px; }
  &.red { color: var(--red); } &.amber { color: var(--amber); } &.blue { color: oklch(0.78 0.12 265); } }
.admin .attention a { display: inline-flex; align-items: center; gap: 2px; & svg.i { width: 15px; height: 15px; } }
.admin .kpi, .admin .panel { border-radius: 18px; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .bento, .steps3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-card.wide { grid-column: span 2; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .dash-side { position: static; flex-direction: column; padding: 12px; }
  .dash-nav { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; scrollbar-width: none; gap: 4px; }
  .dash-side-foot { display: none; }
}
@media (max-width: 640px) {
  .bento, .steps3, .metrics { grid-template-columns: minmax(0, 1fr); }
  .bento-card.wide { grid-column: auto; }
  .hero3 h1 { letter-spacing: -.045em; }
  .hero3 .hero-cta .btn { width: 100%; }
  .nav-links > a:not(.btn) { padding: 12px; }
}

/* Account pages: Lucide icons inside older components */
.dash-main .card > h3, .dash-main .card-head h3 { display: flex; align-items: center; gap: 9px; & > svg.i { color: oklch(0.8 0.11 265); width: 18px; height: 18px; } }
.dash-main .danger-card > h3 > svg.i { color: var(--red); }
.empty > svg.i { width: 40px; height: 40px; color: var(--muted); margin-bottom: 8px; }
.pl-icon { color: #fff; & svg.i { width: 21px; height: 21px; } }
.icon-btn { color: #f87171; & svg.i { width: 18px; height: 18px; } }
.dropzone > svg.i { width: 30px; height: 30px; color: var(--amber); }
.msg-ic { color: #fff; & svg.i { width: 19px; height: 19px; } }
.dash-main .card.empty { display: grid; justify-items: center; text-align: center; & > h3 { justify-content: center; } }
.dash-main .card.empty { display: grid; justify-items: center; text-align: center; & > h3 { justify-content: center; } }

/* Admin: test mode, Google Play */
.admin .panel > h2 { display: flex; align-items: center; gap: 9px; & > svg.i { width: 19px; height: 19px; color: oklch(0.8 0.11 265); } }
.admin .count-amber { background: var(--amber) !important; color: #1a1205 !important; }
.test-banner {
  display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin-bottom: 16px; border-radius: 14px; color: #fde68a;
  background: color-mix(in oklch, var(--amber) 12%, transparent); border: 1px solid color-mix(in oklch, var(--amber) 40%, transparent);
  & > svg.i { color: var(--amber); width: 20px; height: 20px; }
  &:hover { color: #fef3c7; }
}
.test-banner-cta { margin-left: auto; display: inline-flex; align-items: center; gap: 2px; font-weight: 600; font-size: 13px; }
.test-steps { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 8px; color: var(--text-2); & b { color: var(--text); } }

/* ── Landing hero (v4): calm glow, no grid, no boxes ─────────────────── */
.hero4 { position: relative; isolation: isolate; overflow: clip; padding: clamp(96px, 12vw, 168px) 0 clamp(64px, 8vw, 104px); text-align: center; }
.hero4-glow {
  position: absolute; z-index: -1; inset: -30% -10% auto; height: 120%; pointer-events: none;
  background:
    radial-gradient(60% 55% at 50% 0%, color-mix(in oklch, var(--accent) 34%, transparent), transparent 70%),
    radial-gradient(40% 45% at 78% 18%, color-mix(in oklch, var(--accent-2) 26%, transparent), transparent 70%),
    radial-gradient(35% 40% at 20% 22%, oklch(0.6 0.12 220 / .18), transparent 70%);
  filter: blur(10px);
}
.hero4::after { content: ""; position: absolute; inset: auto 0 0; height: 180px; z-index: -1; background: linear-gradient(transparent, var(--bg)); }
.hero4-inner { display: flex; flex-direction: column; align-items: center; }
.hero4 h1 { font-size: clamp(44px, 7.8vw, 92px); font-weight: 800; letter-spacing: -.05em; line-height: 1; margin: 26px 0 22px; max-width: 14ch; }
.hero4 h1 .grad-text { background: linear-gradient(92deg, oklch(0.8 0.12 255), oklch(0.76 0.16 295) 55%, oklch(0.82 0.11 330)); -webkit-background-clip: text; background-clip: text; padding-bottom: .06em; }
.hero4 .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 640px; margin: 0; line-height: 1.6; }
.hero4 .hero-cta { justify-content: center; margin: 34px 0 0; gap: 12px; }
.hero4 .proof { margin-top: 26px; gap: 8px 28px; font-size: 14px; }
.hero4 .proof svg.i { color: var(--green); }
.hero4-devices {
  margin-top: 64px; display: grid; justify-items: center; gap: 14px;
  & > span { color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
  & > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; max-width: 880px; }
  & a { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14.5px; font-weight: 550; transition: color .2s; }
  & a.on { color: var(--text-2); }
  & a:hover { color: var(--text); }
  & svg { width: 17px; height: 17px; fill: currentColor; opacity: .9; }
}
@media (max-width: 640px) { .hero4 .hero-cta .btn { width: 100%; } .hero4-devices > div { gap: 8px 18px; } }

/* ── Playlist manager (account › playlist) ────────────────────────────── */
svg.i.rot90 { transform: rotate(90deg); }
.pm-head { display: grid; gap: 14px; margin-bottom: 16px; }
.pm-title { display: flex; align-items: center; gap: 14px; & h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 24px; margin: 0; } & .row-ic { width: 46px; height: 46px; border-radius: 14px; } }
.seg-tabs { display: flex; gap: 6px; padding: 5px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); width: fit-content; max-width: 100%; overflow-x: auto;
  & a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: 14px; white-space: nowrap; }
  & a.on { background: color-mix(in oklch, var(--accent) 18%, transparent); color: var(--text); }
  & a:hover { color: var(--text); } & svg.i { width: 17px; height: 17px; } }
.type-tabs { display: flex; gap: 8px; margin: 0 0 14px; flex-wrap: wrap;
  & button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--border); background: transparent; color: var(--text-2); font: 600 14px var(--font); cursor: pointer; }
  & button.on { background: var(--grad); border-color: transparent; color: #fff; }
  & svg.i { width: 16px; height: 16px; } }
.pm-loading { display: flex; align-items: center; gap: 10px; padding: 18px; color: var(--muted); font-size: 14px; & svg.i { animation: ibp-spin 1s linear infinite; } }
@keyframes ibp-spin { to { transform: rotate(360deg); } }
.pm-error { padding: 16px; border-radius: 12px; color: #fecaca; background: color-mix(in oklch, var(--red) 10%, transparent); border: 1px solid color-mix(in oklch, var(--red) 30%, transparent); font-size: 14px; }

/* Category editor */
.cat-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px;
  & .input { height: 40px; max-width: 260px; } & .spacer { flex: 1; } }
.save-state { font-size: 13px; color: var(--muted); &.ok { color: var(--green); } &.err { color: var(--red); } }
.country-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.cchip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 600 13px var(--font); cursor: pointer;
  & small { color: var(--muted); font-weight: 600; } & svg.i { width: 15px; height: 15px; color: var(--green); }
  &.off { opacity: .55; & svg.i { color: var(--muted); } } &:hover { border-color: var(--border-2); } }
.cat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cat-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); transition: border-color .15s, opacity .15s, transform .15s;
  &.is-hidden { opacity: .5; } &.dragging { opacity: .35; } &.drop { border-color: var(--accent); box-shadow: 0 -2px 0 var(--accent); }
  &.flash { animation: ibp-flash .8s ease; } }
@keyframes ibp-flash { from { background: color-mix(in oklch, var(--accent) 22%, var(--surface)); } }
.grip { cursor: grab; color: var(--muted); display: grid; & svg.i { width: 18px; height: 18px; } }
.cat-pos { width: 32px; text-align: right; font: 600 12.5px var(--mono); color: var(--muted); }
.cat-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 550; & .flag { margin-right: 8px; } }
.cat-actions { display: flex; gap: 4px; }
.icon-sq { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; border: 1px solid transparent; background: transparent; color: var(--text-2); cursor: pointer;
  & svg.i { width: 17px; height: 17px; } &:hover:not(:disabled) { background: color-mix(in oklch, white 7%, transparent); color: var(--text); } &:disabled { opacity: .25; cursor: default; }
  &.eye svg.i { color: var(--green); } }
.cat-row.is-hidden .icon-sq.eye svg.i { color: var(--muted); }

/* Watch online */
.watch { display: grid; grid-template-columns: 240px minmax(0, 1fr) minmax(0, 1.25fr); gap: 14px; align-items: start; }
.watch-cats, .watch-items { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 10px; max-height: 640px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.watch-cats .input, .watch-items .input { height: 38px; }
.watch-cats .list, .watch-items .items { overflow: auto; min-height: 0; }
.wc { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 10px; border-radius: 10px; border: 0; background: transparent; color: var(--text-2); font: 550 14px var(--font); text-align: left; cursor: pointer;
  & span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } &:hover { background: color-mix(in oklch, white 5%, transparent); color: var(--text); }
  &.on { background: color-mix(in oklch, var(--accent) 18%, transparent); color: var(--text); } }
.watch-items-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 2px 4px; & b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } & .input { max-width: 170px; } }
.items-list { display: grid; gap: 2px; }
.it-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border: 0; border-radius: 10px; background: transparent; color: var(--text); font: 550 14px var(--font); text-align: left; cursor: pointer;
  &:hover { background: color-mix(in oklch, white 5%, transparent); } &.playing { background: color-mix(in oklch, var(--accent) 18%, transparent); } }
.it-num { width: 34px; text-align: right; color: var(--muted); font: 600 12px var(--mono); flex: none; }
.it-logo { width: 46px; height: 30px; border-radius: 6px; background: color-mix(in oklch, white 6%, transparent); flex: none; display: grid; place-items: center; overflow: hidden; & img { max-width: 100%; max-height: 100%; object-fit: contain; } }
.it-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.it-badge { color: var(--accent-2); & svg.i { width: 15px; height: 15px; } }
.items-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 12px; padding: 4px; }
.it-card { display: grid; gap: 4px; border: 0; background: transparent; color: var(--text); text-align: left; cursor: pointer; padding: 0; font-family: var(--font);
  &.playing .poster { outline: 2px solid var(--accent); } &:hover .poster { transform: translateY(-2px); } }
.poster { position: relative; aspect-ratio: 2 / 3; border-radius: 10px; overflow: hidden; background: linear-gradient(135deg, color-mix(in oklch, var(--accent) 30%, var(--surface-2)), var(--surface-2)); transition: transform .15s;
  & img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; } }
.poster-fallback { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 22px; color: color-mix(in oklch, white 70%, transparent); text-transform: uppercase; }
.it-title { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.it-sub { font-size: 12px; color: var(--muted); }
.watch-player { display: grid; gap: 10px; position: sticky; top: 96px; }
.player-box { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid var(--border);
  & video { width: 100%; height: 100%; display: block; background: #000; } }
.player-msg { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 24px; text-align: center; color: var(--text-2); font-size: 14px; background: color-mix(in oklch, black 75%, transparent);
  & > svg.i { width: 40px; height: 40px; color: var(--text); } & b { color: var(--text); display: block; margin-bottom: 4px; } & a { color: oklch(0.8 0.12 265); } & svg.i { animation: none; } }
.player-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; & b { font-size: 15px; } }
.player-actions { display: flex; gap: 6px; }
.episodes { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px; max-height: 320px; overflow: auto; display: grid; gap: 6px;
  & summary { cursor: pointer; font-weight: 600; padding: 6px 2px; } }
.ep { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 9px; border: 0; background: transparent; color: var(--text-2); font: 500 13.5px var(--font); text-align: left; cursor: pointer;
  & svg.i { width: 15px; height: 15px; } &:hover { background: color-mix(in oklch, white 5%, transparent); color: var(--text); } &.playing { background: color-mix(in oklch, var(--accent) 18%, transparent); color: var(--text); } }
.kv-row { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--border); & small { color: var(--muted); font-size: 12.5px; } &:first-child { border-top: 0; } }

@container dash (max-width: 1100px) {
  .watch { grid-template-columns: 220px minmax(0, 1fr); }
  .watch-cats { grid-row: 1 / span 2; max-height: 980px; }
  .watch-player { grid-column: 2; grid-row: 1; position: static; }
  .watch-items { grid-column: 2; grid-row: 2; max-height: 520px; }
}
@container dash (max-width: 640px) { .watch { grid-template-columns: minmax(0, 1fr); } .watch-cats, .watch-player, .watch-items { grid-column: 1; grid-row: auto; } .watch-player { order: -1; } .watch-cats, .watch-items { max-height: 360px; } }

/* Playlists page: order & manage */
.pl-order { display: flex; flex-direction: column; gap: 2px; }
.pl-actions { display: flex; align-items: center; gap: 6px; }

.pm-pane { padding: 0; }
.watch-cats .input, .watch-items .input, .watch-items-head { flex: none; }

/* Locked (trial ended / plan expired) */
.lock-card { display: grid; justify-items: center; text-align: center; gap: 10px; padding: clamp(32px, 6vw, 64px) 24px; border-radius: 22px;
  background: radial-gradient(500px circle at 50% 0%, color-mix(in oklch, var(--accent) 20%, transparent), transparent 60%), var(--surface); border: 1px solid var(--border);
  & h3 { font-size: 24px; margin: 6px 0 0; } & p { color: var(--text-2); max-width: 52ch; margin: 0; } }
.lock-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 14px 40px -12px color-mix(in oklch, var(--accent) 80%, transparent); & svg.i { width: 28px; height: 28px; } }
.lock-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }

/* Watch online: cinema layout (the account menu folds away while watching) */
.dash:has(#pane-watch:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
.dash:has(#pane-watch:not([hidden])) .dash-side { display: none; }
.wrap:has(#pane-watch:not([hidden])) { max-width: 1480px; }
.watch { grid-template-columns: 250px minmax(0, 1fr) minmax(0, 1.45fr); gap: 16px; }
.watch-cats, .watch-items { max-height: 720px; border-radius: 18px; }
.player-box { border-radius: 18px; box-shadow: 0 30px 80px -40px color-mix(in oklch, var(--accent) 60%, transparent); }
.player-meta { padding: 4px 2px; }
.now { display: flex; align-items: center; gap: 12px; min-width: 0;
  & > div { display: grid; min-width: 0; } & small { color: var(--muted); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
  & b { font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
.now-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px color-mix(in oklch, var(--red) 22%, transparent); flex: none; }
.player-note { display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: 12.5px; margin: 0; & svg.i { width: 15px; height: 15px; margin-top: 2px; flex: none; } }
.player-msg span { max-width: 46ch; line-height: 1.55; }
@container dash (max-width: 1180px) {
  .watch { grid-template-columns: 230px minmax(0, 1fr); }
  .watch-cats { grid-row: 1 / span 2; max-height: 1100px; }
  .watch-player { grid-column: 2; grid-row: 1; position: static; }
  .watch-items { grid-column: 2; grid-row: 2; max-height: 560px; }
}
