@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Syne:wght@700;800&display=swap');

/* Master Unified Pro Studio & Timeline Engine Design System */
:root {
    --bg-main: #0a0a0d;
    --panel-bg: #14141a;
    --card-bg: #1d1d26;
    --card-hover: #262633;
    --border-color: #262636;
    --input-bg: #1f1f2a;
    
    /* Pro Accents */
    --pink-accent: #f0a8d0;
    --pink-hover: #e694c4;
    --pill-yellow: #f6e0b5;
    --pill-yellow-text: #1a1710;
    --clip-cyan: #a5f3fc;
    --clip-cyan-text: #083344;
    --emerald-accent: #88ff00;
    --playhead-red: #ff2d55;
    --snap-blue: #00f0ff;

    --text-main: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #6b7280;
    --danger: #ef4444;
    
    --radius-xl: 16px;
    --radius-lg: 12px;
    --radius-md: 8px;
    --radius-sm: 5px;
    --radius-pill: 9999px;
}

html, body {
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    display: flex;
    flex-direction: column;
}

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

/* Custom Thin Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* =========================================================================
   1. STREAMLINED HEADER BAR (50px)
   ========================================================================= */
.studio-header {
    height: 50px;
    background: var(--panel-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    flex-shrink: 0;
    z-index: 100;
}

.brand-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.92rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: #ffffff;
}
.brand-title i {
    color: var(--pink-accent);
}

.header-right-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.icon-btn {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
}
.icon-btn:hover {
    background: var(--card-bg);
    border-color: var(--pink-accent);
}

.export-cta-btn {
    background: #000000;
    color: #ffffff;
    border: 1px solid #333333;
    padding: 0.4rem 1.1rem;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.export-cta-btn:hover {
    border-color: var(--pink-accent);
    transform: translateY(-1px);
}

/* =========================================================================
   2. MAIN WORKSPACE (FITS 100% VIEWPORT)
   ========================================================================= */
.studio-main-workspace {
    flex: 1;
    display: flex;
    height: calc(100vh - 50px);
    overflow: hidden;
}

/* UNIFIED LEFT INSPECTOR PANEL (360px) */
.left-inspector-panel {
    width: 360px;
    background: var(--panel-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow: hidden;
}

.inspector-scroll-container {
    flex: 1;
    overflow-y: auto;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.panel-card-group {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.panel-card-title {
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.control-label {
    font-size: 0.72rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 3px;
}

.select-control, .input-control {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    color: #ffffff;
    padding: 0.45rem;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    outline: none;
}
.select-control:focus, .input-control:focus {
    border-color: var(--pink-accent);
}

.range-control {
    width: 100%;
    accent-color: var(--pink-accent);
}

/* Template Cards Grid */
.template-card {
    background: #171720;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.6rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.15s ease;
}
.template-card:hover, .template-card.active {
    border-color: var(--pink-accent);
    background: #20202c;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.template-preview-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
}
.template-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    display: block;
    margin-top: 4px;
}

/* Upload Drop Area */
.upload-drop-area {
    background: #171720;
    border: 1.5px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.15s ease;
}
.upload-drop-area:hover {
    border-color: var(--pink-accent);
    background: #1c1c28;
}

.generate-cta-btn {
    width: 100%;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #ffffff;
    border: none;
    padding: 0.65rem 1rem;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    cursor: pointer;
    transition: all 0.15s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.generate-cta-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* =========================================================================
   3. RIGHT COLUMN: CENTER MONITOR + PRO NON-LINEAR TIMELINE
   ========================================================================= */
.center-studio-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-main);
    overflow: hidden;
}

/* VIDEO PREVIEW MONITOR FRAME */
.video-preview-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    overflow: hidden;
    position: relative;
}

.monitor-frame-card {
    width: 100%;
    max-width: 840px;
    height: 100%;
    max-height: 440px;
    background: #000000;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
}

#previewCanvas {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    cursor: grab;
    user-select: none;
    touch-action: none;
}
#previewCanvas:active {
    cursor: grabbing;
}

.monitor-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 13, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    z-index: 50;
}

/* PLAYER TOOLBAR UNDER MONITOR */
.player-control-toolbar {
    width: 100%;
    max-width: 840px;
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-top: 0.4rem;
    padding: 0.35rem 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.play-pause-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #ffffff;
    color: #000000;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.15s ease;
}
.play-pause-btn:hover {
    transform: scale(1.08);
}

.timecode-label {
    font-family: monospace;
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
}

/* =========================================================================
   4. PROFESSIONAL NON-LINEAR TIMELINE ENGINE (240px Fixed Height)
   ========================================================================= */
.pro-timeline-container {
    height: 240px;
    background: #111117;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    position: relative;
    user-select: none;
    flex-shrink: 0;
}

/* TIMELINE TOOLBAR (Zoom, Snapping, Ripple, Split, Undo/Redo) */
.timeline-pro-toolbar {
    height: 32px;
    background: #161620;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.75rem;
    font-size: 0.75rem;
}

.tb-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tb-btn {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.2rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    transition: all 0.15s ease;
}
.tb-btn:hover, .tb-btn.active {
    color: var(--text-main);
    border-color: var(--pink-accent);
    background: var(--card-bg);
}

.zoom-slider-container {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-muted);
}
.zoom-slider-container input[type="range"] {
    width: 100px;
    accent-color: var(--pink-accent);
}

/* MAIN TIMELINE SPLIT (LEFT TRACK HEADERS + RIGHT SCROLLING VIEWPORT) */
.timeline-viewport-wrapper {
    flex: 1;
    display: flex;
    overflow: hidden;
    position: relative;
}

/* TRACK HEADERS PANEL (Left 110px) */
.track-headers-panel {
    width: 110px;
    background: #15151f;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    z-index: 25;
}
.ruler-header-spacer {
    height: 28px;
    background: #181824;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}
.track-header-item {
    height: 38px;
    border-bottom: 1px solid #222230;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-secondary);
}

/* SCROLLABLE TRACKS VIEWPORT (Right) */
.timeline-scroll-viewport {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* DYNAMIC RULER HEADER */
.timeline-ruler-header {
    height: 28px;
    background: #171724;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    cursor: pointer;
    user-select: none;
}
.ruler-tick {
    position: absolute;
    top: 0;
    bottom: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.65rem;
    font-family: monospace;
    color: var(--text-muted);
    padding-left: 4px;
}
.ruler-tick.minor {
    border-left: 1px solid rgba(255, 255, 255, 0.05);
}

/* MULTI-TRACK LANES CONTAINER */
.timeline-lanes-container {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
}

.track-lane {
    height: 38px;
    min-height: 38px;
    border-bottom: 1px solid #222230;
    position: relative;
    width: 100%;
}

#captionsTrackLane {
    background: rgba(165, 243, 252, 0.06); /* Highlighted Captions Track */
}

/* DRAGGABLE & RESIZABLE SUBTITLE BLOCKS */
.timeline-block {
    position: absolute;
    top: 3px;
    height: 32px;
    background: var(--clip-cyan);
    color: var(--clip-cyan-text);
    border-radius: var(--radius-sm);
    border: 1px solid #7dd3fc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    font-size: 0.75rem;
    font-weight: 800;
    cursor: grab;
    user-select: none;
    box-shadow: 0 2px 10px rgba(165, 243, 252, 0.4);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 20;
}
.timeline-block:hover {
    filter: brightness(1.1);
}
.timeline-block.selected {
    border: 2px solid #ffffff !important;
    box-shadow: 0 0 14px rgba(255, 255, 255, 0.8) !important;
}
.timeline-block.active-playing {
    background: var(--emerald-accent) !important;
    color: #000000 !important;
}

/* DUAL-EDGE RESIZE HANDLES */
.resize-handle {
    width: 6px;
    position: absolute;
    top: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    cursor: ew-resize;
    z-index: 25;
}
.resize-handle.left { left: 0; border-top-left-radius: 4px; border-bottom-left-radius: 4px; }
.resize-handle.right { right: 0; border-top-right-radius: 4px; border-bottom-right-radius: 4px; }
.resize-handle:hover { background: rgba(0, 0, 0, 0.7); }

/* PRO RED PLAYHEAD NEEDLE LINE */
.pro-playhead-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--playhead-red);
    z-index: 50;
    pointer-events: none;
    box-shadow: 0 0 8px rgba(255, 45, 85, 0.8);
}
.playhead-badge-head {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--playhead-red);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 1px 6px;
    border-radius: var(--radius-pill);
    font-family: monospace;
}

/* MAGNETIC SNAP GUIDE LINE */
.magnetic-snap-line {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--snap-blue);
    z-index: 45;
    pointer-events: none;
    box-shadow: 0 0 10px var(--snap-blue);
}

/* FLOATING TOOLTIP */
.timeline-hover-tooltip {
    position: fixed;
    background: #000000;
    border: 1px solid var(--border-color);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    pointer-events: none;
    z-index: 250;
    box-shadow: 0 4px 12px rgba(0,0,0,0.6);
}

/* RIGHT CLICK CONTEXT MENU */
.timeline-context-menu {
    position: fixed;
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 4px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 2px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}
.context-menu-item {
    padding: 0.4rem 0.85rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-main);
    border-radius: var(--radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.context-menu-item:hover {
    background: var(--pink-accent);
    color: #000000;
}

/* SELECTION RUBBERBAND BOX */
.timeline-selection-box {
    position: absolute;
    background: rgba(240, 168, 208, 0.15);
    border: 1px solid var(--pink-accent);
    pointer-events: none;
    z-index: 35;
}

/* =========================================================================
   5. CAPTION SEGMENT LIST (Right Panel / Mobile Scroll View)
   ========================================================================= */
.caption-line-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.6rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: border-color 0.15s;
}
.caption-line-card.active {
    border-color: var(--emerald-accent);
    box-shadow: 0 0 8px rgba(136, 255, 0, 0.25);
}
.card-number-pill {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    border-radius: var(--radius-pill);
    font-size: 0.68rem;
    font-weight: 800;
    padding: 1px 7px;
    flex-shrink: 0;
}
.card-timestamp-badge {
    font-family: monospace;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--clip-cyan);
    background: rgba(165,243,252,0.08);
    border: 1px solid rgba(165,243,252,0.2);
    border-radius: var(--radius-sm);
    padding: 1px 6px;
    cursor: pointer;
}
.card-timestamp-badge:hover {
    background: rgba(165,243,252,0.15);
}
.caption-input-inline {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    outline: none;
    padding: 2px 4px;
}
.caption-input-inline:focus {
    border-bottom-color: var(--pink-accent);
}
.word-pill-tag {
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    border-radius: var(--radius-pill);
    padding: 2px 8px;
    cursor: pointer;
    transition: all 0.12s;
}
.word-pill-tag:hover { border-color: var(--pink-accent); }
.word-pill-tag.emphasized { border-color: var(--emerald-accent); color: var(--emerald-accent); }
.word-pill-tag.active-speech { background: var(--emerald-accent); color: #000; border-color: var(--emerald-accent); }

/* =========================================================================
   6. MOBILE-FIRST RESPONSIVE LAYOUT
   ========================================================================= */

/* ---------- Floating panel toggle button (mobile only) ---------- */
.mobile-panel-fab {
    display: none;
}

/* ---------- Mobile bottom navigation bar ---------- */
.mobile-bottom-nav {
    display: none;
}

/* ===== TABLET (≤ 1024px) ===== */
@media (max-width: 1024px) {
    .left-inspector-panel {
        width: 280px;
    }
    .monitor-frame-card {
        max-width: 100%;
        max-height: 360px;
    }
    .player-control-toolbar {
        max-width: 100%;
    }
    .timeline-pro-toolbar {
        flex-wrap: wrap;
        height: auto;
        padding: 4px 0.5rem;
        gap: 4px;
    }
    .tb-btn {
        font-size: 0.68rem;
        padding: 0.18rem 0.4rem;
    }
    .zoom-slider-container input[type="range"] {
        width: 70px;
    }
}

/* ===== MOBILE (≤ 768px) ===== */
@media (max-width: 768px) {
    /* Allow body to scroll vertically on mobile */
    html, body {
        height: auto;
        min-height: 100dvh;
        overflow: auto;
    }

    /* ---- Header shrinks ---- */
    .studio-header {
        height: 48px;
        padding: 0 0.75rem;
    }
    .brand-title span {
        display: none; /* show icon only */
    }
    .export-cta-btn span {
        display: none;
    }
    .export-cta-btn {
        padding: 0.4rem 0.6rem;
    }

    /* ---- Main workspace stacks vertically ---- */
    .studio-main-workspace {
        flex-direction: column;
        height: auto;
        overflow: visible;
    }

    /* ---- Left panel becomes slide-in bottom drawer ---- */
    .left-inspector-panel {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 70vh;
        max-height: 70vh;
        z-index: 200;
        border-right: none;
        border-top: 1px solid var(--border-color);
        border-radius: 18px 18px 0 0;
        transform: translateY(100%);
        transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 -8px 40px rgba(0,0,0,0.7);
    }
    .left-inspector-panel.mobile-panel-open {
        transform: translateY(0);
    }

    /* Drawer pull handle */
    .left-inspector-panel::before {
        content: '';
        display: block;
        width: 40px;
        height: 4px;
        background: var(--border-color);
        border-radius: var(--radius-pill);
        margin: 10px auto 6px;
        flex-shrink: 0;
    }

    .inspector-scroll-container {
        padding: 0.6rem 0.85rem 5rem; /* bottom padding for nav bar */
    }

    /* ---- Center column takes full width ---- */
    .center-studio-column {
        width: 100%;
        min-height: 100dvh;
        overflow: visible;
    }

    /* ---- Video preview fills width ---- */
    .video-preview-wrapper {
        padding: 0.5rem 0.5rem 0;
        justify-content: flex-start;
        flex: none;
        height: auto;
    }
    .monitor-frame-card {
        max-width: 100%;
        max-height: 52vw;
        min-height: 200px;
        border-radius: var(--radius-lg);
    }
    #previewCanvas {
        border-radius: var(--radius-lg);
    }

    /* ---- Player toolbar full width ---- */
    .player-control-toolbar {
        max-width: 100%;
        margin: 0.4rem 0.5rem 0;
        border-radius: var(--radius-md);
    }
    .timecode-label {
        font-size: 0.72rem;
    }

    /* ---- Timeline collapses to compact height ---- */
    .pro-timeline-container {
        height: 160px;
        flex-shrink: 0;
    }
    .timeline-pro-toolbar {
        height: auto;
        flex-wrap: wrap;
        padding: 3px 0.4rem;
        gap: 3px;
    }
    .tb-group {
        gap: 3px;
    }
    .tb-btn {
        font-size: 0.65rem;
        padding: 0.15rem 0.35rem;
    }
    /* Hide some toolbar items on very small screens */
    #btnRedo, #btnDelete { display: none; }
    .zoom-slider-container input[type="range"] {
        width: 60px;
    }
    .track-headers-panel {
        width: 72px;
    }
    .track-header-item {
        font-size: 0.6rem;
        padding: 0 4px;
        gap: 3px;
    }
    .track-header-item i {
        font-size: 0.65rem;
    }

    /* ---- Mobile bottom nav bar ---- */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 56px;
        background: var(--panel-bg);
        border-top: 1px solid var(--border-color);
        z-index: 190;
        align-items: stretch;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.5);
    }
    .mobile-nav-tab {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        font-size: 0.6rem;
        font-weight: 700;
        color: var(--text-muted);
        cursor: pointer;
        border: none;
        background: transparent;
        transition: color 0.15s, background 0.15s;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        -webkit-tap-highlight-color: transparent;
        min-height: 44px;
    }
    .mobile-nav-tab i {
        font-size: 1.1rem;
    }
    .mobile-nav-tab.active {
        color: var(--pink-accent);
        background: rgba(240,168,208,0.07);
        border-top: 2px solid var(--pink-accent);
    }

    /* Body bottom padding so content clears the nav bar */
    body {
        padding-bottom: 56px;
    }

    /* ---- Touch-friendly tap targets ---- */
    .icon-btn, .play-pause-btn {
        min-width: 44px;
        min-height: 44px;
    }
    .generate-cta-btn {
        padding: 0.75rem 1rem;
        font-size: 0.88rem;
    }
    .template-card {
        padding: 0.5rem;
    }

    /* ---- Modals full-width on mobile ---- */
    #settingsModal > div,
    #exportProgressModal > div {
        width: 95%;
        padding: 1.2rem;
    }
}

/* ===== SMALL MOBILE (≤ 400px) ===== */
@media (max-width: 400px) {
    .monitor-frame-card {
        max-height: 56vw;
    }
    .pro-timeline-container {
        height: 130px;
    }
    #btnSnap { display: none; }
}

/* =========================================================================
   7. HEADER VIEW SWITCHER & SERVICE DASHBOARD HUB STYLES
   ========================================================================= */
.view-switcher-group {
    display: flex;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-pill);
    padding: 3px;
    gap: 3px;
}

.view-switch-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 700;
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.2s ease;
}
.view-switch-btn:hover {
    color: #ffffff;
}
.view-switch-btn.active {
    background: var(--card-bg);
    color: var(--pink-accent);
    box-shadow: 0 2px 8px rgba(0,0,0,0.4);
    border: 1px solid var(--border-color);
}

/* =========================================================================
   PRO VIDEO EDITING STUDIO DASHBOARD HUB STYLES
   ========================================================================= */
.dashboard-hub-wrapper {
    flex: 1;
    width: 100%;
    height: calc(100vh - 50px);
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    background: radial-gradient(circle at 50% -20%, #1a102f 0%, #0a0a12 50%, #050508 100%);
    background-attachment: fixed;
}

.dashboard-scroll-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 3rem 1.5rem 6rem;
    display: flex;
    flex-direction: column;
    gap: 3.2rem;
}

/* FONT PICKER TRIGGER BUTTON */
.font-picker-trigger-btn {
    width: 100%;
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.2s ease;
}
.font-picker-trigger-btn:hover {
    border-color: var(--pink-accent);
    background: var(--card-bg);
}

/* 100+ COMMERCIAL GOOGLE FONTS LIBRARY MODAL STYLES */
.font-library-card {
    background: #101018;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    width: 92%;
    max-width: 840px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
}
.font-lib-header {
    padding: 1.2rem 1.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #161622;
}
.font-lib-controls {
    padding: 1rem 1.6rem;
    background: #12121c;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}
.font-search-box {
    position: relative;
    width: 100%;
}
.font-search-box i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--pink-accent);
    font-size: 0.95rem;
}
.font-search-box input {
    width: 100%;
    background: #09090f;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 0.7rem 0.9rem 0.7rem 2.6rem;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.2s ease;
}
.font-search-box input:focus {
    border-color: var(--pink-accent);
    box-shadow: 0 0 10px rgba(240, 168, 208, 0.2);
}
.font-cat-filter-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}
.font-cat-btn {
    background: #1a1a28;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s ease;
}
.font-cat-btn:hover, .font-cat-btn.active {
    background: var(--pink-accent);
    color: #000;
    border-color: var(--pink-accent);
    font-weight: 800;
}

.font-grid-container {
    flex: 1;
    overflow-y: auto;
    padding: 1.4rem 1.6rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    background: #0b0b12;
}
.font-card-item {
    background: #141420;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0.9rem 1.1rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.18s ease;
}
.font-card-item:hover, .font-card-item.selected {
    border-color: var(--pink-accent);
    background: #1e1e30;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}
.font-card-name {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--clip-cyan);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.font-card-preview {
    font-size: 1.3rem;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* 1. PRO HERO SECTION (AWWWARDS-STYLE OPEN BORDERLESS HERO) */
.pro-hero-section {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 1.5rem 2rem;
    background: transparent;
    border: none;
    box-shadow: none;
    position: relative;
    overflow: visible;
    animation: heroFadeIn 0.8s ease-out;
}

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

.pro-hero-section::before {
    content: '';
    position: absolute;
    top: -25%;
    left: 50%;
    transform: translateX(-50%);
    width: 950px;
    height: 520px;
    background: radial-gradient(ellipse at center, rgba(240, 168, 208, 0.22), rgba(165, 243, 252, 0.14), transparent 70%);
    filter: blur(60px);
    pointer-events: none;
    animation: floatGlowOrb 8s ease-in-out infinite alternate;
}

@keyframes floatGlowOrb {
    0% { transform: translateX(-50%) scale(1); opacity: 0.8; }
    50% { transform: translateX(-48%) scale(1.08); opacity: 1; }
    100% { transform: translateX(-52%) scale(0.95); opacity: 0.8; }
}

.pro-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(240, 168, 208, 0.12);
    border: 1px solid rgba(240, 168, 208, 0.35);
    color: var(--pink-accent);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 6px 20px;
    border-radius: var(--radius-pill);
    margin-bottom: 1.6rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 20px rgba(240, 168, 208, 0.15);
}
.pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--pink-accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--pink-accent);
    animation: pulseGlow 1.8s infinite;
}
@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.5; }
}

.pro-hero-title {
    font-size: 4.2rem;
    font-weight: 900;
    line-height: 1.08;
    color: #ffffff;
    max-width: 950px;
    margin-bottom: 1.4rem;
    letter-spacing: -1.5px;
    text-shadow: 0 10px 40px rgba(0,0,0,0.6);
}
.gradient-text-pink {
    background: linear-gradient(135deg, #f0a8d0 0%, #a5f3fc 45%, #88ff00 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 6s linear infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

.pro-hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 750px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.pro-hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-bottom: 3.8rem;
}
.pro-primary-cta-btn {
    background: linear-gradient(135deg, var(--pink-accent) 0%, #c084fc 100%);
    color: #000;
    font-size: 1.05rem;
    font-weight: 900;
    padding: 1rem 2.6rem;
    border-radius: var(--radius-pill);
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    box-shadow: 0 10px 35px rgba(240, 168, 208, 0.45);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.pro-primary-cta-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 16px 45px rgba(240, 168, 208, 0.65);
}
.pro-secondary-cta-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 0.92rem;
    font-weight: 800;
    padding: 0.95rem 1.8rem;
    border-radius: var(--radius-pill);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
}
.pro-secondary-cta-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

/* PRO BORDERLESS METRICS ROW */
.pro-metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    width: 100%;
    max-width: 1000px;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.pro-metric-card {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0.8rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.2s ease;
}
.pro-metric-card:last-child {
    border-right: none;
}
.pro-metric-card:hover {
    transform: translateY(-2px);
}
.metric-icon-glow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(240, 168, 208, 0.12);
    color: var(--pink-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    margin-bottom: 2px;
}
.metric-icon-glow.cyan { background: rgba(165, 243, 252, 0.12); color: var(--clip-cyan); }
.metric-icon-glow.green { background: rgba(136, 255, 0, 0.12); color: var(--emerald-accent); }
.metric-icon-glow.yellow { background: rgba(254, 243, 199, 0.12); color: #fde047; }

.pro-metric-card .metric-val {
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.5px;
}
.pro-metric-card .metric-label {
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* =========================================================================
   REACT BITS & AWWWARDS BENTO GRID SHOWCASE STYLES
   ========================================================================= */
.bento-showcase-section {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
    margin: 1.5rem 0;
}
.bento-header-row {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}
.bento-pill-tag {
    display: inline-block;
    background: rgba(240, 168, 208, 0.12);
    border: 1px solid rgba(240, 168, 208, 0.3);
    color: var(--pink-accent);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    padding: 5px 16px;
    border-radius: var(--radius-pill);
    margin-bottom: 0.8rem;
}
.bento-main-heading {
    font-size: 2.4rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.8px;
    margin-bottom: 0.6rem;
}
.bento-sub-heading {
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.bento-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}

.bento-card {
    background: rgba(255, 255, 255, 0.025);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.bento-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 20px 50px rgba(0,0,0,0.7);
}

.bento-card.glow-pink:hover { border-color: var(--pink-accent); box-shadow: 0 0 35px rgba(240, 168, 208, 0.25); }
.bento-card.glow-cyan:hover { border-color: var(--clip-cyan); box-shadow: 0 0 35px rgba(165, 243, 252, 0.25); }
.bento-card.glow-yellow:hover { border-color: #fde047; box-shadow: 0 0 35px rgba(254, 243, 199, 0.25); }
.bento-card.glow-green:hover { border-color: var(--emerald-accent); box-shadow: 0 0 35px rgba(136, 255, 0, 0.25); }

.bento-card-large {
    grid-column: span 2;
}
.bento-card-wide {
    grid-column: span 3;
}

.bento-badge {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    color: var(--pink-accent);
    background: rgba(240, 168, 208, 0.12);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 1.2rem;
    width: fit-content;
}
.bento-badge.cyan { color: var(--clip-cyan); background: rgba(165, 243, 252, 0.12); }
.bento-badge.yellow { color: #fde047; background: rgba(254, 243, 199, 0.12); }
.bento-badge.green { color: var(--emerald-accent); background: rgba(136, 255, 0, 0.12); }

.bento-card h3 {
    font-size: 1.45rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 0.6rem;
    letter-spacing: -0.4px;
}
.bento-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Animated Visual Waveform inside Bento 1 */
.bento-visual-waveform {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 52px;
    margin-top: 1.8rem;
    padding: 12px 16px;
    background: rgba(0,0,0,0.5);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
}
.wave-bar-item {
    flex: 1;
    background: var(--pink-accent);
    border-radius: 4px;
    animation: waveBounce 1.4s ease-in-out infinite alternate;
}
.wave-bar-item:nth-child(2n) { animation-delay: 0.2s; background: var(--clip-cyan); }
.wave-bar-item:nth-child(3n) { animation-delay: 0.4s; background: var(--emerald-accent); }

@keyframes waveBounce {
    0% { transform: scaleY(0.25); }
    100% { transform: scaleY(1); }
}

/* 2. SECTION CARDS & TEMPLATE GALLERY */
.pro-section-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.section-heading {
    font-size: 1.4rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 4px;
}
.section-subtext {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* TEMPLATE SHOWCASE GRID */
.template-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}
.tmpl-showcase-card {
    background: #12121a;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}
.tmpl-showcase-card:hover {
    border-color: var(--pink-accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.6);
}

.tmpl-preview-box {
    height: 140px;
    background: #08080c;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
    border-bottom: 1px solid var(--border-color);
}

/* Stacked Submagic Style Preview */
.stacked-preview .norm-line {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px #000;
}
.stacked-preview .emp-line {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--emerald-accent);
    text-shadow: 0 4px 10px #000;
    line-height: 1;
}

/* Karaoke Preview */
.karaoke-preview {
    flex-direction: row;
    gap: 6px;
}
.karaoke-preview .word-dim {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
}
.karaoke-preview .word-active {
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--pink-accent);
    text-shadow: 0 0 10px var(--pink-accent);
}

/* Pill Preview */
.pill-preview .pill-box {
    background: var(--emerald-accent);
    color: #000;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    padding: 4px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(136, 255, 0, 0.4);
}

.tmpl-info-row {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #14141e;
}
.tmpl-info-row h4 {
    font-size: 0.85rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2px;
}
.tmpl-info-row p {
    font-size: 0.72rem;
    color: var(--text-muted);
}
.tmpl-tag {
    background: rgba(240, 168, 208, 0.15);
    color: var(--pink-accent);
    font-size: 0.62rem;
    font-weight: 900;
    padding: 2px 8px;
    border-radius: var(--radius-pill);
}
.tmpl-tag.cyan { background: rgba(165, 243, 252, 0.15); color: var(--clip-cyan); }
.tmpl-tag.yellow { background: rgba(254, 243, 199, 0.15); color: #fde047; }

/* 3. ENGINE STEPS GRID */
.engine-steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}
.engine-step-card {
    background: #12121a;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.step-badge {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 0.7rem;
    font-weight: 900;
    color: var(--text-muted);
    font-family: monospace;
}
.step-icon {
    font-size: 1.5rem;
    color: var(--pink-accent);
    margin-bottom: 4px;
}
.step-icon.cyan { color: var(--clip-cyan); }
.step-icon.green { color: var(--emerald-accent); }
.step-icon.pink { color: #f472b6; }

.engine-step-card h4 {
    font-size: 0.9rem;
    font-weight: 800;
    color: #fff;
}
.engine-step-card p {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* 4. PRO PRICING GRID */
.pro-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}
.pro-plan-card {
    background: #12121a;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.2s ease;
}
.pro-plan-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.6);
}
.pro-plan-card.active-tier {
    border: 2px solid var(--emerald-accent);
    box-shadow: 0 0 25px rgba(136, 255, 0, 0.2);
}
.pro-plan-card.featured-tier {
    border: 2px solid var(--pink-accent);
    box-shadow: 0 0 30px rgba(240, 168, 208, 0.25);
}

.tier-header {
    margin-bottom: 1.4rem;
}
.active-pill {
    background: var(--emerald-accent);
    color: #000;
    font-size: 0.62rem;
    font-weight: 900;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    display: inline-block;
    margin-bottom: 0.6rem;
}
.featured-pill {
    background: var(--pink-accent);
    color: #000;
    font-size: 0.62rem;
    font-weight: 900;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    display: inline-block;
    margin-bottom: 0.6rem;
}
.enterprise-pill {
    background: var(--clip-cyan);
    color: #000;
    font-size: 0.62rem;
    font-weight: 900;
    padding: 2px 10px;
    border-radius: var(--radius-pill);
    display: inline-block;
    margin-bottom: 0.6rem;
}

.tier-header h3 {
    font-size: 1.25rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.4rem;
}
.price-tag {
    font-size: 2.2rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 0.4rem;
}
.price-tag span {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
}
.tier-header p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    min-height: 36px;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}
.feature-list li {
    font-size: 0.78rem;
    color: #d1d5db;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.feature-list li i {
    color: var(--emerald-accent);
    font-size: 0.75rem;
}

.plan-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 900;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.15s ease;
}
.plan-btn.active-btn { background: var(--emerald-accent); color: #000; }
.plan-btn.active-btn:hover { background: #99ff22; }
.plan-btn.pro-btn { background: var(--pink-accent); color: #000; }
.plan-btn.pro-btn:hover { background: var(--pink-hover); }
.plan-btn.enterprise-btn { background: var(--clip-cyan); color: #000; }
.plan-btn.enterprise-btn:hover { background: #67e8f9; }

@media (max-width: 900px) {
    .dash-metrics-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-cards-grid { grid-template-columns: 1fr; }
    .step-arrow { display: none; }
}


