/* HaruWine - Twilight Izakaya Design System
   A refined Japanese bar aesthetic with warm, intimate atmosphere */

/* ===== Google Fonts Import ===== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400&family=Noto+Serif+JP:wght@400;500;600&display=swap');

/* ===== CSS Variables ===== */
:root {
    /* Color Palette - Warm Izakaya Tones */
    --bg-deep: #0a0908;
    --bg-primary: #0f0d0a;
    --bg-secondary: #1a1510;
    --bg-elevated: #231d15;
    --bg-card: #1e1812;

    /* Accent Colors */
    --amber: #c9a55c;
    --amber-light: #d4b76a;
    --amber-glow: rgba(201, 165, 92, 0.15);
    --burgundy: #8b2635;
    --burgundy-light: #a33344;
    --wine: #5c1a24;

    /* Text Colors */
    --text-primary: #f5f0e6;
    --text-secondary: #b8a994;
    --text-muted: #7a6e5d;

    /* Borders & Shadows */
    --border-subtle: rgba(201, 165, 92, 0.1);
    --border-accent: rgba(201, 165, 92, 0.25);
    --shadow-warm: 0 8px 32px rgba(10, 9, 8, 0.6);
    --shadow-glow: 0 0 40px rgba(201, 165, 92, 0.08);

    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Crimson Text', Georgia, serif;
    --font-jp: 'Noto Serif JP', serif;

    /* Transitions */
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== Base Reset & Body ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-deep);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-left: 60px;
    transition: padding-left 0.4s var(--transition-smooth);
    line-height: 1.7;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Atmospheric Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(201, 165, 92, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(139, 38, 53, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(30, 24, 18, 0.5) 0%, transparent 100%);
    pointer-events: none;
    z-index: -1;
}

/* Grain Texture Overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.015;
    pointer-events: none;
    z-index: 10000;
}

body.sidebar-expanded {
    padding-left: 280px;
}

/* ===== Container ===== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 50px 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ===== Header ===== */
.header {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.header h1 {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.15em;
    margin-bottom: 0;
    position: relative;
    display: inline-block;
}

/* Decorative underline */
.header h1::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--amber), transparent);
}

.header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-style: italic;
    margin-top: 24px;
    letter-spacing: 0.05em;
}

/* ===== Header Style Selector ===== */
.header-style-selector {
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.header-style-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.header-style-btn:hover {
    color: var(--amber);
    background: var(--amber-glow);
}

.header-style-arrow {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

.header-style-btn.active .header-style-arrow {
    transform: rotate(180deg);
}

.header-style-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    background: var(--bg-elevated);
    border: 1px solid var(--border-accent);
    border-radius: 16px;
    padding: 12px;
    min-width: 180px;
    display: none;
    z-index: 100;
    box-shadow: var(--shadow-warm), 0 0 60px rgba(201, 165, 92, 0.05);
    opacity: 0;
    transition: all 0.25s var(--transition-smooth);
}

.header-style-dropdown.show {
    display: block;
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.header-style-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.header-style-option:hover {
    background: var(--amber-glow);
    color: var(--amber);
}

.header-style-option.active {
    background: linear-gradient(135deg, var(--burgundy), var(--wine));
    color: var(--text-primary);
}

.header-style-option-icon {
    font-size: 1.3rem;
}

/* ===== Fixed Navigation - Top Left ===== */
.fixed-top-left {
    position: fixed;
    top: 24px;
    left: 80px;
    z-index: 1000;
    transition: left 0.4s var(--transition-smooth), opacity 0.3s ease;
    display: none;
    opacity: 0;
}

.fixed-top-left.show {
    display: block;
    opacity: 1;
}

body.sidebar-expanded .fixed-top-left {
    left: 300px;
}

/* ===== Fixed Navigation - Top Right ===== */
.fixed-top-right {
    position: fixed;
    top: 24px;
    right: 24px;
    display: flex;
    gap: 12px;
    z-index: 1000;
    align-items: center;
}

/* ===== Navigation Buttons ===== */
.nav-link-btn {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 12px 20px;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    backdrop-filter: blur(10px);
}

.nav-link-btn:hover {
    background: var(--bg-card);
    border-color: var(--amber);
    color: var(--amber);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.nav-link-btn span:first-child {
    font-size: 1.1rem;
}

.back-btn-fixed {
    display: flex;
}

/* ===== Main Content ===== */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* ===== Greeting ===== */
.greeting {
    text-align: center;
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 50px;
    letter-spacing: 0.02em;
    animation: fadeInUp 0.8s var(--transition-smooth);
}

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

/* ===== Options Section ===== */
.options-section {
    margin-bottom: 36px;
}

.options-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.options-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

/* ===== Option Buttons ===== */
.option-btn {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 28px;
    padding: 12px 22px;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.option-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--amber-glow), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.option-btn:hover {
    background: var(--bg-elevated);
    border-color: var(--border-accent);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.option-btn:hover::before {
    opacity: 1;
}

.option-btn.selected {
    background: linear-gradient(135deg, var(--burgundy), var(--wine));
    border-color: var(--burgundy-light);
    color: var(--text-primary);
    box-shadow: 0 4px 24px rgba(139, 38, 53, 0.3);
}

.option-btn.selected::before {
    opacity: 0;
}

.option-icon {
    font-size: 1.15rem;
    position: relative;
    z-index: 1;
}

/* Extra Button Container - 说点别的单独在下方 */
.extra-btn-container {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.extra-option-btn {
    border-style: dashed;
    opacity: 0.8;
}

.extra-option-btn:hover {
    opacity: 1;
}

/* ===== Dropdown Menu ===== */
.dropdown-container {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    background: var(--bg-elevated);
    border: 1px solid var(--border-accent);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 200px;
    display: none;
    z-index: 100;
    box-shadow: var(--shadow-warm), 0 0 60px rgba(201, 165, 92, 0.05);
    opacity: 0;
    transition: all 0.25s var(--transition-smooth);
    backdrop-filter: blur(20px);
}

.dropdown-menu.show {
    display: block;
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

.dropdown-item {
    padding: 12px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dropdown-item:hover {
    background: linear-gradient(90deg, var(--amber-glow), transparent);
    color: var(--amber);
    padding-left: 24px;
}

/* ===== Selected Tags ===== */
.selected-tags {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.selected-tag {
    background: var(--bg-elevated);
    border: 1px solid var(--border-accent);
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 0.85rem;
    color: var(--amber);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: tagAppear 0.3s var(--transition-bounce);
}

@keyframes tagAppear {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.selected-tag .remove {
    cursor: pointer;
    opacity: 0.6;
    font-size: 1.1rem;
    transition: all 0.2s ease;
    margin-left: 4px;
}

.selected-tag .remove:hover {
    opacity: 1;
    color: var(--burgundy-light);
    transform: scale(1.2);
}

/* ===== Style Selection ===== */
.style-section {
    margin-top: 32px;
}

.style-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.style-options {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.style-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 28px;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.35s var(--transition-smooth);
    min-width: 100px;
    position: relative;
    overflow: hidden;
}

.style-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, var(--amber-glow), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.style-btn:hover {
    border-color: var(--amber);
    background: var(--bg-elevated);
    transform: translateY(-4px);
}

.style-btn:hover::before {
    opacity: 1;
}

.style-btn.active {
    border-color: var(--amber);
    background: linear-gradient(180deg, var(--bg-elevated) 0%, rgba(201, 165, 92, 0.1) 100%);
    color: var(--amber);
    box-shadow: 0 0 30px rgba(201, 165, 92, 0.15), inset 0 1px 0 rgba(201, 165, 92, 0.2);
}

.style-btn.active::before {
    opacity: 1;
}

.style-icon {
    font-size: 1.6rem;
    position: relative;
    z-index: 1;
}

.style-name {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    position: relative;
    z-index: 1;
}

/* ===== Extra Input Section ===== */
.extra-input-section {
    margin-top: 24px;
    display: none;
    animation: slideDown 0.3s var(--transition-smooth);
}

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

.extra-input-section.show {
    display: block;
}

.extra-input {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 18px 22px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    resize: none;
    min-height: 120px;
    line-height: 1.6;
    transition: all 0.3s ease;
}

.extra-input:focus {
    outline: none;
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(201, 165, 92, 0.1);
    background: var(--bg-elevated);
}

.extra-input::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

/* ===== Action Section ===== */
.action-section {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 16px;
}

.action-btn {
    background: linear-gradient(135deg, var(--burgundy), var(--wine));
    border: none;
    border-radius: 12px;
    padding: 16px 40px;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: all 0.35s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.action-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(139, 38, 53, 0.4);
}

.action-btn:hover::before {
    left: 100%;
}

.action-btn:disabled {
    background: var(--bg-elevated);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.action-btn.secondary {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
}

.action-btn.secondary:hover {
    background: var(--bg-elevated);
    border-color: var(--border-accent);
    color: var(--text-primary);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ===== Location Input Modal ===== */
.location-input-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 9, 8, 0.85);
    backdrop-filter: blur(8px);
    z-index: 200;
    justify-content: center;
    align-items: center;
}

.location-input-modal.show {
    display: flex;
}

.location-input-box {
    background: var(--bg-elevated);
    border: 1px solid var(--border-accent);
    border-radius: 20px;
    padding: 32px;
    width: 90%;
    max-width: 420px;
    box-shadow: var(--shadow-warm);
    animation: modalIn 0.3s var(--transition-smooth);
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.location-input-title {
    font-family: var(--font-display);
    color: var(--text-primary);
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
    letter-spacing: 0.05em;
}

.location-text-input {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 14px 18px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.location-text-input:focus {
    outline: none;
    border-color: var(--amber);
    box-shadow: 0 0 0 3px rgba(201, 165, 92, 0.1);
}

.location-input-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.location-cancel-btn,
.location-confirm-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
}

.location-cancel-btn {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

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

.location-confirm-btn {
    background: linear-gradient(135deg, var(--amber), var(--amber-light));
    color: var(--bg-deep);
    font-weight: 600;
}

.location-confirm-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(201, 165, 92, 0.3);
}

/* ===== Select Page ===== */
.select-page {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.select-page.hidden {
    display: none;
}

/* ===== Chat Page ===== */
.chat-page {
    display: none;
    flex-direction: column;
    flex: 1;
}

.chat-page.show {
    display: flex;
    animation: fadeIn 0.4s ease;
}

.chat-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding-bottom: 24px;
}

/* Chat Messages */
.chat-message {
    display: flex;
    gap: 14px;
    animation: messageIn 0.4s var(--transition-smooth);
}

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

.chat-message.user {
    flex-direction: row-reverse;
}

.chat-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.chat-message.user .chat-avatar {
    background: linear-gradient(135deg, var(--burgundy), var(--wine));
    border-color: var(--burgundy-light);
}

.chat-message.assistant .chat-avatar {
    background: linear-gradient(135deg, var(--amber), var(--amber-light));
    border-color: var(--amber);
}

.chat-bubble {
    max-width: 70%;
    padding: 18px 24px;
    border-radius: 20px;
    line-height: 1.7;
    font-size: 1rem;
}

.chat-message.user .chat-bubble {
    background: linear-gradient(135deg, var(--burgundy), var(--wine));
    color: var(--text-primary);
    border-bottom-right-radius: 6px;
    box-shadow: 0 4px 20px rgba(139, 38, 53, 0.25);
}

.chat-message.assistant .chat-bubble {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    border-bottom-left-radius: 6px;
    box-shadow: var(--shadow-warm);
}

/* Typing Cursor */
.chat-bubble .typing-cursor {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    background: var(--amber);
    margin-left: 3px;
    animation: cursorBlink 0.7s infinite;
    vertical-align: text-bottom;
}

@keyframes cursorBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* Chat Image */
.chat-image-container {
    margin-top: 20px;
    text-align: center;
}

.chat-image-container img {
    max-width: 100%;
    max-height: 400px;
    border-radius: 16px;
    object-fit: contain;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chat-image-container.clickable {
    cursor: pointer;
}

.chat-image-container.clickable:hover img {
    transform: scale(1.02);
    box-shadow: 0 12px 50px rgba(201, 165, 92, 0.15);
}

.chat-image-container.clickable::after {
    content: attr(data-hint);
    display: block;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-style: italic;
    margin-top: 10px;
}

.image-description {
    margin-top: 14px;
    padding: 14px 20px;
    background: rgba(201, 165, 92, 0.08);
    border-left: 3px solid var(--amber);
    border-radius: 0 10px 10px 0;
    font-size: 0.9rem;
    color: var(--amber-light);
    line-height: 1.6;
    text-align: left;
}

/* ===== Generating Indicator ===== */
.generating-indicator {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 12px;
    font-style: italic;
}

.generating-dots {
    display: flex;
    gap: 4px;
}

.generating-dots span {
    width: 8px;
    height: 8px;
    background: var(--amber);
    border-radius: 50%;
    animation: dotPulse 1.4s infinite ease-in-out;
}

.generating-dots span:nth-child(1) { animation-delay: -0.32s; }
.generating-dots span:nth-child(2) { animation-delay: -0.16s; }
.generating-dots span:nth-child(3) { animation-delay: 0s; }

@keyframes dotPulse {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.4;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== New Chat Section ===== */
.new-chat-section {
    margin-top: 40px;
    display: none;
    justify-content: center;
}

.new-chat-section.show {
    display: flex;
}

/* ===== Memory Sidebar ===== */
.memory-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    width: 60px;
    background: var(--bg-primary);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    transition: width 0.4s var(--transition-smooth);
    z-index: 1000;
    overflow: hidden;
}

.memory-sidebar.expanded {
    width: 280px;
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.4);
}

.memory-header {
    display: flex;
    align-items: center;
    padding: 18px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-subtle);
    gap: 14px;
    min-height: 60px;
    transition: background 0.2s ease;
}

.memory-header:hover {
    background: var(--bg-secondary);
}

.memory-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
}

.memory-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    letter-spacing: 0.05em;
}

.memory-sidebar.expanded .memory-title {
    opacity: 1;
}

.memory-toggle {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0;
    transition: all 0.3s ease;
}

.memory-sidebar.expanded .memory-toggle {
    opacity: 1;
}

.memory-sidebar:not(.expanded) .memory-toggle {
    transform: rotate(180deg);
}

.memory-content {
    flex: 1;
    overflow-y: auto;
    padding: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.memory-sidebar.expanded .memory-content {
    opacity: 1;
}

.memory-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.memory-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.memory-item:hover {
    background: var(--bg-elevated);
    border-color: var(--amber);
    transform: translateX(4px);
}

.memory-item.active {
    border-color: var(--amber);
    background: linear-gradient(135deg, var(--bg-elevated), rgba(201, 165, 92, 0.05));
}

.memory-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.memory-item-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.memory-item-delete {
    font-size: 0.8rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 3px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.memory-item-delete:hover {
    color: var(--burgundy-light);
    background: rgba(139, 38, 53, 0.15);
}

.memory-item-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.memory-tag {
    font-size: 0.75rem;
    background: var(--bg-card);
    padding: 4px 10px;
    border-radius: 14px;
    color: var(--text-secondary);
}

.memory-item-details {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
    display: none;
}

.memory-item.expanded .memory-item-details {
    display: block;
}

.memory-detail-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.memory-detail-row:last-child {
    margin-bottom: 0;
}

.memory-detail-icon {
    width: 22px;
    text-align: center;
}

.memory-empty {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 24px;
    font-style: italic;
}

/* ===== Sidebar User Section ===== */
.sidebar-user {
    margin-top: auto;
    padding: 14px;
    border-top: 1px solid var(--border-subtle);
    position: relative;
}

.sidebar-user-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    background: transparent;
    border: none;
    padding: 10px;
    color: var(--text-primary);
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.sidebar-user-btn:hover {
    background: var(--bg-secondary);
}

.sidebar-avatar {
    width: 38px;
    height: 38px;
    min-width: 38px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.sidebar-user-btn:hover .sidebar-avatar {
    border-color: var(--amber);
}

.sidebar-user-btn.logged-in .sidebar-avatar {
    background: linear-gradient(135deg, var(--burgundy), var(--amber));
    border-color: var(--amber);
    color: var(--text-primary);
    font-size: 1rem;
}

.avatar-text {
    font-size: 0.65rem;
    white-space: nowrap;
}

.avatar-initial {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
}

.sidebar-user-name {
    flex: 1;
    text-align: left;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.memory-sidebar.expanded .sidebar-user-name {
    opacity: 1;
}

.memory-sidebar:not(.expanded) .sidebar-user {
    padding: 14px 0;
    width: 60px;
    display: flex;
    justify-content: center;
}

.memory-sidebar:not(.expanded) .sidebar-user-btn {
    width: 52px;
    height: 52px;
    padding: 10px;
    justify-content: center;
    gap: 0;
}

.memory-sidebar:not(.expanded) .sidebar-user-name {
    display: none;
}

/* ===== User Menu ===== */
.user-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-accent);
    border-radius: 14px;
    padding: 10px 0;
    min-width: 220px;
    display: none;
    z-index: 1200;
    box-shadow: var(--shadow-warm);
}

.memory-sidebar:not(.expanded) .user-menu {
    position: fixed;
    bottom: 14px;
    left: 70px;
    margin-bottom: 0;
}

.user-menu.show {
    display: block;
    animation: menuIn 0.2s ease;
}

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

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.user-menu-item:hover {
    background: linear-gradient(90deg, var(--amber-glow), transparent);
    color: var(--amber);
    padding-left: 24px;
}

.user-menu-item.pro {
    color: var(--amber);
}

.user-menu-item.logout {
    color: var(--burgundy-light);
}

.user-menu-item.logout:hover {
    background: linear-gradient(90deg, rgba(139, 38, 53, 0.15), transparent);
    color: var(--burgundy-light);
}

.user-menu-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 10px 0;
}

/* Language Submenu */
.user-menu-item.has-submenu {
    position: relative;
}

.submenu-arrow {
    margin-left: auto;
    font-size: 0.7rem;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.user-menu-item.has-submenu:hover .submenu-arrow {
    transform: translateX(3px);
}

.user-submenu {
    position: absolute;
    left: 100%;
    bottom: 0;
    margin-left: 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-accent);
    border-radius: 10px;
    padding: 8px 0;
    min-width: 130px;
    display: none;
    z-index: 1300;
    box-shadow: var(--shadow-warm);
}

.user-submenu.show {
    display: block;
}

.user-submenu-item {
    padding: 12px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.user-submenu-item:hover {
    background: var(--amber-glow);
    color: var(--amber);
}

.user-submenu-item.active {
    color: var(--amber);
}

/* ===== Mobile Trigger ===== */
.memory-mobile-trigger {
    display: none;
    position: fixed;
    left: 12px;
    top: 12px;
    width: 44px;
    height: 44px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    font-size: 1.3rem;
    transition: all 0.2s ease;
}

.memory-mobile-trigger:hover {
    border-color: var(--amber);
    box-shadow: var(--shadow-glow);
}

/* ===== Language Switcher ===== */
.language-switcher {
    position: absolute;
    top: 0;
    right: 0;
}

.lang-btn {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    padding: 10px 16px;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-accent);
    border-radius: 10px;
    padding: 8px 0;
    min-width: 130px;
    display: none;
    z-index: 200;
    box-shadow: var(--shadow-warm);
}

.lang-dropdown.show {
    display: block;
}

.lang-option {
    padding: 12px 18px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.lang-option:hover {
    background: var(--amber-glow);
    color: var(--amber);
}

.lang-option.active {
    color: var(--amber);
}

/* ===== Authentication Modal ===== */
.auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 9, 8, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 30000;
    backdrop-filter: blur(8px);
}

.auth-modal.active {
    display: flex;
}

.auth-container {
    background: var(--bg-elevated);
    border: 1px solid var(--border-accent);
    border-radius: 24px;
    padding: 48px;
    width: 100%;
    max-width: 420px;
    margin: 20px;
    box-shadow: var(--shadow-warm), 0 0 80px rgba(201, 165, 92, 0.05);
    position: relative;
    animation: modalIn 0.3s var(--transition-smooth);
}

.auth-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 22px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: 1px solid var(--border-subtle);
}

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

.auth-title {
    text-align: center;
    font-family: var(--font-display);
    color: var(--text-primary);
    font-size: 1.8rem;
    margin-bottom: 36px;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}

.oauth-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 24px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.oauth-btn:hover:not(:disabled) {
    background: var(--bg-card);
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

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

.oauth-btn.google:hover:not(:disabled) {
    border-color: #4285F4;
    box-shadow: 0 4px 20px rgba(66, 133, 244, 0.15);
}

.oauth-btn.github:hover:not(:disabled) {
    border-color: var(--text-secondary);
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: 28px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-subtle);
}

.auth-divider span {
    padding: 0 18px;
    font-style: italic;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.auth-input {
    padding: 16px 20px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.25s ease;
}

.auth-input:focus {
    outline: none;
    border-color: var(--amber);
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(201, 165, 92, 0.1);
}

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

.auth-error {
    color: var(--burgundy-light);
    font-size: 0.85rem;
    text-align: center;
    display: none;
    padding: 12px;
    background: rgba(139, 38, 53, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(139, 38, 53, 0.2);
}

.auth-success {
    color: #4ade80;
    font-size: 0.85rem;
    text-align: center;
    display: none;
    padding: 12px;
    background: rgba(74, 222, 128, 0.1);
    border-radius: 8px;
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.auth-submit-btn {
    padding: 16px 24px;
    border-radius: 10px;
    border: none;
    background: linear-gradient(135deg, var(--burgundy), var(--wine));
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.auth-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(139, 38, 53, 0.4);
}

.auth-submit-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.auth-switch {
    text-align: center;
    margin-top: 28px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-switch a {
    color: var(--amber);
    text-decoration: none;
    font-weight: 600;
    margin-left: 6px;
    transition: color 0.2s ease;
}

.auth-switch a:hover {
    color: var(--amber-light);
    text-decoration: underline;
}

.auth-forgot {
    text-align: center;
    margin-top: 14px;
}

.auth-forgot a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.auth-forgot a:hover {
    color: var(--text-secondary);
}

/* Memory Login Prompt */
.memory-login-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 24px;
    text-align: center;
}

.memory-login-icon {
    font-size: 2.8rem;
    margin-bottom: 14px;
    opacity: 0.7;
}

.memory-login-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.memory-login-btn {
    padding: 12px 28px;
    border-radius: 8px;
    border: none;
    background: linear-gradient(135deg, var(--burgundy), var(--wine));
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

.memory-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 18px rgba(139, 38, 53, 0.35);
}

/* Memory Login Hint */
.memory-login-hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    margin-bottom: 12px;
    background: rgba(201, 165, 92, 0.05);
    border: 1px solid rgba(201, 165, 92, 0.15);
    border-radius: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
    gap: 12px;
}

.memory-login-btn-small {
    padding: 6px 14px;
    border-radius: 6px;
    border: none;
    background: linear-gradient(135deg, var(--burgundy), var(--wine));
    color: var(--text-primary);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.memory-login-btn-small:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 12px rgba(139, 38, 53, 0.3);
}

/* Header Login Button */
.header-login-btn {
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid var(--amber);
    background: transparent;
    color: var(--amber);
    font-family: var(--font-body);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.header-login-btn:hover {
    background: rgba(201, 165, 92, 0.1);
    transform: translateY(-2px);
}

/* User Info in Header */
.user-info {
    display: none;
    align-items: center;
    gap: 14px;
    padding: 10px 18px;
    background: var(--bg-secondary);
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
}

.user-name {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.logout-btn {
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.logout-btn:hover {
    background: rgba(139, 38, 53, 0.15);
    border-color: var(--burgundy);
    color: var(--burgundy-light);
}

/* ===== Drink Detail Modal ===== */
.drink-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 9, 8, 0.92);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-y: auto;
    backdrop-filter: blur(8px);
}

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

.drink-modal-content {
    background: var(--bg-primary);
    border: 1px solid var(--border-accent);
    border-radius: 24px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalIn 0.35s var(--transition-smooth);
    box-shadow: var(--shadow-warm), 0 0 100px rgba(201, 165, 92, 0.05);
}

.drink-modal-actions {
    position: absolute;
    top: 18px;
    right: 18px;
    display: flex;
    gap: 12px;
    z-index: 10;
}

.drink-modal-close,
.drink-modal-favorite {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bg-elevated);
    color: var(--text-secondary);
    font-size: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    border: 1px solid var(--border-subtle);
}

.drink-modal-close:hover {
    background: var(--burgundy);
    border-color: var(--burgundy-light);
    color: var(--text-primary);
}

.drink-modal-favorite {
    font-size: 20px;
}

.drink-modal-favorite:hover {
    background: var(--bg-card);
    border-color: var(--amber);
    color: var(--amber);
    transform: scale(1.08);
}

.drink-modal-favorite.active {
    background: rgba(201, 165, 92, 0.15);
    border-color: var(--amber);
    color: var(--amber);
}

.drink-modal-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 24px 24px 0 0;
}

.drink-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.drink-modal-body {
    padding: 28px;
}

.drink-modal-title {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 500;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-primary);
}

.drink-modal-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    font-style: italic;
}

.drink-modal-section {
    margin-bottom: 24px;
}

.drink-modal-section h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--amber);
    letter-spacing: 0.03em;
}

.drink-modal-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.95rem;
}

.drink-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.drink-info-item {
    background: var(--bg-secondary);
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
}

.drink-info-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.drink-info-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.drink-modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.drink-modal-tag {
    background: rgba(201, 165, 92, 0.1);
    color: var(--amber);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(201, 165, 92, 0.2);
}

/* ===== Login Prompt Modal ===== */
.login-prompt-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 9, 8, 0.88);
    z-index: 20000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(6px);
}

.login-prompt-modal.show {
    display: flex;
}

.login-prompt-box {
    background: var(--bg-elevated);
    border: 1px solid var(--border-accent);
    border-radius: 20px;
    padding: 36px;
    width: 90%;
    max-width: 340px;
    text-align: center;
    animation: modalIn 0.3s var(--transition-smooth);
    box-shadow: var(--shadow-warm);
}

.login-prompt-icon {
    font-size: 3.5rem;
    margin-bottom: 18px;
}

.login-prompt-text {
    font-family: var(--font-display);
    color: var(--text-primary);
    font-size: 1.2rem;
    margin-bottom: 28px;
    letter-spacing: 0.03em;
}

.login-prompt-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
}

.login-prompt-cancel,
.login-prompt-confirm {
    padding: 14px 32px;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.25s ease;
}

.login-prompt-cancel {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.login-prompt-cancel:hover {
    background: var(--bg-card);
    color: var(--text-primary);
}

.login-prompt-confirm {
    background: linear-gradient(135deg, var(--burgundy), var(--wine));
    color: var(--text-primary);
}

.login-prompt-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(139, 38, 53, 0.4);
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .memory-sidebar {
        width: 0;
        border-right: none;
    }

    .memory-sidebar.expanded {
        width: 280px;
        box-shadow: 8px 0 40px rgba(0, 0, 0, 0.6);
    }

    body {
        padding-left: 0;
    }

    body.sidebar-expanded {
        padding-left: 0;
    }

    .memory-mobile-trigger {
        display: flex;
    }

    .fixed-top-left {
        top: 18px;
        left: 18px;
    }

    body.sidebar-expanded .fixed-top-left {
        left: 18px;
    }

    .fixed-top-right {
        top: 18px;
        right: 18px;
        gap: 10px;
    }

    .nav-link-btn {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .container {
        padding: 36px 20px;
        padding-top: 80px;
    }

    .header {
        margin-bottom: 50px;
    }

    .header h1 {
        font-size: 2.4rem;
    }

    .greeting {
        font-size: 1.6rem;
    }

    .option-btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    .style-btn {
        padding: 16px 20px;
        min-width: 85px;
    }

    .action-btn {
        padding: 14px 32px;
    }

    .chat-bubble {
        max-width: 85%;
        padding: 16px 20px;
    }
}

@media (max-width: 480px) {
    .fixed-top-left {
        top: 14px;
        left: 14px;
    }

    body.sidebar-expanded .fixed-top-left {
        left: 14px;
    }

    .fixed-top-right {
        top: 14px;
        right: 14px;
        flex-direction: column;
        align-items: flex-end;
        gap: 8px;
    }

    .nav-link-btn span:last-child {
        display: none;
    }

    .nav-link-btn {
        padding: 12px;
    }

    .container {
        padding-top: 90px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .greeting {
        font-size: 1.4rem;
    }

    .options-container {
        flex-direction: column;
        align-items: center;
    }

    .option-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .style-options {
        flex-direction: column;
        align-items: center;
    }

    .style-btn {
        width: 100%;
        max-width: 200px;
    }

    .action-section {
        flex-direction: column;
        align-items: center;
    }

    .action-btn {
        width: 100%;
        max-width: 280px;
    }

    .auth-container {
        padding: 36px 24px;
        margin: 16px;
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .drink-info-grid {
        grid-template-columns: 1fr;
    }
}

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

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bg-card);
}

/* ===== Selection ===== */
::selection {
    background: rgba(201, 165, 92, 0.3);
    color: var(--text-primary);
}
