/* ══════════════════════════════════════════════════════════
   TIVULET — Minimalist White (Apple Style)
   Palette: White #FFFFFF · Light Gray #F5F5F7 · Orange #FF9500
   ══════════════════════════════════════════════════════════ */

/* ── Design Tokens ──────────────────────────────────────── */
:root {
    --bg: #F5F5F7;
    --surface: rgba(255, 255, 255, 0.75);
    --card: #FFFFFF;
    --border: rgba(0, 0, 0, 0.08);
    --border-l: rgba(0, 0, 0, 0.04);
    --dim: #86868B;
    --muted: #515154;
    --text: #1D1D1F;
    --orange: #FF9500;
    --orange-d: #E68600;
    --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --radius: 14px;
    --radius-lg: 20px;
    --nav-h: 56px;
    --sidebar-w: 240px;
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 10px 40px rgba(0, 0, 0, 0.08);
}

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

body {
    font-family: var(--body);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

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

.hidden {
    display: none !important;
}

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* ╔══════════════════════════════════════════════════════════
   ║  NAVBAR — Glassmorphic top bar
   ╚══════════════════════════════════════════════════════════ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 24px;
    height: var(--nav-h);
    background: var(--surface);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
}

.logo-text {
    font-family: var(--display);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text);
    white-space: nowrap;
}

.logo-text span {
    color: var(--orange);
    font-size: 0.65em;
    vertical-align: super;
}

.nav-links {
    display: flex;
    gap: 4px;
    margin-left: 12px;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
    padding: 6px 14px;
    border-radius: 20px;
    transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
    background: rgba(0, 0, 0, 0.05);
}

/* ── Search Bar (in navbar) ────────────────────────────── */
.search-wrap {
    flex: 1;
    max-width: 420px;
    position: relative;
    margin-left: auto;
}

.search-wrap svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--dim);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 8px 14px 8px 40px;
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid transparent;
    border-radius: 24px;
    color: var(--text);
    font-size: 0.85rem;
    font-family: var(--body);
    outline: none;
    transition: all var(--transition);
}

.search-input::placeholder {
    color: var(--dim);
}

.search-input:focus {
    background: var(--card);
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 149, 0, 0.15);
}

.search-badge {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--orange);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    opacity: 0;
    transition: opacity var(--transition);
}

.search-badge.visible {
    opacity: 1;
}

/* ── Nav right ─────────────────────────────────────────── */
.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 16px;
}

.badge {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--muted);
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 20px;
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 100px;
    background: transparent;
    color: var(--text);
    transition: all var(--transition);
    border: none;
}

.btn-primary {
    background: var(--orange);
    color: #fff;
    box-shadow: 0 2px 8px rgba(255, 149, 0, 0.3);
}

.btn-primary:hover {
    background: var(--orange-d);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 149, 0, 0.4);
}

.btn-outline {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text);
}

.btn-outline:hover {
    background: rgba(0, 0, 0, 0.08);
}

.btn-sm {
    padding: 6px 16px;
    font-size: 0.8rem;
}

.btn-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.04);
    font-size: 1rem;
    color: var(--muted);
    transition: all var(--transition);
}

.btn-circle:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text);
}

/* ╔══════════════════════════════════════════════════════════
   ║  LANDING PAGE
   ╚══════════════════════════════════════════════════════════ */
#landing {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--card);
}

.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 160px 40px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 50%;
    height: 150%;
    background: radial-gradient(ellipse at center, rgba(255, 149, 0, 0.15) 0%, rgba(255, 149, 0, 0) 70%);
    z-index: -1;
    filter: blur(50px);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 140%;
    background: radial-gradient(ellipse at center, rgba(255, 149, 0, 0.08) 0%, rgba(255, 149, 0, 0) 70%);
    z-index: -1;
    filter: blur(60px);
    border-radius: 50%;
    pointer-events: none;
}

.hero-overline {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--orange);
    margin-bottom: 24px;
}

.hero h1 {
    font-family: var(--display);
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -1.5px;
    color: var(--text);
    margin-bottom: 24px;
}

.hero h1 .accent {
    color: var(--orange);
}

.hero-desc {
    max-width: 600px;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--muted);
    margin-bottom: 48px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-cta .or-divider {
    font-size: 0.8rem;
    color: var(--dim);
}

/* ── Email form ────────────────────────────────────────── */
.email-form {
    display: flex;
    gap: 8px;
    margin-top: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ── Stats Bar ─────────────────────────────────────── */
.hero-stats-bar {
    display: flex;
    justify-content: center;
    gap: 80px;
    padding: 64px 40px;
    background: var(--bg);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stat {
    text-align: center;
}

.stat-num {
    font-family: var(--display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -1px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--dim);
    margin-top: 8px;
    font-weight: 500;
}

/* ╔══════════════════════════════════════════════════════════
   ║  LANDING SECTIONS
   ╚══════════════════════════════════════════════════════════ */
.landing-section {
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.bg-alt-wrap {
    width: 100%;
    background-color: var(--bg);
    border-top: 1px solid var(--border-l);
    border-bottom: 1px solid var(--border-l);
}

.section-divider {
    height: 1px;
    background-color: var(--border-l);
    max-width: 1200px;
    margin: 0 auto;
}

.section-block {
    max-width: 700px;
    margin: 0 auto 64px;
    text-align: center;
}

.section-block.center {
    margin-bottom: 0;
}

.section-tag {
    font-family: var(--body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--orange);
    margin-bottom: 16px;
}

.section-heading {
    font-family: var(--display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--text);
    line-height: 1.1;
    margin-bottom: 24px;
}

.section-heading .accent {
    color: var(--orange);
}

.section-text {
    font-size: 1.1rem;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ── Features Grid ────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.feat-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}

.feat-icon {
    font-size: 1.8rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 149, 0, 0.1);
    border-radius: 16px;
    margin-bottom: 20px;
}

.feat-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 10px;
}

.feat-sub {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.5;
}

/* ── Animations & Enhanced Landing Sections ────────────────────────── */
.wow-section {
    position: relative;
    overflow: hidden;
}

.display-heading {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.05;
    letter-spacing: -2px;
}

.lead-text {
    font-size: 1.25rem;
    color: var(--text);
    font-weight: 500;
}

/* SVG Feature Animations */
.svg-anim {
    color: var(--orange);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feat-card-animated:hover .svg-anim {
    transform: scale(1.15) rotate(-5deg);
}

/* ── How It Works Steps (Sticky Cards) ─────────────────────────────── */
.steps-stack-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-bottom: 100px;
}

.step-card-stacked {
    position: sticky;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.03);
    /* shadow projecting upwards */
    text-align: left;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 40px;
    transition: transform 0.3s ease;
}

.step-card-stacked:hover {
    transform: translateY(-4px);
}

.step-card-stacked .step-num {
    font-family: var(--display);
    font-size: 6rem;
    font-weight: 700;
    color: var(--orange);
    opacity: 0.15;
    margin: 0;
    line-height: 1;
}

.step-text-wrap {
    flex: 1;
}

.step-card-stacked .step-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.step-card-stacked .step-text {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .step-card-stacked {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 24px;
    }
}

/* ── FAQ Accordions ─────────────────────────────── */
.faq-accordion-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-accordion {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    width: 100%;
    transition: box-shadow var(--transition), border-color var(--transition);
}

.faq-accordion:hover {
    border-color: rgba(255, 149, 0, 0.5);
}

.faq-accordion[open] {
    border-color: var(--orange);
    box-shadow: var(--shadow);
}

.faq-q {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text);
    padding: 24px;
    cursor: pointer;
    list-style: none;
    /* remove default arrow */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-q::-webkit-details-marker {
    display: none;
}

.faq-icon {
    color: var(--muted);
    transition: transform 0.3s ease;
}

.faq-accordion[open] .faq-icon {
    transform: rotate(180deg);
    color: var(--orange);
}

.faq-a {
    padding: 0 24px 24px;
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.6;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── CTA Highlight ─────────────────────────────── */
.cta-animated {
    position: relative;
    overflow: hidden;
}

.cta-animated-inner {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cta-animated:hover .cta-animated-inner {
    transform: scale(1.03);
}

/* ── Genre Pills Showcase ───────────────────────────── */
.genre-pills-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.genre-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--bg);
    border-radius: 100px;
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
    transition: all var(--transition);
}

.genre-pill:hover {
    background: rgba(255, 149, 0, 0.1);
    color: var(--orange);
}

.genre-pill small {
    font-size: 0.75rem;
    color: var(--dim);
}

/* ── CTA Section ────────────────────────────────────── */
.cta-section {
    padding: 120px 40px;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* ── Landing Footer ─────────────────────────────────── */
.landing-footer {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 80px 40px 0;
}

.landing-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 60px;
}

.landing-footer-brand .logo-text {
    font-size: 1.5rem;
}

.landing-footer-tagline {
    font-size: 0.95rem;
    color: var(--muted);
    margin-top: 16px;
    line-height: 1.5;
}

.landing-footer-links h4 {
    font-family: var(--body);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
}

.landing-footer-links a {
    display: block;
    font-size: 0.9rem;
    color: var(--muted);
    text-decoration: none;
    margin-bottom: 12px;
    transition: color var(--transition);
}

.landing-footer-links a:hover {
    color: var(--orange);
}

.landing-footer-bottom {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--dim);
    max-width: 1200px;
    margin: 0 auto;
}

/* ── Donate Button ─────────────────────────────────────── */
.btn-donate {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 100px;
    text-decoration: none;
    transition: all var(--transition);
    box-shadow: var(--shadow);
}

.btn-donate:hover {
    color: var(--orange);
    border-color: var(--orange);
    box-shadow: var(--shadow-hover);
    transform: translateY(-1px);
}

/* ╔══════════════════════════════════════════════════════════
   ║  DASHBOARD
   ╚══════════════════════════════════════════════════════════ */
#dashboard {
    padding-top: var(--nav-h);
    display: flex;
    min-height: 100vh;
}

/* ── Sidebar ───────────────────────────────────────────── */
.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    position: sticky;
    top: var(--nav-h);
    height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    padding: 24px 20px;
    background: var(--bg);
    border-right: 1px solid var(--border);
}

.sidebar-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dim);
    padding: 0 12px;
    margin-bottom: 16px;
}

.cat-list {
    list-style: none;
}

.cat-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 12px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
    border-radius: var(--radius);
    transition: all var(--transition);
    margin-bottom: 4px;
}

.cat-pill:hover {
    background: rgba(0, 0, 0, 0.04);
    color: var(--text);
}

.cat-pill.active {
    color: var(--orange);
    background: #FFF3E0;
    font-weight: 600;
}

.cat-pill .cat-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dim);
    background: rgba(0, 0, 0, 0.05);
    padding: 2px 8px;
    border-radius: 12px;
}

.cat-pill.active .cat-count {
    background: rgba(255, 149, 0, 0.15);
    color: var(--orange-d);
}

/* ── Main content area ─────────────────────────────────── */
.main-content {
    flex: 1;
    min-width: 0;
    padding: 32px 40px 64px;
}

/* ── Loader / Add bar ──────────────────────────────────── */
.loader-section {
    margin-bottom: 40px;
}

.loader-inner {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.field {
    display: flex;
    flex-direction: column;
}

.field.grow {
    flex: 1;
}

/* ── Input styling ─────────────────────────────────────── */
.input {
    padding: 12px 16px;
    font-size: 0.9rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-family: var(--body);
    outline: none;
    transition: all var(--transition);
}

.input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(255, 149, 0, 0.15);
}

.input::placeholder {
    color: var(--dim);
}

label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--dim);
    margin-bottom: 8px;
}

.loader-status {
    margin-top: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--orange);
}

/* ── Featured Slider ─────────────────────────────────── */
.featured-slider {
    position: relative;
    margin-bottom: 40px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--card);
    box-shadow: var(--shadow);
}

.slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.slider-slide {
    min-width: 100%;
    display: flex;
    align-items: stretch;
    position: relative;
    cursor: pointer;
    height: 320px;
    overflow: hidden;
    background: var(--bg);
}

.slider-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: blur(20px) opacity(0.15);
    transform: scale(1.1);
}

.slider-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 40px;
    width: 100%;
}

.slider-thumb {
    width: 240px;
    height: 180px;
    border-radius: var(--radius);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border-l);
}

.slider-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-info {
    flex: 1;
}

.slider-cat {
    font-family: var(--body);
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--orange);
    margin-bottom: 12px;
}

.slider-title {
    font-family: var(--display);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1.1;
    margin-bottom: 20px;
}

.slider-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--orange);
    color: #fff;
    border: none;
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all var(--transition);
    box-shadow: 0 4px 12px rgba(255, 149, 0, 0.3);
}

.slider-play-btn:hover {
    transform: translateY(-2px);
    background: var(--orange-d);
    box-shadow: 0 6px 16px rgba(255, 149, 0, 0.4);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    right: 32px;
    display: flex;
    gap: 8px;
    z-index: 3;
}

.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all var(--transition);
}

.slider-dot.active {
    background: var(--orange);
    width: 24px;
    border-radius: 4px;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--surface);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all var(--transition);
}

.slider-nav:hover {
    background: var(--card);
    color: var(--orange);
    transform: translateY(-50%) scale(1.05);
}

.slider-nav.prev {
    left: 20px;
}

.slider-nav.next {
    right: 20px;
}

/* ── Section Row ───────────────────────────────────────── */
.section-row {
    margin-bottom: 48px;
}

.section-header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 24px;
}

.section-title {
    font-family: var(--display);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.5px;
}

.section-meta {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--dim);
}

.cat-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cat-act-btn {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 14px;
    transition: all var(--transition);
}

.cat-act-btn:hover {
    background: var(--card);
    color: var(--text);
    border-color: var(--dim);
}

.cat-act-btn.danger:hover {
    background: #FFF0F0;
    color: var(--red);
    border-color: var(--red);
}

/* ── Video Grid ────────────────────────────────────────── */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

/* ── Card ──────────────────────────────────────────────── */
.card {
    position: relative;
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.card-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    cursor: pointer;
    background: var(--bg);
}

.card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card-thumb img {
    transform: scale(1.05);
}

.thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition);
}

.card:hover .thumb-overlay {
    opacity: 1;
}

.play-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform var(--transition);
}

.card:hover .play-icon {
    transform: scale(1);
}

.play-icon::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 14px solid var(--orange);
    margin-left: 4px;
}

.card-info {
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.card-text {
    flex: 1;
    min-width: 0;
}

.card-title {
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.4;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--dim);
    margin-top: 6px;
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transition: opacity var(--transition);
}

.card:hover .card-actions {
    opacity: 1;
}

.card-act-btn {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    background: var(--bg);
    transition: all var(--transition);
}

.card-act-btn:hover {
    color: var(--text);
    background: rgba(0, 0, 0, 0.08);
}

.card-act-btn.danger:hover {
    color: #ff3b30;
    background: rgba(255, 59, 48, 0.1);
}

/* ── Show More button ──────────────────────────────────── */
.show-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.btn-show-more {
    padding: 10px 24px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 100px;
    transition: all var(--transition);
    box-shadow: var(--shadow);
}

.btn-show-more:hover {
    color: var(--orange);
    border-color: var(--orange);
    box-shadow: var(--shadow-hover);
    transform: translateY(-1px);
}

/* ── Empty State ───────────────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 100px 20px;
}

.empty-state h2 {
    font-family: var(--display);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 16px;
}

.empty-state p {
    color: var(--muted);
    font-size: 1.1rem;
}

/* ── No Results ────────────────────────────────────────── */
.no-results {
    text-align: center;
    padding: 80px 20px;
}

.no-results h3 {
    font-family: var(--display);
    font-size: 2rem;
    color: var(--text);
    margin-bottom: 12px;
}

.no-results p {
    color: var(--muted);
    font-size: 1rem;
}

/* ── Footer ────────────────────────────────────────────── */
.dash-footer {
    padding: 40px 0 0;
    margin-top: 40px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.dash-footer .footer-brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
}

.dash-footer .footer-brand span {
    color: var(--orange);
}

.dash-footer .footer-copy {
    font-size: 0.85rem;
    color: var(--dim);
}

.dash-footer a {
    color: var(--orange);
    font-weight: 500;
}

/* ╔══════════════════════════════════════════════════════════
   ║  MODALS
   ╚══════════════════════════════════════════════════════════ */
.overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-lg {
    width: 100%;
    max-width: 960px;
}

.modal-sm {
    width: 100%;
    max-width: 440px;
}

.modal {
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.modal-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.modal-bar-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
}

.close-x {
    font-size: 1.2rem;
    color: var(--dim);
    transition: color var(--transition);
}

.close-x:hover {
    color: var(--text);
}

.modal-body {
    padding: 24px;
}

.modal-body label {
    margin-top: 16px;
}

.modal-body label:first-child {
    margin-top: 0;
}

.modal-body .input {
    width: 100%;
    margin-top: 8px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.player-frame {
    aspect-ratio: 16/9;
    background: #000;
}

.player-frame iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ── Toggle ────────────────────────────────────────────── */
.toggle-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
}

.toggle-switch {
    width: 48px;
    height: 28px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    position: relative;
    transition: background var(--transition);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: all var(--transition);
}

.toggle-switch.active {
    background: var(--orange);
}

.toggle-switch.active::after {
    left: 22px;
}

.toggle-label {
    font-size: 0.9rem;
    color: var(--text);
    font-weight: 500;
}

/* ── Danger Button ────────────────────────────────────── */
.btn-danger {
    background: #ff3b30;
    color: #fff;
}

.btn-danger:hover {
    background: #e03228;
}

/* ── API Key Help ─────────────────────────────────────── */
.api-key-help {
    margin: 12px 0 8px;
}

.api-key-help details {
    background: var(--bg);
    border-radius: var(--radius);
    padding: 0;
    overflow: hidden;
}

.api-key-help summary {
    font-size: 0.85rem;
    color: var(--orange);
    cursor: pointer;
    padding: 14px 16px;
    font-weight: 500;
    list-style: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.api-key-help summary::before {
    content: '▸';
    transition: transform 0.2s;
}

.api-key-help details[open] summary::before {
    transform: rotate(90deg);
}

.api-key-help summary::-webkit-details-marker {
    display: none;
}

.api-key-help ol {
    margin: 0;
    padding: 0 16px 16px 36px;
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.6;
}

.api-key-help ol li {
    margin-bottom: 6px;
}

.api-key-help p {
    font-size: 0.8rem;
    color: var(--dim);
    padding: 0 16px 16px;
    margin: 0;
    line-height: 1.5;
}

/* ╔══════════════════════════════════════════════════════════
   ║  TOAST NOTIFICATIONS
   ╚══════════════════════════════════════════════════════════ */
.toast-container {
    position: fixed;
    top: calc(var(--nav-h) + 16px);
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 400px;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background: var(--surface);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-l);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    animation: toast-in 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) forwards;
    position: relative;
    overflow: hidden;
}

.toast.toast-out {
    animation: toast-out 0.3s ease forwards;
}

.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--orange);
}

.toast.toast-error::before {
    background: #ff3b30;
}

.toast.toast-success::before {
    background: #34c759;
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.1rem;
    background: rgba(255, 149, 0, 0.1);
    color: var(--orange);
}

.toast-error .toast-icon {
    background: rgba(255, 59, 48, 0.1);
    color: #ff3b30;
}

.toast-success .toast-icon {
    background: rgba(52, 199, 89, 0.1);
    color: #34c759;
}

.toast-body {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.toast-msg {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.4;
    word-break: break-word;
}

.toast-close {
    width: 24px;
    height: 24px;
    font-size: 1.2rem;
    color: var(--dim);
}

.toast-close:hover {
    color: var(--text);
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--orange);
    animation: toast-timer 4s linear forwards;
}

.toast-error .toast-progress {
    background: #ff3b30;
}

.toast-success .toast-progress {
    background: #34c759;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(40px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes toast-out {
    to {
        opacity: 0;
        transform: translateX(40px) scale(0.95);
    }
}

@keyframes toast-timer {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

/* ╔══════════════════════════════════════════════════════════
   ║  RESPONSIVE
   ╚══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    :root {
        --sidebar-w: 0px;
    }

    .sidebar {
        display: none;
    }

    #dashboard {
        flex-direction: column;
    }

    .mobile-cats {
        display: flex;
        gap: 8px;
        padding: 16px 20px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border-bottom: 1px solid var(--border);
        background: var(--bg);
    }

    .mobile-cats::-webkit-scrollbar {
        display: none;
    }

    .mobile-cat-pill {
        flex-shrink: 0;
        padding: 8px 16px;
        font-size: 0.85rem;
        font-weight: 500;
        color: var(--muted);
        background: var(--card);
        border-radius: 100px;
        white-space: nowrap;
        box-shadow: var(--shadow);
    }

    .mobile-cat-pill.active {
        background: var(--orange);
        color: #fff;
    }

    .hero {
        padding: 120px 24px 60px;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .steps-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-stats-bar {
        flex-wrap: wrap;
        gap: 32px;
        padding: 40px 24px;
    }

    .stat {
        flex: 1 1 40%;
        min-width: 120px;
    }

    .landing-footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .main-content {
        padding: 24px;
    }
}

@media (min-width: 901px) {
    .mobile-cats {
        display: none !important;
    }
}

@media (max-width: 700px) {
    #navbar {
        padding: 0 16px;
    }

    .nav-right .btn {
        padding: 8px 14px;
        font-size: 0.8rem;
    }

    .nav-links {
        display: none !important;
    }

    .loader-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .loader-inner .field,
    .loader-inner .btn {
        width: 100%;
    }

    /* Could toggle on tap, keeping it minimal */

    .features-grid {
        grid-template-columns: 1fr;
    }

    .slider-slide {
        height: 240px;
    }

    .slider-thumb {
        display: none;
    }

    .slider-content {
        padding: 24px;
    }

    .video-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 16px;
    }

    .card-thumb {
        aspect-ratio: 16/9;
    }
}

/* ── Cookie Banner ─────────────────────────────── */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    left: 24px;
    right: 24px;
    max-width: 500px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.cookie-text {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.5;
}

.cookie-text a {
    color: var(--orange);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}