/* ================================
   Dream Interpreter - Main Styles
   ================================ */

/* Variables */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --dark-bg: #0f0a1a;
    --dark-surface: #1B1129;
    --dark-card: rgba(27, 17, 41, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --accent-purple: #764ba2;
    --accent-blue: #667eea;
    --accent-pink: #f093fb;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 30px rgba(102, 126, 234, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Stars Background */
.stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s ease-in-out infinite;
    opacity: 0;
}

@keyframes twinkle {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

/* Glass Effect */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
}

/* ================================
   Header & Navigation
   ================================ */
header {
    background: rgba(255, 255, 255, 0.98);
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 1rem;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 0.75rem;
}

.logo img {
    height: 42px;
    transition: var(--transition);
}

.logo:hover img {
    transform: scale(1.05);
}

.logo-text {
    color: #1a1a2e;
    font-weight: 700;
    font-size: 1.25rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-links li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: var(--transition);
}

.nav-links li a:hover {
    background: rgba(102, 126, 234, 0.1);
    color: var(--accent-purple);
}

.nav-links li a i {
    font-size: 1rem;
}

/* Nav Right Section (Auth + Language) */
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Custom Language Select */
.custom-select-wrapper {
    position: relative;
}

.custom-select {
    position: relative;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    background: #f5f5f7;
    border: 1px solid #e5e5e7;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    min-width: 100px;
}

.custom-select-trigger:hover {
    border-color: var(--accent-purple);
}

.custom-select-trigger .flag-icon {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    object-fit: cover;
}

.custom-select-trigger span {
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
}

.arrow {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #666;
    transition: var(--transition);
}

.custom-select.open .arrow {
    transform: translateY(-50%) rotate(180deg);
}

.custom-options {
    position: absolute;
    top: calc(100% + 5px);
    right: 0;
    width: 280px;
    background: white;
    border: 1px solid #e5e5e7;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: none;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
}

.custom-select.open .custom-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.custom-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    text-decoration: none;
    color: #333;
    font-size: 0.85rem;
    transition: var(--transition);
}

.custom-option:hover {
    background: rgba(102, 126, 234, 0.1);
}

.custom-option.selected {
    background: rgba(102, 126, 234, 0.15);
    color: var(--accent-purple);
}

.custom-option .flag-icon {
    width: 18px;
    height: 13px;
    border-radius: 2px;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger i {
    font-size: 1.5rem;
    color: #333;
}

/* ================================
   Main Content
   ================================ */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 1;
}

/* ================================
   Homepage Hero
   ================================ */
#home {
    text-align: center;
    padding: 2rem 0;
}

.hero {
    margin-bottom: 3rem;
}

.hero-image-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.hero-image {
    max-width: 280px;
    height: auto;
    border-radius: var(--border-radius-lg);
    filter: drop-shadow(0 10px 30px rgba(102, 126, 234, 0.4));
}

.pulse-glow {
    animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { filter: drop-shadow(0 10px 30px rgba(102, 126, 234, 0.4)); }
    50% { filter: drop-shadow(0 15px 50px rgba(118, 75, 162, 0.6)); }
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, #e0d4f7 50%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* ================================
   Categories Grid
   ================================ */
.categories {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    max-width: 700px;
    margin: 0 auto 3rem;
}

.category {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    padding: 2rem 1.5rem;
    border-radius: var(--border-radius-lg);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.category::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: 0;
}

.category:hover::before {
    opacity: 0.15;
}

.category:hover {
    transform: translateY(-8px);
    border-color: rgba(102, 126, 234, 0.5);
    box-shadow: var(--shadow-glow);
}

.category > * {
    position: relative;
    z-index: 1;
}

.category-icon {
    margin-bottom: 1rem;
}

.category-icon img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
    transition: var(--transition);
}

.category:hover .category-icon img {
    transform: scale(1.1);
}

.category h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.category-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Animation delays for categories */
.category:nth-child(1) { animation-delay: 0.1s; }
.category:nth-child(2) { animation-delay: 0.2s; }
.category:nth-child(3) { animation-delay: 0.3s; }
.category:nth-child(4) { animation-delay: 0.4s; }

/* ================================
   App Promo Section
   ================================ */
.app-promo {
    margin-top: 3rem;
}

.app-promo-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    flex-wrap: wrap;
}

.app-icon {
    font-size: 2.5rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.app-promo-text h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.app-promo-text p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.app-store-btn img {
    height: 45px;
    transition: var(--transition);
}

.app-store-btn:hover img {
    transform: scale(1.05);
}

/* ================================
   Form Styles
   ================================ */
.form-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 2.5rem;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-gradient);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.form-section h2 i {
    color: var(--accent-purple);
}

.form-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

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

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group label i {
    color: var(--accent-purple);
    font-size: 0.9rem;
}

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

/* Input Styles */
.dream-input,
#dream-text,
.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
}

.dream-input::placeholder,
#dream-text::placeholder {
    color: var(--text-muted);
}

.dream-input:focus,
#dream-text:focus,
.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent-purple);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

#dream-text {
    resize: vertical;
    min-height: 150px;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group select option {
    background: #1a1a2e;
    color: white;
}

.char-counter {
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Personalization Section */
.personalization {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 1.1rem 2rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
}

.submit-btn:active {
    transform: translateY(0);
}

.pulse-hover:hover {
    animation: pulse 1s ease infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(102, 126, 234, 0.6); }
}

/* ================================
   Loading Spinner
   ================================ */
.loading-container {
    text-align: center;
    padding: 3rem 1rem;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1.5rem;
}

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

.loading-container p {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
}

.loading-tip {
    color: var(--text-secondary) !important;
    font-size: 0.9rem !important;
    margin-top: 0.5rem;
}

/* ================================
   Result Section
   ================================ */
.result-container {
    background: rgba(102, 126, 234, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.3);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    margin-top: 2rem;
}

.result-container h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.result-container h2 i {
    color: var(--accent-purple);
}

.interpretation-content {
    color: var(--text-primary);
    line-height: 1.8;
    font-size: 1.05rem;
    white-space: pre-wrap;
}

/* ================================
   Image Generation Section
   ================================ */
.image-generation-section {
    margin-top: 2rem;
}

.image-promo {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    flex-wrap: wrap;
}

.promo-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.promo-icon i {
    font-size: 1.5rem;
    color: white;
}

.promo-content {
    flex: 1;
    min-width: 200px;
}

.promo-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.promo-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.price-tag {
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success);
}

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

.generate-btn {
    padding: 0.9rem 1.5rem;
    background: var(--secondary-gradient);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    white-space: nowrap;
}

.generate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.4);
}

/* Generated Image */
.generated-image-container {
    margin-top: 2rem;
    text-align: center;
}

.generated-image-container h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.image-wrapper {
    position: relative;
    display: inline-block;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.image-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
}

.image-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.action-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Share Section */
.share-section {
    margin-top: 2rem;
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.share-section p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.share-btn {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: white;
    transition: var(--transition);
}

.share-btn.twitter { background: #1da1f2; }
.share-btn.facebook { background: #1877f2; }
.share-btn.whatsapp { background: #25d366; }
.share-btn.copy { background: #6b7280; }

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Interpret Another */
.interpret-another-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
    padding: 0.9rem 2rem;
    background: transparent;
    border: 2px solid var(--accent-purple);
    border-radius: var(--border-radius);
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.interpret-another-btn:hover {
    background: var(--accent-purple);
    color: white;
}

/* ================================
   Modal Styles
   ================================ */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}

.modal-content {
    width: 100%;
    max-width: 450px;
    padding: 2rem;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

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

.modal-content h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.payment-desc {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.payment-amount {
    text-align: center;
    margin-bottom: 1.5rem;
}

.payment-amount .amount {
    font-size: 2.5rem;
    font-weight: 700;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.payment-amount .currency {
    color: var(--text-muted);
    font-size: 1rem;
    margin-left: 0.25rem;
}

#payment-element {
    margin-bottom: 1.5rem;
}

.payment-secure {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.payment-secure i {
    color: var(--success);
}

.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--error);
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-top: 1rem;
    text-align: center;
}

/* ================================
   Gallery Page Styles
   ================================ */
.gallery-header {
    text-align: center;
    margin-bottom: 2rem;
}

.gallery-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.gallery-header p {
    color: var(--text-secondary);
}

.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-gradient);
    border-color: transparent;
    color: white;
}

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

.image-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.image-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.image-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.image-card-info {
    padding: 1rem;
}

.image-card-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.image-card-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.image-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    padding: 2rem;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--border-radius);
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

/* ================================
   Map Page Styles
   ================================ */
.map-container {
    height: 70vh;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid var(--glass-border);
}

#map {
    height: 100%;
    width: 100%;
}

.map-sidebar {
    position: absolute;
    top: 80px;
    right: 20px;
    width: 350px;
    max-height: calc(100vh - 200px);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    z-index: 1000;
}

.map-sidebar-header {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.map-sidebar-content {
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
}

.dream-list-item {
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: var(--transition);
}

.dream-list-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.dream-list-item:last-child {
    border-bottom: none;
}

/* Leaflet custom styles */
.leaflet-popup-content-wrapper {
    background: var(--dark-surface);
    color: var(--text-primary);
    border-radius: var(--border-radius);
}

.leaflet-popup-tip {
    background: var(--dark-surface);
}

/* ================================
   Dictionary Page Styles
   ================================ */
.dictionary-search {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.search-wrapper {
    display: flex;
    gap: 0.75rem;
}

.search-input {
    flex: 1;
    padding: 1rem 1.5rem;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: 50px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-purple);
}

.search-btn {
    padding: 1rem 2rem;
    background: var(--primary-gradient);
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.search-btn:hover {
    transform: scale(1.05);
}

.dictionary-result {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    margin-top: 2rem;
}

.dictionary-result h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.dictionary-content {
    color: var(--text-primary);
    line-height: 1.8;
    white-space: pre-wrap;
}

.popular-symbols {
    margin-top: 3rem;
}

.popular-symbols h3 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

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

.symbol-chip {
    padding: 0.75rem 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.symbol-chip:hover {
    background: var(--primary-gradient);
    border-color: transparent;
}

/* ================================
   Footer
   ================================ */
footer {
    background: rgba(0, 0, 0, 0.5);
    padding: 2.5rem 1.5rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.footer-link-item {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-link-item:hover {
    color: var(--text-primary);
}

.footer-links img {
    height: 45px;
    transition: var(--transition);
}

.footer-links img:hover {
    transform: scale(1.05);
}

.footer-copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ================================
   Animations
   ================================ */
.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.fade-in-delay {
    animation: fadeIn 0.8s ease 0.3s forwards;
    opacity: 0;
}

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

.slide-up {
    animation: slideUp 0.5s ease forwards;
    opacity: 0;
}

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

/* ================================
   Responsive Styles
   ================================ */
@media (max-width: 768px) {
    header {
        padding: 0.75rem 1rem;
    }

    nav {
        flex-wrap: wrap;
    }

    .logo-text {
        display: none;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        gap: 0;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li a {
        padding: 1rem;
        border-radius: 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .hamburger {
        display: block;
        order: 3;
    }

    .custom-select-wrapper {
        order: 2;
    }

    main {
        padding: 1.5rem 1rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .categories {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .category {
        padding: 1.5rem 1rem;
    }

    .form-container {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .app-promo-content {
        flex-direction: column;
        text-align: center;
    }

    .image-promo {
        flex-direction: column;
        text-align: center;
    }

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

    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .map-sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        width: 100%;
        max-height: 50vh;
        border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    }

    .footer-links {
        gap: 1.25rem;
    }
}

@media (max-width: 480px) {
    .hero-image {
        max-width: 200px;
    }

    .category-icon img {
        width: 45px;
        height: 45px;
    }

    .category h3 {
        font-size: 1.1rem;
    }

    .share-buttons {
        gap: 0.5rem;
    }

    .share-btn {
        width: 40px;
        height: 40px;
    }
}

/* ================================
   Voice Recording Styles
   ================================ */
.voice-input-wrapper {
    position: relative;
}

.voice-btn {
    position: absolute;
    right: 12px;
    top: 12px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: var(--glass-bg);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1;
}

.voice-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    color: var(--accent-purple);
}

.voice-btn.recording {
    background: var(--error);
    color: white;
    animation: voicePulse 1.5s ease-in-out infinite;
}

.voice-btn svg {
    width: 20px;
    height: 20px;
}

@keyframes voicePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(239, 68, 68, 0);
    }
}

.voice-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    margin-top: 8px;
    color: var(--error);
    font-size: 0.9rem;
}

.voice-indicator .waveform {
    display: flex;
    align-items: center;
    gap: 2px;
    height: 20px;
}

.voice-indicator .waveform span {
    width: 3px;
    background: var(--error);
    border-radius: 2px;
    animation: waveform 0.5s ease-in-out infinite;
}

.voice-indicator .waveform span:nth-child(1) { animation-delay: 0s; height: 8px; }
.voice-indicator .waveform span:nth-child(2) { animation-delay: 0.1s; height: 16px; }
.voice-indicator .waveform span:nth-child(3) { animation-delay: 0.2s; height: 12px; }
.voice-indicator .waveform span:nth-child(4) { animation-delay: 0.3s; height: 18px; }
.voice-indicator .waveform span:nth-child(5) { animation-delay: 0.4s; height: 10px; }

@keyframes waveform {
    0%, 100% { transform: scaleY(0.5); }
    50% { transform: scaleY(1); }
}

/* ================================
   Similar Dreams Card
   ================================ */
.similar-dreams-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    margin-top: 2rem;
}

.similar-dreams-card h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.similar-dreams-card h3 i {
    color: var(--accent-purple);
}

.similar-count {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.similar-dreams-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.similar-dream-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
}

.similar-dream-item .flag-icon {
    width: 24px;
    height: 18px;
    border-radius: 3px;
    flex-shrink: 0;
    margin-top: 2px;
}

.similar-dream-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.similar-dreams-card .see-map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.similar-dreams-card .see-map-link:hover {
    color: var(--accent-pink);
}

/* ================================
   Auth Button & User Menu
   ================================ */
.auth-wrapper {
    position: relative;
}

.sign-in-apple-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.sign-in-apple-btn:hover {
    background: #333;
}

.sign-in-apple-btn .apple-logo {
    width: 16px;
    height: 16px;
}

.user-menu-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid #e5e5e7;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.user-menu-btn:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: var(--accent-purple);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
}

.user-menu-btn .user-name {
    color: #333;
    font-weight: 500;
    font-size: 14px;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: white;
    border: 1px solid #e5e5e7;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: none;
    z-index: 100;
    overflow: hidden;
}

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

.user-dropdown a,
.user-dropdown button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 12px 16px;
    background: none;
    border: none;
    text-align: left;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.user-dropdown a:hover,
.user-dropdown button:hover {
    background: rgba(102, 126, 234, 0.1);
}

.user-dropdown a i,
.user-dropdown button i {
    width: 18px;
    color: var(--accent-purple);
}

.dropdown-divider {
    height: 1px;
    background: #e5e5e7;
    margin: 4px 0;
}

.user-dropdown .sign-out-btn {
    color: var(--error);
}

.user-dropdown .sign-out-btn i {
    color: var(--error);
}

/* ================================
   Journal Page Styles
   ================================ */
.journal-container {
    max-width: 900px;
    margin: 0 auto;
}

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

.journal-welcome h1 {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
}

.journal-welcome p {
    color: var(--text-secondary);
}

.new-dream-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.new-dream-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Journal Stats */
.journal-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    text-align: center;
}

.stat-card .stat-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    background: rgba(102, 126, 234, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-purple);
}

.stat-card .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat-card .stat-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* App CTA Banner */
.app-cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.app-cta-banner p {
    color: var(--text-secondary);
}

.app-cta-banner .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    color: #1a1a2e;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.app-cta-banner .cta-btn:hover {
    transform: scale(1.05);
}

/* Journal Search */
.journal-search {
    margin-bottom: 1.5rem;
}

.journal-search input {
    width: 100%;
    padding: 0.875rem 1.25rem;
    padding-left: 3rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 1rem center;
}

.journal-search input:focus {
    outline: none;
    border-color: var(--accent-purple);
}

/* Dream List */
.dream-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dream-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
}

.dream-card:hover {
    border-color: rgba(102, 126, 234, 0.3);
}

.dream-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.dream-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

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

.dream-category-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    background: var(--primary-gradient);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: capitalize;
}

.dream-card-content {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

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

.dream-card-actions a,
.dream-card-actions button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.dream-card-actions a:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

.dream-card-actions .delete-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--error);
    color: var(--error);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: var(--glass-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.empty-state-icon svg {
    width: 40px;
    height: 40px;
    color: var(--text-muted);
}

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

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

/* Load More */
.load-more-container {
    text-align: center;
    margin-top: 2rem;
}

.load-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    background: transparent;
    border: 2px solid var(--glass-border);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.load-more-btn:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

/* ================================
   Daily Dream-Horoscope Page
   ================================ */
.daily-container {
    max-width: 800px;
    margin: 0 auto;
}

.daily-header {
    text-align: center;
    margin-bottom: 2rem;
}

.daily-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.daily-header p {
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* Zodiac Grid */
.zodiac-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.zodiac-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--glass-bg);
    border: 2px solid var(--glass-border);
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.zodiac-btn:hover {
    border-color: rgba(102, 126, 234, 0.5);
    background: rgba(102, 126, 234, 0.1);
}

.zodiac-btn.active {
    border-color: var(--accent-purple);
    background: rgba(102, 126, 234, 0.2);
    color: var(--text-primary);
}

.zodiac-btn .zodiac-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.zodiac-btn .zodiac-name {
    font-size: 0.85rem;
    font-weight: 500;
}

/* Daily Content */
.daily-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
}

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

.daily-zodiac-display {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.daily-zodiac-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.daily-zodiac-info h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.daily-date {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.daily-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.daily-share-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
}

/* Daily Sections */
.daily-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.daily-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.daily-section h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.daily-section h3 i {
    color: var(--accent-purple);
}

.daily-section p {
    color: var(--text-primary);
    line-height: 1.7;
    font-size: 1.05rem;
}

.lucky-symbol {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 152, 0, 0.15) 100%);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: var(--border-radius);
}

.lucky-symbol .symbol-icon {
    font-size: 1.5rem;
}

.lucky-symbol .symbol-text {
    font-weight: 600;
    font-size: 1.1rem;
}

/* Daily App CTA */
.daily-app-cta {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.daily-app-cta h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.daily-app-cta p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.daily-app-cta .app-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.75rem;
    background: white;
    color: #1a1a2e;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.daily-app-cta .app-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

/* Dream CTA at bottom */
.dream-cta {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.dream-cta p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.dream-cta .interpret-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-gradient);
    color: white;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.dream-cta .interpret-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* ================================
   Loading States
   ================================ */
.daily-loading,
.journal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    text-align: center;
}

.daily-loading .loading-spinner,
.journal-loading .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-purple);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

.daily-loading p,
.journal-loading p {
    color: var(--text-secondary);
}

/* ================================
   Responsive - New Components
   ================================ */
@media (max-width: 768px) {
    .zodiac-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .zodiac-btn {
        padding: 0.75rem 0.5rem;
    }

    .zodiac-btn .zodiac-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }

    .zodiac-btn .zodiac-name {
        font-size: 0.75rem;
    }

    .daily-content {
        padding: 1.5rem;
    }

    .daily-zodiac-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }

    .daily-zodiac-info h2 {
        font-size: 1.25rem;
    }

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

    .journal-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .app-cta-banner {
        flex-direction: column;
        text-align: center;
    }

    .dream-card-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .dream-card-actions {
        flex-wrap: wrap;
    }

    .user-menu-btn .user-name {
        display: none;
    }
}

@media (max-width: 480px) {
    .zodiac-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .journal-stats {
        grid-template-columns: 1fr;
    }

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

    .daily-share-btn {
        align-self: flex-end;
    }
}
