/* ==========================================================================
   SLIDE STUDIO - AI Presentation Generator
   Matches The Prompt Index design system
   ========================================================================== */

/* ==========================================================================
   1. VARIABLES & THEME
   ========================================================================== */
:root {
    /* Core Brand Colors */
    --primary-hue: 245;
    --secondary-hue: 265;
    
    --primary-color: hsl(var(--primary-hue), 75%, 60%);
    --primary-dark: hsl(var(--primary-hue), 75%, 50%);
    --primary-glow: hsla(var(--primary-hue), 85%, 65%, 0.5);
    
    --secondary-color: hsl(var(--secondary-hue), 80%, 65%);
    --secondary-dark: hsl(var(--secondary-hue), 80%, 55%);
    
    --accent-color: #F472B6;
    
    /* Text Colors */
    --text-color: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.7);
    --text-dim: rgba(255, 255, 255, 0.45);
    
    /* Backgrounds */
    --bg-primary: #0D0C1D;
    --bg-secondary: #1A1A2E;
    --background-start: #0f172a;
    --background-end: #1e1b4b;
    
    /* Glass Effects */
    --glass-surface: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-highlight: rgba(255, 255, 255, 0.15);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    --backdrop-blur: blur(16px) saturate(180%);
    
    --sidebar-background: rgba(15, 23, 42, 0.95);
    
    /* Status Colors */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
    
    /* Dimensions */
    --sidebar-width: 280px;
    --header-height: 60px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Transitions */
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.2s var(--ease-smooth);
    --transition-normal: 0.3s var(--ease-smooth);
}

/* ==========================================================================
   2. BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: var(--text-color);
    background: radial-gradient(circle at top left, var(--background-end), var(--background-start)), var(--background-start);
    background-attachment: fixed;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Aurora Background */
body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.1;
    filter: blur(100px);
    z-index: -1;
    animation: pulse-glow-1 15s infinite alternate;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: -20%;
    right: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
    opacity: 0.1;
    filter: blur(100px);
    z-index: -1;
    animation: pulse-glow-2 12s infinite alternate;
    pointer-events: none;
}

@keyframes pulse-glow-1 {
    from { transform: scale(0.8) rotate(0deg); opacity: 0.08; }
    to { transform: scale(1.2) rotate(45deg); opacity: 0.15; }
}

@keyframes pulse-glow-2 {
    from { transform: scale(1.2) rotate(0deg); opacity: 0.15; }
    to { transform: scale(0.8) rotate(-45deg); opacity: 0.08; }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* ==========================================================================
   3. LANDING PAGE STYLES
   ========================================================================== */
.landing-page {
    padding-top: 2rem;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 4rem 1rem 6rem;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.1;
    filter: blur(100px);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--glass-surface);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-xl);
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(135deg, #FFFFFF 30%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

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

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--secondary-color);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary,
.btn-hero-secondary {
    padding: 1rem 2rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-normal);
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: 1px solid transparent;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.4);
    color: white;
}

.btn-hero-secondary {
    background: var(--glass-surface);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
}

.btn-hero-secondary:hover {
    background: var(--glass-highlight);
    border-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* Features Section */
.features-section {
    padding: 6rem 1rem;
    background: rgba(0, 0, 0, 0.2);
}

.container-modern {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Use Cases Section */
.use-cases-section {
    padding: 6rem 1rem;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.use-case-card {
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition-fast);
}

.use-case-card:hover {
    border-color: var(--primary-color);
    background: rgba(79, 70, 229, 0.1);
}

.use-case-card i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.use-case-card h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.use-case-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Pricing Preview */
.pricing-preview {
    padding: 6rem 1rem;
    background: rgba(0, 0, 0, 0.2);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--primary-color);
    background: rgba(79, 70, 229, 0.1);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 0.35rem 1rem;
    border-radius: var(--radius-xl);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-header {
    text-align: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.pricing-header h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.pricing-amount {
    font-size: 2.5rem;
    font-weight: 800;
}

.pricing-amount span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2rem;
}

.pricing-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
}

.pricing-features i {
    color: var(--success-color);
}

.btn-pricing {
    display: block;
    width: 100%;
    padding: 0.875rem;
    border-radius: var(--radius-md);
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    font-weight: 600;
    text-align: center;
    transition: all var(--transition-fast);
}

.btn-pricing:hover {
    background: var(--glass-highlight);
    color: white;
}

.btn-pricing.primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-color: transparent;
}

.btn-pricing.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
}

/* CTA Section */
.cta-section {
    padding: 6rem 1rem;
}

.cta-card-premium {
    position: relative;
    background: #0f0f1a;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.cta-glow-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: 
        radial-gradient(circle at top right, rgba(124, 58, 237, 0.15), transparent 50%),
        radial-gradient(circle at bottom left, rgba(79, 70, 229, 0.15), transparent 50%);
}

.cta-content-wrapper {
    padding: 4rem 2rem;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cta-action-area {
    display: flex;
    justify-content: center;
}

.btn-cta-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.btn-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(124, 58, 237, 0.5);
    color: white;
}

/* ==========================================================================
   4. APP CONTAINER STYLES
   ========================================================================== */
.app-container {
    display: flex;
    height: calc(100vh - 120px);
    margin-top: 60px;
    overflow: hidden;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--sidebar-background);
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    height: 100%;
    backdrop-filter: var(--backdrop-blur);
    flex-shrink: 0;
}

.sidebar-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-logo {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #fff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-toggle {
    display: none;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.25rem;
    transition: all var(--transition-fast);
}

.sidebar-toggle:hover {
    background: var(--glass-bg);
    color: var(--primary);
}

.sidebar-toggle:active {
    transform: scale(0.95);
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 1rem 0;
}

.sidebar-nav-main {
    list-style: none;
    padding: 0 1rem;
    margin-bottom: 2rem;
}

.sidebar-nav-item {
    margin-bottom: 0.25rem;
}

.sidebar-nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.sidebar-nav-link i {
    margin-right: 0.75rem;
    width: 20px;
    text-align: center;
}

.sidebar-nav-link:hover {
    background: var(--glass-highlight);
    color: var(--text-color);
}

.sidebar-nav-item.active .sidebar-nav-link {
    background: linear-gradient(90deg, rgba(79, 70, 229, 0.3), transparent);
    color: var(--text-color);
    border-left: 3px solid var(--primary-color);
}

.sidebar-section {
    padding: 0 1.5rem;
    margin-bottom: 1.5rem;
}

.sidebar-section .section-header {
    margin-bottom: 1rem;
}

.sidebar-section .section-header h2 {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-dim);
}

.usage-stats {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.usage-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.usage-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.usage-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.usage-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 3px;
    transition: width var(--transition-normal);
}

.usage-count {
    font-size: 0.75rem;
    color: var(--text-dim);
    text-align: right;
}

.upgrade-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    margin-top: 1rem;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.2), rgba(124, 58, 237, 0.2));
    border: 1px solid var(--primary-color);
    border-radius: var(--radius-sm);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    transition: all var(--transition-fast);
}

.upgrade-btn:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.user-details {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 500;
    font-size: 0.9rem;
}

.user-tier {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-dim);
}

.user-tier.basic { color: var(--info-color); }
.user-tier.pro { color: var(--success-color); }

/* ==========================================================================
   5. MAIN CONTENT
   ========================================================================== */
.main-content {
    flex: 1;
    overflow-y: auto;
    background: var(--bg-primary);
    position: relative;
}

.view-panel {
    display: none;
    padding: 2rem;
    height: 100%;
}

.view-panel.active {
    display: block;
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.content-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.content-header h2 i {
    color: var(--primary-color);
}

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

.search-box {
    position: relative;
}

.search-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-dim);
}

.search-box input {
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    color: var(--text-color);
    font-size: 0.9rem;
    width: 250px;
    transition: all var(--transition-fast);
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

.btn-create {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.btn-create:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.4);
}

/* ==========================================================================
   6. DECKS GRID
   ========================================================================== */
.decks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.deck-card {
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.deck-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.deck-preview {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #1a1a2e, #0f0f1a);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    container-type: inline-size;
}

.deck-preview.has-preview {
    align-items: stretch;
    justify-content: stretch;
    background: transparent;
}

.deck-preview-slide {
    width: 100%;
    height: 100%;
    border-radius: 0;
    /* Scale text proportionally with container width
       Target: mimic 960px slide scaled down to ~280px card
       Scale factor: 280/960 ≈ 0.29
       Base font 16px * 0.29 ≈ 4.6px, use ~1.65cqw */
    font-size: 1.65cqw;
}

.deck-preview-slide .slide-content {
    padding: 1.5em 2em;
    gap: 0.8em;
}

.deck-preview-slide .slide-title {
    font-size: 1.75em;
    margin-bottom: 0.5em;
}

.deck-preview-slide .slide-body {
    font-size: 1em;
    line-height: 1.5;
}

.deck-preview-slide .slide-line {
    margin: 0.3em 0;
}

/* Slide visual images in deck preview cards - must scale with container */
.deck-preview-slide .slide-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.deck-preview-slide .slide-visual img {
    max-width: 70%;
    max-height: 70%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 0.5em 1.5em rgba(0, 0, 0, 0.25);
}

/* When deck preview has background, add stronger shadow to image */
.deck-preview-slide.has-background .slide-visual img {
    box-shadow: 0 0.75em 1.875em rgba(0, 0, 0, 0.35);
}

.deck-preview-placeholder {
    font-size: 2.5rem;
    color: var(--text-dim);
}

/* Background images for deck preview (not slide visual images) */
.deck-preview > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.deck-info {
    padding: 1rem;
}

.deck-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.deck-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.deck-slides {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.deck-actions {
    display: flex;
    gap: 0.5rem;
}

.deck-action-btn {
    padding: 0.35rem;
    border-radius: var(--radius-sm);
    color: var(--text-dim);
    transition: all var(--transition-fast);
}

.deck-action-btn:hover {
    background: var(--glass-highlight);
    color: var(--text-color);
}

.deck-action-btn.delete:hover {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger-color);
}

/* Loading State */
.loading-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    color: var(--text-muted);
}

.spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Empty State */
.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
}

.empty-icon {
    font-size: 3rem;
    color: var(--text-dim);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.btn-create-first {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-create-first:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
}

/* ==========================================================================
   7. CREATE WIZARD
   ========================================================================== */
.create-wizard {
    max-width: 800px;
    margin: 0 auto;
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
}

.step-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.step-number {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.step-label {
    font-size: 1.25rem;
    font-weight: 600;
}

.step-content {
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-color);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.form-group input[type="color"] {
    padding: 0.4rem;
    height: 46px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

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

.form-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: 0.35rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.checkbox-label {
    margin-left: 0.5rem;
}

.step-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--glass-border);
}

.outline-actions {
    display: flex;
    gap: 0.75rem;
}

.step-actions .outline-actions {
    margin-left: auto;
}

.brand-kit {
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
    margin-top: 1rem;
}

.brand-kit h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
}

.form-group input[type="file"] {
    padding: 0.6rem 0.8rem;
}

/* ==========================================================================
   7a. SOURCE INGESTION
   ========================================================================== */
.source-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.25));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.source-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.source-title {
    font-weight: 600;
    font-size: 1rem;
}

.source-subtitle {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-top: 0.35rem;
}

.source-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    white-space: nowrap;
}

.source-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.source-card textarea,
.source-card input[type="url"] {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-color);
    font-size: 0.95rem;
    transition: all var(--transition-fast);
}

.source-card textarea:focus,
.source-card input[type="url"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

.source-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.35);
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.source-tab.active {
    border-color: var(--primary-color);
    background: rgba(79, 70, 229, 0.2);
    color: var(--text-color);
}

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

.source-panel {
    display: none;
}

.source-panel.active {
    display: block;
}

.source-panel textarea {
    min-height: 140px;
}

.source-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.75rem;
}

.source-count {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.source-count.over {
    color: var(--warning-color);
}

.source-drop {
    position: relative;
    border-radius: var(--radius-md);
    border: 1px dashed var(--glass-border);
    padding: 1.5rem;
    text-align: center;
    background: rgba(10, 12, 22, 0.45);
    transition: all var(--transition-fast);
}

.source-drop.is-dragging {
    border-color: var(--secondary-color);
    background: rgba(79, 70, 229, 0.18);
}

.source-drop input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.source-drop-inner i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.source-drop-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.source-drop-note {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.source-link-row {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.source-link-row input {
    flex: 1;
}

.source-list {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.source-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.source-list-title {
    font-weight: 600;
}

.source-list-meta {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.source-clear {
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.source-clear:hover {
    border-color: var(--primary-color);
    color: var(--text-color);
}

.source-clear:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.source-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.source-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.25);
}

.source-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(79, 70, 229, 0.2);
    color: var(--primary-color);
}

.source-info {
    flex: 1;
}

.source-name {
    font-weight: 600;
    font-size: 0.9rem;
}

.source-meta {
    font-size: 0.75rem;
    color: var(--text-dim);
}

.source-remove {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

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

.source-empty {
    text-align: center;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    border: 1px dashed var(--glass-border);
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* Spreadsheet Analysis Options */
.spreadsheet-options {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(16, 185, 129, 0.3);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    animation: fadeSlideIn 0.3s ease-out;
}

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

.spreadsheet-options-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: #10b981;
}

.spreadsheet-options-header i {
    font-size: 1rem;
}

.spreadsheet-options-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.analysis-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: var(--radius-sm);
    border: 2px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.analysis-option:hover {
    border-color: var(--glass-highlight);
    background: rgba(0, 0, 0, 0.3);
}

.analysis-option:has(input:checked) {
    border-color: var(--primary-color);
    background: rgba(79, 70, 229, 0.15);
}

.analysis-option input[type="radio"] {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.analysis-option-content {
    flex: 1;
}

.analysis-option-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.analysis-option-title i {
    font-size: 0.85rem;
    color: var(--primary-color);
}

.analysis-option-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.analysis-option-desc strong {
    color: var(--text-color);
}

.analysis-badge {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.analysis-badge.recommended {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.analysis-badge.premium {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

.analysis-prompt-section {
    margin-top: 0.5rem;
    padding: 0.875rem;
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--glass-border);
    animation: fadeSlideIn 0.3s ease-out;
}

.analysis-prompt-section label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}

.analysis-prompt-section textarea {
    width: 100%;
    padding: 0.625rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-color);
    font-size: 0.85rem;
    resize: vertical;
    min-height: 60px;
}

.analysis-prompt-section textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.analysis-prompt-section textarea::placeholder {
    color: var(--text-dim);
}

.reference-preview {
    margin-top: 0.6rem;
    padding: 0.75rem;
    min-height: 96px;
    border-radius: var(--radius-sm);
    border: 1px dashed var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 0.85rem;
    text-align: center;
}

.reference-preview img {
    max-width: 100%;
    max-height: 140px;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

.palette-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

.palette-swatch {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.5rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 999px;
    font-size: 0.75rem;
    color: #e2e8f0;
}

.palette-swatch .swatch-chip {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-primary,
.btn-secondary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.4);
}

.btn-secondary {
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    color: var(--text-color);
}

.btn-secondary:hover {
    background: var(--glass-highlight);
}

/* Theme Selector */
.theme-selector {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.theme-option {
    cursor: pointer;
    text-align: center;
    padding: 0.5rem;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    transition: all var(--transition-fast);
}

.theme-option:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.theme-option.selected {
    border-color: var(--primary-color);
    background: rgba(79, 70, 229, 0.1);
}

.theme-preview {
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-sm);
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.theme-preview .preview-header {
    height: 25%;
}

.theme-preview .preview-body {
    height: 75%;
}

/* Dark themes */
.theme-preview.midnight .preview-header { background: #1e1b4b; }
.theme-preview.midnight .preview-body { background: #0f172a; }

.theme-preview.ocean .preview-header { background: #0891b2; }
.theme-preview.ocean .preview-body { background: #164e63; }

.theme-preview.forest .preview-header { background: #15803d; }
.theme-preview.forest .preview-body { background: #14532d; }

.theme-preview.sunset .preview-header { background: #c2410c; }
.theme-preview.sunset .preview-body { background: #7c2d12; }

.theme-preview.plum .preview-header { background: #7c3aed; }
.theme-preview.plum .preview-body { background: #2e1065; }

.theme-preview.slate .preview-header { background: #475569; }
.theme-preview.slate .preview-body { background: #1e293b; }

.theme-preview.rose .preview-header { background: #db2777; }
.theme-preview.rose .preview-body { background: #4a0519; }

.theme-preview.ember .preview-header { background: #dc2626; }
.theme-preview.ember .preview-body { background: #450a0a; }

/* Light themes */
.theme-preview.corporate .preview-header { background: #1e40af; }
.theme-preview.corporate .preview-body { background: #f8fafc; }

.theme-preview.minimal .preview-header { background: #e2e8f0; }
.theme-preview.minimal .preview-body { background: #ffffff; }

.theme-preview.sand .preview-header { background: #a8a29e; }
.theme-preview.sand .preview-body { background: #faf5f0; }

.theme-preview.cloud .preview-header { background: #60a5fa; }
.theme-preview.cloud .preview-body { background: #f0f9ff; }

/* Custom theme */
.theme-preview.custom .preview-header { background: var(--custom-accent, #6366f1); }
.theme-preview.custom .preview-body { background: var(--custom-bg, #1a1a2e); }

.theme-option-custom {
    border-style: dashed;
}

.theme-category-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 1.25rem 0 0.5rem 0;
}

.theme-category-label:first-of-type {
    margin-top: 0;
}

.custom-theme-picker {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 0.75rem;
}

.custom-color-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.custom-color-group {
    flex: 1;
    min-width: 120px;
}

.custom-color-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.35rem;
}

.color-input-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.color-input-wrapper input[type="color"] {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    padding: 0;
    background: transparent;
}

.color-input-wrapper input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 2px;
}

.color-input-wrapper input[type="color"]::-webkit-color-swatch {
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
}

.color-input-wrapper input[type="text"] {
    flex: 1;
    padding: 0.5rem;
    font-size: 0.8rem;
    font-family: monospace;
    border: 1px solid var(--border-color);
    border-radius: 0.375rem;
    background: var(--bg-primary);
    color: var(--text-primary);
    text-transform: uppercase;
}

.custom-theme-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    margin-bottom: 0;
}

.theme-option span {
    font-size: 0.85rem;
    font-weight: 500;
    display: block;
}

.theme-option .theme-colors {
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

.theme-selector-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    text-align: center;
}

/* Style suggestions for background patterns */
.style-suggestions {
    margin-top: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.suggestion-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-right: 0.25rem;
}

.style-chip {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-secondary);
    padding: 0.25rem 0.65rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.style-chip:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--primary-color);
    color: var(--text-primary);
}

.style-chip.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Generation Progress */
.generation-progress {
    text-align: center;
    padding: 3rem 2rem;
}

.progress-animation {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
}

.progress-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    color: var(--primary-color);
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.1); }
}

.progress-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 6;
}

.progress-fill {
    fill: none;
    stroke: url(#progressGradient);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 0.5s ease;
}

.generation-progress h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.generation-progress p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.progress-caption {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-dim);
}

.progress-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 300px;
    margin: 0 auto;
}

.p-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--glass-surface);
    border-radius: var(--radius-sm);
    color: var(--text-dim);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.p-step.active {
    color: var(--text-color);
    background: rgba(79, 70, 229, 0.2);
}

.p-step.active i {
    color: var(--primary-color);
    animation: pulse 1s infinite;
}

.p-step.complete {
    color: var(--success-color);
}

.p-step.complete i::before {
    content: "\f00c";
}

/* ==========================================================================
   8. TEMPLATES GRID
   ========================================================================== */
.templates-hint {
    margin-bottom: 1.5rem;
    color: var(--text-dim);
    max-width: 520px;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.template-card {
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.template-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.template-preview {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.template-preview.pitch { background: linear-gradient(135deg, #f97316, #ea580c); }
.template-preview.quarterly { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.template-preview.training { background: linear-gradient(135deg, #22c55e, #15803d); }
.template-preview.product { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.template-preview.portfolio { background: linear-gradient(135deg, #ec4899, #be185d); }
.template-preview.proposal { background: linear-gradient(135deg, #06b6d4, #0891b2); }

.template-card h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.template-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================================================
   8a. STATUS PANEL
   ========================================================================== */
.status-panel {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 1200;
    width: min(320px, 90vw);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    background: rgba(10, 12, 22, 0.9);
    border: 1px solid var(--glass-border);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(12px);
    display: none;
}

.status-panel.show {
    display: block;
}

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

.status-spinner {
    width: 28px;
    height: 28px;
    border-width: 3px;
    margin: 0;
}

.status-title {
    font-weight: 600;
}

.status-subtitle {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.status-progress {
    margin-top: 0.75rem;
    height: 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    overflow: hidden;
    display: none;
}

.status-progress.show {
    display: block;
}

.status-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.3s ease;
}

.status-progress.indeterminate .status-progress-bar {
    width: 40%;
    animation: progress-slide 1.2s ease-in-out infinite;
}

@keyframes progress-slide {
    0% { transform: translateX(-60%); }
    100% { transform: translateX(200%); }
}

.status-meta {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sidebar-nav-item.is-disabled .sidebar-nav-link {
    opacity: 0.5;
    cursor: not-allowed;
}

.deck-card.is-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.app-container button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==========================================================================
   8b. NOTIFICATIONS DROPDOWN
   ========================================================================== */
.notification-dropdown {
    position: fixed;
    top: 72px;
    right: 24px;
    width: min(360px, 92vw);
    max-width: 360px;
    max-height: min(520px, 70vh);
    background: var(--sidebar-background);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    z-index: 1800;
    display: none !important;
    overflow: hidden;
    pointer-events: none;
}

.notification-dropdown.show,
.notification-dropdown.active,
.notification-dropdown.is-open {
    display: block !important;
    pointer-events: auto;
}

.notification-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.notification-header h4 {
    margin: 0;
    font-size: 0.9rem;
}

.mark-all-read {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    transition: all var(--transition-fast);
}

.mark-all-read:hover {
    border-color: var(--primary-color);
    color: var(--text-color);
}

.notification-list {
    max-height: calc(70vh - 56px);
    overflow-y: auto;
}

.notification-list .notification-item,
.notification-list li {
    padding: 0.8rem 1rem;
    border-bottom: 1px solid var(--glass-border);
}

.notification-list .notification-item:last-child,
.notification-list li:last-child {
    border-bottom: none;
}

/* ==========================================================================
   9. EDITOR
   ========================================================================== */
.editor-container {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.editor-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--sidebar-background);
    border-bottom: 1px solid var(--glass-border);
    overflow: visible;
    position: relative;
    z-index: 10000;
}

.toolbar-left,
.toolbar-center,
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toolbar-btn {
    padding: 0.5rem 0.75rem;
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-color);
    transition: all var(--transition-fast);
}

.toolbar-btn:hover {
    background: var(--glass-highlight);
}

.toolbar-btn.has-tooltip {
    position: relative;
}

.toolbar-btn.has-tooltip .toolbar-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    opacity: 0;
    pointer-events: none;
    z-index: 10001;
    width: 220px;
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.45);
    color: #f8fafc;
    font-size: 0.82rem;
    line-height: 1.35;
    text-align: left;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.toolbar-btn.has-tooltip .toolbar-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 7px 7px 0 7px;
    border-style: solid;
    border-color: rgba(15, 23, 42, 0.95) transparent transparent transparent;
}

.toolbar-btn.has-tooltip:hover .toolbar-tooltip,
.toolbar-btn.has-tooltip:focus-visible .toolbar-tooltip {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toolbar-tooltip .tooltip-title {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.toolbar-tooltip .tooltip-body {
    display: block;
    color: rgba(248, 250, 252, 0.85);
}

.deck-title-input {
    background: transparent;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    padding: 0.5rem;
    width: 300px;
}

.deck-title-input:focus {
    outline: none;
    background: var(--glass-surface);
    border-radius: var(--radius-sm);
}

.btn-export {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.btn-export:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(124, 58, 237, 0.4);
}

.editor-main {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.slides-panel {
    width: 200px;
    background: var(--sidebar-background);
    border-right: 1px solid var(--glass-border);
    overflow-y: auto;
    padding: 1rem;
}

.slides-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.slide-thumbnail {
    aspect-ratio: 16 / 9;
    background: #1a1a2e;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-fast);
}

.slide-thumbnail:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.slide-thumbnail.active {
    border-color: var(--primary-color);
}

.slide-thumbnail-number {
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.7);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
}

.slide-canvas {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a12;
    overflow: hidden;
    padding: 2rem;
}

.canvas-wrapper {
    width: 100%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    container-type: inline-size;
    container-name: slide;
    /* Prevent overflow when slide is scaled */
    overflow: hidden;
}

.slide-preview {
    /* Fixed dimensions matching 16:9 at max size */
    width: 960px;
    height: 540px;
    background: var(--slide-bg, #1a1a2e);
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    /* Base font size - all em units relative to this */
    font-size: 16px;
    /* Default scale */
    --slide-scale: 1;
    transform: scale(var(--slide-scale));
    transform-origin: top left;
}

/* Scale the entire slide uniformly - text AND images scale together */
@container slide (max-width: 959px) {
    .slide-preview {
        --slide-scale: calc(100cqw / 960px);
    }
}

.slide-preview,
.preview-slide,
.variant-slide,
.deck-preview-slide {
    --brand-accent: #3b82f6;
    --brand-heading-font: "Inter", sans-serif;
    --brand-body-font: "Inter", sans-serif;
    --slide-bg: #0f172a;
    --slide-text: #f8fafc;
    --slide-muted: rgba(248, 250, 252, 0.82);
    --slide-scrim: rgba(10, 10, 10, 0.35);
    position: relative;
    overflow: hidden;
}

.slide-preview[data-theme="midnight"],
.preview-slide[data-theme="midnight"],
.variant-slide[data-theme="midnight"],
.deck-preview-slide[data-theme="midnight"] {
    --slide-bg: #0f172a;
    --slide-text: #f8fafc;
    --slide-muted: rgba(248, 250, 252, 0.82);
}

.slide-preview[data-theme="ocean"],
.preview-slide[data-theme="ocean"],
.variant-slide[data-theme="ocean"],
.deck-preview-slide[data-theme="ocean"] {
    --slide-bg: #0f2a38;
    --slide-text: #e0f2fe;
    --slide-muted: rgba(224, 242, 254, 0.82);
}

.slide-preview[data-theme="forest"],
.preview-slide[data-theme="forest"],
.variant-slide[data-theme="forest"],
.deck-preview-slide[data-theme="forest"] {
    --slide-bg: #102a1a;
    --slide-text: #dcfce7;
    --slide-muted: rgba(220, 252, 231, 0.82);
}

.slide-preview[data-theme="sunset"],
.preview-slide[data-theme="sunset"],
.variant-slide[data-theme="sunset"],
.deck-preview-slide[data-theme="sunset"] {
    --slide-bg: #3b0a05;
    --slide-text: #ffedd5;
    --slide-muted: rgba(255, 237, 213, 0.82);
}

.slide-preview[data-theme="plum"],
.preview-slide[data-theme="plum"],
.variant-slide[data-theme="plum"],
.deck-preview-slide[data-theme="plum"] {
    --slide-bg: #2e1065;
    --slide-text: #f5f3ff;
    --slide-muted: rgba(245, 243, 255, 0.82);
}

.slide-preview[data-theme="slate"],
.preview-slide[data-theme="slate"],
.variant-slide[data-theme="slate"],
.deck-preview-slide[data-theme="slate"] {
    --slide-bg: #1e293b;
    --slide-text: #f1f5f9;
    --slide-muted: rgba(241, 245, 249, 0.82);
}

.slide-preview[data-theme="rose"],
.preview-slide[data-theme="rose"],
.variant-slide[data-theme="rose"],
.deck-preview-slide[data-theme="rose"] {
    --slide-bg: #4a0519;
    --slide-text: #fdf2f8;
    --slide-muted: rgba(253, 242, 248, 0.82);
}

.slide-preview[data-theme="ember"],
.preview-slide[data-theme="ember"],
.variant-slide[data-theme="ember"],
.deck-preview-slide[data-theme="ember"] {
    --slide-bg: #450a0a;
    --slide-text: #fef2f2;
    --slide-muted: rgba(254, 242, 242, 0.82);
}

.slide-preview[data-theme="corporate"],
.preview-slide[data-theme="corporate"],
.variant-slide[data-theme="corporate"],
.deck-preview-slide[data-theme="corporate"] {
    --slide-bg: #f8fafc;
    --slide-text: #0f172a;
    --slide-muted: rgba(15, 23, 42, 0.7);
    --slide-scrim: rgba(255, 255, 255, 0.68);
}

.slide-preview[data-theme="minimal"],
.preview-slide[data-theme="minimal"],
.variant-slide[data-theme="minimal"],
.deck-preview-slide[data-theme="minimal"] {
    --slide-bg: #ffffff;
    --slide-text: #0f172a;
    --slide-muted: rgba(15, 23, 42, 0.65);
    --slide-scrim: rgba(255, 255, 255, 0.7);
}

.slide-preview[data-theme="sand"],
.preview-slide[data-theme="sand"],
.variant-slide[data-theme="sand"],
.deck-preview-slide[data-theme="sand"] {
    --slide-bg: #faf5f0;
    --slide-text: #292524;
    --slide-muted: rgba(41, 37, 36, 0.7);
    --slide-scrim: rgba(250, 245, 240, 0.68);
}

.slide-preview[data-theme="cloud"],
.preview-slide[data-theme="cloud"],
.variant-slide[data-theme="cloud"],
.deck-preview-slide[data-theme="cloud"] {
    --slide-bg: #f0f9ff;
    --slide-text: #0c4a6e;
    --slide-muted: rgba(12, 74, 110, 0.7);
    --slide-scrim: rgba(240, 249, 255, 0.68);
}

.slide-preview[data-theme="custom"],
.preview-slide[data-theme="custom"],
.variant-slide[data-theme="custom"],
.deck-preview-slide[data-theme="custom"] {
    --slide-bg: var(--custom-bg, #1a1a2e);
    --slide-text: var(--custom-text, #ffffff);
    --slide-muted: var(--custom-muted, rgba(255, 255, 255, 0.82));
}

.slide-preview,
.preview-slide,
.variant-slide,
.deck-preview-slide {
    background: var(--slide-bg);
    color: var(--slide-text);
}

.slide-background {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: saturate(1.05);
    transform: scale(1.02);
}

.slide-scrim {
    position: absolute;
    inset: 0;
    background: var(--slide-scrim);
}

.slide-content {
    display: flex;
    flex-direction: column;
    gap: 1.25em;
    padding: 2em 2.5em;
    height: 100%;
    position: relative;
    z-index: 2;
}

.slide-content.layout-image-right {
    flex-direction: row;
    align-items: center;
}

.slide-content.layout-image-right .slide-text {
    flex: 1;
}

.slide-content.layout-image-right .slide-visual {
    flex: 0 0 38%;
}

.slide-content.layout-image-left {
    flex-direction: row-reverse;
    align-items: center;
}

.slide-content.layout-image-left .slide-text {
    flex: 1;
}

.slide-content.layout-image-left .slide-visual {
    flex: 0 0 38%;
}

.slide-content.has-image:not(.layout-image-right):not(.layout-image-left) .slide-visual {
    margin-top: 0.5em;
}

.slide-preview.has-background .slide-visual img,
.preview-slide.has-background .slide-visual img,
.variant-slide.has-background .slide-visual img,
.deck-preview-slide.has-background .slide-visual img {
    border-radius: 50%;
    box-shadow: 0 0.75em 1.875em rgba(0, 0, 0, 0.35);
}

.slide-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-visual img {
    max-width: 70%;
    max-height: 70%;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 0.5em 1.5em rgba(0, 0, 0, 0.25);
}

.slide-content.layout-two-column .slide-body {
    column-count: 2;
    column-gap: 2em;
}

.slide-content.text-align-center .slide-text {
    text-align: center;
}

.slide-content.text-align-right .slide-text {
    text-align: right;
}

.slide-content.text-align-right .slide-line.bullet {
    padding-left: 0;
    padding-right: 1em;
}

.slide-content.text-align-right .slide-line.bullet::before {
    left: auto;
    right: 0;
}

.slide-content.text-align-center .slide-line.bullet {
    padding-left: 0;
}

.slide-content.text-align-center .slide-line.bullet::before {
    display: none;
}

.slide-content.text-size-small .slide-title {
    font-size: 1.4em;
}

.slide-content.text-size-small .slide-body {
    font-size: 0.9em;
}

.slide-content.text-size-large .slide-title {
    font-size: 2.2em;
}

.slide-content.text-size-large .slide-body {
    font-size: 1.3em;
}

.slide-content.text-width-narrow .slide-text {
    max-width: 55%;
}

.slide-content.text-width-wide .slide-text {
    max-width: 85%;
}

.slide-content.text-valign-top {
    justify-content: flex-start;
}

.slide-content.text-valign-middle {
    justify-content: center;
}

.slide-content.text-valign-bottom {
    justify-content: flex-end;
}

.slide-content.layout-image-right.text-valign-top,
.slide-content.layout-image-left.text-valign-top {
    align-items: flex-start;
}

.slide-content.layout-image-right.text-valign-middle,
.slide-content.layout-image-left.text-valign-middle {
    align-items: center;
}

.slide-content.layout-image-right.text-valign-bottom,
.slide-content.layout-image-left.text-valign-bottom {
    align-items: flex-end;
}

.slide-text {
    min-width: 0;
}

.slide-title {
    font-family: var(--brand-heading-font);
    font-size: 1.75em;
    margin-bottom: 0.75em;
    color: var(--slide-text);
}

.preview-slide .slide-title {
    font-size: 2.2em;
}

.slide-body {
    font-family: var(--brand-body-font);
    color: var(--slide-muted);
    font-size: 1em;
    line-height: 1.6;
}

.preview-slide .slide-body {
    font-size: 1.2em;
    line-height: 1.7;
}

.slide-line {
    margin: 0.35em 0;
}

.slide-line.bullet {
    padding-left: 0;
    position: relative;
}

.slide-line.bullet::before {
    display: none;
}

.slide-content.layout-image-right .slide-visual img,
.slide-content.layout-image-left .slide-visual img {
    max-width: 100%;
    border-radius: 50%;
    object-fit: contain;
    box-shadow: 0 0.625em 1.5em rgba(0, 0, 0, 0.3);
}

.slide-content.has-image:not(.layout-image-right):not(.layout-image-left) {
    min-height: 0;
}

.slide-content.has-image:not(.layout-image-right):not(.layout-image-left) .slide-text {
    flex: 1 1 auto;
    min-height: 0;
}

.slide-content.has-image:not(.layout-image-right):not(.layout-image-left) .slide-visual {
    flex: 0 1 40%;
    min-height: 0;
}

.slide-content.has-image:not(.layout-image-right):not(.layout-image-left) .slide-visual img {
    height: 100%;
    object-fit: contain;
}

/* Vertical alignment for content layouts with image below - subtle shift to match PowerPoint */
.slide-content.has-image:not(.layout-image-right):not(.layout-image-left).text-valign-middle .slide-text {
    padding-top: 0.5em;
}

/* When bottom alignment with image: use grid to place image BETWEEN title and body */
.slide-content.has-image:not(.layout-image-right):not(.layout-image-left).text-valign-bottom {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr;
    grid-template-areas: 
        "title"
        "image"
        "body";
    gap: 0.5em;
}

.slide-content.has-image:not(.layout-image-right):not(.layout-image-left).text-valign-bottom .slide-text {
    display: contents;
}

.slide-content.has-image:not(.layout-image-right):not(.layout-image-left).text-valign-bottom .slide-title {
    grid-area: title;
}

.slide-content.has-image:not(.layout-image-right):not(.layout-image-left).text-valign-bottom .slide-body {
    grid-area: body;
}

.slide-content.has-image:not(.layout-image-right):not(.layout-image-left).text-valign-bottom .slide-visual {
    grid-area: image;
    margin: 0;
}

.slide-preview[data-density="airy"] .slide-content,
.preview-slide[data-density="airy"] .slide-content,
.variant-slide[data-density="airy"] .slide-content {
    padding: 2.5em 3em;
}

.slide-preview[data-density="dense"] .slide-content,
.preview-slide[data-density="dense"] .slide-content,
.variant-slide[data-density="dense"] .slide-content {
    padding: 1.5em 2em;
}

.slide-preview[data-density="dense"] .slide-body,
.variant-slide[data-density="dense"] .slide-body {
    font-size: 0.9em;
}

.properties-panel {
    width: 280px;
    background: var(--sidebar-background);
    border-left: 1px solid var(--glass-border);
    padding: 1.5rem;
    overflow-y: auto;
}

.properties-panel h3 {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--glass-border);
}

.property-group {
    margin-bottom: 1.25rem;
}

.property-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.property-group input,
.property-group textarea,
.property-group select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text-color);
    font-size: 0.9rem;
}

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

.toggle-group {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.toggle-group button {
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-color);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.toggle-group button.active {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary-color);
}

.toggle-group button i {
    font-size: 0.85rem;
}

.btn-apply {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    background: var(--primary-color);
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 600;
    margin-top: 1.5rem;
    transition: all var(--transition-fast);
}

.btn-apply:hover {
    background: var(--primary-dark);
}

.property-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 1.5rem 0;
}

.property-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.layout-health {
    margin-top: 1.25rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
}

.layout-health-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
}

.layout-score {
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.layout-score.warn {
    background: rgba(234, 179, 8, 0.2);
    color: #facc15;
}

.layout-score.bad {
    background: rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.layout-warnings {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.layout-warnings li.good {
    list-style: none;
    padding-left: 0;
    color: #34d399;
}

.chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.25);
    font-size: 0.75rem;
    cursor: pointer;
}

.chip input {
    accent-color: var(--primary-color);
}

/* ==========================================================================
   10. MODALS
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    display: block;
    background: var(--sidebar-background);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    height: auto;
    position: relative;
    width: 90%;
    max-width: 450px;
    overflow: hidden;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.modal-header h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.modal-close {
    font-size: 1.5rem;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
}

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

.modal-body {
    padding: 1.5rem;
}

.modal-body p {
    color: var(--text-muted);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
}

.usage-limit-overlay {
    z-index: 3000;
}

.usage-limit-modal {
    max-width: 520px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 24px 60px rgba(5, 10, 25, 0.55);
    --limit-accent: var(--warning-color);
    --limit-accent-2: var(--danger-color);
}

.usage-limit-modal.is-images {
    --limit-accent: #38bdf8;
    --limit-accent-2: #0ea5e9;
}

.usage-limit-modal.is-decks {
    --limit-accent: #f59e0b;
    --limit-accent-2: #f97316;
}

.usage-limit-hero {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.9));
    position: relative;
    overflow: hidden;
}

.usage-limit-hero::after {
    content: '';
    position: absolute;
    top: -120px;
    right: -80px;
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25), transparent 70%);
    opacity: 0.3;
    pointer-events: none;
}

.usage-limit-hero > * {
    position: relative;
    z-index: 1;
}

.usage-limit-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--limit-accent), var(--limit-accent-2));
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
    font-size: 1.35rem;
}

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

.usage-limit-text h3 {
    margin: 0;
    font-size: 1.15rem;
}

.usage-limit-text p {
    margin: 0.25rem 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.usage-limit-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.usage-limit-body p {
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.usage-limit-meter {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.usage-limit-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--limit-accent), var(--limit-accent-2));
    transition: width var(--transition-normal);
}

.usage-limit-meta {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-dim);
    text-align: right;
}

.usage-limit-tips {
    margin-top: 1rem;
    display: grid;
    gap: 0.5rem;
}

.usage-limit-tip {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.18);
    color: var(--text-muted);
    font-size: 0.85rem;
}

.usage-limit-tip i {
    color: var(--limit-accent);
}

.usage-limit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
}

.btn-danger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: var(--danger-color);
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 600;
    transition: all var(--transition-fast);
}

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

/* Preview Overlay */
.preview-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.98);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50000;
    padding: 1rem;
    box-sizing: border-box;
    overflow: hidden;
}

.preview-overlay.show {
    display: flex;
}

.preview-container {
    width: 100%;
    max-width: 1200px;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-sizing: border-box;
}

.preview-close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 50001;
}

.preview-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.preview-slide-wrapper {
    width: 100%;
    max-width: 1200px;
    /* Constrain height so slide + controls fit in viewport */
    max-height: calc(100vh - 8rem);
    max-height: calc(100dvh - 8rem);
    aspect-ratio: 16 / 9;
    container-type: inline-size;
    container-name: preview-slide;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.preview-slide {
    /* Fixed dimensions - same as main canvas for consistency */
    width: 960px;
    height: 540px;
    background: var(--slide-bg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-sizing: border-box;
    /* Base font size - all em units relative to this */
    font-size: 16px;
    /* Default scale */
    --preview-scale: 1;
    transform: scale(var(--preview-scale));
    transform-origin: top left;
}

/* Scale the entire preview slide uniformly like PowerPoint */
@container preview-slide (max-width: 959px) {
    .preview-slide {
        --preview-scale: calc(100cqw / 960px);
    }
}

/* When container is larger than 960px, scale up proportionally */
@container preview-slide (min-width: 960px) {
    .preview-slide {
        --preview-scale: calc(100cqw / 960px);
    }
}

.preview-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
    padding: 0.5rem 0;
    flex-shrink: 0;
}

.preview-controls button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    color: white;
    font-size: 1.25rem;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.preview-controls button:hover {
    background: var(--primary-color);
}

#slideCounter {
    font-size: 1rem;
    color: var(--text-muted);
    min-width: 4rem;
    text-align: center;
}

/* Preview Responsive - Tablet */
@media (max-width: 1024px) {
    .preview-overlay {
        padding: 0.75rem;
    }

    .preview-slide-wrapper {
        max-height: calc(100vh - 7rem);
        max-height: calc(100dvh - 7rem);
    }

    .preview-close {
        top: 0.75rem;
        right: 0.75rem;
        width: 44px;
        height: 44px;
        font-size: 1.3rem;
    }
}

/* Preview Responsive - Mobile */
@media (max-width: 768px) {
    .preview-overlay {
        padding: 0.5rem;
    }

    .preview-container {
        width: 100%;
        justify-content: center;
    }

    .preview-slide-wrapper {
        max-height: calc(100vh - 6rem);
        max-height: calc(100dvh - 6rem);
        border-radius: var(--radius-sm);
    }

    .preview-close {
        top: 0.5rem;
        right: 0.5rem;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .preview-controls {
        gap: 1.5rem;
        margin-top: 0.75rem;
    }

    .preview-controls button {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    #slideCounter {
        font-size: 0.9rem;
    }
}

/* Preview Responsive - Small Mobile */
@media (max-width: 480px) {
    .usage-limit-actions {
        flex-direction: column;
    }

    .usage-limit-actions .btn-primary,
    .usage-limit-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .preview-overlay {
        padding: 0.35rem;
    }

    .preview-slide-wrapper {
        max-height: calc(100vh - 5rem);
        max-height: calc(100dvh - 5rem);
    }

    .preview-close {
        top: 0.35rem;
        right: 0.35rem;
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .preview-controls {
        gap: 1rem;
        margin-top: 0.5rem;
    }

    .preview-controls button {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    #slideCounter {
        font-size: 0.85rem;
        min-width: 3.5rem;
    }
}

/* Preview Responsive - Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .preview-overlay {
        padding: 0.5rem;
    }

    .preview-slide-wrapper {
        max-height: calc(100vh - 4rem);
        max-height: calc(100dvh - 4rem);
    }

    .preview-controls {
        margin-top: 0.5rem;
    }

    .preview-controls button {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }

    .preview-close {
        width: 32px;
        height: 32px;
        font-size: 0.9rem;
    }
}

/* Preview Responsive - Very Short Screens */
@media (max-height: 400px) {
    .preview-slide-wrapper {
        max-height: calc(100vh - 3.5rem);
        max-height: calc(100dvh - 3.5rem);
    }

    .preview-controls {
        margin-top: 0.25rem;
        gap: 0.75rem;
    }

    .preview-controls button {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .preview-close {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
        top: 0.25rem;
        right: 0.25rem;
    }
}

/* Variant Compare Modal */
.variant-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1150;
}

.variant-overlay.show {
    display: flex;
}

.variant-modal {
    width: 92%;
    max-width: 1200px;
    background: var(--sidebar-background);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.variant-header,
.variant-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.variant-footer {
    border-bottom: none;
    border-top: 1px solid var(--glass-border);
    gap: 0.75rem;
}

.variant-header h3 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.variant-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

.variant-column h4 {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.variant-slide {
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

/* ==========================================================================
   11. TOAST NOTIFICATIONS
   ========================================================================== */
#toastContainer {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 2000;
}

.toast {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--sidebar-background);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    min-width: 280px;
    max-width: 400px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

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

.toast i {
    font-size: 1.25rem;
}

.toast.success i { color: var(--success-color); }
.toast.error i { color: var(--danger-color); }
.toast.warning i { color: var(--warning-color); }
.toast.info i { color: var(--info-color); }

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.toast-message {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.toast-close {
    padding: 0.25rem;
    color: var(--text-dim);
    background: none;
    border: none;
    cursor: pointer;
}

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

/* ==========================================================================
   12. RESPONSIVE
   ========================================================================== */
@media (max-width: 1200px) {
    .properties-panel {
        width: 240px;
    }
}

@media (max-width: 1024px) {
    .app-container {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 120px);
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
        position: relative;
        z-index: 5;
    }
    
    .sidebar-nav {
        display: none;
    }
    
    .sidebar.expanded .sidebar-nav {
        display: block;
    }
    
    .sidebar-toggle {
        display: block;
        position: relative;
        z-index: 6;
        pointer-events: auto;
    }
    
    .editor-main {
        flex-direction: column;
    }
    
    .slides-panel {
        width: 100%;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }
    
    .slides-list {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .slide-thumbnail {
        min-width: 120px;
    }
    
    .properties-panel {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--glass-border);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .content-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .header-actions {
        width: 100%;
    }
    
    .search-box input {
        width: 100%;
    }

    .outline-actions {
        width: 100%;
        flex-direction: column;
    }

    .source-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .source-link-row {
        flex-direction: column;
        align-items: stretch;
    }

    .variant-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .slide-content.layout-two-column .slide-body {
        column-count: 1;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        padding: 0 1rem;
    }
    
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .theme-selector {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .step-actions {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .variant-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .source-list-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================
   CONSENT MODAL (GDPR)
   ============================================ */

.consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.consent-overlay.active {
    opacity: 1;
    visibility: visible;
}

.consent-modal {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 20px;
    max-width: 580px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

.consent-header {
    text-align: center;
    padding: 2rem 2rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.consent-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.8rem;
    color: white;
}

.consent-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 0.5rem;
}

.consent-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    margin: 0;
}

.consent-body {
    padding: 1.5rem 2rem;
}

.consent-info-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.consent-info-card h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.consent-info-card h4 i {
    color: #6366f1;
}

.consent-info-card ul {
    margin: 0;
    padding-left: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    line-height: 1.7;
}

.consent-info-card ul li {
    margin-bottom: 0.25rem;
}

.consent-info-card ul li strong {
    color: #fff;
}

.consent-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.consent-warning i {
    color: #f59e0b;
    font-size: 1.1rem;
    margin-top: 2px;
}

.consent-checkbox-wrapper {
    padding: 1rem 2rem;
    background: rgba(99, 102, 241, 0.1);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.consent-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.consent-checkbox-label input[type="checkbox"] {
    display: none;
}

.consent-checkbox-label .checkmark {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    margin-top: 2px;
}

.consent-checkbox-label input[type="checkbox"]:checked + .checkmark {
    background: #6366f1;
    border-color: #6366f1;
}

.consent-checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.consent-footer {
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.consent-link {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s ease;
}

.consent-link:hover {
    color: #6366f1;
}

.consent-buttons {
    display: flex;
    gap: 0.75rem;
}

.btn-consent-decline {
    padding: 0.75rem 1.25rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
}

.btn-consent-decline:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.btn-consent-accept {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-consent-accept:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-consent-accept:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

@media (max-width: 480px) {
    .consent-modal {
        border-radius: 16px 16px 0 0;
        max-height: 95vh;
        margin-top: auto;
    }

    .consent-header, .consent-body, .consent-footer {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .consent-footer {
        flex-direction: column;
    }

    .consent-buttons {
        width: 100%;
    }

    .consent-buttons button {
        flex: 1;
    }
}

/* ==========================================================================
   SEO LANDING PAGE ENHANCEMENTS
   ========================================================================== */

/* Hero Trust Signals */
.hero-trust {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.trust-item i {
    color: var(--success-color);
}

/* AI Capabilities Section */
.capabilities-section {
    padding: 5rem 1rem;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.2), transparent);
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 2.5rem auto 0;
}

.capability-item {
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all var(--transition-normal);
}

.capability-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.capability-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.capability-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.capability-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Comparison Section */
.comparison-section {
    padding: 5rem 1rem;
}

.comparison-table-wrapper {
    max-width: 1000px;
    margin: 2.5rem auto 0;
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    background: var(--glass-surface);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.comparison-table th,
.comparison-table td {
    padding: 1rem 1.25rem;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
}

.comparison-table th {
    background: rgba(0, 0, 0, 0.3);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.comparison-table th.highlight,
.comparison-table td.highlight {
    background: rgba(99, 102, 241, 0.15);
    border-left: 2px solid var(--primary-color);
    border-right: 2px solid var(--primary-color);
}

.comparison-table th.highlight {
    background: rgba(99, 102, 241, 0.25);
    color: var(--primary-color);
}

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

.comparison-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.comparison-table .text-success {
    color: var(--success-color);
}

.comparison-table .text-muted {
    color: var(--text-dim);
}

/* FAQ Section */
.faq-section {
    padding: 5rem 1rem;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.15));
}

.faq-grid {
    max-width: 800px;
    margin: 2.5rem auto 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-normal);
}

.faq-item[open] {
    border-color: var(--primary-color);
    background: rgba(99, 102, 241, 0.05);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    list-style: none;
    user-select: none;
}

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

.faq-question span {
    flex: 1;
    padding-right: 1rem;
}

.faq-question i {
    color: var(--text-muted);
    transition: transform var(--transition-normal);
    font-size: 0.9rem;
}

.faq-item[open] .faq-question i {
    transform: rotate(180deg);
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.faq-answer p {
    margin: 0;
}

.faq-answer strong {
    color: var(--text-color);
}

/* SEO Footer Content */
.seo-footer-content {
    padding: 4rem 1rem;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.2);
}

.seo-content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.seo-content-block h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-color);
}

.seo-content-block p {
    font-size: 0.85rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* CTA Section Enhancements */
.cta-action-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.cta-note {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* Pricing Period */
.pricing-period {
    font-size: 0.8rem;
    color: var(--text-dim);
    display: block;
    margin-top: 0.25rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-trust {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.5rem;
    }

    .faq-question {
        font-size: 0.95rem;
        padding: 1rem 1.25rem;
    }

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

    .seo-content-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .comparison-table-wrapper {
        border-radius: var(--radius-sm);
    }

    .comparison-table th:nth-child(n+4),
    .comparison-table td:nth-child(n+4) {
        display: none;
    }
}
