        /* ===== RESET & VARIABLES ===== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary: #0d47a1;
            --primary-light: #4f6f8f;
            --accent: #4CAF50;
            --accent-soft: #e8f5e9;
            --bg-light: #f9fafc;
            --card-white: #ffffff;
            --text-dark: #1e2a3a;
            --text-soft: #2c3e50;
            --gray-light: #eef2f6;
            --shadow-sm: 0 8px 20px rgba(0,20,50,0.06);
            --shadow-hover: 0 12px 28px rgba(0,30,70,0.1);
            --radius-card: 20px;
            --radius-input: 14px;
        }

        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background: var(--bg-light);
            color: var(--text-dark);
            line-height: 1.5;
            scroll-behavior: smooth;
        }

        /* ===== HEADER ===== */
        .site-header {
            background: white;
            box-shadow: 0 4px 16px rgba(0, 20, 40, 0.08);
        }

        .logo-row {
            background: white;
            padding: 0.6rem 2rem;
            border-bottom: 1px solid rgba(13, 71, 161, 0.1);
        }

        .company-logo {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 0.75rem 2rem;
        }

        .logo-group {
            display: flex;
            align-items: center;
            gap: 16px;
            flex-wrap: wrap;
        }

        .company-logo img {
            height: 56px;
            width: auto;
            display: block;
            border-radius: 12px;
        }

        .slogan-text {
            font-size: 1.25rem;
            font-weight: 600;
            color: var(--primary);
            letter-spacing: -0.01em;
            background: #e3f2fd;
            padding: 0.4rem 1.4rem;
            border-radius: 40px;
            white-space: nowrap;
            border: 1px solid rgba(13,71,161,0.2);
            box-shadow: 0 2px 6px rgba(0,0,0,0.02);
        }

        .pro-badge {
            background: linear-gradient(135deg, #ffd700, #ffb347);
            color: #1a237e;
            padding: 0.25rem 1rem;
            border-radius: 50px;
            font-weight: bold;
            font-size: 0.8rem;
            margin-left: 10px;
            white-space: nowrap;
            display: inline-block;
        }

        .header-cta {
            display: flex;
            gap: 12px;
        }
        .header-cta a {
            background: var(--primary);
            color: white;
            text-decoration: none;
            padding: 0.4rem 1.4rem;
            border-radius: 30px;
            font-weight: 500;
            font-size: 0.95rem;
            transition: 0.2s;
            white-space: nowrap;
        }
        .header-cta a:hover {
            background: #1565c0;
        }
        .header-cta a.logout-btn {
            background: #dc3545;
        }
        .header-cta a.logout-btn:hover {
            background: #c82333;
        }

        .nav-row {
            background: var(--primary);
            color: white;
            padding: 0;
        }

        .main-nav {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            padding: 0.1rem 2rem;
        }

        .nav-links {
            display: flex;
            list-style: none;
            flex-wrap: wrap;
            gap: 0.2rem;
        }

        .nav-links li a {
            display: block;
            color: white;
            text-decoration: none;
            padding: 0.4rem 1.2rem;
            font-weight: 500;
            border-radius: 30px;
            transition: background 0.2s;
            font-size: 0.95rem;
        }

        .nav-links li a:hover {
            background: var(--accent);
        }

        /* ===== MAIN CONTAINER ===== */
        .dashboard-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 2rem;
        }

        /* Welcome Banner */
        .welcome-banner {
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            border-radius: 24px;
            padding: 2rem;
		   margin-bottom: 2rem;
		   margin-left: auto;
		   margin-right: auto;
            color: white;
            position: relative;
            overflow: hidden;
		   max-width: 720px;
        }

        .welcome-banner h1 {
            font-size: 1.8rem;
            margin-bottom: 0.5rem;
        }

        .welcome-banner p {
            font-size: 1.2rem;
            line-height: 1.5;
        }

        .member-since {
            font-size: 1.0rem;
            opacity: 0.9;
        }

        /* Dream Form Container */
        .form-container {
            max-width: 720px;
            width: 100%;
            margin: 0 auto 2rem auto;
            background: white;
            border-radius: 40px;
            padding: 30px 48px;
            box-shadow: var(--shadow-sm);
            border: 1px solid rgba(13,71,161,0.08);
        }

        .form-group {
            margin-bottom: 28px;
        }

        label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: var(--primary);
        }

        textarea {
            width: 100%;
            padding: 16px 18px;
            border: 2px solid #8aa0c0;
            border-radius: 14px;
            font-size: 1rem;
            resize: vertical;
            font-family: inherit;
        }

        textarea:focus {
            outline: none;
            border-color: var(--primary);
        }

        .char-counter { text-align: right; font-size: 0.9rem; color: #4a5568; }
        .char-limit-bar { height: 6px; background: #e2e8f0; border-radius: 12px; margin-top: 8px; }
        .char-limit-fill { height: 100%; background: var(--primary); width: 0%; transition: width 0.2s; }

        .input-row {
            display: flex;
            gap: 1rem;
            margin-bottom: 1rem;
            flex-wrap: wrap;
        }

        .input-row select {
            flex: 1;
            padding: 0.8rem;
            border: 2px solid #8aa0c0;
            border-radius: 14px;
            font-size: 0.9rem;
        }

        .pro-btn {
            background: linear-gradient(135deg, #0d47a1, #1a237e);
            color: white;
            border: none;
            padding: 1rem;
            width: 100%;
            border-radius: 50px;
            font-size: 1.1rem;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.2s;
        }

        .pro-btn:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 5px 20px rgba(13,71,161,0.3);
        }

        .pro-btn:disabled {
            opacity: 0.6;
            cursor: not-allowed;
        }

       .char-progress-container {
            margin-top: 8px;
            background: #e0e0e0;
            border-radius: 10px;
            height: 6px;
            overflow: hidden;
        }

        .char-progress {
            width: 0%;
            height: 100%;
            background: var(--primary);
            transition: width 0.3s ease;
        }

        .validation-message {
            display: none;
            color: #e74c3c;
            font-size: 0.8rem;
            margin-top: 5px;
        }

        .btn-spinner {
            display: inline-block;
            width: 16px;
            height: 16px;
            border: 2px solid white;
            border-top-color: transparent;
            border-radius: 50%;
            animation: spin 0.6s linear infinite;
            margin-right: 8px;
            vertical-align: middle;
        }

        .loading {
            opacity: 0.7;
            cursor: wait !important;
        }

/* =============================================
   DREAM INTERPRETATION STYLES (Pro Dashboard)
   ============================================= */

/* Interpretation Header */
.interpretation-header {
    color: #0d47a1;
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

/* Dream Text Box */
.dream-text-box {
    background: #e8f0fe;
    padding: 15px;
    border-radius: 16px;
    margin-bottom: 25px;
    font-style: italic;
    border-left: 4px solid #0d47a1;
    font-size: 1rem;
    line-height: 1.5;
}

/* Style Badges - Color coded by interpretation style */
.style-badge-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}
.style-badge-jungian {
    background: #0d47a1;
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.style-badge-freudian {
    background: #c62828;
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.style-badge-modern {
    background: #2e7d32;
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.style-badge-spiritual {
    background: #6a1b9a;
    color: white;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Badges Container - Style and Emotion side by side */
.badges-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Emotion Badge */
.emotion-badge {
    background: #e8f0fe;
    color: #0d47a1;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(13, 71, 161, 0.2);
}


/* Core Theme Box */
.core-theme-box {
    background: linear-gradient(135deg, #0d47a1 0%, #1565c0 100%);
    padding: 25px;
    border-radius: 16px;
    margin: 25px 0;
    color: white;
    box-shadow: 0 10px 30px rgba(13, 71, 161, 0.3);
}

.core-theme-title {
    margin-top: 0;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.9);
    font-size: 1.2rem;
    letter-spacing: 1px;
}

.core-theme-text {
    font-size: 1.2rem;
    font-style: italic;
    margin: 0;
    line-height: 1.5;
}

/* Symbols Section */
.symbols-list {
    margin: 25px 0;
}

.symbols-title {
    color: #0d47a1;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.symbol-card {
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 12px;
    border-left: 4px solid #0d47a1;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.symbol-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.symbol-name {
    font-weight: bold;
    color: #0d47a1;
    font-size: 1.1rem;
}

.symbol-meaning {
    color: #555;
    margin-top: 8px;
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.5;
}

/* No Symbols Message */
.no-symbols {
    background: #f0f4f8;
    padding: 15px;
    border-radius: 12px;
    margin: 20px 0;
    text-align: center;
    color: #666;
}

/* Wisdom / Insight / Guidance Box */
.wisdom-box {
    background: #fff8e7;
    padding: 20px;
    border-radius: 16px;
    margin: 25px 0 40px 0;
    border-left: 4px solid #ffb74d;
}

.wisdom-title {
    margin-top: 0;
    margin-bottom: 10px;
    font-weight: bold;
    color: #0d47a1;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.wisdom-text {
    font-size: 1.1rem;
    margin: 0;
    line-height: 1.6;
    color: #333;
}

/* Interpret Another Button */
.interpret-another-container {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}

.interpret-another-btn {
    width: auto;
    padding: 14px 32px;
    background: linear-gradient(105deg, #0d47a1, #1565c0);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(13, 71, 161, 0.3);
    transition: all 0.3s;
    margin: 0 auto;
    display: inline-block;
}

.interpret-another-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 71, 161, 0.4);
}

/* =============================================
   AUTO-SAVE INDICATOR STYLES
   ============================================= */

/* Base auto-save indicator */
.auto-save-indicator {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #4CAF50;
    color: white;
    padding: 10px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 10000;
    pointer-events: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.auto-save-indicator.show {
    opacity: 1;
    visibility: visible;
}

/* Draft restore notification */
.draft-restore-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #2196F3;
    color: white;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    z-index: 10001;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    animation: slideInRight 0.3s ease;
    font-family: inherit;
}

.draft-restore-notification span {
    font-size: 14px;
}

/* Clear button style */
.draft-restore-notification .restore-clear-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.draft-restore-notification .restore-clear-btn:hover {
    background: #f44336;
    border-color: #f44336;
}

/* Close button style */
.draft-restore-notification .restore-close-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
    padding: 0 4px;
    transition: opacity 0.2s;
    margin-left: 4px;
}

.draft-restore-notification .restore-close-btn:hover {
    opacity: 0.8;
}

/* Slide in animation */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

    /* Date picker styling */
    .date-input-group {
        margin-bottom: 1rem;
    }
    
    .date-input-group label {
        display: block;
        margin-bottom: 8px;
        font-weight: 600;
        color: #0d47a1;
        font-size: 0.95rem;
    }
    
    .date-input-group input[type="date"] {
        width: 100%;
        padding: 14px 16px;
        border: 2px solid #8aa0c0;
        border-radius: 14px;
        font-size: 1rem;
        font-family: inherit;
        background: white;
        cursor: pointer;
    }
    
    .date-input-group input[type="date"]:focus {
        outline: none;
        border-color: #0d47a1;
        box-shadow: 0 0 0 3px rgba(13, 71, 161, 0.1);
    }


        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }

        .stat-card {
            background: white;
            padding: 1.5rem;
            border-radius: 20px;
            text-align: center;
            box-shadow: var(--shadow-sm);
            transition: transform 0.2s;
        }

        .stat-card:hover {
            transform: translateY(-3px);
        }

        .stat-icon {
            font-size: 2rem;
            margin-bottom: 0.5rem;
        }

        .stat-value {
            font-size: 2rem;
            font-weight: bold;
            color: var(--primary);
        }

        .stat-label {
            color: #666;
            font-size: 0.85rem;
        }

        .journal-card {
            background: white;
            border-radius: 24px;
            padding: 1.5rem;
            margin-bottom: 2rem;
            box-shadow: var(--shadow-sm);
        }

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

        .journal-header h2 {
            color: var(--primary);
            font-size: 1.3rem;
        }

        .journal-controls {
            display: flex;
            gap: 0.5rem;
        }

        .icon-btn {
            background: none;
            border: none;
            font-size: 1.2rem;
            cursor: pointer;
            padding: 0.3rem 0.6rem;
            border-radius: 8px;
            transition: background 0.2s;
        }

        .icon-btn:hover {
            background: #f0f0f0;
        }

        .dream-entries {
            max-height: 400px;
            overflow-y: auto;
        }

        .dream-entry {
            background: #f8f9fa;
            padding: 1rem;
            border-radius: 12px;
            margin-bottom: 0.8rem;
            cursor: pointer;
            transition: all 0.2s;
            border-left: 3px solid var(--primary);
        }

        .dream-entry:hover {
            background: #e8f0fe;
            transform: translateX(5px);
        }

        .entry-date {
            font-size: 1rem;
            color: #666;
            margin-bottom: 0.3rem;
        }

        .entry-title {
            font-weight: 600;
            margin-bottom: 0.3rem;
        }

.entry-theme {
    background: #e8f0fe;
    padding: 6px 10px;
    border-radius: 12px;
    margin-top: 6px;
    font-size: 1rem;
    color: #0d47a1;
    font-style: italic;
}
        .entry-preview {
            font-size: 0.85rem;
            color: #555;
        }

        .entry-tags {
            display: flex;
            gap: 0.5rem;
            margin-top: 0.5rem;
            flex-wrap: wrap;
        }

        .tag {
            background: #e0e7ff;
            color: var(--primary);
            padding: 0.2rem 0.6rem;
            border-radius: 20px;
            font-size: 0.7rem;
        }

        .empty-journal {
            text-align: center;
            padding: 3rem;
            color: #999;
		   font-size: 1.1rem;
		   font-weight: 600;
        }

        .analytics-section {
            background: white;
            border-radius: 24px;
            padding: 1.5rem;
            margin-bottom: 2rem;
            box-shadow: var(--shadow-sm);
        }

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

        .analytics-header h2 {
            color: var(--primary);
            font-size: 1.3rem;
        }

#emotionChart {
    padding: 3rem;
    text-align: center;
    color: #999;
    font-size: 1.1rem;
	font-weight: 600;
 }
        .chart-container {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 1.5rem;
        }

        .chart-card {
            background: #f8f9fa;
            padding: 1rem;
            border-radius: 16px;
        }

        .chart-card h3 {
            font-size: 0.9rem;
            color: #666;
            margin-bottom: 1rem;
        }

        .symbol-cloud {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
        }

        .symbol-item {
            background: #e0e7ff;
            color: var(--primary);
            padding: 0.3rem 0.8rem;
            border-radius: 20px;
            font-size: 0.8rem;
        }

        .symbol-item.large {
            font-size: 1.1rem;
            background: var(--primary);
            color: white;
        }

        .result-container {
            margin-top: 2rem;
            background: white;
            border-radius: 24px;
            padding: 1.5rem;
            display: none;
            box-shadow: var(--shadow-sm);
        }

        .streaming-indicator {
            display: flex;
            align-items: center;
            gap: 1rem;
            padding: 1rem;
            background: #e8f0fe;
            border-radius: 60px;
            margin-top: 1rem;
        }

        .spinner {
            width: 24px;
            height: 24px;
            border: 3px solid #e0e0e0;
            border-top-color: var(--primary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

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

        .bottom-logo {
            text-align: center;
            margin: 2rem 0 1rem 0;
        }

        .bottom-logo img {
            max-width: 100%;
            height: auto;
        }

        .checkbox-group {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
        }

        .checkbox-group input {
            width: 18px;
            height: 18px;
            cursor: pointer;
        }

        .footer {
            text-align: center;
            padding: 2rem;
            color: #666;
            font-size: 0.8rem;
            border-top: 1px solid #e0e0e0;
            background: white;
        }

        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }

        .modal-content {
            background: white;
            border-radius: 24px;
            padding: 2rem;
            max-width: 600px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
        }

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

        .close-modal {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
        }

        /* ===== SEARCH MODAL STYLES ===== */
        .search-modal-content {
            max-width: 700px;
            width: 90%;
            background: white;
            border-radius: 24px;
            padding: 1.5rem;
            max-height: 80vh;
            overflow-y: auto;
        }

        .search-input-group {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            margin-top: 10px;
        }

        .search-input-group input {
            flex: 2;
            padding: 12px 16px;
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            font-size: 1rem;
        }

        .search-input-group select {
            flex: 1;
            padding: 12px 12px;
            border: 2px solid #e0e0e0;
            border-radius: 12px;
            font-size: 0.9rem;
            background: white;
        }

        .search-btn {
            background: var(--primary);
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 12px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.2s;
        }

        .search-btn:hover {
            background: #1565c0;
            transform: translateY(-2px);
        }

        .clear-btn {
            background: #999;
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 12px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.2s;
        }

        .clear-btn:hover {
            background: #777;
        }

        .search-results-container {
            max-height: 400px;
            overflow-y: auto;
            margin-top: 20px;
        }

        .search-result-count {
            margin-bottom: 10px;
            color: #666;
            font-size: 0.9rem;
        }

        .search-result-item {
            background: #f8f9fa;
            padding: 15px;
            border-radius: 12px;
            margin-bottom: 10px;
            cursor: pointer;
            border-left: 3px solid var(--primary);
            transition: all 0.2s;
        }

        .search-result-item:hover {
            transform: translateX(5px);
            background: #e8f0fe !important;
        }

        .search-result-item mark {
            background: #ffeb3b;
            padding: 0 2px;
            border-radius: 3px;
        }

        .search-result-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            margin-bottom: 8px;
        }

        .search-result-date {
            font-size: 0.7rem;
            color: #666;
        }

        .search-result-title {
            font-weight: 600;
            margin-bottom: 8px;
            font-size: 1rem;
        }

        .search-result-preview {
            color: #555;
            font-size: 0.85rem;
            margin-bottom: 8px;
        }

        .search-result-theme {
            margin-top: 8px;
            font-size: 0.8rem;
            color: var(--primary);
        }

        .search-result-theme strong {
            font-weight: 600;
        }

        .empty-search {
            text-align: center;
            padding: 40px;
            color: #999;
        }

        /* ===== MOBILE FIXES - UPDATED FOR WIDER CONTENT ===== */
        @media (max-width: 768px) {
            body { 
                padding-top: 0;
            }
            
            .site-header {
                position: relative;
                top: auto;
                left: auto;
                width: 100%;
                box-shadow: 0 2px 8px rgba(0, 20, 40, 0.05);
            }
            
            .logo-row { 
                padding: 0.5rem 1rem; 
            }
            
            .main-nav { 
                padding: 0.2rem 1rem; 
            }
            
            .company-logo {
                display: flex;
                justify-content: space-between;
                align-items: center;
                width: 100%;
                gap: 0.5rem;
            }
            
            .logo-group { 
                flex: 0 0 auto;
                display: flex;
                align-items: center;
                gap: 10px;
            }
            
            .company-logo img { 
                height: 42px;
            }
            
            .slogan-text { 
                display: none; 
            }
            
            .header-cta {
                display: flex;
                flex-direction: column;
                gap: 6px;
                margin-left: auto;
                flex: 0 0 auto;
            }
            
            .header-cta a {
                padding: 0.25rem 1rem;
                font-size: 1rem;
                text-align: center;
                min-width: 70px;
                display: block;
            }
            
  		   .nav-row {
        		  position: relative;
               overflow-x: auto;
              -webkit-overflow-scrolling: touch;
           }
            
    		  .main-nav {
        		  display: flex;
        		  align-items: center;
        		  justify-content: flex-start;
        		  flex-wrap: nowrap;
        		  gap: 8px;
       		  padding: 0.2rem 1rem;
        		  overflow-x: auto;
        		  -webkit-overflow-scrolling: touch;
        		 scrollbar-width: thin;
    		  }

   .main-nav::-webkit-scrollbar {
        height: 3px;
    }
    
    .main-nav::-webkit-scrollbar-track {
        background: rgba(255,255,255,0.15);
        border-radius: 10px;
    }
    
    .main-nav::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,0.4);
        border-radius: 10px;
    }

    .nav-links {
        display: flex;
        overflow-x: visible;
        white-space: nowrap;
        flex-wrap: nowrap;
        gap: 0.25rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }
            

            
            .nav-links li a {
                padding: 0.4rem 0.85rem;
                font-size: 1rem;
                white-space: nowrap;
            }
            
            .pro-badge-nav {
                display: inline-block;
                background: linear-gradient(135deg, #ffd700, #ffb347);
                color: #1a237e;
                padding: 0.25rem 0.8rem;
                border-radius: 50px;
                font-weight: bold;
                font-size: 0.7rem;
                white-space: nowrap;
                margin-left: auto;
            }
            
            .logo-group .pro-badge {
                display: none;
            }
            
            .dashboard-container { 
                padding: 0.5rem; 
            }
            
   .welcome-banner {
        margin: 0.2rem 1rem 1rem 1rem;  /* Add horizontal margins */
        padding: 1.2rem;
        border-radius: 20px;
        max-width: calc(100% - 2rem);  /* Full width minus margins */
    }
    
    .welcome-banner h1 {
        font-size: 1.3rem;
        line-height: 1.3;
        margin-bottom: 0.75rem;
        text-align: left;
    }
    
    .welcome-banner p {
        font-size: 1.1rem;
        line-height: 1.4;
        text-align: left;
    }

            .form-container { 
                padding: 1rem; 
            }

    .draft-restore-notification {
        bottom: 10px;
        right: 10px;
        padding: 8px 14px;
        font-size: 11px;
    }
    
    .draft-restore-notification span {
        font-size: 12px;
    }
    
    .draft-restore-notification .restore-clear-btn {
        padding: 3px 10px;
        font-size: 11px;
    }


     /* ==================================================================
       SAFARI-ONLY OVERRIDES (Android Chrome ignores this entirely)
       ================================================================== */
    @supports (-webkit-hyphens:none) {
		html {
        		font-size: 22px !important; /* Slightly scales up layout elements on dense screens, rendering 					identically to Android font-boosting */
    		}
    
    		body {
        		font-size: 22px !important;
    		}

        /* Scale up the image height slightly on Safari to match the visual look */
        .company-logo img { 
            height: 52px !important; 
        }

        /* Scale up the CTA button text and tap padding targets for iOS Safari */
        .header-cta a {
            font-size: 0.8rem !important;      /* Bumps font from 0.8rem up */
            padding: 0.4rem 1.1rem !important;  /* Bumps padding from 0.25rem up */
        }

   		 .core-theme-text {
        		font-size: 1rem;
    		}
    
   		 .symbol-name {
        		font-size: 1rem;
    		}
    
    		.symbol-meaning {
        		font-size: 0.9rem;
    		}
    
   		 .wisdom-text {
        		font-size: 0.95rem;
    		}


     	.draft-restore-notification {
        		font-size: 19px;
    		}
    
    		.draft-restore-notification span {
        		font-size: 19px;
    		}
    
    		.draft-restore-notification .restore-clear-btn {
        		font-size: 19px;
    		}


      /* Enlarge Draft Saved / Deleted Toast */

        .auto-save-toast {
            font-size: 19px !important;       /* Clean readability bump */
            padding: 14px 22px !important;    /* Larger touch interface scaling */
            bottom: 24px !important;          /* Kept clear of iOS touch navigation bar */
            right: 20px !important;           /* Enforced bottom right alignment */
            line-height: 1.4 !important;
        }
 
        .restore-notification-toast {
            font-size: 19px !important;       
            padding: 16px 22px !important;    
            bottom: 24px !important;          
            right: 20px !important;           /* Enforced bottom right alignment */
            gap: 14px !important;             
        }

	   .restore-clear-btn {
            font-size: 16px !important;       /* Easy-to-tap interactive sizing */
            padding: 6px 12px !important;     
            font-weight: 500 !important;
        }

	}

    .interpretation-header {
        font-size: 1.3rem;
    }

    .badges-container {
        justify-content: flex-start;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
   
    .core-theme-text {
        font-size: 1rem;
    }
    
    .symbol-name {
        font-size: 1rem;
    }
    
    .symbol-meaning {
        font-size: 0.9rem;
    }
    
    .wisdom-text {
        font-size: 0.95rem;
    }
    
    .interpret-another-btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

    .auto-save-indicator {
		display: none !important;
    }
    
            .stats-grid { 
                grid-template-columns: repeat(2, 1fr); 
                gap: 0.75rem; 
            }
            
            .stat-card { 
                padding: 0.75rem; 
            }
            
            .stat-value { 
                font-size: 1.3rem; 
            }
            
            textarea { 
                min-height: 100px; 
            }

        .date-input-group input[type="date"] {
            padding: 12px 14px;
            font-size: 16px;
        }

            /* ===== CRITICAL FIX: Make result container full width on mobile ===== */
            .result-container {
                width: 100%;
                padding: 1rem;
                margin-left: 0;
                margin-right: 0;
                overflow-x: hidden;
            }

            /* Make dream interpretation section full width */
            .dream-interpretation {
                width: 100%;
                padding: 1rem;
                overflow-x: hidden;
            }

            /* Dream text box - full width with proper wrapping */
            .dream-text-box {
                width: 100%;
                word-wrap: break-word;
                overflow-wrap: break-word;
                white-space: normal;
            }

            /* Core theme box - full width */
            .core-theme-box {
                width: 100%;
                padding: 1rem;
            }

            .core-theme-box p {
                font-size: 1rem;
                word-wrap: break-word;
                overflow-wrap: break-word;
            }

            /* Symbols list - full width */
            .symbols-list {
                width: 100%;
            }

            .symbol-card {
                width: 100%;
                padding: 0.75rem;
            }

            .symbol-card p {
                font-size: 0.9rem;
                word-wrap: break-word;
                overflow-wrap: break-word;
            }

            /* Wisdom box - full width */
            .wisdom-box {
                width: 100%;
                padding: 1rem;
            }

            .wisdom-box p {
                font-size: 0.95rem;
                word-wrap: break-word;
                overflow-wrap: break-word;
            }

            /* Remove any max-width constraints on interpretation content */
            #interpretationContent {
                width: 100%;
            }

            /* Make streaming content full width */
            #streaming-content {
                width: 100%;
                padding: 1rem;
                font-size: 0.95rem;
                overflow-x: auto;
            }

            /* Ensure all text wraps properly */
            .dream-text, .core-theme-box p, .symbol-card p, .wisdom-box p {
                word-break: break-word;
                white-space: normal;
            }

        .empty-journal {
            text-align: left;
	    }
            .search-input-group {
                flex-direction: column;
            }
            
            .search-input-group input,
            .search-input-group select,
            .search-btn,
            .clear-btn {
                width: 100%;
            }
    			#auto-save-indicator {
        			bottom: 10px;
        			right: 10px;
        			padding: 6px 12px;
        			font-size: 11px;
    			}

			.welcome-banner,
            #welcomeBanner,
            .welcome-card {
                width: 95% !important;           /* Changed from 100% to 90% */
                max-width: 95% !important;       /* Changed from 100% to 90% */
                padding-left: 16px !important;  
                padding-right: 16px !important;
                margin-left: auto !important;    /* Changed from 0 to auto for centering */
                margin-right: auto !important;   /* Changed from 0 to auto for centering */
                border-radius: 16px !important;  /* Restored rounded corners since it no longer touches screen 					edges */
            }

            /* Force the dynamic output container to span edge-to-edge */
            .interpretation-results,
            #interpretationResult,
            .result-container {
                width: 100% !important;
                max-width: 100% !important;
                padding-left: 0 !important;
                padding-right: 0 !important;
                margin-left: 0 !important;
                margin-right: 0 !important;
            }

            /* Force Core Theme, Symbols, and Wisdom panels to occupy full screen width */
            .theme-panel,
            .symbols-panel,
            .wisdom-panel,
            .core-theme-card,
            .symbol-card,
            .wisdom-card,
            .interpretation-card {
                width: 100% !important;
                max-width: 100% !important;
                flex: 0 0 100% !important; 
                margin-left: 0 !important;
                margin-right: 0 !important;
                border-radius: 16px !important; 
            }

            /* Adjust flex layout grids from row structures into single full-width column blocks */
            .results-grid,
            .interpretation-grid {
                display: flex !important;
                flex-direction: column !important;
                width: 100% !important;
                gap: 16px !important; 
            }
 

       }
        
        @media (max-width: 480px) {
            .dashboard-container { 
                padding: 0.25rem; 
            }
            .form-container { 
                padding: 0.75rem; 
            }
            .stat-value { 
                font-size: 1.1rem; 
            }
            
            /* Even smaller screens - ensure content fits */
            .core-theme-box p {
                font-size: 0.9rem;
            }
            
            .wisdom-box p {
                font-size: 0.85rem;
            }
            
            .symbol-card p {
                font-size: 0.85rem;
            }
        }

        /* Copy button success animation */
        .copy-success {
            background: #2e7d32 !important;
            transition: background 0.2s;
        }

