/* ============================================
   Instagram Analyzer — Premium Dark Theme
   Для премиум бизнес-психолога
   ============================================ */

/* --- CSS Variables --- */
:root {
    color-scheme: light;
    
    /* Fonts */
    --font-serif: "Playfair Display", Georgia, Cambria, "Times New Roman", Times, serif;
    --font-sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;

    /* Backgrounds */
    --bg-primary: #FAF9F6;       /* Warm premium off-white */
    --bg-page: var(--bg-primary);
    --bg-secondary: #FFFFFF;     /* Clean white for cards */
    --bg-tertiary: rgba(250, 248, 245, 0.85);      /* Transparent warm stone/sidebar */
    --bg-card: #FFFFFF;
    --bg-card-hover: #FAF8F4;
    --border-subtle: #E6E1D8;    /* Muted warm gray border */
    --border-medium: #D1C9BD;
    
    /* Brand Accents */
    --gold: #8C7355;             /* Refined bronze/brass */
    --gold-light: #B8A183;
    --gold-dark: #66523B;
    --gold-glow: rgba(140, 115, 85, 0.12);
    --gold-glow-subtle: rgba(140, 115, 85, 0.05);
    
    /* Status Colors */
    --sage: #7C8C74;             /* Moss green for Reels */
    --sage-light: #A5B59E;
    --sage-dark: #586652;
    
    /* Text */
    --text-primary: #2C2A29;     /* Deep charcoal/stone */
    --text-secondary: #5E5B59;   /* Muted gray-brown */
    --text-tertiary: #6E6A66;    /* Improved WCAG AA contrast */
    --text-muted: #706C66;       /* Improved WCAG AA contrast (>= 4.5:1) */
    --accent-gold: #8C7355;
    
    --cream: #FAF8F5;
    --cream-dim: rgba(44, 42, 41, 0.7);
    
    /* UI States */
    --danger: #A64B49;           /* Muted terracotta/rust red */
    --danger-bg: rgba(166, 75, 73, 0.08);
    --success: #6E7F66;          /* Muted sage/success green */
    --success-bg: rgba(110, 127, 102, 0.08);
    --info: #617585;             /* Muted slate/info blue */
    --info-bg: rgba(97, 117, 133, 0.08);
    
    /* Content Types mapping */
    --expert-color: #5E5B59;     /* Clean gray-brown */
    --personal-color: #8C8884;   /* Warm light gray-brown */
    --selling-color: #8C7355;    /* Brand bronze/gold */
    --engagement-color: #7C8C74;  /* Brand sage green */
    
    /* Theme-aware UI Badges */
    --status-draft-bg: rgba(44, 42, 41, 0.05);
    --status-draft-text: var(--text-secondary);
    --status-planned-bg: rgba(94, 91, 89, 0.08);
    --status-planned-text: #5E5B59;
    --status-in-progress-bg: rgba(140, 115, 85, 0.08);
    --status-in-progress-text: #8C7355;
    --status-ready-bg: rgba(124, 140, 116, 0.08);
    --status-ready-text: #7C8C74;
    --status-scheduled-bg: rgba(140, 115, 85, 0.12);
    --status-scheduled-text: #8C7355;
    --status-published-bg: rgba(124, 140, 116, 0.12);
    --status-published-text: #7C8C74;

    --badge-gold-bg: rgba(140, 115, 85, 0.12);
    --badge-gold-text: var(--gold-dark);
    --badge-gold-border: rgba(140, 115, 85, 0.25);

    --tag-post-bg: rgba(140, 115, 85, 0.12);
    --tag-post-text: var(--gold-dark);
    --tag-reel-bg: rgba(124, 140, 116, 0.12);
    --tag-reel-text: var(--sage-dark);
    --tag-carousel-bg: rgba(94, 91, 89, 0.08);
    --tag-carousel-text: var(--text-secondary);

    --tag-expert-bg: rgba(94, 91, 89, 0.08);
    --tag-personal-bg: rgba(140, 136, 132, 0.08);
    --tag-selling-bg: rgba(140, 115, 85, 0.1);
    --tag-engagement-bg: rgba(124, 140, 116, 0.1);

    --bg-anchor-card: linear-gradient(135deg, rgba(140, 115, 85, 0.12) 0%, rgba(255, 255, 255, 0.9) 100%);
    --bg-banner: linear-gradient(135deg, rgba(140, 115, 85, 0.08) 0%, rgba(241, 237, 228, 0.6) 100%);
    --border-banner: 1px solid var(--border-medium);
    --text-banner-title: var(--text-primary);
    --shadow-banner: var(--shadow-sm);

    --scrollbar-thumb: rgba(44, 42, 41, 0.15);
    --scrollbar-thumb-hover: rgba(44, 42, 41, 0.25);
    --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%232C2A29' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    --bg-code: rgba(140, 115, 85, 0.08);
    --text-code: var(--gold-dark);
    --bg-obsidian: #0D0D12;
    --bg-translucent: rgba(44, 42, 41, 0.02);
    --bg-translucent-active: rgba(140, 115, 85, 0.06);

    /* Borders & Shadows */
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --shadow-sm: 0 2px 8px rgba(44, 42, 41, 0.04);
    --shadow-md: 0 6px 18px rgba(44, 42, 41, 0.06);
    --shadow-lg: 0 12px 36px rgba(44, 42, 41, 0.08);
    --shadow-glow: 0 0 20px var(--gold-glow);

    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --sidebar-width: 260px;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg-primary: #050608;
    --bg-page: #050608;
    --bg-secondary: #13131a;
    --bg-tertiary: rgba(26, 26, 36, 0.85);
    --bg-card: #121214;
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(255, 255, 255, 0.12);
    --shadow-md: 0 18px 30px rgba(0, 0, 0, 0.45);

    --gold: #c9a96e;
    --gold-light: #e0c992;
    --gold-dark: #a88a4e;
    --gold-glow: rgba(201, 169, 110, 0.3);
    --gold-glow-subtle: rgba(201, 169, 110, 0.08);

    --sage: #7d9b76;
    --sage-light: #a3c49a;
    --sage-dark: #5a7a52;

    --cream: #f5f0e8;
    --cream-dim: rgba(245, 240, 232, 0.7);

    --text-primary: #F5F0E8;
    --text-secondary: #C0B7AA;
    --text-tertiary: rgba(245, 240, 232, 0.58);
    --text-muted: #8F867A;
    --accent-gold: #C8A46A;

    --danger: #C88280;           /* Muted terracotta/rust red */
    --danger-bg: rgba(200, 130, 128, 0.12);
    --success: #92A68A;          /* Muted sage/success green */
    --success-bg: rgba(146, 166, 138, 0.12);
    --info: #8AA0B0;             /* Muted slate/info blue */
    --info-bg: rgba(138, 160, 176, 0.12);

    --expert-color: rgba(245, 240, 232, 0.6);     /* Clean muted text */
    --personal-color: rgba(245, 240, 232, 0.4);
    --selling-color: var(--gold-light);
    --engagement-color: var(--sage-light);

    --status-draft-bg: rgba(255, 255, 255, 0.08);
    --status-draft-text: var(--text-secondary);
    --status-planned-bg: rgba(255, 255, 255, 0.06);
    --status-planned-text: var(--text-secondary);
    --status-in-progress-bg: rgba(201, 169, 110, 0.12);
    --status-in-progress-text: var(--gold-light);
    --status-ready-bg: rgba(125, 155, 118, 0.12);
    --status-ready-text: var(--sage-light);
    --status-scheduled-bg: rgba(201, 169, 110, 0.15);
    --status-scheduled-text: var(--gold-light);
    --status-published-bg: rgba(125, 155, 118, 0.15);
    --status-published-text: var(--sage-light);

    --badge-gold-bg: rgba(201, 169, 110, 0.15);
    --badge-gold-text: var(--gold-light);
    --badge-gold-border: rgba(201, 169, 110, 0.3);

    --tag-post-bg: rgba(201, 169, 110, 0.15);
    --tag-post-text: var(--gold-light);
    --tag-reel-bg: rgba(125, 155, 118, 0.15);
    --tag-reel-text: var(--sage-light);
    --tag-carousel-bg: rgba(255, 255, 255, 0.08);
    --tag-carousel-text: var(--text-secondary);

    --tag-expert-bg: rgba(255, 255, 255, 0.08);
    --tag-personal-bg: rgba(255, 255, 255, 0.06);
    --tag-selling-bg: rgba(201, 169, 110, 0.12);
    --tag-engagement-bg: rgba(125, 155, 118, 0.12);

    --bg-anchor-card: linear-gradient(135deg, rgba(201, 169, 110, 0.08) 0%, rgba(30, 30, 40, 0.5) 100%);
    --bg-banner: linear-gradient(135deg, rgba(201, 169, 110, 0.12) 0%, rgba(19, 19, 26, 0.8) 100%);
    --border-banner: 1px solid rgba(201, 169, 110, 0.2);
    --text-banner-title: #FFFFFF;
    --shadow-banner: 0 8px 32px rgba(0, 0, 0, 0.3);

    --scrollbar-thumb: rgba(255, 255, 255, 0.12);
    --scrollbar-thumb-hover: rgba(255, 255, 255, 0.22);
    --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23f5f0e8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10z'/%3E%3C/svg%3E");
    --bg-code: rgba(255, 255, 255, 0.08);
    --text-code: var(--gold-light);
    --bg-obsidian: #0D0D12;
    --bg-translucent: rgba(255, 255, 255, 0.02);
    --bg-translucent-active: rgba(201, 169, 110, 0.08);

    --post-color: var(--gold);
    --reel-color: var(--sage);
    --carousel-color: var(--info);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px var(--gold-glow);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

h1, h2, h3, .logo-text, .section-header h1, .modal-header h2, .chart-title {
    font-family: var(--font-serif);
}

::selection {
    background: var(--gold);
    color: var(--bg-primary);
}

/* --- Scrollbar --- */
* {
    scrollbar-color: var(--scrollbar-thumb) transparent;
    scrollbar-width: thin;
}

@supports not (scrollbar-color: auto) {
    ::-webkit-scrollbar {
        width: 6px;
        height: 6px;
    }
    ::-webkit-scrollbar-track {
        background: transparent;
    }
    ::-webkit-scrollbar-thumb {
        background: var(--scrollbar-thumb);
        border-radius: 3px;
    }
    ::-webkit-scrollbar-thumb:hover {
        background: var(--scrollbar-thumb-hover);
    }
}

/* --- Sidebar --- */
.sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background: var(--bg-tertiary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition);
    overflow-y: auto;
    overflow-x: hidden;
}

.sidebar-header {
    padding: 24px 20px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 24px;
    color: var(--gold);
    filter: drop-shadow(0 0 8px var(--gold-glow));
}

.logo-text {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hamburger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger-btn span {
    width: 22px;
    height: 2px;
    background: var(--text-secondary);
    border-radius: 1px;
    transition: var(--transition);
}

.sidebar-nav {
    flex: 1;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-group-header {
    font-size: 10px;
    font-weight: 700;
    color: var(--gold-light, #E6C687);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 14px 16px 4px 16px;
    opacity: 0.75;
    user-select: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.nav-link.active {
    background: var(--gold-glow);
    color: var(--gold);
}

.nav-link.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--gold);
    border-radius: 0 3px 3px 0;
}
.nav-link.sub-link {
    padding: 8px 16px 8px 36px;
    font-size: 13px;
    opacity: 0.85;
}
.nav-link.sub-link.active::before {
    left: 20px;
    height: 14px;
}

.nav-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.nav-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
    stroke: currentColor;
    fill: none;
    color: var(--text-secondary);
    transition: color var(--transition);
}

.nav-link.active .nav-icon svg {
    color: var(--gold);
}

.nav-text {
    flex: 1;
}

.badge {
    background: var(--bg-tertiary);
    color: var(--text-tertiary);
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 24px;
    text-align: center;
}

.nav-link.active .badge {
    background: var(--gold-glow);
    color: var(--gold);
}

.sidebar-footer {
    padding: 12px;
}

.divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 0 8px 12px;
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.btn-sidebar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border: none;
    background: none;
    color: var(--text-tertiary);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    border-radius: var(--radius-xs);
    transition: var(--transition);
    width: 100%;
    text-align: left;
}

.btn-sidebar:hover {
    background: var(--bg-card);
    color: var(--text-secondary);
}

/* --- Main Content --- */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: 100vh;
    padding: 32px 40px;
    max-width: 1400px;
}

.section {
    display: none;
}
.section.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* --- Section Header --- */
.section-header {
    margin-bottom: 28px;
}

.section-header h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 400;
}

.section-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.section-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* --- Cards --- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 20px;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-medium);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 24px;
    border: none;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    letter-spacing: 0.03em;
}

.btn-primary,
.btn-main,
.btn-action,
.btn-gold,
button.btn-primary {
    background: #CBA86B !important;
    color: #0A0B10 !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 999px !important;
    box-shadow: 0 2px 10px rgba(203, 168, 107, 0.2) !important;
    transition: var(--transition) !important;
}

.btn-primary:hover,
.btn-main:hover,
.btn-action:hover,
.btn-gold:hover,
button.btn-primary:hover {
    background: #D8B578 !important;
    color: #000000 !important;
    box-shadow: 0 4px 16px rgba(203, 168, 107, 0.35) !important;
    transform: translateY(-1px) !important;
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--accent-gold);
}

.btn-danger {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid transparent;
}

.btn-danger:hover {
    border-color: var(--danger);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-icon {
    padding: 6px 8px;
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    border-radius: var(--radius-xs);
    font-size: 16px;
    transition: var(--transition);
}

.btn-icon:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* --- Stats Grid --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 20px 24px;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--gold-glow);
    box-shadow: 0 0 15px var(--gold-glow);
}

.stat-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: -0.02em;
}

.stat-value-sm {
    font-size: 18px;
}

/* --- Forms --- */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: flex;
    align-items: flex-end;
    min-height: 34px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xs);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 14px;
    transition: var(--transition);
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
    border-color: var(--danger) !important;
    background-color: var(--danger-bg) !important;
}

.form-input.is-invalid:focus,
.form-select.is-invalid:focus,
.form-textarea.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(166, 75, 73, 0.2) !important;
}


.form-select {
    cursor: pointer;
    appearance: none;
    background-image: var(--select-arrow);
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.form-select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.form-textarea {
    min-height: 80px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}

/* --- Switch Toggle --- */
.switch {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 20px;
}
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: var(--border-medium);
    transition: .3s;
    border-radius: 20px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-primary);
    transition: .3s;
    border-radius: 50%;
}
input:checked + .slider {
    background-color: var(--gold);
}
input:checked + .slider:before {
    transform: translateX(14px);
    background-color: var(--bg-primary);
}

/* --- Range Input Custom Styling --- */
.form-range {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 3px;
    outline: none;
    margin: 10px 0;
}
.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--gold);
    cursor: pointer;
    box-shadow: 0 0 5px var(--gold-glow);
    transition: var(--transition);
}
.form-range::-webkit-slider-thumb:hover {
    background: var(--gold-light);
    transform: scale(1.2);
}

/* --- Search --- */
.search-box {
    position: relative;
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    pointer-events: none;
}

.search-box .form-input {
    padding-left: 40px;
}

/* --- Filters --- */
.filters-bar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filters-bar .form-select {
    width: auto;
    min-width: 160px;
}

/* --- Data Table --- */
.table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border-subtle);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table thead {
    background: var(--bg-tertiary);
}

.data-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    border-bottom: 1px solid var(--border-subtle);
}

.data-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    vertical-align: middle;
}

.data-table tbody tr {
    transition: var(--transition);
}

.data-table tbody tr:hover {
    background: var(--bg-card-hover);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.td-topic {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.td-er {
    font-weight: 700;
    color: var(--gold);
}

.td-actions {
    display: flex;
    gap: 4px;
}

.empty-row td {
    padding: 0;
}

/* --- Tags --- */
.tag {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.tag-post {
    background: var(--tag-post-bg);
    color: var(--tag-post-text);
}
.tag-reel {
    background: var(--tag-reel-bg);
    color: var(--tag-reel-text);
}
.tag-carousel {
    background: var(--tag-carousel-bg);
    color: var(--tag-carousel-text);
}

.tag-expert {
    background: var(--tag-expert-bg);
    color: var(--expert-color);
}
.tag-personal {
    background: var(--tag-personal-bg);
    color: var(--personal-color);
}
.tag-selling {
    background: var(--tag-selling-bg);
    color: var(--selling-color);
}
.tag-engagement {
    background: var(--tag-engagement-bg);
    color: var(--engagement-color);
}

.tag-hashtag {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    cursor: default;
    margin: 3px;
}

.tag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 10px 0;
}

/* --- Competitors Grid --- */
.competitors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.competitor-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--transition);
    position: relative;
}

.competitor-card:hover {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-sm);
}

.competitor-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.competitor-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--sage));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--bg-primary);
    flex-shrink: 0;
}

.competitor-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.competitor-username {
    font-size: 13px;
    color: var(--text-tertiary);
}

.competitor-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 10px;
}

.competitor-stat {
    text-align: center;
}

.competitor-stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--gold);
}

.competitor-stat-label {
    font-size: 11px;
    color: var(--text-tertiary);
}

.competitor-category {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.competitor-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: var(--transition);
}

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

/* --- Charts --- */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 16px;
}

.chart-container {
    min-height: 300px;
    position: relative;
}

.chart-container-wide {
    grid-column: 1 / -1;
}

.chart-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* --- Content Plan --- */
.content-plan-grid {
    width: 100%;
}

.plan-day-header {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 8px;
}

.plan-day {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 12px;
    min-height: 120px;
    transition: var(--transition);
}

.plan-day:hover {
    border-color: var(--border-medium);
}

.plan-day-number {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.plan-day-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.plan-item-format {
    font-size: 11px;
    font-weight: 500;
}

.plan-item-topic {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.plan-legend {
    display: flex;
    gap: 20px;
    margin-top: 4px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-tertiary);
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-expert {
    background: var(--expert-color);
}
.legend-personal {
    background: var(--personal-color);
}
.legend-selling {
    background: var(--selling-color);
}

/* --- Guide --- */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 16px;
}

.guide-step {
    position: relative;
    padding-top: 28px;
}

.guide-step-number {
    position: absolute;
    top: -1px;
    left: 24px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--bg-primary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.guide-step h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.guide-step p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.guide-list {
    list-style: none;
    padding: 0;
}

.guide-list li {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 4px 0;
    padding-left: 8px;
    border-left: 2px solid var(--border-subtle);
    margin-bottom: 4px;
}

.guide-tip {
    font-size: 13px !important;
    color: var(--gold) !important;
    font-style: italic;
    margin-top: 8px;
}

.guide-step-cta {
    border: 1px solid var(--gold-glow);
    background: var(--gold-glow-subtle);
}

.guide-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    width: 100%;
}

.guide-actions button {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
}

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

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.empty-state h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    color: var(--text-tertiary);
}

/* --- Modal --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius);
    width: 90%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 0;
}

.modal-header h2 {
    font-size: 18px;
    font-weight: 600;
}

.modal-close-btn {
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-size: 20px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-xs);
    transition: var(--transition);
}

.modal-close-btn:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.modal-body {
    padding: 20px 24px 24px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* --- Toast --- */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: var(--bg-secondary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    padding: 14px 20px;
    font-size: 14px;
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
    animation: slideUp 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 360px;
}

.toast-success {
    border-left: 3px solid var(--success);
}
.toast-error {
    border-left: 3px solid var(--danger);
}
.toast-info {
    border-left: 3px solid var(--info);
}

/* --- Progress Bar --- */
.progress-bar {
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--gold), var(--sage));
    transition: width var(--transition-slow);
}

/* --- Animations --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease both;
}

.slide-up {
    animation: slideUp 0.4s ease both;
}

.fade-in:nth-child(2) { animation-delay: 0.05s; }
.fade-in:nth-child(3) { animation-delay: 0.1s; }
.fade-in:nth-child(4) { animation-delay: 0.15s; }
.fade-in:nth-child(5) { animation-delay: 0.2s; }
.fade-in:nth-child(6) { animation-delay: 0.25s; }

/* --- Focus --- */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .main-content {
        padding: 24px 24px;
    }

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

    .content-plan-grid {
        display: block;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: 280px;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .hamburger-btn {
        display: flex;
        position: fixed;
        top: 16px;
        left: 16px;
        z-index: 101;
        background: var(--bg-secondary);
        padding: 10px;
        border-radius: var(--radius-xs);
        border: 1px solid var(--border-subtle);
    }

    .main-content {
        margin-left: 0;
        padding: 85px 16px 24px;
    }

    .section-header h1 {
        font-size: 22px;
    }

    .section-header-top {
        flex-direction: column;
    }

    .filters-bar {
        flex-direction: column;
    }

    .filters-bar .form-select {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

    .content-plan-grid {
        display: block;
    }

    .plan-day-header:nth-child(n+3) {
        display: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .toast-container {
        left: 16px;
        right: 16px;
    }

    .toast {
        max-width: 100%;
    }
}

/* --- Print --- */
@media print {
    .sidebar,
    .btn,
    .hamburger-btn,
    .modal-overlay,
    .toast-container {
        display: none !important;
    }

    .main-content {
        margin-left: 0;
        padding: 0;
    }

    body {
        background: white;
        color: black;
    }

    .card,
    .stat-card,
    .plan-day {
        border: 1px solid #ddd;
        background: white;
    }
}

/* --- Progress Bar --- */
.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--sage), var(--gold));
    border-radius: 3px;
    transition: width 0.4s ease;
    position: relative;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* --- Guide List --- */
.guide-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}

.guide-list li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.guide-tip {
    font-size: 12px;
    color: var(--sage);
    margin-top: 8px;
    padding: 6px 10px;
    background: rgba(125, 155, 118, 0.08);
    border-radius: var(--radius-xs);
    border-left: 2px solid var(--sage);
}

/* --- API Fetch Button on Competitor Cards --- */
.btn-fetch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    font-size: 11px;
    background: rgba(125, 155, 118, 0.15);
    color: var(--sage-light);
    border: 1px solid rgba(125, 155, 118, 0.3);
    border-radius: var(--radius-xs);
    cursor: pointer;
    transition: var(--transition);
}

.btn-fetch:hover {
    background: rgba(125, 155, 118, 0.25);
    border-color: var(--sage);
}

/* --- Code styling in guide --- */
code {
    font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.85em;
    color: var(--gold-light);
}

/* --- Batch log --- */
#api-batch-log > div {
    padding: 4px 0;
    border-bottom: 1px solid var(--border-subtle);
    animation: fadeIn 0.3s ease;
}

#api-batch-log > div:last-child {
    border-bottom: none;
}

/* --- Carousel References --- */
.ref-thumb {
    position: relative;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-medium);
    transition: var(--transition);
}

.ref-thumb:hover {
    transform: scale(1.05);
    border-color: var(--gold);
}

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

.ref-thumb-remove {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    background: rgba(0,0,0,0.8);
    color: var(--danger);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.2);
}

.ref-thumb-remove:hover {
    background: var(--danger);
    color: white;
}

/* --- Competitor Tab Buttons --- */
.comp-tab {
    color: var(--text-tertiary);
    text-decoration: none;
    font-weight: 500;
    padding-bottom: 8px;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.comp-tab:hover {
    color: var(--text-primary);
}

.comp-tab.active {
    color: var(--text-primary);
    border-bottom: 2px solid var(--gold);
}

/* ============================================
   Reels Creator & Visuals
   ============================================ */
.reels-workspace {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    margin-top: 20px;
}

@media (max-width: 1024px) {
    .reels-workspace {
        grid-template-columns: 1fr;
    }
}

.reels-viewport-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-medium);
    padding: 24px;
    position: relative;
    border-radius: var(--radius);
}

.reels-viewport {
    width: 304px;
    height: 540px;
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.reels-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.reels-recording-overlay {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 6px 12px;
    border-radius: var(--radius-xs);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
    z-index: 10;
}

.reels-recording-dot {
    width: 8px;
    height: 8px;
    background: var(--danger);
    border-radius: 50%;
    animation: pulse-red 1s infinite alternate;
}

@keyframes pulse-red {
    0% { transform: scale(0.9); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 1; }
}

.reels-progress-container {
    width: 100%;
    margin-top: 16px;
}

.reels-progress-bar-wrapper {
    background: rgba(255, 255, 255, 0.08);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}

.reels-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    transition: width 0.1s linear;
}

/* ============================================
   Post Writer Style Classes
   ============================================ */
.post-writer-workspace {
    display: flex;
    gap: 24px;
    margin-top: 20px;
    align-items: stretch;
}
.post-writer-left-col {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.post-writer-editor-card {
    flex: 1.2;
    min-width: 320px;
}
.post-drafts-card {
    width: 280px;
    min-width: 60px;
    max-width: 500px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: width 0.15s ease, padding 0.15s ease;
}
.post-drafts-resizer {
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    cursor: col-resize;
    background: transparent;
    z-index: 5;
    transition: background 0.2s;
}
.post-drafts-resizer:hover, .post-drafts-resizer.dragging {
    background: var(--gold);
    opacity: 0.7;
}

/* Свернутое состояние панели постов */
.post-drafts-card.collapsed {
    width: 60px !important;
    padding: 16px 8px !important;
}
.post-drafts-card.collapsed .post-drafts-resizer {
    display: none;
}
.post-drafts-card.collapsed h3 {
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.post-drafts-card.collapsed h3 #post-new-draft-btn,
.post-drafts-card.collapsed #post-drafts-list {
    display: none !important;
}
.post-drafts-card.collapsed h3 .drafts-title-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    margin-top: 10px;
    letter-spacing: 2px;
    font-size: 11px;
}
.post-drafts-card.collapsed h3 #post-drafts-toggle-btn {
    transform: rotate(-90deg);
}

@media (max-width: 1024px) {
    .post-writer-workspace {
        flex-direction: column;
    }
    .post-drafts-card {
        width: 100% !important;
        max-width: 100% !important;
    }
    .post-drafts-resizer {
        display: none;
    }
}

.formatting-toolbar {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    padding: 8px;
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.formatting-btn {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-xs);
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
}

.formatting-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--border-medium);
}

.post-editor-textarea {
    width: 100%;
    height: 400px;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.6;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    padding: 16px;
    color: var(--text-primary);
    resize: vertical;
}

.post-editor-textarea:focus {
    border-color: var(--gold);
    outline: none;
    box-shadow: 0 0 0 2px var(--gold-glow);
}

/* ============================================
   Trend & Competitor Analyzer
   ============================================ */
.analyzer-dashboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.analyzer-tabs-header {
    display: flex;
    gap: 12px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 8px;
    margin-top: 16px;
}

.analyzer-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.analyzer-tab-btn:hover {
    color: var(--text-primary);
}

.analyzer-tab-btn.active {
    color: var(--text-primary);
    border-bottom-color: var(--gold);
}

.analyzer-tab-content {
    display: none;
    margin-top: 16px;
}

.analyzer-tab-content.active {
    display: block;
}

.trend-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.pain-point-item {
    padding: 16px;
    background: rgba(229, 115, 115, 0.03);
    border: 1px solid rgba(229, 115, 115, 0.1);
    border-left: 4px solid var(--danger);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}


/* --- Topics Section --- */
.topics-pillars-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    max-height: 120px;
    overflow-y: auto;
    padding: 8px;
    background: rgba(10, 11, 16, 0.6);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.topics-preset-domains {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
}

.topics-preset-domain-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.topics-preset-domain-chip:hover {
    background: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.3);
    color: var(--text-primary);
}

.topics-preset-domain-chip.active {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold);
    color: var(--gold-light);
    font-weight: 600;
    box-shadow: 0 1px 6px rgba(212, 175, 55, 0.15);
}

.topics-domain-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    background: var(--gold);
    color: #0d0e12;
    font-size: 9.5px;
    font-weight: 700;
    border-radius: 4px;
}

.topics-pillar-chip {
    padding: 3px 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 5px;
    font-size: 11px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.12s ease;
    user-select: none;
}

.topics-pillar-chip:hover {
    background: rgba(212, 175, 55, 0.08);
    border-color: rgba(212, 175, 55, 0.25);
    color: var(--text-primary);
}

.topics-pillar-chip.active {
    background: rgba(212, 175, 55, 0.25);
    border-color: var(--gold);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 1px 8px rgba(212, 175, 55, 0.2);
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.topic-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.topic-card:hover {
    border-color: var(--gold-glow);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.anchor-card {
    border-color: var(--gold) !important;
    background: var(--bg-anchor-card) !important;
}
.topic-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
}
.topic-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.4;
}
.topic-score-badge {
    background: var(--badge-gold-bg);
    color: var(--badge-gold-text);
    border: 1px solid var(--badge-gold-border);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.topic-angle {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}
.topic-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
}
.topic-badge {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: var(--radius-xs);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
    text-transform: uppercase;
    font-weight: 500;
}
.topic-badge.status-new {
    border-color: var(--sage);
    color: var(--sage-dark);
    background: rgba(124, 140, 116, 0.05);
}
.topic-badge.status-selected {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(140, 115, 85, 0.05);
}
.topic-badge.status-used {
    color: var(--text-muted);
    background: transparent;
    border-color: var(--border-subtle);
}
.topic-badge.status-archived {
    color: var(--text-muted);
    background: transparent;
    border-color: var(--border-subtle);
    text-decoration: line-through;
}

.topic-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}
.topic-actions-row {
    display: flex;
    gap: 6px;
    width: 100%;
}
@media (max-width: 1350px) {
    .topic-actions-row {
        flex-direction: column;
    }
}
.topic-util-btn {
    flex: 1;
    padding: 6px 0;
    border: 1px solid var(--border-subtle);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border-radius: var(--radius-xs);
    cursor: pointer;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    transition: var(--transition);
}
.topic-util-btn:hover {
    border-color: var(--border-medium);
    background: var(--bg-secondary);
    color: var(--text-primary);
}
.topic-util-btn.active {
    background: var(--gold-glow) !important;
    border-color: var(--gold) !important;
    color: var(--gold) !important;
}
.topic-btn {
    flex: 1;
    padding: 6px 8px;
    font-size: 11px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-medium);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}
.topic-btn svg, .btn svg, .btn-secondary svg {
    flex-shrink: 0;
    pointer-events: none;
}
.topic-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}
.topic-btn.primary {
    background: var(--gold);
    color: var(--bg-primary);
    border-color: var(--gold);
    font-weight: 600;
}
.topic-btn.primary:hover {
    background: var(--gold-light);
    color: var(--bg-primary);
}
.topic-btn.fav-btn.active {
    color: var(--gold);
    border-color: var(--gold);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.topics-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
}

.topics-search-wrapper {
    flex: 1.5;
    min-width: 280px;
}

.topics-filters-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    flex: 2;
    justify-content: flex-end;
}

.topics-filters-group .form-select,
.topics-filters-group .btn {
    flex: 1;
    min-width: 130px;
    width: auto;
}

@media (max-width: 1024px) {
    .topics-filters-group {
        width: 100%;
        flex: none;
        justify-content: stretch;
    }
    .topics-filters-group .form-select,
    .topics-filters-group .btn {
        flex: 1;
        min-width: calc(50% - 10px);
    }
    .topics-search-wrapper {
        width: 100%;
    }
}

/* --- New Content Plan Planning Hub --- */
.content-plan-table-container {
    overflow-x: auto;
    width: 100%;
    margin-top: 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 8px;
}

.plan-table {
    width: 100%;
    min-width: 950px;
    border-collapse: collapse;
    font-size: 13px;
    color: var(--text-secondary);
}

.plan-table th {
    text-align: left;
    padding: 12px 16px;
    color: var(--gold);
    font-weight: 600;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.plan-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: middle;
}

.plan-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.plan-table tr:last-child td {
    border-bottom: none;
}

.plan-topic-title {
    font-weight: 600;
    color: var(--cream);
    margin-bottom: 4px;
    font-size: 13px;
}

.plan-topic-pillar {
    font-size: 11px;
    color: var(--text-muted);
}

.priority-badge {
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    display: inline-block;
}

.priority-high {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(166, 75, 73, 0.2);
}

.priority-medium {
    background: var(--badge-gold-bg);
    color: var(--gold);
    border: 1px solid rgba(140, 115, 85, 0.2);
}

.priority-low {
    background: var(--info-bg);
    color: var(--info);
    border: 1px solid rgba(97, 117, 133, 0.2);
}

.status-badge {
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    display: inline-block;
}

.status-draft { background: var(--status-draft-bg); color: var(--status-draft-text); }
.status-planned { background: var(--status-planned-bg); color: var(--status-planned-text); }
.status-in_progress { background: var(--status-in-progress-bg); color: var(--status-in-progress-text); }
.status-ready { background: var(--status-ready-bg); color: var(--status-ready-text); }
.status-scheduled { background: var(--status-scheduled-bg); color: var(--status-scheduled-text); }
.status-published { background: var(--status-published-bg); color: var(--status-published-text); }

.format-cell-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.format-cell-badge.empty {
    border: 1px dashed var(--border-medium);
    color: var(--text-muted);
}

.format-cell-badge.empty:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: var(--gold-glow-subtle);
}

.format-cell-badge.filled {
    background: var(--badge-gold-bg);
    color: var(--badge-gold-text);
    border: 1px solid var(--badge-gold-border);
}

.format-cell-badge.filled:hover {
    transform: scale(1.08);
    box-shadow: 0 0 8px var(--gold-glow);
}

.is-entitlement-hidden {
    display: none !important;
}

/* Mobile Sidebar Backdrop Overlay */
.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99;
    backdrop-filter: blur(2px);
    transition: opacity 0.3s ease;
}
.sidebar-backdrop.active {
    display: block;
}

/* Accordions details summary reset and arrow rotation */
.accordion-item summary {
    list-style: none;
}
.accordion-item summary::-webkit-details-marker {
    display: none;
}
.accordion-item summary:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: -2px;
}
.accordion-item[open] .acc-icon {
    transform: rotate(90deg);
}

/* Likert Option Modern Cards */
.likert-group {
    display: flex;
    gap: 8px;
}
.likert-option {
    cursor: pointer;
    position: relative;
    user-select: none;
    display: inline-block;
}
.likert-radio {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
}
.likert-card-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}
.likert-option:hover .likert-card-box {
    border-color: var(--gold);
    color: var(--text-primary);
    background: var(--gold-glow-subtle);
}
.likert-radio:checked + .likert-card-box {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--bg-primary);
    box-shadow: 0 0 8px var(--gold-glow);
}
.likert-radio:focus-visible + .likert-card-box {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Tooltip and Info Icon Styling */
.tooltip-container {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    margin-left: 6px;
    font-size: 13px;
    color: var(--text-muted);
    vertical-align: middle;
    transition: color 0.2s ease;
}
.tooltip-container:hover {
    color: var(--gold);
}
.tooltip-text {
    visibility: hidden;
    width: 260px;
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    text-align: left;
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    padding: 10px 12px;
    position: absolute;
    z-index: 100;
    bottom: 130%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    font-size: 11px;
    font-weight: normal;
    line-height: 1.45;
    box-shadow: 0 6px 16px rgba(0,0,0,0.6);
    pointer-events: none;
}
.tooltip-container:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Route Slide-up/Fade-in Animation */
.route-fade-in {
    animation: routeFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Premium Visual transitions */
body, .sidebar, .card, .btn, input, select, textarea {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Layout Utility Classes */
.flex-col {
    display: flex !important;
    flex-direction: column !important;
}
.flex-row {
    display: flex !important;
    flex-direction: row !important;
}
.align-center {
    align-items: center !important;
}
.justify-between {
    justify-content: space-between !important;
}
.gap-4 { gap: 4px !important; }
.gap-6 { gap: 6px !important; }
.gap-8 { gap: 8px !important; }
.gap-10 { gap: 10px !important; }
.gap-12 { gap: 12px !important; }
.gap-16 { gap: 16px !important; }

.card-section {
    padding: 12px 16px !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    margin-bottom: 8px !important;
}

/* Typographic Scale Classes */
.text-h1 {
    font-family: var(--font-serif) !important;
    font-size: 42px !important;
    line-height: 1.15 !important;
    font-weight: 600 !important;
    color: var(--text-primary) !important;
}
.text-h2 {
    font-family: var(--font-serif) !important;
    font-size: 30px !important;
    line-height: 1.2 !important;
    font-weight: 500 !important;
    color: var(--text-primary) !important;
}
.text-h3 {
    font-family: var(--font-serif) !important;
    font-size: 20px !important;
    line-height: 1.2 !important;
    font-weight: 500 !important;
    color: var(--accent-gold) !important;
}
.text-body {
    font-family: var(--font-sans) !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    font-weight: 400 !important;
    color: var(--text-secondary) !important;
}
.text-caption {
    font-family: var(--font-sans) !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    font-weight: 400 !important;
    color: var(--text-muted) !important;
}
.text-small {
    font-family: var(--font-sans) !important;
    font-size: 11px !important;
    color: var(--text-muted) !important;
}
.text-accent {
    font-family: var(--font-serif) !important;
    font-style: italic !important;
    color: var(--accent-gold) !important;
}

/* Header Icon SVGs */
.header-icon-svg {
    width: 1.1em;
    height: 1.1em;
    stroke: var(--text-primary);
    stroke-width: 1.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
    margin-right: 0.3em;
    display: inline-block;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* Guide Step Path Styles */
.guide-steps-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 16px;
}

.guide-step-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 20px;
    position: relative;
    transition: all 0.25s ease;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.guide-step-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    border-color: var(--gold-light);
}

.guide-step-badge {
    background: rgba(201, 169, 110, 0.12);
    border: 1px solid var(--gold);
    color: var(--gold-light);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 4px;
}

.guide-step-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 4px;
}

.guide-step-icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.guide-step-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.guide-step-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.guide-step-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Workspace Switcher Cards on Dashboard */
.workspace-card-link {
    cursor: pointer;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    text-align: left;
}

.workspace-card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    border-color: var(--gold-light);
}

.workspace-card-link:active {
    transform: translateY(0) scale(0.98);
}

.workspace-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.workspace-card-title {
    margin: 0;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.workspace-card-link:hover .workspace-card-title {
    color: var(--gold-light);
}

.workspace-card-description {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.5;
    flex-grow: 1;
}

.workspace-card-action {
    margin-top: 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.workspace-card-action::after {
    content: '→';
    display: inline-block;
    transition: transform 0.2s ease;
}

.workspace-card-link:hover .workspace-card-action::after {
    transform: translateX(4px);
}

/* Premium Button Styles (matching psy-korobov.ru website design) */
.btn-theme-korobov {
    align-items: center !important;
    background: linear-gradient(135deg, #c5a880f2, #9e845cf2) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 40px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    color: #0d0d0d !important;
    cursor: pointer !important;
    display: inline-flex !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    letter-spacing: 0.08em !important;
    justify-content: center !important;
    padding: 6px 16px !important;
    text-transform: uppercase !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    gap: 6px;
    height: 28px;
    min-height: 28px;
    line-height: 1;
    text-decoration: none !important;
}

.btn-theme-korobov:hover {
    background: linear-gradient(135deg, #d4b993f2, #c5a880f2) !important;
    border-color: rgba(197, 168, 128, 0.4) !important;
    box-shadow: 0 8px 20px rgba(197, 168, 128, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    color: #0d0d0d !important;
    transform: translateY(-2px) !important;
}

.btn-theme-korobov:active {
    transform: translateY(0) !important;
}

.btn-theme-korobov:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

.btn-theme-korobov-outline {
    align-items: center !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 40px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15) !important;
    color: var(--text-primary) !important;
    cursor: pointer !important;
    display: inline-flex !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    letter-spacing: 0.08em !important;
    justify-content: center !important;
    padding: 6px 16px !important;
    text-transform: uppercase !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    gap: 6px;
    height: 28px;
    min-height: 28px;
    line-height: 1;
    text-decoration: none !important;
}

.btn-theme-korobov-outline:hover {
    background: rgba(197, 168, 128, 0.08) !important;
    border-color: rgba(197, 168, 128, 0.5) !important;
    box-shadow: 0 8px 20px rgba(197, 168, 128, 0.12) !important;
    color: var(--gold-light) !important;
    transform: translateY(-2px) !important;
}

.btn-theme-korobov-outline:active {
    transform: translateY(0) !important;
}

/* --- Social Buttons --- */
.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.social-btn:hover {
    color: var(--gold-light) !important;
    border-color: rgba(197, 168, 128, 0.5) !important;
    background: rgba(197, 168, 128, 0.08) !important;
    box-shadow: 0 4px 12px rgba(197, 168, 128, 0.15) !important;
    transform: translateY(-2px);
}

/* --- Global Icon Layout Rules --- */
[data-icon] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    vertical-align: middle;
    flex-shrink: 0;
}

[data-icon] svg {
    stroke: currentColor;
    fill: none;
    display: block;
}

/* --- Carousel Creator Integrated Styles --- */
:root {
    --gold-primary: #c9a96e;
    --gold-hover: #e0be82;
    --gold-glow: rgba(201, 169, 110, 0.25);
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
}

/* Three-column layout for editor */
.editor-grid {
    display: grid;
    grid-template-columns: 240px 1.2fr 1fr;
    gap: 20px;
    margin-top: 15px;
    align-items: stretch;
}

@media (max-width: 1200px) {
    .editor-grid {
        grid-template-columns: 1.2fr 1fr;
    }
    .slide-sidebar {
        grid-column: span 2;
        max-height: 180px !important;
        flex-direction: row !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
    }
}

@media (max-width: 900px) {
    .editor-grid {
        grid-template-columns: 1fr;
    }
    .slide-sidebar {
        grid-column: span 1;
    }
}

/* Slide Sidebar List */
.slide-sidebar {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 4px;
}

.slide-item {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: grab;
    user-select: none;
    transition: var(--transition);
}

.slide-item:hover {
    border-color: var(--gold-primary);
    background-color: var(--bg-card);
}

.slide-item.active {
    border-color: var(--gold-primary);
    background: var(--gold-glow-subtle);
    box-shadow: 0 0 10px var(--gold-glow);
}

.slide-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.slide-item-num {
    font-size: 11px;
    font-weight: 700;
    color: var(--gold-primary);
}

.slide-item-title {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.slide-item-type-badge {
    font-size: 9px;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slide-drag-handle {
    color: var(--text-tertiary);
    cursor: grab;
    padding: 0 4px;
    font-size: 14px;
}

/* Editor Panel */
.editor-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 4px;
}

.form-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Visual Slide Preview Frame */
.slide-preview-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}
.slide-canvas {
    width: 320px;
    height: 400px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
    cursor: zoom-in;
}
.slide-canvas::after {
    content: '🔍 Увеличить';
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.75);
    color: var(--gold-light, #f3e5ab);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    pointer-events: none;
    backdrop-filter: blur(4px);
    z-index: 100;
}
.slide-canvas:hover::after {
    opacity: 1;
    transform: translateY(0);
}
#zoom-slide-canvas {
    cursor: default !important;
}
#zoom-slide-canvas::after {
    display: none !important;
}

/* Theme presets for live preview canvas */
.slide-canvas.theme-obsidian {
    background-color: #0b0b0b;
    border: 1px solid #1E1E1E;
}

.slide-canvas.theme-emerald {
    background-color: #0c1a14;
    border: 1px solid #182e25;
    --font-serif: 'Cormorant Garamond', serif !important;
    --font-sans: 'Montserrat', sans-serif !important;
}

.slide-canvas.theme-burgundy {
    background-color: #21080d;
    border: 1px solid #331218;
    --font-serif: 'Playfair Display', serif !important;
    --font-sans: 'Plus Jakarta Sans', sans-serif !important;
}

.slide-canvas.theme-cream {
    background-color: #f7f4eb;
    border: 1px solid #e1dbcb;
    --text-secondary: #4a4a4a;
    --text-tertiary: #4a4a4a;
    --gold-primary: #8b7355;
    --font-serif: 'Lora', serif !important;
    --font-sans: 'Montserrat', sans-serif !important;
}

.slide-canvas.theme-cream .preview-title-serif,
.slide-canvas.theme-cream .preview-block-lead,
.slide-canvas.theme-cream .preview-num-title,
.slide-canvas.theme-cream .preview-cta-title,
.slide-canvas.theme-cream .preview-cta-codeword,
.slide-canvas.theme-cream .preview-quote-text,
.slide-canvas.theme-cream .preview-checklist-text,
.slide-canvas.theme-cream .preview-versus-text,
.slide-canvas.theme-cream .preview-statistic-number,
.slide-canvas.theme-cream .preview-statistic-label,
.slide-canvas.theme-cream .preview-statistic-desc,
.slide-canvas.theme-cream .preview-timeline-label,
.slide-canvas.theme-cream .preview-timeline-desc,
.slide-canvas.theme-cream .preview-faq-text,
.slide-canvas.theme-cream .preview-warning-body,
.slide-canvas.theme-cream .preview-core-definition,
.slide-canvas.theme-cream .preview-resource-title,
.slide-canvas.theme-cream .preview-resource-desc,
.slide-canvas.theme-cream .preview-mythfact-text {
    color: #1a1a1a !important;
}

.slide-canvas.theme-cream .preview-subtitle,
.slide-canvas.theme-cream .preview-block-body,
.slide-canvas.theme-cream .preview-num-body,
.slide-canvas.theme-cream .preview-case-body1,
.slide-canvas.theme-cream .preview-case-body2,
.slide-canvas.theme-cream .preview-cta-body,
.slide-canvas.theme-cream .preview-cta-subcode,
.slide-canvas.theme-cream .preview-cta-proof,
.slide-canvas.theme-cream .preview-quote-author {
    color: #4a4a4a !important;
}

.slide-canvas.theme-cream .preview-footer-signature {
    color: #1a1a1a !important;
}

.slide-canvas.theme-cream .preview-footer-instagram {
    color: #4a4a4a !important;
}

/* 6 New visual themes */
.slide-canvas.theme-sapphire {
    background-color: #0a1128;
    border: 2px solid #1a233d;
    --gold-primary: #c9a96e;
    --font-serif: 'Space Grotesk', sans-serif !important;
    --font-sans: 'Inter', sans-serif !important;
}

.slide-canvas.theme-sapphire .preview-category-tag {
    border-left: 3px solid #c9a96e;
    padding-left: 8px;
    letter-spacing: 1.5px;
}

.slide-canvas.theme-sapphire .preview-core-statement {
    border-left: none;
    border-right: none;
    border-top: 1.5px solid #c9a96e;
    border-bottom: 1.5px solid #c9a96e;
    padding: 16px 0;
}

.slide-canvas.theme-sapphire .preview-cta-codebox {
    border-radius: 20px !important;
    background: rgba(201, 169, 110, 0.08) !important;
}

.slide-canvas.theme-amethyst {
    background-color: #1a0f2e;
    border: 1px solid #d4af37;
    border-radius: 16px;
    --gold-primary: #d4af37;
    --font-serif: 'Cinzel', serif !important;
    --font-sans: 'Cormorant Garamond', serif !important;
}

.slide-canvas.theme-amethyst .preview-category-tag {
    color: #d4af37 !important;
    text-transform: lowercase;
    font-style: italic;
    letter-spacing: 0.5px;
}

.slide-canvas.theme-amethyst .preview-quote-marks {
    font-size: 42px !important;
    color: #d4af37 !important;
}

.slide-canvas.theme-amethyst .preview-quote-text {
    font-size: 12px !important;
    line-height: 1.55 !important;
}

.slide-canvas.theme-slate {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 4px;
    --gold-primary: #cbd5e1;
    --font-serif: 'Plus Jakarta Sans', sans-serif !important;
    --font-sans: 'Plus Jakarta Sans', sans-serif !important;
}

.slide-canvas.theme-slate .preview-category-tag {
    border: 1px solid #cbd5e1;
    padding: 3px 8px;
    border-radius: 2px;
    display: inline-block;
    font-size: 7px;
    letter-spacing: 1.5px;
}

.slide-canvas.theme-slate .preview-core-statement {
    border-left: 2px solid #cbd5e1;
    border-right: none;
    padding-left: 15px;
    align-items: flex-start !important;
    text-align: left !important;
}

.slide-canvas.theme-charcoal {
    background-color: #121214;
    border: 4px solid #27272a;
    border-radius: 0px;
    --gold-primary: #e5e7eb;
    --font-serif: 'Outfit', sans-serif !important;
    --font-sans: 'Courier New', Courier, monospace !important;
}

.slide-canvas.theme-charcoal .preview-category-tag {
    background: #e5e7eb;
    color: #121214 !important;
    padding: 4px 8px;
    border-radius: 0px;
    font-weight: 800;
    letter-spacing: 1px;
}

.slide-canvas.theme-charcoal .preview-core-statement {
    border: 2px solid #e5e7eb;
    background: #1e1e20;
    padding: 20px;
}

.slide-canvas.theme-charcoal .preview-quote-container {
    border-left: 4px solid #e5e7eb;
    padding-left: 12px;
    text-align: left !important;
}

.slide-canvas.theme-charcoal .preview-quote-marks {
    display: none !important;
}

.slide-canvas.theme-charcoal .preview-cta-codebox {
    background: #e5e7eb !important;
    border: none !important;
    border-radius: 0px !important;
}

.slide-canvas.theme-charcoal .preview-cta-codeword {
    color: #121214 !important;
}

.slide-canvas.theme-charcoal .preview-checklist-icon {
    visibility: hidden;
    position: relative;
    width: 8px;
}

.slide-canvas.theme-charcoal .preview-checklist-icon::after {
    content: "■";
    visibility: visible;
    position: absolute;
    left: 0;
    top: -2px;
    color: #e5e7eb;
}

.slide-canvas.theme-terracotta {
    background-color: #f4eae1;
    border: 3px solid #e3d4c5;
    border-radius: 20px;
    --gold-primary: #a34e36;
    --text-secondary: #735b51;
    --text-tertiary: #735b51;
    --font-serif: 'Fraunces', serif !important;
    --font-sans: 'Outfit', sans-serif !important;
}

.slide-canvas.theme-terracotta .preview-title-serif,
.slide-canvas.theme-terracotta .preview-block-lead,
.slide-canvas.theme-terracotta .preview-num-title,
.slide-canvas.theme-terracotta .preview-cta-title,
.slide-canvas.theme-terracotta .preview-cta-codeword,
.slide-canvas.theme-terracotta .preview-quote-text,
.slide-canvas.theme-terracotta .preview-checklist-text,
.slide-canvas.theme-terracotta .preview-versus-text,
.slide-canvas.theme-terracotta .preview-statistic-number,
.slide-canvas.theme-terracotta .preview-statistic-label,
.slide-canvas.theme-terracotta .preview-statistic-desc,
.slide-canvas.theme-terracotta .preview-timeline-label,
.slide-canvas.theme-terracotta .preview-timeline-desc,
.slide-canvas.theme-terracotta .preview-faq-text,
.slide-canvas.theme-terracotta .preview-warning-body,
.slide-canvas.theme-terracotta .preview-core-definition,
.slide-canvas.theme-terracotta .preview-resource-title,
.slide-canvas.theme-terracotta .preview-resource-desc,
.slide-canvas.theme-terracotta .preview-mythfact-text {
    color: #4a2c1e !important;
}

.slide-canvas.theme-terracotta .preview-subtitle,
.slide-canvas.theme-terracotta .preview-block-body,
.slide-canvas.theme-terracotta .preview-num-body,
.slide-canvas.theme-terracotta .preview-case-body1,
.slide-canvas.theme-terracotta .preview-case-body2,
.slide-canvas.theme-terracotta .preview-cta-body,
.slide-canvas.theme-terracotta .preview-cta-subcode,
.slide-canvas.theme-terracotta .preview-cta-proof,
.slide-canvas.theme-terracotta .preview-quote-author {
    color: #735b51 !important;
}

.slide-canvas.theme-terracotta .preview-footer-signature {
    color: #4a2c1e !important;
}

.slide-canvas.theme-terracotta .preview-footer-instagram {
    color: #735b51 !important;
}

.slide-canvas.theme-terracotta .preview-category-tag {
    border-bottom: 2px solid #a34e36;
    padding-bottom: 3px;
    display: inline-block;
    letter-spacing: 2px;
    color: #a34e36 !important;
}

.slide-canvas.theme-terracotta .preview-core-statement {
    border-left: none;
    border-right: none;
    border-top: 1.5px solid #a34e36;
    border-bottom: 1.5px solid #a34e36;
    padding: 16px 0;
}

.slide-canvas.theme-terracotta .preview-cta-codebox {
    border: 1px dashed #a34e36 !important;
    background: rgba(163, 78, 54, 0.05) !important;
    border-radius: 8px !important;
}

.slide-canvas.theme-lavender {
    background-color: #f4f0fa;
    border: 2px solid #e2daeb;
    border-radius: 24px;
    --gold-primary: #8f5e68;
    --text-secondary: #614c6d;
    --text-tertiary: #614c6d;
    --font-serif: 'Quicksand', sans-serif !important;
    --font-sans: 'Outfit', sans-serif !important;
}

.slide-canvas.theme-lavender .preview-title-serif,
.slide-canvas.theme-lavender .preview-block-lead,
.slide-canvas.theme-lavender .preview-num-title,
.slide-canvas.theme-lavender .preview-cta-title,
.slide-canvas.theme-lavender .preview-cta-codeword,
.slide-canvas.theme-lavender .preview-quote-text,
.slide-canvas.theme-lavender .preview-checklist-text,
.slide-canvas.theme-lavender .preview-versus-text,
.slide-canvas.theme-lavender .preview-statistic-number,
.slide-canvas.theme-lavender .preview-statistic-label,
.slide-canvas.theme-lavender .preview-statistic-desc,
.slide-canvas.theme-lavender .preview-timeline-label,
.slide-canvas.theme-lavender .preview-timeline-desc,
.slide-canvas.theme-lavender .preview-faq-text,
.slide-canvas.theme-lavender .preview-warning-body,
.slide-canvas.theme-lavender .preview-core-definition,
.slide-canvas.theme-lavender .preview-resource-title,
.slide-canvas.theme-lavender .preview-resource-desc,
.slide-canvas.theme-lavender .preview-mythfact-text {
    color: #2e1a47 !important;
}

.slide-canvas.theme-lavender .preview-subtitle,
.slide-canvas.theme-lavender .preview-block-body,
.slide-canvas.theme-lavender .preview-num-body,
.slide-canvas.theme-lavender .preview-case-body1,
.slide-canvas.theme-lavender .preview-case-body2,
.slide-canvas.theme-lavender .preview-cta-body,
.slide-canvas.theme-lavender .preview-cta-subcode,
.slide-canvas.theme-lavender .preview-cta-proof,
.slide-canvas.theme-lavender .preview-quote-author {
    color: #614c6d !important;
}

.slide-canvas.theme-lavender .preview-footer-signature {
    color: #2e1a47 !important;
}

.slide-canvas.theme-lavender .preview-footer-instagram {
    color: #614c6d !important;
}

.slide-canvas.theme-lavender .preview-category-tag {
    background: rgba(143, 94, 104, 0.12);
    color: #8f5e68 !important;
    padding: 4px 12px;
    border-radius: 12px;
    text-transform: lowercase;
    letter-spacing: 0.5px;
}

.slide-canvas.theme-lavender .preview-core-statement {
    border: none;
    background: rgba(97, 76, 109, 0.1);
    border-radius: 16px;
    padding: 20px;
}

.slide-canvas.theme-lavender .preview-cta-codebox {
    border: none !important;
    background: #e2daeb !important;
    border-radius: 20px !important;
    padding: 8px 16px !important;
}

.slide-canvas.theme-lavender .preview-cta-codeword {
    color: #2e1a47 !important;
}


/* High Fidelity Live Slide Render Mockup */
.preview-category-tag {
    font-family: var(--font-sans);
    font-size: 8px;
    font-weight: 700;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

.preview-title-serif {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    color: #FFF;
    line-height: 1.35;
    margin-top: 15px;
}

.preview-title-serif span.gold {
    color: var(--gold-primary);
}

.preview-content-area {
    margin: auto 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.preview-content-area .preview-title-serif {
    margin-top: 0;
}

.preview-subtitle {
    font-family: var(--font-sans);
    font-size: 9px;
    font-weight: 400;
    color: #A0A0A0;
    line-height: 1.5;
    margin-top: 15px;
    border-left: 2px solid var(--gold-primary);
    padding-left: 8px;
}

.preview-content-area .preview-subtitle {
    margin-top: 15px;
}

.preview-blocks-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.preview-block-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
    border-left: 2px solid var(--gold-primary);
    padding-left: 10px;
}

.preview-block-lead {
    font-family: var(--font-sans);
    font-size: 9px;
    font-weight: 700;
    color: #FFF;
    line-height: 1.3;
}

.preview-block-body {
    font-family: var(--font-sans);
    font-size: 8px;
    color: #A0A0A0;
    line-height: 1.4;
}

.preview-num-block-item {
    display: flex;
    gap: 12px;
}

.preview-num-tag {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--gold-primary);
    line-height: 1;
}

.preview-num-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.preview-num-title {
    font-family: var(--font-sans);
    font-size: 8.5px;
    font-weight: 700;
    color: #FFF;
    letter-spacing: 0.5px;
}

.preview-num-body {
    font-family: var(--font-sans);
    font-size: 7.5px;
    color: #A0A0A0;
    line-height: 1.4;
}

.preview-case-label {
    font-family: var(--font-sans);
    font-size: 7px;
    font-weight: 800;
    color: var(--gold-primary);
    letter-spacing: 0.5px;
    margin-top: 12px;
    margin-bottom: 2px;
    text-transform: uppercase;
}

.preview-case-body1 {
    font-family: var(--font-sans);
    font-size: 7.5px;
    color: #A0A0A0;
    line-height: 1.4;
    margin-top: 0;
}

.preview-case-quote-box {
    border: 1px solid var(--gold-primary);
    padding: 8px 10px;
    border-radius: 4px;
    margin-top: 10px;
    background-color: rgba(181, 154, 122, 0.04);
}

.preview-case-quote-text {
    font-family: var(--font-serif);
    font-size: 8.5px;
    font-weight: 500;
    font-style: italic;
    color: var(--gold-primary);
    line-height: 1.35;
    text-align: center;
}

.preview-case-body2 {
    font-family: var(--font-sans);
    font-size: 7.5px;
    color: #A0A0A0;
    line-height: 1.4;
    margin-top: 0;
}

.preview-cta-title {
    font-family: var(--font-serif);
    font-size: 14px;
    font-weight: 600;
    color: #FFF;
    line-height: 1.3;
}

.preview-cta-body {
    font-family: var(--font-sans);
    font-size: 8px;
    color: #A0A0A0;
    line-height: 1.4;
    margin-top: 10px;
}

.preview-cta-codebox {
    border: 1.5px solid var(--gold-primary);
    padding: 10px;
    border-radius: 6px;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background-color: rgba(181, 154, 122, 0.04);
    box-shadow: 0 0 10px var(--gold-glow);
}

.preview-cta-codeword {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    color: #FFF;
    letter-spacing: 2px;
}

.preview-cta-subcode {
    font-family: var(--font-sans);
    font-size: 7px;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-cta-proof {
    font-family: var(--font-sans);
    font-size: 6.5px;
    color: #707070;
    margin-top: 12px;
    text-align: center;
}

.preview-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 20px;
}

.preview-footer-signature {
    font-family: var(--font-serif);
    font-size: 7px;
    font-weight: 700;
    color: #FFF;
}

.preview-footer-signature span {
    color: var(--gold-primary);
}

.preview-footer-instagram {
    font-family: var(--font-sans);
    font-size: 6.5px;
    font-weight: 600;
    color: var(--gold-primary);
    letter-spacing: 0.5px;
}

.preview-quote-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    margin-top: 15px;
    padding: 0 10px;
}
.preview-quote-marks {
    font-family: var(--font-serif);
    font-size: 32px;
    color: var(--gold-primary);
    line-height: 1;
    margin-bottom: -15px;
}
.preview-quote-text {
    font-family: var(--font-serif);
    font-size: 10px;
    font-style: italic;
    color: #FFF;
    line-height: 1.4;
}
.preview-quote-author {
    font-family: var(--font-sans);
    font-size: 6px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 5px;
}

.preview-checklist-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}
.preview-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.preview-checklist-icon {
    color: var(--gold-primary);
    font-size: 8px;
    font-weight: bold;
    margin-top: 1px;
}
.preview-checklist-text {
    font-family: var(--font-sans);
    font-size: 8px;
    color: #FFF;
    line-height: 1.3;
}

.preview-versus-container {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}
.preview-versus-column {
    flex: 1;
    background-color: #121212;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.preview-versus-column.right {
    border-color: rgba(201, 169, 110, 0.3);
}
.preview-versus-badge {
    align-self: flex-start;
    font-size: 5.5px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 5px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}
.preview-versus-column.left .preview-versus-badge {
    background-color: rgba(239, 83, 80, 0.15);
    color: #ef5350;
}
.preview-versus-column.right .preview-versus-badge {
    background-color: rgba(201, 169, 110, 0.15);
    color: var(--gold-primary);
}
.preview-versus-text {
    font-family: var(--font-sans);
    font-size: 7.5px;
    color: var(--text-secondary);
    line-height: 1.3;
}

.preview-statistic-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    margin-top: 15px;
    gap: 6px;
}
.preview-statistic-number {
    font-family: var(--font-serif);
    font-size: 38px;
    font-weight: 700;
    color: var(--gold-primary);
    line-height: 1;
}
.preview-statistic-label {
    font-family: var(--font-sans);
    font-size: 7px;
    font-weight: 700;
    text-transform: uppercase;
    color: #FFF;
    letter-spacing: 0.5px;
}
.preview-statistic-desc {
    font-family: var(--font-sans);
    font-size: 7.5px;
    color: var(--text-secondary);
    line-height: 1.3;
    max-width: 80%;
}

.preview-timeline-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
    position: relative;
    padding-left: 15px;
}
.preview-timeline-container::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 5px;
    bottom: 5px;
    width: 1px;
    background-color: rgba(201, 169, 110, 0.3);
}
.preview-timeline-step {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.preview-timeline-dot {
    position: absolute;
    left: -14px;
    top: 3px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--gold-primary);
    border: 2px solid #0B0B0B;
}
.preview-timeline-label {
    font-family: var(--font-sans);
    font-size: 7px;
    font-weight: 700;
    color: var(--gold-primary);
}
.preview-timeline-desc {
    font-family: var(--font-sans);
    font-size: 7.5px;
    color: var(--text-secondary);
    line-height: 1.2;
}

.preview-faq-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}
.preview-faq-card {
    background-color: #121212;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    display: flex;
    gap: 8px;
}
.preview-faq-card.answer {
    border-left: 2px solid var(--gold-primary);
}
.preview-faq-prefix {
    font-family: var(--font-serif);
    font-size: 10px;
    font-weight: 700;
    color: var(--gold-primary);
    line-height: 1;
}
.preview-faq-text {
    font-family: var(--font-sans);
    font-size: 8px;
    color: #FFF;
    line-height: 1.3;
}
.preview-faq-card.answer .preview-faq-text {
    color: var(--text-secondary);
}

.preview-warning-container {
    border: 1px solid rgba(239, 83, 80, 0.4);
    background-color: rgba(239, 83, 80, 0.03);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-top: 15px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
}
.preview-warning-title {
    font-family: var(--font-sans);
    font-size: 7.5px;
    font-weight: 700;
    text-transform: uppercase;
    color: #ef5350;
    letter-spacing: 1px;
}
.preview-warning-body {
    font-family: var(--font-sans);
    font-size: 8px;
    color: #FFF;
    line-height: 1.3;
}

.preview-core-statement {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto 20px;
    padding: 16px 15px;
    border-left: 2px solid var(--gold-primary);
    border-right: 2px solid var(--gold-primary);
}

.preview-core-concept {
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 800;
    color: var(--gold-primary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
    text-align: center;
    line-height: 1.3;
}

.preview-core-definition {
    font-family: var(--font-serif);
    font-size: 11.5px;
    color: #FFF;
    text-align: center;
    line-height: 1.5;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.preview-resource-container {
    display: flex;
    background-color: #121212;
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-top: 15px;
    gap: 12px;
    align-items: center;
}
.preview-resource-cover {
    width: 40px;
    height: 55px;
    border: 1px solid var(--gold-primary);
    background-color: #0b0b0b;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--font-serif);
    font-size: 6px;
    color: var(--gold-primary);
    padding: 2px;
}
.preview-resource-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.preview-resource-title {
    font-family: var(--font-sans);
    font-size: 8px;
    font-weight: 700;
    color: #FFF;
}
.preview-resource-author {
    font-family: var(--font-sans);
    font-size: 6px;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.preview-resource-desc {
    font-family: var(--font-sans);
    font-size: 7.5px;
    color: var(--text-secondary);
    line-height: 1.2;
}

.preview-mythfact-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}
.preview-mythfact-card {
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.preview-mythfact-card.myth {
    border-left: 2px solid #555;
    background-color: rgba(255,255,255,0.01);
}
.preview-mythfact-card.fact {
    border-left: 2px solid var(--gold-primary);
    background-color: rgba(181, 154, 122, 0.02);
}
.preview-mythfact-label {
    font-family: var(--font-sans);
    font-size: 6px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.preview-mythfact-card.myth .preview-mythfact-label {
    color: var(--text-secondary);
}
.preview-mythfact-card.fact .preview-mythfact-label {
    color: var(--gold-primary);
}
.preview-mythfact-text {
    font-family: var(--font-sans);
    font-size: 8px;
    color: #FFF;
    line-height: 1.3;
}
.preview-mythfact-card.myth .preview-mythfact-text {
    color: var(--text-secondary);
}

.slide-item.dragging {
    opacity: 0.4;
    border: 1px dashed var(--gold-primary);
}

.slide-item.drag-over {
    border: 1px solid var(--gold-primary) !important;
    background-color: rgba(201, 169, 110, 0.05) !important;
    transform: translateY(2px);
}

.preview-nav-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
    user-select: none;
}

.btn-nav-arrow {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-medium);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.btn-nav-arrow:hover:not(:disabled) {
    color: var(--gold-primary);
    border-color: var(--gold-primary);
    background-color: var(--gold-glow-subtle);
    transform: scale(1.05);
}

.btn-nav-arrow:disabled {
    opacity: 0.25;
    cursor: not-allowed;
}

.preview-page-indicator {
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
    min-width: 60px;
    text-align: center;
    letter-spacing: 0.5px;
}


/* THEME ENHANCEMENTS */
.slide-canvas.theme-emerald .preview-quote-container { border-left: 4px solid #10b981; padding-left: 20px; }
.slide-canvas.theme-emerald .preview-versus-badge { background: #10b981; color: #0c1a14; border-radius: 4px; font-weight: bold; }
.slide-canvas.theme-emerald .preview-checklist-icon { color: #10b981; }
.slide-canvas.theme-emerald .preview-versus-column { background-color: #091612; border-color: rgba(16, 185, 129, 0.2); }
.slide-canvas.theme-emerald .preview-faq-card { background-color: #091612; border-color: rgba(16, 185, 129, 0.2); }
.slide-canvas.theme-emerald .preview-resource-container { background-color: #091612; border-color: rgba(16, 185, 129, 0.2); }
.slide-canvas.theme-emerald .preview-resource-cover { background-color: #050e0b; }
.slide-canvas.theme-emerald .preview-timeline-dot { border-color: #0c1a14; }

.slide-canvas.theme-burgundy .preview-quote-container { border-left: 4px solid #9f1239; font-style: italic; }
.slide-canvas.theme-burgundy .preview-versus-badge { background: #9f1239; border-radius: 2px; }
.slide-canvas.theme-burgundy .preview-mythfact-card { border: 1px solid rgba(159, 18, 57, 0.3); }
.slide-canvas.theme-burgundy .preview-versus-column { background-color: #1a0508; border-color: rgba(159, 18, 57, 0.3); }
.slide-canvas.theme-burgundy .preview-faq-card { background-color: #1a0508; border-color: rgba(159, 18, 57, 0.3); }
.slide-canvas.theme-burgundy .preview-resource-container { background-color: #1a0508; border-color: rgba(159, 18, 57, 0.3); }
.slide-canvas.theme-burgundy .preview-resource-cover { background-color: #0f0204; }
.slide-canvas.theme-burgundy .preview-timeline-dot { border-color: #21080d; }

.slide-canvas.theme-cream .preview-quote-container { border: 1px solid #e1dbcb; padding: 20px; box-shadow: 4px 4px 0px rgba(0,0,0,0.05); }
.slide-canvas.theme-cream .preview-versus-column { background-color: #f2ebd9; border: 1px solid #e1dbcb; padding: 10px; border-radius: 8px; }
.slide-canvas.theme-cream .preview-faq-card { background-color: #f2ebd9; border: 1px solid #e1dbcb; }
.slide-canvas.theme-cream .preview-resource-container { background-color: #f2ebd9; border: 1px solid #e1dbcb; }
.slide-canvas.theme-cream .preview-resource-cover { background-color: #e1dbcb; }
.slide-canvas.theme-cream .preview-timeline-dot { border-color: #f7f4eb; }
.slide-canvas.theme-cream .preview-faq-text,
.slide-canvas.theme-cream .preview-versus-text,
.slide-canvas.theme-cream .preview-warning-body,
.slide-canvas.theme-cream .preview-resource-desc { color: #3d3a35 !important; }

.slide-canvas.theme-sapphire .preview-versus-badge { background: transparent; border: 1px solid #60a5fa; color: #60a5fa; text-transform: uppercase; letter-spacing: 1px; border-radius: 0; }
.slide-canvas.theme-sapphire .preview-warning-container { border: 1px solid #3b82f6; background: rgba(59, 130, 246, 0.05); }
.slide-canvas.theme-sapphire .preview-versus-column { background-color: #08101d; border-color: rgba(59, 130, 246, 0.2); }
.slide-canvas.theme-sapphire .preview-faq-card { background-color: #08101d; border-color: rgba(59, 130, 246, 0.2); }
.slide-canvas.theme-sapphire .preview-resource-container { background-color: #08101d; border-color: rgba(59, 130, 246, 0.2); }
.slide-canvas.theme-sapphire .preview-resource-cover { background-color: #040810; }
.slide-canvas.theme-sapphire .preview-timeline-dot { border-color: #0c1524; }

.slide-canvas.theme-amethyst .preview-checklist-icon { background: rgba(168, 85, 247, 0.2); padding: 4px; border-radius: 50%; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; }
.slide-canvas.theme-amethyst .preview-timeline-dot { box-shadow: 0 0 10px rgba(168, 85, 247, 0.5); border-color: #180c2c; }
.slide-canvas.theme-amethyst .preview-versus-column { background-color: #11081e; border-color: rgba(168, 85, 247, 0.2); }
.slide-canvas.theme-amethyst .preview-faq-card { background-color: #11081e; border-color: rgba(168, 85, 247, 0.2); }
.slide-canvas.theme-amethyst .preview-resource-container { background-color: #11081e; border-color: rgba(168, 85, 247, 0.2); }
.slide-canvas.theme-amethyst .preview-resource-cover { background-color: #080410; }

.slide-canvas.theme-slate .preview-versus-column { background: rgba(255,255,255,0.02); border-left: 2px solid #64748b; background-color: #181b22; border-color: rgba(100, 116, 139, 0.3); }
.slide-canvas.theme-slate .preview-quote-container { border-left: 2px solid #64748b; }
.slide-canvas.theme-slate .preview-faq-card { background-color: #181b22; border-color: rgba(100, 116, 139, 0.3); }
.slide-canvas.theme-slate .preview-resource-container { background-color: #181b22; border-color: rgba(100, 116, 139, 0.3); }
.slide-canvas.theme-slate .preview-resource-cover { background-color: #0f1116; }
.slide-canvas.theme-slate .preview-timeline-dot { border-color: #20242f; }

.slide-canvas.theme-charcoal { --font-sans: 'Courier New', Courier, monospace !important; }
.slide-canvas.theme-charcoal .preview-quote-container { border: 2px solid #ffffff; padding: 15px; border-radius: 0; box-shadow: 4px 4px 0 #ffffff; }
.slide-canvas.theme-charcoal .preview-versus-badge { border: 1px solid #fff; background: transparent; border-radius: 0; }
.slide-canvas.theme-charcoal .preview-checklist-item { border-bottom: 1px dashed rgba(255,255,255,0.2); padding-bottom: 10px; }
.slide-canvas.theme-charcoal .preview-versus-column { background-color: #1a1a1a; border: 2px solid #ffffff; border-radius: 0; box-shadow: 4px 4px 0 #ffffff; }
.slide-canvas.theme-charcoal .preview-faq-card { background-color: #1a1a1a; border: 2px solid #ffffff; border-radius: 0; box-shadow: 4px 4px 0 #ffffff; }
.slide-canvas.theme-charcoal .preview-resource-container { background-color: #1a1a1a; border: 2px solid #ffffff; border-radius: 0; box-shadow: 4px 4px 0 #ffffff; }
.slide-canvas.theme-charcoal .preview-resource-cover { background-color: #0f0f0f; border: 1px solid #ffffff; }
.slide-canvas.theme-charcoal .preview-timeline-dot { border-color: #111111; border-radius: 0; }

.slide-canvas.theme-terracotta .preview-quote-container { border-left: 4px solid #a34e36; border-radius: 0; }
.slide-canvas.theme-terracotta .preview-versus-column { background-color: #fcf3eb; border: 1px solid #a34e36; border-radius: 12px; }
.slide-canvas.theme-terracotta .preview-mythfact-card { border: 1px solid rgba(163, 78, 54, 0.3); border-radius: 12px; }
.slide-canvas.theme-terracotta .preview-faq-card { background-color: #fcf3eb; border: 1px solid #a34e36; border-radius: 12px; }
.slide-canvas.theme-terracotta .preview-resource-container { background-color: #fcf3eb; border: 1px solid #a34e36; border-radius: 12px; }
.slide-canvas.theme-terracotta .preview-resource-cover { background-color: #f2ebd9; }
.slide-canvas.theme-terracotta .preview-timeline-dot { border-color: #fdf8f4; }
.slide-canvas.theme-terracotta .preview-faq-text,
.slide-canvas.theme-terracotta .preview-versus-text,
.slide-canvas.theme-terracotta .preview-warning-body,
.slide-canvas.theme-terracotta .preview-resource-desc { color: #4a2c1e !important; }

.slide-canvas.theme-lavender .preview-versus-badge { border-radius: 20px; background: #8f5e68; color: #fff; padding: 4px 12px; }
.slide-canvas.theme-lavender .preview-quote-container { background: rgba(143, 94, 104, 0.05); border-radius: 20px; padding: 20px; }
.slide-canvas.theme-lavender .preview-mythfact-card { border-radius: 20px; }
.slide-canvas.theme-lavender .preview-versus-column { background-color: #f2e8fc; border: 1px solid #8f5e68; border-radius: 20px; }
.slide-canvas.theme-lavender .preview-faq-card { background-color: #f2e8fc; border: 1px solid #8f5e68; border-radius: 20px; }
.slide-canvas.theme-lavender .preview-resource-container { background-color: #f2e8fc; border: 1px solid #8f5e68; border-radius: 20px; }
.slide-canvas.theme-lavender .preview-resource-cover { background-color: #e1dbcb; }
.slide-canvas.theme-lavender .preview-timeline-dot { border-color: #f7f3fc; }
.slide-canvas.theme-lavender .preview-faq-text,
.slide-canvas.theme-lavender .preview-versus-text,
.slide-canvas.theme-lavender .preview-warning-body,
.slide-canvas.theme-lavender .preview-resource-desc { color: #614c6d !important; }

/* 5 CTA Slide Variants Styles */
.preview-cta-lead-container {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 15px;
    width: 100%;
}
.preview-cta-lead-cover {
    width: 80px;
    height: 110px;
    background: linear-gradient(135deg, var(--gold-primary) 0%, #1e1e1e 100%);
    border: 1.5px solid var(--gold-primary);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    flex-shrink: 0;
}
.preview-cta-lead-badge {
    font-size: 6px;
    text-transform: uppercase;
    background: rgba(255,255,255,0.1);
    color: var(--gold-primary);
    padding: 2px 4px;
    align-self: flex-start;
    border-radius: 3px;
    letter-spacing: 0.5px;
    font-weight: bold;
}
.preview-cta-lead-cover-text {
    font-family: var(--font-serif);
    font-size: 8px;
    color: #fff;
    font-weight: bold;
    text-align: center;
    line-height: 1.2;
}
.preview-cta-lead-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.preview-cta-consult-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 12px;
    width: 100%;
}
.preview-cta-consult-badge {
    font-size: 7.5px;
    text-transform: uppercase;
    color: var(--gold-primary);
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: bold;
}
.preview-cta-group-bullets {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 12px 0;
    width: 100%;
}
.preview-cta-group-bullet {
    font-size: 8px;
    color: #FFF;
    display: flex;
    align-items: center;
    gap: 6px;
}
.preview-cta-quiz-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    margin-top: 10px;
}
.preview-cta-quiz-points {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.preview-cta-quiz-point {
    font-size: 8px;
    color: var(--gold-primary);
    background: rgba(181, 154, 122, 0.05);
    border: 1px dashed rgba(181, 154, 122, 0.2);
    padding: 6px 10px;
    border-radius: 6px;
}

/* Light Theme Overrides for CTA Variants */
.slide-canvas.theme-cream .preview-cta-lead-cover {
    background: linear-gradient(135deg, #b5838d 0%, #f4e8c1 100%);
    border-color: #b5838d;
}
.slide-canvas.theme-cream .preview-cta-lead-badge {
    color: #fff;
    background: rgba(0,0,0,0.15);
}
.slide-canvas.theme-cream .preview-cta-lead-cover-text {
    color: #fff;
}
.slide-canvas.theme-cream .preview-cta-group-bullet {
    color: #3d3a35;
}
.slide-canvas.theme-cream .preview-cta-quiz-point {
    color: #b5838d;
    background: rgba(181, 131, 141, 0.05);
    border-color: rgba(181, 131, 141, 0.2);
}

.slide-canvas.theme-terracotta .preview-cta-lead-cover {
    background: linear-gradient(135deg, #c36a51 0%, #fcf3eb 100%);
    border-color: #c36a51;
}
.slide-canvas.theme-terracotta .preview-cta-lead-badge {
    color: #fff;
    background: rgba(0,0,0,0.15);
}
.slide-canvas.theme-terracotta .preview-cta-lead-cover-text {
    color: #fff;
}
.slide-canvas.theme-terracotta .preview-cta-group-bullet {
    color: #4a3e3d;
}
.slide-canvas.theme-terracotta .preview-cta-quiz-point {
    color: #c36a51;
    background: rgba(195, 106, 81, 0.05);
    border-color: rgba(195, 106, 81, 0.2);
}

.slide-canvas.theme-lavender .preview-cta-lead-cover {
    background: linear-gradient(135deg, #c084fc 0%, #f2e8fc 100%);
    border-color: #c084fc;
}
.slide-canvas.theme-lavender .preview-cta-lead-badge {
    color: #fff;
    background: rgba(0,0,0,0.15);
}
.slide-canvas.theme-lavender .preview-cta-lead-cover-text {
    color: #fff;
}
.slide-canvas.theme-lavender .preview-cta-group-bullet {
    color: #6d597a;
}
.slide-canvas.theme-lavender .preview-cta-quiz-point {
    color: #c084fc;
    background: rgba(192, 132, 252, 0.05);
    border-color: rgba(192, 132, 252, 0.2);
}

/* New CTA / Ending Slide styles */
.preview-cta-comment-box {
    margin-top: 15px;
    width: 100%;
    display: flex;
    justify-content: center;
}
.preview-cta-comment-bubble {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 10px 14px;
    border-radius: 20px;
    width: 90%;
    color: #e0e0e0;
}
.preview-cta-comment-icon {
    font-size: 14px;
}
.preview-cta-comment-prompt {
    font-size: 8px;
    font-weight: 500;
}

.preview-cta-share-box {
    display: flex;
    gap: 12px;
    width: 90%;
    margin: 15px auto 0 auto;
}
.preview-cta-share-button, .preview-cta-save-button {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 9px;
    color: #FFF;
    font-weight: bold;
}

.preview-cta-reframe-card {
    background: rgba(255,255,255,0.05);
    border: 1px dashed rgba(255,255,255,0.25);
    border-radius: 12px;
    padding: 18px 22px;
    margin: 20px auto 10px auto;
    width: 90%;
    box-sizing: border-box;
}
.preview-cta-reframe-quote {
    font-size: 10px;
    line-height: 1.5;
    font-style: italic;
    text-align: center;
    color: #FFF;
}
.preview-cta-reframe-sub {
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gold-primary);
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
}

.preview-cta-none-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

/* Light Theme Overrides for new CTA types */
.slide-canvas.theme-cream .preview-cta-comment-bubble,
.slide-canvas.theme-terracotta .preview-cta-comment-bubble,
.slide-canvas.theme-lavender .preview-cta-comment-bubble {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.1);
    color: inherit;
}
.slide-canvas.theme-cream .preview-cta-share-button,
.slide-canvas.theme-cream .preview-cta-save-button,
.slide-canvas.theme-terracotta .preview-cta-share-button,
.slide-canvas.theme-terracotta .preview-cta-save-button,
.slide-canvas.theme-lavender .preview-cta-share-button,
.slide-canvas.theme-lavender .preview-cta-save-button {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.1);
    color: inherit;
}
.slide-canvas.theme-cream .preview-cta-reframe-card,
.slide-canvas.theme-terracotta .preview-cta-reframe-card,
.slide-canvas.theme-lavender .preview-cta-reframe-card {
    background: rgba(0,0,0,0.03);
    border-color: rgba(0,0,0,0.15);
}
.slide-canvas.theme-cream .preview-cta-reframe-quote,
.slide-canvas.theme-terracotta .preview-cta-reframe-quote,
.slide-canvas.theme-lavender .preview-cta-reframe-quote {
    color: inherit;
}
.slide-canvas.theme-cream .preview-cta-reframe-sub,
.slide-canvas.theme-terracotta .preview-cta-reframe-sub,
.slide-canvas.theme-lavender .preview-cta-reframe-sub {
    color: inherit;
}

/* Smart Content Planner Styles */
.planner-mode-tab {
    flex: 1;
    text-align: center;
    padding: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 3px;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.planner-mode-tab:hover {
    color: var(--text-primary);
}

.planner-mode-tab.active {
    background: var(--gold-dark);
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Funnel stage badges style */
.funnel-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.funnel-badge.hook {
    background: rgba(239, 154, 154, 0.15);
    color: #ef9a9a;
    border: 1px solid rgba(239, 154, 154, 0.3);
}

.funnel-badge.value {
    background: rgba(165, 214, 167, 0.15);
    color: #a5d6a7;
    border: 1px solid rgba(165, 214, 167, 0.3);
}

.funnel-badge.trust {
    background: rgba(144, 202, 249, 0.15);
    color: #90caf9;
    border: 1px solid rgba(144, 202, 249, 0.3);
}

.funnel-badge.sell {
    background: rgba(255, 224, 130, 0.15);
    color: var(--gold-light);
    border: 1px solid rgba(255, 224, 130, 0.3);
}

/* Dragging preview helper styling */
.planner-preview-row.dragging {
    opacity: 0.5;
    background: rgba(255, 255, 255, 0.05);
}

/* Editor Action Buttons Layout */
.editor-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
    width: 100%;
}
.editor-actions-row .btn {
    flex: 1 0 auto;
    padding: 10px 18px;
    font-size: 13.5px;
    min-width: max-content;
    height: 42px;
    white-space: nowrap;
}

/* --- Select Topic Modal Card Hover states --- */
.select-topic-row-card {
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.select-topic-row-card:hover {
    border-color: var(--gold) !important;
    background: rgba(201, 169, 110, 0.05) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.select-topic-row-card:active {
    transform: translateY(0);
}

/* --- Reels Unified Editor Accordion & Layout Styles --- */
.reels-workspace {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: start;
    margin-top: 16px;
}

@media (max-width: 1024px) {
    .reels-workspace {
        grid-template-columns: 1fr;
    }
}

.workflow-step {
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    background: var(--bg-secondary);
    margin-bottom: 12px;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.workflow-step.active {
    border-color: rgba(201, 169, 110, 0.4);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(201, 169, 110, 0.1);
}

.step-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    cursor: pointer;
    user-select: none;
    background: var(--bg-translucent);
    border-bottom: 1px solid transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.workflow-step.active .step-header {
    background: var(--bg-translucent-active);
    border-bottom-color: var(--border-subtle);
}

.step-header-left {
    display: flex;
    align-items: center;
}

.step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--border-medium);
    color: var(--text-secondary);
    font-size: 12.5px;
    font-weight: 700;
    margin-right: 14px;
    transition: all 0.2s ease;
}

.workflow-step.active .step-badge {
    background: var(--gold);
    color: #121214;
    box-shadow: 0 0 8px rgba(201, 169, 110, 0.4);
}

.step-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.workflow-step.active .step-title {
    color: var(--gold-light);
}

.step-arrow {
    font-size: 12px;
    color: var(--text-muted);
    transition: transform 0.25s ease;
}

.workflow-step.active .step-arrow {
    transform: rotate(180deg);
    color: var(--gold);
}

.step-content {
    padding: 20px;
    display: none;
    animation: slideDownFade 0.25s ease-out;
}

.workflow-step.active .step-content {
    display: block;
}

@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.source-toggle-card {
    display: flex;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-primary);
    margin-bottom: 16px;
    padding: 4px;
}

.source-toggle-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: calc(var(--radius) - 2px);
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.source-toggle-btn input[type="radio"] {
    display: none;
}

.source-toggle-btn.active {
    background: var(--gold-glow);
    color: var(--gold);
    border: 1px solid rgba(201, 169, 110, 0.2);
}

/* Accordion divider lines */
.step-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 16px 0;
}

/* ============================================
   Premium User Cabinet & Admin Console Styles
   ============================================ */
.gold-switch-slider::before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 3px;
    bottom: 3px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
    border-radius: 50%;
    transition: 0.25s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.gold-switch-container input:checked + .gold-switch-slider {
    background-color: rgba(201, 169, 110, 0.2);
    border-color: var(--gold);
    box-shadow: 0 0 8px var(--gold-glow);
}

.gold-switch-container input:checked + .gold-switch-slider::before {
    transform: translateX(22px);
    background: linear-gradient(135deg, #FFFFFF, var(--gold-light));
    box-shadow: 0 0 6px var(--gold);
}

.tier-card-premium {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: all 0.25s ease;
}

.tier-card-premium:hover {
    transform: translateY(-2px);
    border-color: rgba(201, 169, 110, 0.3);
    box-shadow: 0 4px 20px var(--gold-glow-subtle);
}

.tier-card-premium.active {
    border-color: var(--gold);
    box-shadow: 0 0 16px var(--gold-glow);
}

.premium-dialog::backdrop {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

@keyframes dialogEntrance {
    0% {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.premium-dialog[open] {
    animation: dialogEntrance 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.vscript-mode-toggle {
    display: flex;
    background: rgba(0, 0, 0, 0.4);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--border-medium, rgba(201, 169, 110, 0.25));
    gap: 4px;
    margin-top: 6px;
    margin-bottom: 6px;
}

.vscript-mode-tab-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted, #94a3b8);
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    line-height: 1.2;
}

.vscript-mode-tab-btn:hover {
    color: var(--text-primary, #ffffff);
    background: rgba(255, 255, 255, 0.05);
}

.vscript-mode-tab-btn.active {
    background: linear-gradient(135deg, #c9a96e 0%, #a88544 100%) !important;
    color: #0d1117 !important;
    font-weight: 700 !important;
    box-shadow: 0 3px 10px rgba(201, 169, 110, 0.35);
}

.vscript-mode-tab-btn .subtitle {
    font-size: 10px;
    opacity: 0.75;
    margin-top: 2px;
    font-weight: 400;
}

.vscript-mode-tab-btn.active .subtitle {
    opacity: 0.9;
    color: #1a150a;
    font-weight: 500;
}

/* --- Funnel Campaign Map & Studio 360 --- */
.funnel-studio-config-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: linear-gradient(145deg, rgba(24, 26, 36, 0.85) 0%, rgba(14, 15, 22, 0.95) 100%);
    border: 1px solid rgba(201, 169, 110, 0.22);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.executive-segment-container {
    background: rgba(10, 11, 16, 0.7);
    padding: 5px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.4);
}

.executive-segment-btn {
    padding: 8px 6px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: transparent;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-align: center;
    white-space: nowrap;
}

.executive-segment-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.1);
}

.executive-segment-btn.active.executive-mode {
    background: linear-gradient(135deg, rgba(201, 169, 110, 0.28) 0%, rgba(150, 115, 50, 0.22) 100%);
    border: 1px solid rgba(201, 169, 110, 0.45);
    color: var(--gold-light);
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(201, 169, 110, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.executive-segment-btn.active.csuite-mode {
    background: linear-gradient(135deg, rgba(235, 190, 95, 0.35) 0%, rgba(180, 130, 40, 0.28) 100%);
    border: 1px solid rgba(235, 190, 95, 0.6);
    color: #fff3d1;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(235, 190, 95, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.executive-segment-btn.active.mass-mode {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(200, 200, 200, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.executive-segment-subtext {
    font-size: 9.5px;
    font-weight: 500;
    opacity: 0.8;
    letter-spacing: 0.2px;
}

.funnel-preset-chip {
    font-size: 11px;
    font-weight: 500;
    padding: 5px 11px;
    border-radius: 20px;
    background: rgba(201, 169, 110, 0.07);
    border: 1px solid rgba(201, 169, 110, 0.2);
    color: var(--gold-light);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.funnel-preset-chip:hover {
    background: rgba(201, 169, 110, 0.18);
    border-color: rgba(201, 169, 110, 0.45);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(201, 169, 110, 0.15);
}

.funnel-campaign-map {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    position: relative;
    padding: 10px 0;
}

.funnel-map-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.funnel-map-node:hover {
    transform: translateY(-4px);
}

.funnel-map-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(22, 22, 26, 0.6);
    border: 2px solid var(--border-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.funnel-map-node.active .funnel-map-circle {
    background: linear-gradient(135deg, var(--gold) 0%, #b8860b 100%);
    border-color: var(--gold-light);
    color: #000;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

.funnel-map-node.completed .funnel-map-circle {
    border-color: var(--gold);
    color: var(--gold-light);
}

.funnel-map-label {
    font-size: 11.5px;
    font-weight: 600;
    margin-top: 8px;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.funnel-map-node.active .funnel-map-label {
    color: var(--gold-light);
}

/* Connective lines between nodes in map */
.funnel-map-node:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 24px;
    left: calc(50% + 24px);
    width: calc(100% - 48px + 16px);
    height: 2px;
    background: var(--border-medium);
    z-index: 0;
    pointer-events: none;
    transition: background 0.3s ease;
}

.funnel-map-node.completed:not(:last-child)::after {
    background: var(--gold-light);
    opacity: 0.5;
}

/* Funnel Step Content Cards */
.funnel-step-card {
    background: rgba(22, 22, 26, 0.6);
    border: 1px solid var(--border-medium);
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.funnel-step-card:hover {
    border-color: rgba(201, 169, 110, 0.4);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.funnel-step-card.active-highlight {
    border-color: var(--gold);
    box-shadow: 0 0 20px rgba(201, 169, 110, 0.15);
}

.funnel-step-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 12px;
}

.funnel-step-title-area {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.funnel-step-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.funnel-step-meta {
    font-size: 13px;
    color: var(--text-secondary);
    font-style: italic;
}

.funnel-step-body {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    white-space: pre-wrap;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 16px;
    font-family: var(--font-sans);
}

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

.funnel-copy-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.funnel-copy-btn:hover {
    background: rgba(201, 169, 110, 0.1);
    border-color: var(--gold);
    color: var(--gold-light);
}

.funnel-history-item {
    padding: 8px 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 6px;
    font-size: 12.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-secondary);
}

.funnel-history-item:hover {
    background: rgba(201, 169, 110, 0.05);
    border-color: rgba(201, 169, 110, 0.3);
    color: var(--text-primary);
}

.funnel-history-item.active {
    background: rgba(201, 169, 110, 0.1);
    border-color: var(--gold);
    color: var(--gold-light);
}

/* --- REELS GRAND OVERHAUL STYLES --- */
.karaoke-word {
    transition: all 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
}
.karaoke-active {
    color: var(--gold) !important;
    text-shadow: 0 0 12px rgba(212, 175, 55, 0.8), 0 0 24px rgba(212, 175, 55, 0.4);
    transform: scale(1.1);
}
.reels-pill-badge {
    background: rgba(212, 175, 55, 0.18);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 20px;
    padding: 6px 16px;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

/* Voiceover Button Fix */
#reels-canvas-mic-rec-btn,
.reels-voice-over-btn {
    pointer-events: auto !important;
    cursor: pointer !important;
    position: relative !important;
    z-index: 1000 !important;
    user-select: none;
}

/* Safari Webkit fixes for Reels Voice-over Button */
#reels-canvas-mic-rec-btn, .reels-voice-over-btn {
    cursor: pointer !important;
    position: relative !important;
    z-index: 1000 !important;
    pointer-events: auto !important;
    -webkit-appearance: none !important;
    -webkit-user-select: none !important;
    touch-action: manipulation !important;
}

/* ==========================================================================
   LuckyGram OS v3.0 Executive Dashboard Premium Styles
   ========================================================================== */
@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(76, 175, 80, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

@keyframes pulse-gold {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(212, 175, 55, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

.pulse-dot-green {
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-green 2s infinite;
}

.pulse-dot-gold {
    width: 8px;
    height: 8px;
    background: var(--gold-light);
    border-radius: 50%;
    display: inline-block;
    animation: pulse-gold 2s infinite;
}

.glass-card {
    background: rgba(18, 20, 29, 0.75) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(212, 175, 55, 0.18) !important;
    border-radius: 14px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.glass-card:hover {
    border-color: rgba(212, 175, 55, 0.35) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(212, 175, 55, 0.08) !important;
    transform: translateY(-2px);
}

.kpi-card {
    position: relative;
    overflow: hidden;
    padding: 18px 20px;
    border-radius: 12px;
    background: rgba(14, 16, 23, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.kpi-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gold);
}

.kpi-delta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

.kpi-delta.positive {
    background: rgba(76, 175, 80, 0.15);
    color: #81C784;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.sparkline-svg {
    position: absolute;
    right: 12px;
    bottom: 12px;
    opacity: 0.25;
    pointer-events: none;
}

/* Content Hub Asset Reader Modal & Format Workspaces */
.ch-asset-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.ch-asset-modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.ch-asset-modal-container {
    background: var(--bg-secondary, #141620);
    border: 1px solid var(--border-medium, rgba(212, 175, 55, 0.25));
    border-radius: 18px;
    width: 100%;
    max-width: 960px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    overflow: hidden;
    transform: translateY(15px);
    transition: transform 0.25s ease;
}

.ch-asset-modal-overlay.active .ch-asset-modal-container {
    transform: translateY(0);
}

.ch-modal-header {
    padding: 16px 24px;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid var(--border-subtle, rgba(255,255,255,0.08));
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ch-modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 20px;
}

@media (max-width: 768px) {
    .ch-modal-body {
        grid-template-columns: 1fr;
    }
}

.ch-carousel-deck {
    background: var(--bg-tertiary, #1a1d2d);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ch-slide-card {
    background: rgba(20, 22, 32, 0.8);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 12px;
    padding: 20px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.3);
}

.ch-script-scene {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
}

.ch-scene-tag {
    font-size: 10.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 6px;
}

.ch-scene-tag.hook { background: rgba(239, 68, 68, 0.18); color: #fca5a5; }
.ch-scene-tag.visual { background: rgba(59, 130, 246, 0.18); color: #93c5fd; }
.ch-scene-tag.voice { background: rgba(212, 175, 55, 0.18); color: var(--gold-light); }
.ch-scene-tag.cta { background: rgba(34, 197, 94, 0.18); color: #86efac; }

/* --- Mobile Responsiveness --- */
.mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--bg-tertiary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 99;
}

@media (max-width: 768px) {
    .mobile-header {
        display: flex;
    }
    
    .sidebar {
        transform: translateX(-100%);
        z-index: 1000;
        box-shadow: 0 0 30px rgba(0,0,0,0.5);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .mobile-hamburger {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 6px;
        flex-direction: column;
        gap: 4px;
        padding: 0;
    }
    
    .mobile-hamburger span {
        width: 18px;
        height: 2px;
        background: var(--text-primary);
        border-radius: 1px;
    }
    
    .hamburger-btn {
        display: flex;
    }
    
    .main-content {
        margin-left: 0 !important;
        padding: 80px 16px 32px 16px !important;
    }
    
    /* Stats grid */
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    /* Executive Operations Section */
    #section-dashboard > div {
        grid-template-columns: 1fr !important;
    }
    
    /* Analytics charts */
    .ch-modal-body {
        grid-template-columns: 1fr !important;
    }
}
