/* ==========================================================================
   1. VARIABLES & RESETS
   ========================================================================== */
:root {
    --bg-main: #0a0a0a;
    --bg-card: #141414;
    --text-primary: #ffffff;
    --text-secondary: #a1a1a9;
    --accent-color: #00cec9;
    --cta-color: #ff7e33; 
    --border-color: #2d2d2d;
    --heart-color: #ff4757;
    --error-color: #ff4757;
    --success-color: #2ed573;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
}

a { 
    text-decoration: none; 
    color: inherit; 
}

/* --- Sleek Header & SVG Logo Alignment --- */
.logo a {
    display: flex;
    align-items: center; /* Centers the SVG vertically with the text */
    gap: 10px;           /* Precise spacing between logo and text */
    text-decoration: none;
    color: inherit;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

.main-logo-img {
    width: 24px;         /* Control size here */
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;      /* Prevents the logo from squishing on small screens */
}

/* ==========================================================================
   2. LAYOUT UTILITIES
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 2%;
}

/* ==========================================================================
   3. HEADER & NAVBAR
   ========================================================================== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    margin-bottom: 10px;
}
.logo { 
    display: flex; 
    align-items: center; 
    font-weight: 800; 
    font-size: 1.3rem; 
    letter-spacing: -0.5px; 
}
.logo-icon { 
    color: var(--accent-color); 
    margin-right: 10px; 
}
.btn-submit {
    background-color: white; 
    color: black; 
    padding: 10px 20px; 
    border-radius: 8px; 
    font-weight: 700; 
    font-size: 0.85rem; 
    transition: background-color 0.2s, transform 0.2s;
}
.btn-submit:hover { 
    background-color: #e0e0e0; 
    transform: translateY(-1px); 
}

/* ==========================================================================
   4. TYPOGRAPHY & HERO SECTIONS
   ========================================================================== */
.hero-section, .page-header { 
    text-align: left; 
    margin-bottom: 40px; 
}
.hero-content h1, .page-title { 
    font-size: clamp(2rem, 4vw, 2.2rem); 
    font-weight: 700; 
    margin-bottom: 15px; 
    line-height: 1.1; 
    letter-spacing: -1px;
}
.hero-content .text-muted, .page-subtitle { 
    color: var(--text-secondary); 
}
.page-subtitle { margin-bottom: 25px; }

.section-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.section-text { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.5; margin-bottom: 20px; }

/* --- Maker Info Refinements --- */
.maker-info {
    display: flex;
    align-items: center;
    margin-top: 20px;
    color: var(--text-secondary);
    font-size: 1rem;
    gap: 8px; /* Adds consistent spacing between all elements in the row */
}

.maker-info a {
    color: #ffffff; /* Sets the link color to pure white */
    font-weight: 600;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3); /* Subtle white underline */
    margin: 0 4px; /* Manual horizontal spacing if gap isn't enough */
    transition: opacity 0.2s ease;
}

.maker-info a:hover {
    opacity: 0.8;
    color: #ffffff;
}

.maker-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin: 0 4px; /* Space between the image and text links */
    border: 2px solid var(--bg-main);
    flex-shrink: 0;
}

/* ==========================================================================
   5. FORMS & INPUTS
   ========================================================================== */
.search-bar-container { display: flex; gap: 15px; margin-bottom: 30px; width: 100%; }

.search-input, .category-select, .form-input, .form-textarea, .form-select {
    background-color: var(--bg-main); 
    border: 1px solid var(--border-color); 
    color: var(--text-primary); 
    border-radius: 8px; 
    font-size: 0.95rem; 
    transition: border-color 0.2s; 
    width: 100%;
}
.search-input, .category-select { padding: 14px 20px; border-radius: 10px; }
.form-input, .form-textarea, .form-select { padding: 14px 16px; }

.search-input:focus, .category-select:focus, .form-input:focus, .form-textarea:focus, .form-select:focus { 
    outline: none; 
    border-color: var(--accent-color); 
}
.category-select { min-width: 200px; cursor: pointer; }
.form-textarea { resize: vertical; min-height: 100px; }

/* Submit Page Specific Form Elements */
.submit-form-card { background-color: var(--bg-card); border: 1px solid var(--border-color); border-radius: 12px; padding: 40px; margin-bottom: 40px; }
.form-group { margin-bottom: 25px; display: flex; flex-direction: column; }
.form-row { display: flex; gap: 20px; }
.form-row .form-group { flex: 1; }
.form-label { font-size: 0.9rem; font-weight: 600; margin-bottom: 10px; color: var(--text-primary); }
.form-label small { color: var(--text-secondary); font-weight: 400; margin-left: 5px; font-size: 0.8rem; }
.optional-tag { color: var(--text-secondary); font-weight: 400; font-size: 0.75rem; margin-left: 8px; padding: 2px 6px; background: #222; border-radius: 4px; }

.input-with-button { display: flex; gap: 10px; }
.btn-fetch { background-color: #2a2a2a; color: white; border: 1px solid #333; padding: 0 20px; border-radius: 8px; cursor: pointer; font-size: 0.85rem; font-weight: 600; white-space: nowrap; transition: background-color 0.2s; }
.btn-fetch:hover { background-color: #333; }

.btn-submit-final { background-color: var(--accent-color); color: black; font-weight: 800; font-size: 1.1rem; width: 100%; padding: 18px; border-radius: 8px; border: none; margin-top: 10px; transition: all 0.3s; }

/* File Upload UI */
.file-upload-wrapper { display: flex; align-items: center; gap: 15px; }
.file-upload-controls { display: flex; align-items: center; gap: 10px; }
.logo-preview-box { width: 56px; height: 56px; background-color: var(--bg-main); border: 1px dashed var(--border-color); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--text-secondary); flex-shrink: 0; overflow: hidden; }
.screenshot-preview-box { width: 100px; height: 60px; background-color: var(--bg-main); border: 1px dashed var(--border-color); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--text-secondary); flex-shrink: 0; overflow: hidden; }
.preview-image { width: 100%; height: 100%; object-fit: contain; }
.custom-file-upload { background-color: #2a2a2a; color: white; border: 1px solid #333; padding: 10px 16px; border-radius: 6px; cursor: pointer; font-size: 0.85rem; font-weight: 600; display: inline-block; transition: background-color 0.2s; margin: 0; }
.custom-file-upload:hover { background-color: #333; }
.file-input { display: none !important; }
.file-name-display { font-size: 0.85rem; color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 200px; }
.file-help-text { display: block; margin-top: 8px; font-size: 0.8rem; color: var(--text-secondary); }

/* ==========================================================================
   6. UI COMPONENTS (Tags, Cards, Timers, Tiers)
   ========================================================================== */
.category-tags-container { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.selected-category-tag { background-color: #1a2333; color: #7296cd; border: 1px solid #28364e; padding: 8px 14px; border-radius: 20px; font-size: 0.85rem; display: inline-flex; align-items: center; gap: 10px; }
.selected-category-tag .remove-tag { cursor: pointer; font-weight: 900; color: #7296cd; font-size: 1rem; transition: color 0.2s; }
.selected-category-tag .remove-tag:hover { color: white; }

.sleek-timer-wrapper { display: flex; align-items: center; gap: 5px; margin-bottom: 40px; flex-wrap: wrap; }
.timer-label-text { color: var(--text-secondary); font-size: 0.80rem; font-weight: 500; letter-spacing: 1px; }
.timer-display { display: flex; align-items: flex-start; gap: 5px; }
.timer-block { display: flex; flex-direction: column; align-items: center; min-width: 60px; }
.t-val { font-size: 1rem; font-weight: 800; line-height: 1; color: var(--text-primary); }
.t-lbl { font-size: 0.70rem; font-weight: 400; letter-spacing: 2px; color: var(--text-secondary); margin-top: 8px; }
.t-sep { font-size: 1rem; font-weight: 600; color: #444; line-height: 1.1; }

.startup-card {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}
.startup-card:hover { transform: translateX(5px); }
.startup-icon { width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; background: #222; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; box-shadow: 0 4px 10px rgba(0,0,0,0.1); margin-top: 2px; }
.startup-details { flex-grow: 1; }
.startup-details h3 { margin-bottom: 8px; font-size: 0.85rem; font-weight: 600; line-height: 1; }
.startup-details p { color: var(--text-secondary); font-size: 0.75rem; line-height: 1.5; max-width: 95%; margin-bottom: 12px; }
.startup-meta { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; min-width: 80px; flex-shrink: 0; margin-top: 2px; }
.category-tag { border: 1px solid var(--border-color); padding: 5px 14px; border-radius: 20px; font-size: 0.8rem; color: var(--text-secondary); white-space: nowrap; background: rgba(255,255,255,0.02); display: inline-block; }
.vote-count { color: var(--heart-color); display: flex; flex-direction: column; align-items: center; font-weight: 700; font-size: 0.75rem; }
.vote-icon { margin-bottom: 4px; font-size: 1.2rem; }

.launch-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--border-color); }
.date-navigator { display: flex; align-items: center; gap: 15px; }
.nav-arrow { background: transparent; border: 1px solid var(--border-color); color: var(--text-primary); width: 32px; height: 32px; border-radius: 6px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background-color 0.2s; }
.nav-arrow:hover { background: var(--border-color); }
.current-date-display { font-size: 1.1rem; font-weight: 600; min-width: 130px; text-align: center; }
.launch-stats { color: var(--text-secondary); font-size: 0.9rem; }
.launch-stats strong { color: var(--text-primary); }

.tier-selection-container { display: flex; gap: 20px; margin-bottom: 30px; margin-top: 10px;}
.tier-card { flex: 1; border: 2px solid var(--border-color); border-radius: 12px; padding: 25px; cursor: pointer; transition: all 0.2s; background: var(--bg-main); }
.tier-card:hover { border-color: #555; }
.tier-card.active { border-color: var(--accent-color); background: rgba(0, 206, 201, 0.05); }
.tier-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.tier-title { font-size: 1.2rem; font-weight: 700; }
.tier-price { font-size: 1.4rem; font-weight: 600; padding-bottom: 1rem; color: var(--text-primary); }
.tier-features { list-style: none; padding: 0; }
.tier-features li { margin-bottom: 10px; font-size: 0.9rem; color: var(--text-secondary); display: flex; align-items: flex-start; gap: 10px; line-height: 1.4; }
.tier-features li::before { content: '✓'; color: var(--accent-color); font-weight: bold; }

.verification-wrapper { display: none; margin-bottom: 30px; animation: fadeIn 0.3s ease; }
.verification-header { display: flex; align-items: center; gap: 10px; color: var(--error-color); font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.verification-header svg { width: 24px; height: 24px; fill: currentColor; }
.verification-desc { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 20px; line-height: 1.5; }

.badge-preview-container { border: 1px solid var(--border-color); border-radius: 12px; padding: 20px; background: #111; margin-bottom: 20px; }
.badge-toggles { display: flex; justify-content: flex-end; gap: 10px; margin-bottom: 20px; }
.badge-toggle-btn { background: transparent; color: var(--text-secondary); border: 1px solid var(--border-color); padding: 5px 15px; border-radius: 6px; font-size: 0.8rem; cursor: pointer; transition: all 0.2s; }
.badge-toggle-btn.active { background: white; color: black; border-color: white; }
.badge-display-area { display: flex; justify-content: center; align-items: center; padding: 20px 0; }

.mock-badge { background: white; color: black; display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px; border-radius: 8px; font-family: sans-serif; box-shadow: 0 4px 12px rgba(0,0,0,0.2); transition: all 0.2s; }
.mock-badge-icon { background: #111; color: white; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; transition: all 0.2s;}
.mock-badge-text { display: flex; flex-direction: column; }
.mock-badge-text small { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.5px; color: #666; text-transform: uppercase; transition: color 0.2s;}
.mock-badge-text strong { font-size: 1rem; font-weight: 800; line-height: 1;}

.mock-badge.dark-theme { background: #111; color: white; border: 1px solid #333; }
.mock-badge.dark-theme .mock-badge-icon { background: white; color: black; }
.mock-badge.dark-theme .mock-badge-text small { color: #aaa; }

.code-snippet-box { background: #1a1a1a; padding: 20px; border-radius: 12px; border: 1px solid var(--border-color); font-family: monospace; color: #a1a1a9; font-size: 0.85rem; margin-bottom: 20px; word-break: break-all; line-height: 1.5; }
.code-snippet-box span.tag { color: #ff79c6; }
.code-snippet-box span.attr { color: #50fa7b; }
.code-snippet-box span.val { color: #f1fa8c; }

.verification-actions { display: flex; gap: 15px; }
.btn-copy { background: transparent; border: 1px solid var(--border-color); color: white; padding: 12px 24px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 0.95rem; transition: background 0.2s;}
.btn-copy:hover { background: #222; }
.btn-verify { background: white; color: black; border: none; padding: 12px 24px; border-radius: 8px; cursor: pointer; font-weight: 700; font-size: 0.95rem; transition: background 0.2s;}
.btn-verify:hover { background: #e0e0e0; }

.payment-wrapper { display: none; margin-bottom: 30px; animation: fadeIn 0.3s ease; text-align: center; padding: 30px; border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg-main);}
.btn-paypal { background: #ffc439; color: #111; border: none; padding: 15px 40px; border-radius: 30px; cursor: pointer; font-weight: 800; font-size: 1.1rem; display: inline-flex; align-items: center; gap: 10px; transition: opacity 0.2s;}
.btn-paypal:hover { opacity: 0.9; }

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

/* ==========================================================================
   7. FOOTER
   ========================================================================= */
.site-footer {
    display: flex;
    flex-direction: column;
    padding: 50px 0 30px 0;
    margin-top: 80px;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: linear-gradient(to bottom, var(--bg-main), #050505);
}

.footer-badges-section { display: flex; flex-direction: column; align-items: center; margin-bottom: 40px; width: 100%; }
.badges-title { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 20px; font-weight: 600; color: #555; }
.badges-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; align-items: center; }
.footer-badge img { height: 40px; width: auto; opacity: 0.5; filter: grayscale(100%); transition: all 0.3s ease; }
.footer-badge:hover img { opacity: 1; filter: grayscale(0%); transform: translateY(-3px); }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; width: 100%; flex-wrap: wrap; gap: 20px; padding-top: 30px; border-top: 1px solid #1a1a1a; }
.footer-right { display: flex; gap: 30px; }
.footer-right a:hover { color: var(--text-primary); }

/* ==========================================================================
   9. TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container { position: fixed; bottom: 30px; right: 30px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { background-color: var(--error-color); color: white; padding: 15px 25px; border-radius: 8px; font-weight: 600; font-size: 0.95rem; box-shadow: 0 4px 15px rgba(0,0,0,0.3); opacity: 0; transform: translateY(20px); transition: opacity 0.3s ease, transform 0.3s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
.toast.success { background-color: var(--success-color); }

/* ==========================================================================
   DETAILS PAGE STYLES (ENHANCED SLEEK VERSION)
   ========================================================================== */
.details-main-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
}

/* Header Row: Logo, Title/Tags, Actions */
.details-header-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}

.details-header-left { 
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.details-logo { 
    width: 52px; 
    height: 52px; 
    background: #222; 
    border-radius: 10px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.8rem; 
    overflow: hidden; 
}
.details-logo img { width: 100%; height: 100%; object-fit: contain; }

.details-title-box h1 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; color: white; line-height: 1.2; }
.details-title-box .card-tags { display: flex; gap: 8px; }

/* Actions: Side-by-Side Like & Visit */
.details-actions-group { 
    display: flex;
    align-items: center; 
    gap: 10px;
}

/* Like Button: No white background, sleek heart icon first */
.like-btn {
    background: transparent; /* Makes the background clear */
    border: none;             /* Removes the default button border */
    padding: 0;               /* Removes default padding */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit;           /* Ensures the icon uses your text color */
}

/* Ensure the container doesn't have an inherited background */
.details-actions-group .vote-count {
    background: #1a1a1a;      /* Dark background to match Visit button */
    border: 1px solid var(--border-color);
    padding: 0 8px;
    border-radius: 6px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    min-height: 36px;
}

.btn-visit { 
    background: #1a1a1a; 
    color: #ffffff; 
    padding: 0 8px; 
    border: 1px solid var(--border-color);
    border-radius: 6px; 
    font-weight: 500; 
    font-size: 0.75rem;
    text-decoration: none; 
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    transition: all 0.2s ease;
}
.btn-visit:hover { background: #252525; transform: translateY(-1px); }

/* Screenshot & Pitch within Card 1 */
.details-screenshot-area { 
    margin-bottom: 20px; 
    border-radius: 10px; 
    overflow: hidden; 
    border: 1px solid var(--border-color);
}
.full-screenshot { width: 100%; display: block; height: auto; }

.pitch-area { 
    padding-top: 15px;
}
.pitch-text { color: var(--text-secondary); line-height: 1.5; font-size: 0.85rem; }

/* Card 2: Long Description (Only if content exists) */
.details-long-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: 12px;
    margin-bottom: 20px;
}
.long-content { color: var(--text-secondary); line-height: 1.5; font-size: 0.85rem; }

/* Utilities */
.section-label { 
    color: var(--text-primary); 
    font-size: 0.75rem; 
    letter-spacing: 0.8px; 
    margin-bottom: 10px; 
    display: block;
}

.similar-section { margin-top: 40px; border-top: 1px solid var(--border-color); padding-top: 25px; }




/* ==========================================================================
   8. RESPONSIVE / MOBILE (OPTIMIZED & ALIGNED)
   ========================================================================== */
@media (max-width: 768px) {
    /* 1. More breathing room on sides */
    .container {
        padding: 0 6%;
    }

    .navbar { flex-direction: row; padding-bottom: 20px; }
    .hero-section { text-align: center; }
    .maker-info { justify-content: center; gap: 8px; }
    
    /* 2. Search and Filter: One after another */
    .search-bar-container { 
        flex-direction: column; 
        gap: 12px;
    }

    /* 3. Date Navigation and Stats: Stacked vertically */
    .launch-header { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 15px; 
    }
    
    .date-navigator {
        width: 100%;
        justify-content: space-between;
    }

    .launch-stats {
        width: 100%;
        text-align: left;
        padding-left: 5px;
    }

    /* 4. Startup Card: Relative positioning to anchor the Like button */
    .startup-card { 
        position: relative;
        flex-direction: column; 
        gap: 12px; 
        padding: 25px 0; 
        align-items: flex-start; 
    }

    /* Move Like Button Group to the top-right aligned with Thumbnail */
    .startup-meta { 
        position: absolute;
        top: 25px; /* Matches card top padding */
        right: 0;
        width: auto;
        min-width: unset;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        margin-top: 0;
    }

    /* Heart Icon then counter below it */
    .vote-count { 
        flex-direction: column; 
        gap: 2px;
        margin-left: 0;
    }

    .startup-icon { margin: 0; }

    /* Space out details so text doesn't hit the absolute-positioned Like button */
    .startup-details { 
        text-align: left; 
        width: calc(100% - 50px); 
    }

    .startup-details h3 { 
        font-size: 1.15rem;
        line-height: 1.4; /* Better spacing for multi-line titles */
        margin-bottom: 6px;
    }

    .startup-details p { max-width: 100%; font-size: 0.85rem; }

    /* Other Mobile Stacking */
    .form-row, .tier-selection-container { flex-direction: column; gap: 15px; }
    .submit-form-card { padding: 25px 20px; }
    
    .details-header-row { flex-direction: column; gap: 15px; }
    .details-actions-group { width: 100%; }
    .btn-visit, .details-actions-group .vote-count { flex: 1; justify-content: center; }

    /* Footer adjustments */
    .footer-bottom { flex-direction: column; text-align: center; justify-content: center; gap: 25px; }
}

/* Responsive Navbar Styling */
.navbar { position: relative; } /* Ensure dropdown aligns correctly */

.nav-actions { 
    display: flex; 
    align-items: center; 
    gap: 20px; 
}
.nav-link { 
    color: #aaa; 
    text-decoration: none; 
    font-weight: 600; 
    font-size: 0.95rem; 
    transition: color 0.2s ease; 
}
.nav-link:hover { color: #fff; }

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    padding: 5px;
}

/* Mobile Layout */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block; /* Show hamburger icon */
    }
    .nav-actions {
        display: none; /* Hide standard nav by default */
        flex-direction: column;
        position: absolute;
        top: 100%; /* Dropdown right below navbar */
        left: 0;
        right: 0;
        background: #111;
        border: 1px solid #222;
        border-radius: 8px;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        z-index: 1000;
        align-items: flex-start;
        gap: 15px;
        margin-top: 10px;
    }
    .nav-actions.active {
        display: flex; /* Show when toggled */
    }
    .nav-actions .btn-submit {
        width: 100%; /* Make button full width on mobile */
        text-align: center;
        margin-top: 5px;
    }
}

/* ==========================================================================
   STARTUP LAUNCH CHEATSHEET STYLES (Tight, Single-Column)
   ========================================================================== */
.cs-page-header { margin-bottom: 20px; }
.cs-page-title { font-size: 2.2rem; font-weight: 800; color: #fff; margin-bottom: 5px; letter-spacing: -0.5px; }
.cs-page-subtitle { color: #888; font-size: 1rem; line-height: 1.4; }

/* Sticky Progress Bar in Middle Column */
.cs-progress-sticky {
    position: sticky;
    top: 20px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 40px;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.cs-progress-label { color: #fff; font-weight: 700; font-size: 0.9rem; white-space: nowrap; }
.cs-progress-track { flex-grow: 1; height: 8px; background: #222; border-radius: 10px; overflow: hidden; }
.cs-progress-fill { height: 100%; background: #00d2ff; width: 0%; transition: width 0.4s ease; }
.cs-progress-count { color: #888; font-weight: 600; font-size: 0.85rem; white-space: nowrap; }

/* Single Column Layout */
.cs-layout { display: flex; flex-direction: column; gap: 0; margin-bottom: 80px; }

.cs-phase { padding-bottom: 20px; margin-bottom: 20px; }

.cs-phase-title { 
    display: flex; align-items: center; gap: 8px; 
    font-size: 1.3rem; font-weight: 700; color: #fff; 
    margin-bottom: 10px; 
}
.cs-phase-title.col-1 svg { color: #00d2ff; }
.cs-phase-title.col-2 svg { color: #ffc439; }
.cs-phase-title.col-3 svg { color: #2ed573; }

.cs-group-title { 
    font-size: 0.9rem; font-weight: 500; color: #59a8b9; 
    margin: 25px 0 5px; 
}
.cs-group-title:first-of-type { margin-top: 0; }

/* Tight Task Rows with Dividers */
.cs-task { 
    display: flex; align-items: flex-start; gap: 12px; 
    padding: 14px 0; cursor: pointer; transition: opacity 0.2s;
    border-bottom: 1px solid #222;
}
.cs-task:last-child { border-bottom: none; }
.cs-task:hover { opacity: 0.8; }

.cs-checkbox { 
    width: 18px; height: 18px; flex-shrink: 0; 
    appearance: none; border: 2px solid #444; border-radius: 4px; 
    background: #111; cursor: pointer; margin-top: 2px;
    transition: all 0.2s; display: flex; align-items: center; justify-content: center;
}
.cs-task:hover .cs-checkbox { border-color: #00d2ff; }
.cs-checkbox:checked { background: #00d2ff; border-color: #00d2ff; }
.cs-checkbox:checked::after { content: '✓'; color: #000; font-size: 12px; font-weight: bold; }

.cs-task-content { flex-grow: 1; display: flex; flex-direction: column; }
.cs-task-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; width: 100%; }
.cs-task-header h4 { color: #eee; font-size: 0.85rem; font-weight: 500; margin: 0; }
.cs-task-content p { color: #777; font-size: 0.75rem; margin: 0; line-height: 1.3; }

/* Timestamp styling */
.cs-timestamp { font-size: 0.7rem; color: #c4c4c4; font-weight: 400; white-space: nowrap; margin-left: 10px; }

/* Tight Callouts */
.cs-callout { 
    background: #111; border: 1px solid #333; border-left: 3px solid #00d2ff; 
    padding: 15px; border-radius: 6px; margin-top: 20px; 
}
.cs-callout.orange { border-left-color: #ffc439; }
.cs-callout.green { border-left-color: #2ed573; }
.cs-callout-title { color: #fff; font-size: 0.9rem; font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.cs-callout-text { color: #999; font-size: 0.85rem; line-height: 1.4; margin: 0 0 6px 0; }
.cs-callout-text:last-child { margin-bottom: 0; }
.cs-list { margin: 0; padding-left: 20px; color: #999; font-size: 0.85rem; line-height: 1.5; }
.cs-list li { margin-bottom: 4px; }

/* Login Modal */
.auth-modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(5px); display: flex; align-items: center; justify-content: center; z-index: 9999; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.auth-modal-overlay.active { opacity: 1; pointer-events: all; }
.auth-modal-card { background: #0a0a0a; border: 1px solid #333; border-radius: 12px; padding: 40px; width: 100%; max-width: 400px; text-align: center; position: relative; transform: translateY(20px); transition: transform 0.3s ease; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.auth-modal-overlay.active .auth-modal-card { transform: translateY(0); }
.auth-modal-close { position: absolute; top: 15px; right: 15px; background: none; border: none; color: #666; font-size: 1.5rem; cursor: pointer; transition: color 0.2s; }
.auth-modal-close:hover { color: #fff; }
.auth-modal-card h2 { color: #fff; font-size: 1.5rem; font-weight: 700; margin-bottom: 10px; }
.auth-modal-card p { color: #888; font-size: 0.9rem; margin-bottom: 25px; line-height: 1.4; }
.auth-input { width: 100%; padding: 12px; background: #111; border: 1px solid #333; border-radius: 8px; color: #fff; font-size: 0.95rem; margin-bottom: 15px; outline: none; text-align: center; }
.auth-input:focus { border-color: #00d2ff; }
.btn-magic-link { width: 100%; padding: 12px; background: #fff; color: #000; border: none; border-radius: 8px; font-weight: 700; font-size: 0.95rem; cursor: pointer; transition: background 0.2s; }
.btn-magic-link:hover { background: #00d2ff; }

@media (max-width: 768px) { .cs-progress-label { display: none; } }