/* ══════════════════════════════════════════════════════════════════════════════
   saas.css — the SaaS factory · BASE STYLESHEET
   All shared infrastructure lives here. Product CSS (telecast.css etc.) overrides
   where necessary.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Design tokens ───────────────────────────────────────────────────────── */

:root {
    /* Mustards */
    --mustard:        #F6D118;
    --mustard-bright: #FED60E;
    --mustard-dim:    #FFF4BE;
    
    /* Contrast blues */
    --contrast:       #375985;
    --contrast-bright:#70A5EB;
    --contrast-dark:  #213044; 
    
    /* Neutrals */
    --black:          #0D0D0D;
    --black-2:        #141414;
    --black-3:        #1C1C1C;
    --black-4:        #242424;
    --rhs:            #222222;
    --white:          #FFFFFF;
    --white-dim:      #DDDDDD;
    --white-muted:    #BBBBBB;

    /* Semantic */
    --error:          #e05555;
    --success:        #5a9e6f;

    /* Typography */
    --font-display:   'Barlow Condensed', sans-serif;
    --font-body:      'Barlow', sans-serif;

    /* Layout */
    --header-h:       128px;
    --sidebar-w:      340px;
}

/* ── Reset & base ────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }
html { scroll-behavior: smooth; }

body {
    background: var(--black);
    color: var(--white);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

/* ── Noise texture overlay ───────────────────────────────────────────────── */

.noise {
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9000;
    opacity: 0.6;
}

/* ── Header ──────────────────────────────────────────────────────────────── */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    background: var(--black);
    border-bottom: 1px solid var(--black-4);
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    height: 100px;
    width: auto;
}

/* ── Desktop nav ─────────────────────────────────────────────────────────── */

.desktop-nav {
    display: flex;
    gap: 4px;
    align-items: center;
}

.nav-product {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--white-muted);
    text-decoration: none;
    padding: 6px 20px;
    border: 1px solid transparent;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.nav-product span          { color: var(--mustard); }
.nav-product:hover         { color: var(--white-dim); }

.nav-product.active {
    color: var(--white);
    border-color: var(--black-4);
    background: var(--black-3);
}

.nav-product.active span   { color: var(--mustard-bright); }

/* ── Hamburger — mobile only ─────────────────────────────────────────────── */

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    height: 2px;
    background: var(--white-dim);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease, width 0.25s ease;
    transform-origin: center;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile menu overlay ─────────────────────────────────────────────────── */

.mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--black);
    z-index: 300;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.open {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu-close {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 32px;
    color: var(--white-muted);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    font-family: var(--font-body);
}

.mobile-menu-close:hover { color: var(--white); }

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.mobile-nav-product {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--white-dim);
    text-decoration: none;
    padding: 8px 24px;
    transition: color 0.2s;
}

.mobile-nav-product span  { color: var(--mustard); }
.mobile-nav-product:hover { color: var(--white); }

/* ── Shell layout ────────────────────────────────────────────────────────── */

.shell {
    display: flex;
    margin-top: var(--header-h);
    min-height: calc(100vh - var(--header-h));
}

/* ── Sidebar ─────────────────────────────────────────────────────────────── */

.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--black);
    border-right: 1px solid var(--black-4);
    position: sticky;
    top: var(--header-h);
    height: calc(100vh - var(--header-h));
    overflow-y: auto;
    background-image:
        linear-gradient(rgba(246,209,24,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(246,209,24,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 48px 36px 32px;
    text-transform: uppercase;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
}

.sidebar-brand {
    flex: 1;
    animation: fadeUp 0.7s ease both;
}

.sidebar-meta {
	font-size: 16px;
}

.sidebar-brand.hidden { display: none; }

.sidebar-ad-description {
	color: var(--contrast);
	margin-left: -18px;
}

.hero-eyebrow {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--mustard);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 0px;
}

.hero-eyebrow::before {
    content: '';
    display: block;
    width: 24px;
    height: 2px;
    margin-right: 4px;
    background: var(--mustard);
    flex-shrink: 0;
}

a {
	color: var(--contrast);
	text-decoration: none;
}

a:hover { 
	color: var(--contrast-bright);
	text-decoration: underline;
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(36px, 4.5vw, 48px);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    margin-bottom: 24px;
    color: var(--white);
}

h1 .accent {
    color: var(--mustard);
    display: block;
}

.hero-tagline {
    font-size: 14px;
    font-weight: 300;
    color: var(--white-dim);
    line-height: 1.75;
    animation: fadeUp 0.7s 0.12s ease both;
}

ul {
    margin-left: 10px;
    padding: 6px;
    font-size: 13px;
    font-weight: 300;
    color: var(--white-dim);
    line-height: 1.75;
}

.sidebar-meta {
    display: flex;
    gap: 20px;
    padding: 24px 0 16px;
    border-top: 1px solid var(--black-4);
    margin-top: 32px;
    animation: fadeUp 0.7s 0.2s ease both;
}

.meta-link {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--white-muted);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: color 0.2s;
}

.meta-link:hover { color: var(--mustard); }

.sidebar-copy {
    font-size: 11px;
    color: var(--white-muted);
    letter-spacing: 0.04em;
    opacity: 0.6;
}

/* ── Panel host ──────────────────────────────────────────────────────────── */

.panel-host {
    flex: 1;
    background: var(--rhs);
    position: relative;
    overflow: hidden;
    min-height: calc(100vh - var(--header-h));
}

/* ── Panels ──────────────────────────────────────────────────────────────── */

.panel {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    display: none;
}

.panel.active { display: block; }

.panel-inner {
    padding: 48px 56px 60px;
    max-width: 100vw;
}

.panel-eyebrow {
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mustard);
    margin-bottom: 10px;
}

h2 {
    font-family: var(--font-display);
    font-size: clamp(36px, 4vw, 56px);
    font-weight: 800;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: var(--white);
    line-height: 1;
    margin-bottom: 16px;
}

h2 span { color: var(--mustard); }

.panel-desc {
    font-size: 14px;
    font-weight: 300;
    color: var(--white-dim);
    line-height: 1.75;
    max-width: 520px;
    margin-bottom: 36px;
}

/* ── Stub placeholder ────────────────────────────────────────────────────── */

.stub-placeholder {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 48px 0 0;
    color: var(--white-muted);
}

.stub-placeholder svg {
    width: 56px;
    height: 56px;
    opacity: 0.3;
}

.stub-placeholder p {
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--white-dim);
    opacity: 0.8;
}

/* ── Panel wipe transitions ──────────────────────────────────────────────── */

@keyframes wipeOut {
    from { transform: translateX(0);     opacity: 1; }
    to   { transform: translateX(-60px); opacity: 0; }
}

@keyframes wipeIn {
    from { transform: translateX(60px); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

.panel.wipe-out {
    display: block;
    animation: wipeOut 0.28s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.panel.wipe-in {
    animation: wipeIn 0.32s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* ── Modals ──────────────────────────────────────────────────────────────── */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
}

.modal-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--black-3);
    border: 1px solid var(--black-4);
    border-top: 3px solid var(--mustard);
    padding: 40px 44px;
    width: 480px;
    max-width: calc(100vw - 40px);
    position: relative;
    display: none;
    transform: translateY(16px);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    box-shadow: 0 32px 80px rgba(0,0,0,0.6);
}

.modal.active {
    display: block;
    transform: translateY(0);
    opacity: 1;
}

.modal h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 16px;
}

.modal p {
    font-size: 14px;
    font-weight: 300;
    color: var(--white-dim);
    line-height: 1.7;
}

.modal-link {
    color: var(--mustard);
    text-decoration: none;
    display: inline-block;
    margin-top: 12px;
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.modal-link:hover { color: var(--mustard-bright); }

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 22px;
    color: var(--white-muted);
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
    font-family: var(--font-body);
}

.modal-close:hover { color: var(--white); }

/* ── Animations ──────────────────────────────────────────────────────────── */

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Mobile layout — hidden on desktop ──────────────────────────────────── */

.mobile-layout { display: none; }

/* ── Auth header buttons ─────────────────────────────────────────────────── */

.header-auth {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 16px;
}

.btn-signin {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.25);
    color: var(--white-dim);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 3px;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.btn-signin:hover {
    border-color: var(--mustard-bright);
    color: var(--white);
}

.btn-signup {
    background: var(--mustard);
    border: 1px solid var(--mustard-bright);
    color: var(--black);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.btn-signup:hover {
    background: var(--mustard-bright);
    border-color: var(--mustard-bright);
}

/* ── User dropdown ───────────────────────────────────────────────────────── */

.user-menu {
    position: relative;
    margin-right: 16px;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: var(--white-dim);
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 3px;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.user-menu-trigger:hover,
.user-menu-trigger.open {
    border-color: var(--mustard);
    color: var(--white);
}

.user-menu-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--mustard);
    color: var(--black);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-menu-chevron {
    width: 12px;
    height: 12px;
    transition: transform 0.15s ease;
}

.user-menu-trigger.open .user-menu-chevron {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 180px;
    background: var(--black-3);
    border: 1px solid var(--black-4);
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 200;
    display: none;
    overflow: hidden;
}

.user-dropdown.open { display: block; }

.user-dropdown-email {
    padding: 10px 14px 8px;
    font-size: 11px;
    color: var(--white-muted);
    border-bottom: 1px solid var(--black-4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown a,
.user-dropdown button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 9px 14px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--white-dim);
    background: transparent;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.1s ease, color 0.1s ease;
}

.user-dropdown a:hover,
.user-dropdown button:hover {
    background: var(--black-4);
    color: var(--white);
}

.user-dropdown .dropdown-signout {
    border-top: 1px solid var(--black-4);
    color: var(--white-muted);
}

.user-dropdown .dropdown-signout:hover { color: var(--mustard); }

/* ── Auth modals ─────────────────────────────────────────────────────────── */

.auth-modal {
    background: var(--black-2);
    border: 1px solid var(--black-4);
    border-radius: 6px;
    padding: 32px;
    width: 100%;
    max-width: 400px;
}

.auth-modal h3 {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--white);
}

.auth-modal .auth-subtitle {
    margin: 0 0 24px;
    font-size: 13px;
    color: var(--white-muted);
}

.auth-field { margin-bottom: 16px; }

.auth-field label {
    display: block;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--white-muted);
    margin-bottom: 6px;
}

.auth-field input {
    width: 100%;
    box-sizing: border-box;
    background: var(--black-3);
    border: 1px solid var(--black-4);
    border-radius: 3px;
    color: var(--white-dim);
    font-family: var(--font-body);
    font-size: 14px;
    padding: 10px 12px;
    outline: none;
    transition: border-color 0.15s ease;
}

.auth-field input:focus        { border-color: var(--mustard); }
.auth-field input::placeholder { color: var(--black-4); }

.auth-error {
    display: none;
    background: rgba(220,50,50,0.12);
    border: 1px solid rgba(220,50,50,0.3);
    border-radius: 3px;
    color: var(--error);
    font-size: 13px;
    padding: 8px 12px;
    margin-bottom: 16px;
}

.auth-error.visible { display: block; }

.auth-submit {
    width: 100%;
    background: var(--mustard);
    border: none;
    border-radius: 3px;
    color: var(--black);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 12px;
    cursor: pointer;
    transition: background 0.15s ease;
    margin-top: 8px;
}

.auth-submit:hover    { background: var(--mustard-bright); }
.auth-submit:disabled { opacity: 0.5; cursor: not-allowed; }

.auth-switch {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: var(--white-muted);
}

.auth-switch button {
    background: none;
    border: none;
    color: var(--mustard-bright);
    font-size: 13px;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

/* ── Dashboard sidebar nav ───────────────────────────────────────────────── */

.sidebar-dashboard {
    display: none;
    flex-direction: column;
    height: 100%;
    padding: 32px 24px;
    box-sizing: border-box;
}

.sidebar-dashboard.active { display: flex; }

.dash-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.dash-nav-label {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white-muted);
    margin: 0 0 8px 4px;
}

.dash-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 4px;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--white-muted);
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.1s ease, color 0.1s ease;
    text-align: left;
    width: 100%;
}

.dash-nav-item:hover  { background: var(--black-3); color: var(--white-dim); }
.dash-nav-item.active { background: var(--black-3); color: var(--mustard); }

.dash-nav-item svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    opacity: 0.6;
}

.dash-nav-item.active svg { opacity: 1; }

.dash-nav-sep {
    height: 1px;
    background: var(--black-3);
    margin: 8px 0;
}

.dash-back {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--white-muted);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 0 24px;
    transition: color 0.15s ease;
}

.dash-back:hover { color: var(--white-dim); }
.dash-back svg   { width: 14px; height: 14px; }

/* ── Dashboard panel sections ────────────────────────────────────────────── */

.dash-section        { display: none; }
.dash-section.active { display: block; }

.dash-section-title {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--white-muted);
    margin: 0 0 16px;
}

/* Credit balance bar */
.dash-credit-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--black-2);
    border: 1px solid var(--black-4);
    border-radius: 4px;
    padding: 14px 18px;
    margin-bottom: 24px;
}

.dash-credit-label {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--white-muted);
}

.dash-credit-value {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--mustard);
}

.dash-credit-buy {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--black);
    background: var(--mustard);
    border: none;
    border-radius: 3px;
    padding: 6px 14px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.dash-credit-buy:hover { background: var(--mustard-bright); }

/* Channel list */
.channel-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.channel-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--black-2);
    border: 1px solid var(--black-4);
    border-radius: 4px;
    padding: 12px 16px;
}

.channel-item-name {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--white-dim);
}

.channel-item-slug {
    font-size: 13px;
    color: var(--white-muted);
    margin-top: 2px;
    font-family: monospace;
}

.channel-item-actions { display: flex; gap: 8px; }

.channel-btn {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 3px;
    cursor: pointer;
    border: 1px solid var(--black-4);
    background: transparent;
    color: var(--white-muted);
    transition: border-color 0.15s ease, color 0.15s ease;
    text-decoration: none;
}

.channel-btn:hover {
    border-color: var(--mustard);
    color: var(--mustard);
    text-decoration: none;
}

.channel-empty {
    text-align: center;
    color: var(--white-muted);
    font-size: 13px;
    padding: 32px 0;
}

.btn-add-channel {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--black);
    background: var(--mustard);
    border: none;
    border-radius: 3px;
    padding: 9px 18px;
    cursor: pointer;
    transition: background 0.15s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-add-channel:hover { background: var(--mustard-bright); text-decoration: none; }

/* Subscription tier badge */
.dash-tier {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 3px;
    background: var(--black-3);
    border: 1px solid var(--black-4);
    color: var(--white-muted);
}

.dash-tier.pro {
    background: rgba(246,209,24,0.1);
    border-color: rgba(246,209,24,0.3);
    color: var(--mustard);
}

/* Mobile dashboard stub */
.mobile-dash-stub {
    padding: 32px 24px;
    text-align: center;
}

.mobile-dash-stub h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--white-dim);
    margin: 0 0 12px;
}

.mobile-dash-stub p {
    font-size: 13px;
    color: var(--white-muted);
    line-height: 1.6;
    margin: 0;
}

.mobile-dash-stub .stub-email {
    display: inline-block;
    margin-top: 16px;
    font-size: 13px;
    color: var(--mustard);
}

/* ── Utility classes ─────────────────────────────────────────────────────── */

/* Disabled nav items — used for coming-soon products */
.nav-product-disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

/* Mobile nav sign out — matches mobile-nav-product but at readable size */
.mobile-nav-signout {
    font-size: 24px !important;
}

/* Optional label hint in forms */
.label-optional {
    color: var(--white-muted);
    font-weight: 400;
}

/* Demo flags row */
.demo-flags-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Widget host fill */
.widget-fill {
    width: 100%;
    height: 100%;
    display: block;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 768px) {

    header        { padding: 0 16px; }
    .logo-icon    { height: 60px; }

    /* Hide desktop elements */
    .desktop-nav  { display: none; }
    .sidebar      { display: none; }
    .panel-host   { display: none; }

    /* Show mobile elements */
    .hamburger     { display: flex; }
    .mobile-menu   { display: flex; }
    .mobile-layout { display: block; }

    /* Shell becomes single column */
    .shell {
        flex-direction: column;
        min-height: unset;
    }

    /* ── Mobile strapline ─────────────────────────────────────────────────── */
    .mobile-strapline {
        padding: 36px 20px 32px;
        background: var(--black);
        border-bottom: 1px solid var(--black-4);
        background-image:
            linear-gradient(rgba(246,209,24,0.03) 1px, transparent 1px),
            linear-gradient(90deg, rgba(246,209,24,0.03) 1px, transparent 1px);
        background-size: 40px 40px;
    }

    .mobile-strapline h1 {
        font-size: clamp(52px, 14vw, 80px);
        margin-bottom: 20px;
    }

    /* ── Accordion ────────────────────────────────────────────────────────── */
    .accordion { background: var(--rhs); }

    .accordion-item { border-bottom: 1px solid var(--black-4); }

    .accordion-trigger {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px 20px;
        background: none;
        border: none;
        cursor: pointer;
        text-align: left;
        gap: 12px;
        border-left: 3px solid transparent;
        transition: border-color 0.2s;
    }

    .accordion-item.open .accordion-trigger { border-left-color: var(--mustard); }

    .acc-trigger-text {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .acc-eyebrow {
        font-family: var(--font-display);
        font-size: 10px;
        font-weight: 600;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: var(--mustard);
        opacity: 0.8;
    }

    .acc-title {
        font-family: var(--font-display);
        font-size: 28px;
        font-weight: 700;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        color: var(--white-dim);
        line-height: 1;
        transition: color 0.2s;
    }

    .accordion-item.open .acc-title { color: var(--white); }

    .acc-title span { color: var(--mustard); }

    .acc-chevron {
        flex-shrink: 0;
        color: var(--white-muted);
        transition: transform 0.3s ease;
    }

    .acc-chevron svg { width: 20px; height: 20px; display: block; }

    .accordion-item.open .acc-chevron { transform: rotate(180deg); }

    .accordion-body {
        display: none;
        padding: 0 20px 24px;
    }

    .accordion-item.open .accordion-body { display: block; }

    .demo-frame--mobile {
        height: 400px !important;
        contain: layout style;
    }

    .acc-desc {
        font-size: 13px;
        font-weight: 300;
        color: var(--white-dim);
        line-height: 1.75;
        margin-bottom: 16px;
    }

    .acc-demo-note {
        display: flex;
        align-items: center;
        gap: 8px;
        font-family: var(--font-display);
        font-size: 11px;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--white-muted);
        opacity: 0.7;
    }

    /* ── Mobile footer ────────────────────────────────────────────────────── */
    .mobile-footer {
        padding: 28px 20px 40px;
        border-top: 1px solid var(--black-4);
        background: var(--black);
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .mobile-footer-links { display: flex; gap: 20px; }

    .mobile-footer .meta-link   { font-size: 12px; }
    .mobile-footer .sidebar-copy { font-size: 11px; color: var(--white-muted); opacity: 0.5; }

}
