/* PREMIUM ANIMATIONS */
@keyframes fadeUp { 
    0% { opacity: 0; transform: translateY(20px); } 
    100% { opacity: 1; transform: translateY(0); } 
}
@keyframes fadeIn { 
    0% { opacity: 0; } 
    100% { opacity: 1; } 
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body { 
    background-color: #FFFFFF; 
    color: #1A1A1A; 
    font-family: Arial, sans-serif; 
    text-align: center; 
    margin: 0; 
    padding: 20px 20px 60px 20px; /* Reduced top padding to move logo up */
    min-height: 100vh; 
}

/* Button & Link Styles */
.btn, .store-btn {
    display: inline-block;
    background-color: #1A1A1A;
    color: #FFFFFF;
    padding: 12px 28px;
    font-size: 0.9rem;
    font-weight: bold;
    font-family: Arial, sans-serif;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, opacity 0.2s ease;
}

.btn:hover, .store-btn:hover {
    background-color: #A64B2A;
    color: #FFFFFF;
    transform: translateY(-2px);
    opacity: 0.95;
}

.btn:active, .store-btn:active {
    transform: translateY(0);
}

/* --- SWIGGY-STYLE TOP NAVIGATION --- */
.top-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    padding: 20px 40px;
    background: #fff;
    border-bottom: 1px solid #E0E0E0;
    position: sticky;
    top: 0;
    z-index: 100;
    flex-wrap: wrap;
}

.nav-item {
    text-decoration: none;
    color: #1A1A1A;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-item h3 {
    margin: 0 0 4px 0;
    font-family: Georgia, serif;
    font-size: 1.1rem;
    font-weight: normal;
    letter-spacing: 1px;
}

.nav-tagline {
    font-size: 0.7rem;
    color: #8A2924;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: bold;
}

.nav-item:hover:not(.locked) {
    opacity: 0.6;
}

/* The "Barrier" for In-Development Tabs */
.nav-item.locked {
    opacity: 0.4;
    cursor: not-allowed;
    position: relative;
}

.nav-item.locked::after {
    content: "IN DEVELOPMENT";
    position: absolute;
    bottom: -35px;
    background: #1A1A1A;
    color: #fff;
    padding: 5px 10px;
    font-size: 0.7rem;
    letter-spacing: 1px;
    border-radius: 3px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    white-space: nowrap;
}

@media (hover: hover) and (pointer: fine) {
    .nav-item.locked:hover::after {
        opacity: 1;
        visibility: visible;
    }
}


/* --- FLOATING TOP RIGHT AUTH NAV --- */
.auth-nav-container {
    position: absolute;
    top: 20px;
    right: 30px;
    z-index: 101;
    animation: fadeIn 1s ease-out 0.5s both;
}

.auth-btn {
    padding: 10px 20px;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-family: Arial, sans-serif;
    letter-spacing: 1px;
    border-radius: 2px;
    transition: opacity 0.2s;
}
.auth-btn:hover { opacity: 0.8; }

/* User Profile Menu & Dropdown */
.user-profile-menu {
    position: relative;
    display: inline-block;
}

.user-name-trigger {
    background: #FFFFFF;
    border: 1px solid #1A1A1A;
    border-radius: 2px;
    padding: 8px 14px;
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: bold;
    letter-spacing: 1px;
    color: #1A1A1A;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.user-name-trigger:hover,
.user-name-trigger.active {
    background: #1A1A1A;
    color: #FFFFFF;
}

.dropdown-chevron {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.user-name-trigger.active .dropdown-chevron {
    transform: rotate(180deg);
}

#user-name {
    display: inline-block;
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: middle;
}


.dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: transparent;
    border: none;
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    color: #1A1A1A;
    text-align: left;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.dropdown-item svg {
    flex-shrink: 0;
}

.dropdown-item:hover {
    background-color: #F5F5F5;
}

.dropdown-item-danger:hover {
    color: #8A2924;
    background-color: #FDF4F4;
}

.dropdown-divider {
    height: 1px;
    background-color: #EEEEEE;
    margin: 4px 0;
}

/* --- MODAL (POP-UP) STYLES --- */
.modal-overlay {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: rgba(0, 0, 0, 0.6); 
    z-index: 2000;
    display: flex; 
    justify-content: center; 
    align-items: center;
    backdrop-filter: blur(3px);
}

.modal-content {
    background: #fff; 
    padding: 40px; 
    border-radius: 8px;
    width: 90%; 
    max-width: 380px; 
    position: relative;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    animation: fadeUp 0.3s ease-out;
}

.close-modal {
    position: absolute; 
    top: 15px; 
    right: 20px; 
    font-size: 28px; 
    color: #AAA;
    cursor: pointer;
    transition: color 0.2s;
}
.close-modal:hover { color: #1A1A1A; }

.modal-input {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #CCC;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1rem;
    font-family: Arial, sans-serif;
}
/* CHANGED FROM RED TO BLACK FOR MINIMALIST LOOK */
.modal-input:focus { outline: none; border-color: #1A1A1A; } 

.input-group {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    background: #fff;
    padding: 5px 15px;
}
.input-group input {
    border: none;
    outline: none;
    padding: 8px;
    font-size: 1rem;
    width: 150px;
}


/* --- HEADER & BRAND ACCENTS --- */
.side-accent { 
    position: fixed; 
    top: 50%; 
    font-size: 0.75rem; 
    color: #B3B3B3; 
    letter-spacing: 5px; 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    animation: fadeIn 1s ease-out 0.5s both; 
}
.side-accent::before, .side-accent::after { 
    content: ""; 
    display: block; 
    width: 40px; 
    height: 1px; 
    background-color: #E0E0E0; 
}
.left-side { left: 20px; transform: translateY(-50%) rotate(-90deg); }
.right-side { right: 20px; transform: translateY(-50%) rotate(90deg); }

.header-section { animation: fadeUp 0.8s ease-out both; }
h1.logo { 
    font-size: 2.5rem; 
    letter-spacing: 12px; 
    font-weight: 300; 
    margin-bottom: 5px; 
    margin-top: 20px; 
}

.parent-brand-header { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px; 
    margin-top: 5px; 
    margin-bottom: 25px; 
}
.parent-brand-header span { 
    font-family: Arial, sans-serif; 
    font-size: 0.7rem; 
    color: #666; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
}
.kinduz-header-img { height: 22px; width: auto; opacity: 0.9; }

p.subtitle { 
    font-size: 0.9rem; 
    color: #666666; 
    letter-spacing: 3px; 
    margin-bottom: 60px; 
    text-transform: uppercase; 
}

/* --- MAGAZINE LAYOUT STYLES --- */
.magazine-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

.magazine-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 80px;
}

.magazine-row.reverse {
    flex-direction: row-reverse;
}

.magazine-img-placeholder {
    flex: 1;
    background: #F7F7F7;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #A0A0A0;
    font-family: Georgia, serif;
    font-style: italic;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.magazine-text {
    flex: 1;
    line-height: 1.8;
    color: #333;
    text-align: left;
}

.magazine-text h2 {
    font-family: Georgia, serif;
    font-size: 2.2rem;
    margin-bottom: 5px;
    color: #1A1A1A;
}

.magazine-text .accent {
    color: #8A2924;
    font-weight: bold;
    font-size: 0.85rem;
    letter-spacing: 2px;
    margin-bottom: 25px;
    display: inline-block;
}

.magazine-text p {
    margin-bottom: 20px;
}

/* --- LEGACY STORY COMPONENTS --- */
.brand-container { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 30px; 
    position: relative; 
    z-index: 10; 
    animation: fadeUp 0.8s ease-out 0.2s both; 
    margin-bottom: 80px; 
}

.brand-card { 
    border: 1px solid #EAEAEA; 
    padding: 40px; 
    width: 100%; 
    max-width: 450px; 
    border-radius: 8px; 
    box-sizing: border-box; 
    background-color: #FFFFFF; 
    transition: transform 0.4s ease, box-shadow 0.4s ease; 
}
.brand-card:hover { transform: translateY(-5px); box-shadow: 0px 15px 35px rgba(0,0,0,0.06); }

.simply-seeded { background-color: #F4EFE6; border: none; }
.simply-seeded:hover { background-color: #F0E8DB; box-shadow: 0px 15px 35px rgba(166, 75, 42, 0.1); }

.brand-card h2 { margin: 0 0 10px 0; font-family: 'Playfair Display', serif; font-size: 2rem; }

.btn { 
    background-color: #A64B2A; 
    color: white; 
    padding: 12px 25px; 
    border: none; 
    border-radius: 4px; 
    font-size: 1rem; 
    cursor: pointer; 
    margin-top: 15px; 
    font-family: 'Playfair Display', serif; 
    transition: background-color 0.3s ease; 
}
.btn:hover { background-color: #8A3A1F; }
.coming-soon { color: #999999; font-size: 0.9rem; font-style: italic; letter-spacing: 1px; margin-top: 20px; }
a { text-decoration: none; }

.story-section { 
    max-width: 1000px; 
    margin: 0 auto 80px auto; 
    padding: 50px; 
    background-color: #FAFAFA; 
    border-radius: 12px; 
    animation: fadeUp 0.8s ease-out 0.4s both; 
    text-align: left; 
}
.story-flex { display: flex; gap: 50px; align-items: stretch; }
.story-image-placeholder { 
    flex: 1; 
    background-color: #EAEAEA; 
    border-radius: 8px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    min-height: 400px; 
    color: #888; 
    font-style: italic; 
    border: 2px dashed #CCC; 
    text-align: center; 
    padding: 20px; 
}
.story-text { flex: 1.2; display: flex; flex-direction: column; justify-content: center; }
.story-text h2 { font-family: 'Playfair Display', serif; font-size: 2.2rem; color: #1A1A1A; margin-top: 0; margin-bottom: 5px; }
.story-date { font-size: 0.8rem; color: #A64B2A; font-weight: bold; letter-spacing: 2px; margin-bottom: 25px; display: block; }
.story-text p { color: #444; line-height: 1.6; font-size: 1rem; margin-bottom: 15px; }

.quote-block { 
    margin: 30px 0; 
    padding: 20px 25px; 
    background-color: #FFF; 
    border-left: 4px solid #A64B2A; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.03); 
}
.quote-text { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-style: italic; color: #333; margin: 0 0 10px 0; line-height: 1.4; }
.quote-author { font-size: 0.8rem; color: #888; font-weight: bold; letter-spacing: 1px; text-transform: uppercase; margin: 0; }

.no-nasties-title { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: #1A1A1A; margin-top: 25px; margin-bottom: 15px; }
.no-nasties-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 25px; padding: 0; list-style: none; }
.no-nasties-grid li { color: #555; font-size: 0.9rem; display: flex; align-items: center; gap: 8px; }
.no-nasties-grid li::before { content: "✕"; color: #A64B2A; font-weight: bold; font-size: 1.1rem; }

.teaser-box { 
    display: inline-block; 
    background-color: #F4EFE6; 
    padding: 10px 15px; 
    border-radius: 4px; 
    font-size: 0.85rem; 
    color: #8A3A1F; 
    font-weight: bold; 
    border: 1px solid #EBE4D5; 
}

/* --- THE AI CHAT STYLES --- */
.ai-bubble-btn { 
    position: fixed; 
    bottom: 30px; 
    right: 30px; 
    width: 60px; 
    height: 60px; 
    background-color: #1A1A1A; 
    color: white; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    cursor: pointer; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.2); 
    z-index: 1000; 
    transition: transform 0.3s; 
    border: none; 
    font-family: 'Playfair Display', serif; 
    font-size: 1.4rem; 
    font-weight: bold; 
    letter-spacing: 1px; 
}
.ai-bubble-btn:hover { transform: scale(1.08); background-color: #333; }

.ai-chat-window { 
    position: fixed; 
    bottom: 100px; 
    right: 30px; 
    width: 320px; 
    background-color: #FFF; 
    border-radius: 12px; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.15); 
    z-index: 1000; 
    display: none; 
    flex-direction: column; 
    overflow: hidden; 
    border: 1px solid #EAEAEA; 
    animation: fadeUp 0.3s ease-out; 
    text-align: left; 
}
.ai-chat-header { 
    background-color: #1A1A1A; 
    color: white; 
    padding: 15px 20px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-family: 'Playfair Display', serif; 
}
.ai-name { font-size: 1.2rem; font-weight: bold; margin-bottom: 2px;}
.ai-subtitle { font-size: 0.65rem; color: #B3B3B3; font-family: Arial, sans-serif; letter-spacing: 2px; }
.ai-close { cursor: pointer; color: #B3B3B3; font-size: 1.5rem; line-height: 1; }
.ai-close:hover { color: #FFF; }

.ai-chat-body { 
    padding: 20px; 
    height: 280px; 
    overflow-y: auto; 
    display: flex; 
    flex-direction: column; 
    gap: 15px; 
    background-color: #FDFDFD; 
    font-family: Arial, sans-serif; 
    font-size: 0.9rem; 
}

.ai-msg-bot { 
    background-color: #F4EFE6; 
    padding: 12px 15px; 
    border-radius: 12px 12px 12px 2px; 
    color: #333; 
    max-width: 85%; 
    align-self: flex-start; 
    line-height: 1.4; 
    border: 1px solid #EBE4D5;
    display: flex; 
    gap: 8px; 
    align-items: flex-start;
}
.ai-msg-content { flex-grow: 1; }

/* AI Typing Indicator - Pulsing Dots */
.ai-typing-indicator {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    padding: 6px 2px;
}
.ai-typing-indicator span {
    width: 6px;
    height: 6px;
    background-color: #8A2924;
    border-radius: 50%;
    display: inline-block;
    animation: aiDotPulse 1.4s infinite ease-in-out both;
}
.ai-typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.ai-typing-indicator span:nth-child(2) { animation-delay: -0.16s; }
.ai-typing-indicator span:nth-child(3) { animation-delay: 0s; }

@keyframes aiDotPulse {
    0%, 80%, 100% { transform: scale(0.3); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; }
}

.ai-speaker-btn {
    background: none; 
    border: none; 
    color: #A64B2A; 
    cursor: pointer; 
    padding: 2px; 
    opacity: 0.6; 
    transition: all 0.3s; 
    flex-shrink: 0; 
    margin-top: 2px; 
}
.ai-speaker-btn:hover { opacity: 1; transform: scale(1.1); }

.ai-msg-user { 
    background-color: #A64B2A; 
    color: white; 
    padding: 12px 15px; 
    border-radius: 12px 12px 2px 12px; 
    max-width: 85%; 
    align-self: flex-end; 
    line-height: 1.4; 
}

.ai-chat-input-area { 
    display: flex; 
    flex-direction: column; 
    padding: 10px 15px 15px 15px; 
    border-top: 1px solid #EAEAEA; 
    background: #FFF; 
    gap: 10px; 
}

.ai-input-row { display: flex; gap: 10px; width: 100%; align-items: center; }

.ai-input-wrapper { position: relative; flex-grow: 1; display: flex; align-items: center; }

.ai-input { 
    width: 100%; 
    border: 1px solid #DDD; 
    padding: 10px 40px 10px 15px; 
    border-radius: 20px; 
    outline: none; 
    font-family: Arial, sans-serif; 
    font-size: 0.9rem; 
    transition: border-color 0.3s; 
    box-sizing: border-box; 
}
.ai-input:focus { border-color: #A64B2A; }
.ai-input:disabled { background-color: #F9F9F9; cursor: not-allowed; }

.ai-mic-btn { 
    position: absolute; 
    right: 8px; 
    background: none; 
    border: none; 
    cursor: pointer; 
    color: #888; 
    padding: 5px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: color 0.3s; 
}
.ai-mic-btn:hover { color: #A64B2A; }
.ai-mic-btn:disabled { color: #CCC; cursor: not-allowed; }
.mic-icon svg { width: 16px; height: 16px; fill: currentColor; }

/* PREMIUM VISUALIZER STYLES */
.voice-visualizer { 
    display: none; 
    align-items: center; 
    justify-content: center; 
    gap: 2px; 
    height: 16px; 
    width: 16px; 
}
.voice-visualizer .bar { 
    width: 3px; 
    background-color: #D9534F; 
    border-radius: 2px; 
    animation: soundWave 1s infinite ease-in-out; 
}
.voice-visualizer .bar:nth-child(1) { height: 8px; animation-delay: -1.2s; }
.voice-visualizer .bar:nth-child(2) { height: 16px; animation-delay: -1.0s; }
.voice-visualizer .bar:nth-child(3) { height: 10px; animation-delay: -0.8s; }
.voice-visualizer .bar:nth-child(4) { height: 12px; animation-delay: -0.6s; }

@keyframes soundWave {
    0%, 100% { transform: scaleY(0.4); }
    50% { transform: scaleY(1); }
}

.ai-send { 
    background: none; 
    border: none; 
    color: #A64B2A; 
    font-weight: bold; 
    cursor: pointer; 
    font-size: 0.9rem; 
    letter-spacing: 1px; 
    flex-shrink: 0; 
}
.ai-send:disabled { color: #CCC; cursor: not-allowed; }
.ai-char-counter { font-size: 0.65rem; color: #AAA; font-family: Arial, sans-serif; text-align: right; margin-right: 10px; }

/* --- CONTACT SECTION (FOOTER) --- */
.contact-section {
    width: 100%;
    max-width: 800px;
    margin: 20px auto 40px auto;
    padding: 20px 20px 40px 20px;
    text-align: center;
    box-sizing: border-box;
}

.contact-divider {
    border: 0;
    border-top: 1px solid #E0E0E0;
    margin: 0 auto 30px auto;
    width: 50%;
}

.contact-text {
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #555555;
    letter-spacing: 0.5px;
    margin: 0;
}

.contact-email {
    color: #1A1A1A;
    font-weight: bold;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

.contact-email:hover {
    color: #8A2924;
}

/* --- MOBILE OPTIMIZATION (THE UPSIDE-DOWN PYRAMID) --- */
@media (max-width: 768px) {
    /* General UI Shrinking */
    .side-accent { display: none; } 
    h1.logo { font-size: 1.8rem; letter-spacing: 6px; margin-top: 40px; }
    
    /* 1. Shrink Navigation & Auth */
    .top-nav {
        gap: 10px;
        padding: 10px;
    }
    .nav-item h3 {
        font-size: 0.85rem; 
    }
    .nav-tagline {
        display: none; 
    }
    .auth-btn {
        padding: 6px 12px;
        font-size: 0.85rem; 
    }
    
    /* Reposition the Floating Auth Button for mobile */
    .auth-nav-container { top: 15px; right: 15px; } 

    /* 2. The Pyramid Structure (Magazine View) */
    .magazine-row, .magazine-row.reverse {
        flex-direction: column;
        gap: 20px; 
        margin-bottom: 70px;
    }
    
    /* The Wide Top (Image) */
    .magazine-img-placeholder {
        width: 100%;
        min-height: 300px;
        margin-bottom: 15px;
    }

    /* 3. Breathable Text (The Point of the Pyramid) */
    .magazine-text h2 {
        font-size: 1.8rem;
        text-align: center;
    }
    .magazine-text .accent {
        display: block;
        text-align: center;
        margin-bottom: 20px;
    }
    .magazine-text p {
        font-size: 1rem;
        line-height: 1.9; 
        margin-bottom: 25px; 
        padding: 0 10px;
    }

    /* Legacy Components */
    .brand-card { padding: 30px 20px; } 
    .story-section { padding: 30px 20px; } 
    .story-flex { flex-direction: column; gap: 30px; } 
    .story-image-placeholder { min-height: 300px; } 
    .no-nasties-grid { grid-template-columns: 1fr; } 
    
    /* AI Chat Resizing */
    .ai-chat-window { width: calc(100% - 40px); right: 20px; bottom: 90px; } 
    .ai-bubble-btn { right: 20px; bottom: 20px; } 

    /* Contact Section Mobile (Extra bottom padding so floating AI chat button doesn't obscure email) */
    .contact-section { margin: 10px auto 30px auto; padding: 15px 15px 90px 15px; }
    .contact-text { font-size: 0.85rem; }

    /* Auth Dropdown Mobile */
    .user-name-trigger { padding: 6px 10px; font-size: 0.8rem; }
    .user-dropdown { min-width: 200px; right: 0; }
    #user-name { max-width: 85px; }
}

/* =========================================
   USER PROFILE & DROPDOWN MENU
   ========================================= */
.user-profile-menu {
    position: relative;
}

.user-name-trigger {
    background: transparent;
    color: #1A1A1A;
    border: none;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
}

.user-name-trigger.active .dropdown-chevron {
    transform: rotate(180deg);
}

/* Floating Dropdown Window */
.user-dropdown,
#user-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: auto;
    min-width: 250px;
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 8px 24px rgba(0, 0, 0, 0.08);
    z-index: 1000;
    text-align: left;
    overflow: hidden;
    box-sizing: border-box;
}

/* Active State: Triggered STRICTLY via JavaScript Click (.show) */
.user-dropdown.show {
    display: block !important;
    animation: fadeIn 0.15s ease-out;
}

/* Internal Items Styling & Interactivity */
.user-dropdown .dropdown-item,
.user-dropdown .dropdown-support-item,
.user-dropdown > div {
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.user-dropdown .dropdown-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: transparent;
    border: none;
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    color: #1A1A1A;
    text-align: left;
    cursor: pointer;
}

/* Hover States (Light Gray Shift) */
.user-dropdown .dropdown-item:hover,
.user-dropdown .dropdown-support-item:hover,
.user-dropdown > div:hover {
    background-color: #F5F5F5;
}

/* Sign Out / Destructive Hover */
.user-dropdown .dropdown-item-danger {
    color: #1A1A1A;
}

.user-dropdown .dropdown-item-danger:hover {
    color: #8A2924;
    background-color: #FDF4F4;
}

/* Support Email Block */
.user-dropdown .dropdown-support-item {
    padding: 12px 15px;
    font-size: 0.75rem;
    color: #666;
    letter-spacing: 0.5px;
    background: #F9F9F9;
    border-bottom: 1px solid #EEEEEE;
    line-height: 1.5;
}

.user-dropdown .dropdown-support-item a {
    color: #1A1A1A;
    text-decoration: none;
    font-weight: bold;
}

.user-dropdown .dropdown-support-item a:hover {
    color: #8A2924;
    text-decoration: underline;
}

/* Dropdown Dividers */
.user-dropdown .dropdown-divider {
    height: 1px;
    background-color: #EEEEEE;
    margin: 4px 0;
    cursor: default;
}
.user-dropdown .dropdown-divider:hover {
    background-color: #EEEEEE;
}

/* Mobile Viewport Safeguards */
@media (max-width: 768px) {
    .user-dropdown,
    #user-dropdown-menu {
        min-width: 210px;
        max-width: calc(100vw - 30px);
        right: 0;
        top: calc(100% + 6px);
    }
}

/* --- STORY SUMMARY + EXPANDABLE FULL STORY --- */
.story-summary {
    margin-bottom: 8px;
    transition: opacity 0.25s ease, max-height 0.3s ease;
    max-height: 200px;
    overflow: hidden;
    opacity: 1;
}

.story-summary.hidden {
    max-height: 0;
    opacity: 0;
    margin: 0;
    pointer-events: none;
}

/* Premium-fun toggle button */
.story-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 22px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 2px;
    font-family: Georgia, serif;
    font-size: 0.87rem;
    font-style: italic;
    letter-spacing: 1.2px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: letter-spacing 0.25s ease, background 0.25s ease, padding 0.25s ease;
}

/* Subtle shimmer sweep on hover */
.story-toggle-btn::before {
    content: '';
    position: absolute;
    top: 0; 
    left: -75%;
    width: 50%; 
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.18), transparent);
    transform: skewX(-20deg);
    transition: left 0.45s ease;
}

.story-toggle-btn:hover::before { 
    left: 130%; 
}

.story-toggle-btn:hover { 
    background: #333; 
    letter-spacing: 1.6px; 
}

/* Arrow: Completely hidden when closed so it never points toward adjacent buttons */
.story-toggle-btn .toggle-arrow {
    display: inline-block;
    max-width: 0;
    opacity: 0;
    margin-left: 0;
    transform: translateY(-4px) scale(0.5);
    font-style: normal;
    font-size: 1.05rem;
    line-height: 1;
    overflow: hidden;
    transition: max-width 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                opacity 0.22s ease,
                transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                margin-left 0.25s ease;
    will-change: transform, opacity, max-width;
}

/* When clicked/expanded: arrow pops up smoothly and points DOWN ↓ */
.story-toggle-btn.open .toggle-arrow {
    max-width: 20px;
    opacity: 1;
    margin-left: 4px;
    transform: translateY(0) scale(1);
}

/* Full-text drawer */
.story-full-text {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    border-left: 2px solid transparent;
    padding-left: 0;
    transition: max-height 0.65s cubic-bezier(0.25, 1, 0.5, 1), 
                opacity 0.4s ease, 
                margin-top 0.3s ease, 
                padding-left 0.35s ease,
                border-color 0.35s ease;
}

.story-full-text.expanded {
    max-height: 4000px;
    opacity: 1;
    margin-top: 22px;
    border-left: 2px solid #8A2924;
    padding-left: 18px;
}

.story-full-text p { 
    margin-bottom: 18px; 
    line-height: 1.85; 
    color: #444; 
}

.story-full-text h3 {
    font-family: Georgia, serif;
    font-weight: normal;
    font-size: 1.15rem;
    margin: 24px 0 8px;
    color: #1a1a1a;
}

/* "In Development" disabled button */
.btn-in-dev {
    display: inline-block;
    margin-top: 14px;
    padding: 10px 22px;
    background: transparent;
    color: #999;
    border: 1.5px dashed #ccc;
    border-radius: 2px;
    font-family: Georgia, serif;
    font-size: 0.82rem;
    font-style: italic;
    letter-spacing: 1px;
    cursor: not-allowed;
    user-select: none;
}

/* Button row for sections that have 2 buttons side by side */
.story-btn-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* Floating Back to Top Button */
#back-to-top-btn {
    display: none; 
    position: fixed; 
    bottom: 100px; 
    right: 25px; 
    z-index: 999; 
    background: #1A1A1A; 
    color: white; 
    border: none; 
    border-radius: 50%; 
    width: 45px; 
    height: 45px; 
    cursor: pointer; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.3); 
    align-items: center; 
    justify-content: center;
    transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

#back-to-top-btn:hover {
    transform: translateY(-3px);
    background: #333;
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 768px) {
    .story-toggle-btn {
        padding: 9px 18px;
        font-size: 0.82rem;
    }
    .story-full-text.expanded {
        padding-left: 12px;
    }
    #back-to-top-btn {
        bottom: 85px; 
        right: 22px;
        width: 42px;
        height: 42px;
    }
}
/* ===== AUTH TABS (premium monochrome) ===== */
.auth-tabs { display: flex; border-bottom: 1px solid #E0E0E0; margin-bottom: 18px; }
.auth-tab {
    flex: 1; background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px;
    padding: 12px 8px; cursor: pointer; font-family: Arial, sans-serif; font-size: 0.85rem;
    letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600;
    color: #9A9A9A; transition: color 0.2s ease, border-color 0.2s ease;
}
.auth-tab:hover { color: #555; }
.auth-tab.active { color: #000; border-bottom-color: #000; }
.auth-tab:focus-visible { outline: 1px solid #000; outline-offset: -3px; }
.auth-tab-title { margin: 0 0 15px; font-size: 1rem; color: #333; font-weight: normal; }
