/* 🏛️⚔️ ANCIENT WISDOM GUIDE - PREMIUM DARK THEME */
/* Ancient Greek & Star Wars Inspired Design - Top Artist Level */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@300;400;500;600;700&family=Orbitron:wght@400;500;700;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================ */
/* 🎨 DARK THEME COLOR PALETTE */
/* ============================================ */

:root {
    /* Main Dark Theme Colors */
    --bg-primary: #0a0e1a;
    --bg-secondary: #1a1f2e;
    --bg-tertiary: #2a3040;
    --bg-card: rgba(26, 31, 46, 0.95);
    --bg-glass: rgba(42, 48, 64, 0.8);
    
    /* Ancient Greek Gold & Bronze */
    --gold-primary: #ffd700;
    --gold-secondary: #ffed4e;
    --bronze-primary: #cd7f32;
    --bronze-secondary: #b8860b;
    
    /* Star Wars Colors */
    --jedi-blue: #4f9cff;
    --sith-red: #ff4444;
    --force-purple: #9d4edd;
    --rebel-orange: #ff8500;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --text-accent: #ffd700;
    
    /* Effects */
    --glow-gold: 0 0 20px rgba(255, 215, 0, 0.3);
    --glow-blue: 0 0 20px rgba(79, 156, 255, 0.3);
    --glow-red: 0 0 20px rgba(255, 68, 68, 0.3);
    --shadow-deep: 0 15px 35px rgba(0, 0, 0, 0.5);
    --shadow-card: 0 8px 25px rgba(0, 0, 0, 0.3);
    
    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    --gradient-space: linear-gradient(135deg, #0a0e1a 0%, #1a1f2e 50%, #2a3040 100%);
    --gradient-force: linear-gradient(135deg, #4f9cff 0%, #9d4edd 100%);
    --gradient-sith: linear-gradient(135deg, #ff4444 0%, #cc1100 100%);
}

/* ============================================ */
/* 🚀 EPIC CONTEXTUAL FLOATING NEXT BUTTON */
/* ============================================ */

.btn-next-floating {
    position: fixed;
    bottom: 25px;  /* Moved to bottom-right for better UX */
    right: 25px;
    background: var(--gradient-gold);
    color: #000000;
    border: none;
    padding: 16px 20px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse-contextual 2s infinite;
    font-family: 'Orbitron', sans-serif;
    box-shadow: var(--shadow-card), var(--glow-gold), 0 8px 25px rgba(255, 215, 0, 0.4);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 140px;
    max-width: none; /* Allow expansion for longer text */
    overflow: visible; /* Allow content to be visible */
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 2px rgba(255, 215, 0, 0.3);
    /* Prevent button from becoming too wide */
    max-width: 250px;
}

.btn-next-floating:hover {
    transform: scale(1.1);
    box-shadow: var(--glow-gold), var(--shadow-deep), 0 12px 35px rgba(255, 215, 0, 0.6);
    animation: none;
    /* Allow more expansion on hover for better readability */
    max-width: 280px;
    padding: 18px 24px;
}

/* Button Content Structure */
.next-button-content {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.btn-next-floating .next-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.next-text-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1;
    min-width: 0;
    /* Allow content to flow naturally */
    overflow: visible;
}

.btn-next-floating .next-text {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    /* Allow text to wrap if needed for very long translations */
    white-space: normal;
    overflow: visible;
    width: 100%;
    /* Prevent excessive wrapping - prefer single line when possible */
    word-break: keep-all;
    overflow-wrap: break-word;
}

.btn-next-floating .next-subtitle {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.8;
    line-height: 1.1;
    /* Allow subtitle to wrap if needed */
    white-space: normal;
    overflow: visible;
    width: 100%;
    margin-top: 1px;
    /* Prevent excessive wrapping for subtitles */
    word-break: keep-all;
    overflow-wrap: break-word;
}

/* Phase-specific styling */
.btn-next-floating.begin-phase {
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    animation: pulse-begin 2s infinite;
}

.btn-next-floating.continue-phase {
    background: var(--gradient-gold);
    animation: pulse-contextual 2s infinite;
}

.btn-next-floating.reveal-phase {
    background: linear-gradient(135deg, #9C27B0, #6A1B9A);
    animation: pulse-reveal 2s infinite;
}

.btn-next-floating.specialization-phase {
    background: linear-gradient(135deg, #2196F3, #0D47A1);
    animation: pulse-specialization 2s infinite;
}

.btn-next-floating.next-quote-phase {
    background: linear-gradient(135deg, #FF5722, #D84315);
    animation: pulse-next-quote 2s infinite;
}

/* Hover effects for icons */
.btn-next-floating:hover .next-icon {
    transform: scale(1.2) rotate(10deg);
}

.btn-next-floating.reveal-phase:hover .next-icon {
    transform: scale(1.2) rotate(360deg);
}

/* Animations */
@keyframes pulse-contextual {
    0%, 100% { 
        box-shadow: var(--shadow-card), var(--glow-gold), 0 8px 25px rgba(255, 215, 0, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: var(--glow-gold), 0 10px 30px rgba(255, 215, 0, 0.6);
        transform: scale(1.02);
    }
}

@keyframes pulse-begin {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(76, 175, 80, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 6px 20px rgba(76, 175, 80, 0.6);
        transform: scale(1.02);
    }
}

@keyframes pulse-reveal {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(156, 39, 176, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 6px 20px rgba(156, 39, 176, 0.6);
        transform: scale(1.02);
    }
}

@keyframes pulse-next-quote {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 6px 20px rgba(255, 87, 34, 0.6);
        transform: scale(1.02);
    }
}

@keyframes pulse-specialization {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: var(--shadow-card), 0 0 35px rgba(255, 215, 0, 0.8), 0 12px 35px rgba(255, 215, 0, 0.6);
        transform: scale(1.08);
    }
}

/* ============================================ */
/* �👤 PROFILE SYSTEM STYLES */
/* ============================================ */

/* Profile Button */
.btn-profile {
    background: var(--gradient-force);
    border: 2px solid var(--jedi-blue);
    color: var(--text-primary);
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--glow-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-profile:hover {
    background: var(--gradient-gold);
    border-color: var(--gold-primary);
    box-shadow: var(--glow-gold);
    transform: translateY(-2px);
}

.btn-profile .profile-icon {
    font-size: 1.2rem;
}

.btn-profile .dropdown-arrow {
    font-size: 0.8rem;
    opacity: 0.7;
}

/* Profile Modal */
.profile-modal-content {
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-secondary);
    border: 2px solid var(--gold-primary);
    border-radius: 20px;
    box-shadow: var(--shadow-deep), var(--glow-gold);
}

.profile-tabs {
    display: flex;
    background: var(--bg-tertiary);
    border-radius: 15px 15px 0 0;
    overflow: hidden;
    border-bottom: 2px solid var(--gold-primary);
}

.profile-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: 'Orbitron', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.profile-tab:hover {
    background: var(--bg-glass);
    color: var(--text-secondary);
}

.profile-tab.active {
    background: var(--gradient-gold);
    color: var(--bg-primary);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

.profile-tab .tab-icon {
    font-size: 1.2rem;
}

.profile-content {
    padding: 2rem;
    min-height: 400px;
}

.profile-tab-content {
    display: none;
}

.profile-tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Profile Overview */
.profile-overview {
    max-width: 100%;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-glass);
    border-radius: 15px;
    border: 1px solid var(--gold-primary);
    box-shadow: var(--shadow-card);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: var(--gradient-force);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--text-primary);
    border: 3px solid var(--gold-primary);
    box-shadow: var(--glow-gold);
}

.profile-info h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--gold-primary);
    margin: 0 0 0.5rem 0;
}

.profile-info p {
    color: var(--text-muted);
    margin: 0 0 1rem 0;
}

.profile-badges {
    display: flex;
    gap: 0.5rem;
}

.badge {
    background: var(--gradient-force);
    color: var(--text-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--jedi-blue);
}

/* Profile Stats Grid */
.profile-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.stat-card {
    background: var(--bg-glass);
    border: 1px solid var(--bronze-primary);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-card);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-deep), 0 0 15px rgba(255, 215, 0, 0.2);
    border-color: var(--gold-primary);
}

.stat-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    background: var(--gradient-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bg-primary);
    font-weight: bold;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-primary);
    line-height: 1;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Favorites & Shares Lists */
.section-header {
    margin-bottom: 1.5rem;
    text-align: center;
}

.section-header h3 {
    font-family: 'Cinzel', serif;
    color: var(--gold-primary);
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.section-header p {
    color: var(--text-muted);
    margin: 0;
}

.favorites-list,
.shares-list {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--bronze-primary);
    border-radius: 15px;
    background: var(--bg-glass);
}

.quote-item {
    padding: 1.5rem;
    border-bottom: 1px solid var(--bg-tertiary);
    transition: background 0.3s ease;
}

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

.quote-item:hover {
    background: rgba(255, 215, 0, 0.05);
}

.quote-text {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    font-style: italic;
}

.quote-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
}

.quote-author {
    color: var(--gold-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

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

.quote-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    background: transparent;
    border: 1px solid var(--bronze-primary);
    color: var(--text-muted);
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn:hover {
    background: var(--gold-primary);
    color: var(--bg-primary);
    border-color: var(--gold-primary);
}

/* Settings Form */
.settings-form {
    max-width: 500px;
}

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

.form-group label {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    background: var(--bg-glass);
    border: 1px solid var(--bronze-primary);
    border-radius: 8px;
    padding: 0.75rem;
    color: var(--text-primary);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.2);
}

.multi-select {
    min-height: 120px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.settings-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.loading-placeholder {
    text-align: center;
    color: var(--text-muted);
    padding: 2rem;
    font-style: italic;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.empty-state .empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state .empty-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.empty-state .empty-description {
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .profile-modal-content {
        max-width: 95vw;
        margin: 2rem 1rem;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .profile-stats-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-tabs {
        flex-wrap: wrap;
    }
    
    .profile-tab {
        min-width: 50%;
    }
    
    .settings-actions {
        flex-direction: column;
    }
    
    .btn-profile .dropdown-arrow {
        display: none;
    }
}

/* ============================================ */
/* 🌌 COSMIC BACKGROUND & BASE STYLES */
/* ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    background-image: 
        radial-gradient(circle at 20% 20%, rgba(79, 156, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(157, 78, 221, 0.05) 0%, transparent 50%);
    min-height: 100vh;
    color: var(--text-primary);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    padding-bottom: 0; /* Footer appears only when user scrolls to bottom */
}

/* Animated Star Field Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, white, transparent),
        radial-gradient(2px 2px at 40px 70px, white, transparent),
        radial-gradient(1px 1px at 90px 40px, white, transparent),
        radial-gradient(1px 1px at 130px 80px, white, transparent),
        radial-gradient(2px 2px at 160px 30px, white, transparent);
    background-repeat: repeat;
    background-size: 200px 100px;
    animation: sparkle 20s linear infinite;
    pointer-events: none;
    opacity: 0.3;
    z-index: -1;
}

@keyframes sparkle {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* ============================================ */
/* 🔐 V4 AUTHENTICATION SYSTEM STYLES */
/* ============================================ */

/* Navigation Authentication */
.nav-bar {
    display: flex;
    justify-content: space-between; /* Distribute nav-left and nav-right */
    position: relative;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-nav {
    display: flex;
    align-items: center;
    gap: 1rem; /* Keep language switcher gap */
    /* ...existing styles... */
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem; /* Match left gap for balance */
}

.btn-auth {
    background: var(--gradient-force);
    color: var(--text-primary);
    border: 2px solid var(--jedi-blue);
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-family: 'Orbitron', monospace;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--glow-blue);
}

.btn-auth:hover {
    background: linear-gradient(135deg, #5fa8ff 0%, #b058f5 100%);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(79, 156, 255, 0.5);
}

/* Authentication Modal */
#authModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(10px);
}

.auth-modal-content {
    background: var(--bg-card);
    border: 2px solid var(--gold-primary);
    border-radius: 15px;
    box-shadow: var(--shadow-deep), 0 0 30px rgba(255, 215, 0, 0.3);
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    backdrop-filter: blur(15px);
}

.auth-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    color: var(--bg-primary);
    padding: 1.5rem 2rem;
    border-radius: 13px 13px 0 0;
    text-align: center;
    position: relative;
    border: 2px solid var(--gold-primary);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.auth-header h2 {
    margin: 0;
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    font-weight: 600;
}

.modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.6rem;
    font-weight: 400;
    cursor: pointer;
    padding: 0.6rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(5px);
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 68, 68, 0.15);
    border-color: rgba(255, 68, 68, 0.4);
    color: #ff6b6b;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.2);
}

/* Authentication Tabs */
.auth-tabs {
    display: flex;
    background: var(--bg-secondary);
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', monospace;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-tab.active {
    background: var(--gradient-force);
    color: var(--text-primary);
    box-shadow: inset 0 0 20px rgba(79, 156, 255, 0.3);
}

.auth-tab:hover:not(.active) {
    background: rgba(79, 156, 255, 0.1);
    color: var(--text-primary);
}

.tab-icon {
    font-size: 1.2rem;
}

/* Authentication Content */
.auth-content {
    padding: 2rem;
}

.auth-tab-content {
    display: none;
}

.auth-tab-content.active {
    display: block;
}

/* Authentication Forms */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-family: 'Orbitron', monospace;
    color: var(--gold-primary);
    font-weight: 500;
    font-size: 0.9rem;
}

.auth-form input {
    background: var(--bg-secondary);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    padding: 0.8rem;
    color: var(--text-primary);
    font-family: 'Orbitron', monospace;
    transition: all 0.3s ease;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.auth-form input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.auth-submit {
    background: var(--gradient-force);
    color: var(--text-primary);
    border: 2px solid var(--jedi-blue);
    padding: 1rem;
    border-radius: 8px;
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.auth-submit:hover {
    background: linear-gradient(135deg, #5fa8ff 0%, #b058f5 100%);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(79, 156, 255, 0.5);
}

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

.btn-icon {
    font-size: 1.1rem;
}

/* Social Login Section */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--text-secondary);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.3), transparent);
}

.auth-divider span {
    padding: 0 1rem;
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
}

.social-login {
    display: flex;
    gap: 1rem;
}

.social-btn {
    flex: 1;
    background: var(--bg-secondary);
    border: 2px solid rgba(255, 215, 0, 0.3);
    color: var(--text-primary);
    padding: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Orbitron', monospace;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
}

.social-btn:hover {
    border-color: var(--gold-primary);
    background: rgba(255, 215, 0, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.3);
}

.social-icon {
    font-size: 1.2rem;
}

/* Authentication Footer */
.auth-footer {
    text-align: center;
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    background: rgba(0, 0, 0, 0.3);
    color: var(--text-secondary);
    font-family: 'Orbitron', monospace;
    font-size: 0.85rem;
    border-radius: 0 0 13px 13px;
}

.auth-footer p {
    margin: 0;
    line-height: 1.4;
}

/* User Menu (when logged in) */
#user-menu {
    position: relative;
    display: none;
}

.user-menu-toggle {
    background: var(--gradient-gold);
    color: var(--bg-primary);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: 'Orbitron', monospace;
    font-weight: 500;
    transition: all 0.3s ease;
}

.user-menu-toggle:hover {
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    transform: translateY(-1px);
}

#user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-card);
    border: 2px solid var(--gold-primary);
    border-radius: 10px;
    min-width: 200px;
    box-shadow: var(--shadow-deep);
    z-index: 1000;
    margin-top: 0.5rem;
    display: none;
}

#user-dropdown a,
#user-dropdown button {
    display: block;
    width: 100%;
    padding: 0.8rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Orbitron', monospace;
    text-align: left;
    transition: all 0.3s ease;
}

#user-dropdown a:hover,
#user-dropdown button:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--gold-primary);
}

/* 🏛️ GFB Footer - Ancient Wisdom Premium Design */
.gfb-footer {
    margin-top: 2rem;
    padding: 1rem 1rem 0;
    text-align: center;
    background: linear-gradient(145deg, 
        rgba(10, 14, 26, 0.95) 0%, 
        rgba(26, 31, 46, 0.9) 50%, 
        rgba(42, 48, 64, 0.85) 100%);
    border-top: 2px solid transparent;
    border-image: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 215, 0, 0.3) 20%, 
        rgba(255, 215, 0, 0.6) 50%, 
        rgba(255, 215, 0, 0.3) 80%, 
        transparent 100%) 1;
    position: relative;
    overflow: hidden;
}

.gfb-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 215, 0, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center; /* Center the "Made by GFB" */
    align-items: center;
    position: relative;
}

.footer-contact {
    /* Same styling as .gfb-footer p but for business contact */
    position: absolute;
    left: -10px; /* Push further to the left */
    margin: 0;
    font-family: 'Cinzel', serif;
    color: var(--text-muted);
    font-size: 0.5rem;  /* Reduced from 0.6rem to 0.5rem */
    opacity: 0.7;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: none !important; /* Force override with !important */
    /* Perfect text selection like "Made by GFB" */
    cursor: text;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    /* No transforms or positioning - just normal paragraph flow */
}

.footer-contact:hover {
    opacity: 1;
}

.contact-icon {
    font-size: 0.75rem;
    opacity: 0.8;
    filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.3));
}

.contact-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    opacity: 0.7;
    margin-left: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gfb-footer p {
    margin: 0;
    font-family: 'Cinzel', serif;
    color: var(--text-secondary);
    font-size: 1rem;
    opacity: 0.85;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.creator-tag {
    color: var(--gold-primary);
    font-weight: 600;
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
    transition: all 0.4s ease;
    background: var(--gradient-gold);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.creator-tag::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-gold);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.gfb-footer:hover .creator-tag {
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
    transform: scale(1.05);
}

.gfb-footer:hover .creator-tag::after {
    transform: scaleX(1);
}

/* 📱 Responsive Footer Design - Ancient Wisdom Premium - Optimized for Email Visibility */
@media (max-width: 768px) {
    .gfb-footer {
        padding: 0.8rem 0.8rem 0.4rem;
        margin-top: 1.5rem;
    }
    
    .footer-content {
        display: grid;
        grid-template-columns: 1.2fr 0.8fr; /* Give more space to email (60% vs 40%) */
        align-items: center;
        gap: 0.2rem; /* Reduced gap for more space */
        text-align: center;
        position: relative;
        width: 100%;
        max-width: 100%;
    }
    
    .footer-contact {
        /* Email on the left 60% */
        position: static !important; /* Override absolute positioning */
        left: auto !important; /* Override left positioning */
        justify-self: start;
        margin: 0;
        font-size: 0.14rem; /* Even smaller - reduced from 0.16rem */
        font-family: 'Cinzel', serif;
        color: var(--text-muted);
        opacity: 0.7;
        font-weight: 400;
        letter-spacing: 0.05px; /* Minimal letter spacing */
        text-transform: none !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%; /* Use full 60% width */
        /* Perfect text selection */
        cursor: text;
        user-select: text;
        -webkit-user-select: text;
        -moz-user-select: text;
        -ms-user-select: text;
        -webkit-touch-callout: default;
        /* Better mobile text handling */
        word-break: break-all;
        overflow-wrap: break-word;
        line-height: 1.1; /* Tighter line height */
        /* Allow text to break at @ symbol if needed */
        word-break: break-word;
        -webkit-hyphens: auto;
        hyphens: auto;
    }
    
    .footer-contact:hover {
        opacity: 1;
    }
    
    .gfb-footer p {
        /* "Made by GFB" on the right 40% */
        justify-self: end;
        font-size: 0.65rem; /* Smaller to balance */
        margin: 0;
        white-space: nowrap;
        width: 100%; /* Use full 40% width */
        text-align: right; /* Align text to the right */
    }
}

/* 📱 Extra Small Mobile - Optimize Email Visibility */
@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1.3fr 0.7fr; /* Even more space for email (65% vs 35%) */
        gap: 0.2rem; /* Smaller gap for tight space */
    }
    
    .footer-contact {
        font-size: 0.18rem; /* Ultra-tiny for guaranteed fit - reduced from 0.22rem */
        letter-spacing: 0.05px; /* Minimal letter spacing */
        width: 100%; /* Use full 65% width */
        /* Keep on single line to prevent wrapping */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.1;
    }
    
    .gfb-footer p {
        font-size: 0.6rem; /* Smaller "Made by GFB" text */
        width: 100%; /* Use full 35% width */
    }
    
    .creator-tag {
        font-size: 0.6rem; /* Ensure GFB tag matches */
    }
}

/* 📱 Landscape Mobile - Fix horizontal orientation issues */
@media (max-width: 768px) and (orientation: landscape) {
    .gfb-footer {
        padding: 0.5rem 1rem 0.3rem; /* Reduced vertical padding for landscape */
    }
    
    .footer-content {
        gap: 0.8rem; /* More space in landscape mode */
    }
    
    .footer-contact {
        font-size: 0.4rem; /* Smaller text in landscape - reduced from 0.45rem */
        letter-spacing: 0.3px;
        white-space: nowrap; /* Prevent wrapping in landscape */
        overflow: hidden;
        text-overflow: ellipsis;
        text-align: left; /* Ensure email stays left aligned */
    }
    
    .gfb-footer p {
        font-size: 0.8rem; /* Larger "Made by GFB" in landscape */
        text-align: right; /* Keep text right-aligned in landscape */
        justify-self: end; /* Ensure it stays in the right 40% area */
    }
    
    .creator-tag {
        font-size: 0.8rem;
    }
}

/* Authentication Notifications */
.auth-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--bg-card);
    border: 2px solid var(--gold-primary);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    font-family: 'Orbitron', monospace;
    box-shadow: var(--shadow-deep);
    z-index: 20000;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
}

.notification-success {
    border-color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.notification-error {
    border-color: #ff4757;
    box-shadow: 0 0 20px rgba(255, 71, 87, 0.3);
}

.notification-warning {
    border-color: #ffa502;
    box-shadow: 0 0 20px rgba(255, 165, 2, 0.3);
}

.notification-info {
    border-color: var(--jedi-blue);
    box-shadow: 0 0 20px rgba(79, 156, 255, 0.3);
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    float: right;
    margin-left: 1rem;
    font-size: 1.2rem;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Login Button Styling */
#login-btn {
    background: var(--gradient-force);
    color: var(--text-primary);
    border: 2px solid var(--jedi-blue);
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-family: 'Orbitron', monospace;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--glow-blue);
}

#login-btn:hover {
    background: linear-gradient(135deg, #5fa8ff 0%, #b058f5 100%);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(79, 156, 255, 0.5);
}

/* Profile Button Styling */
#profile-btn {
    background: var(--gradient-gold);
    color: var(--text-primary);
    border: 2px solid var(--gold-primary);
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    font-family: 'Orbitron', monospace;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--glow-gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#profile-btn:hover {
    background: linear-gradient(135deg, #ffb347 0%, #ffd700 100%);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.6);
}

.profile-icon {
    font-size: 1.1rem;
}

#profile-username {
    font-weight: 600;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

#profile-btn:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Mobile Responsiveness for Authentication */
@media (max-width: 768px) {
    .auth-modal-content {
        width: 95%;
        margin: 1rem;
    }
    
    .auth-content {
        padding: 1.5rem;
    }
    
    .social-login {
        flex-direction: column;
    }
    
    #user-dropdown {
        right: auto;
        left: 0;
    }
    
    .auth-notification {
        left: 10px;
        right: 10px;
        max-width: none;
    }
}

/* ============================================ */
/* 🏛️ HEADER - ANCIENT GREEK TEMPLE STYLE */
/* ============================================ */

.header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 0;
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 2px;
    background: var(--gradient-gold);
    box-shadow: var(--glow-gold);
}

.header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 2px;
    background: var(--gradient-gold);
    box-shadow: var(--glow-gold);
}

.new-header-format {
    text-align: center;
    position: relative;
}

/* Logo Integration */
.logo-container {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-logo {
    height: 120px;
    width: auto;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
    transition: all 0.3s ease;
    border-radius: 15px;
    background: rgba(255, 215, 0, 0.1);
    padding: 10px;
}

.main-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 30px rgba(255, 215, 0, 0.8));
}

/* Ancient Greek Temple Inspired Homepage Design */
.wisdom-temple {
    position: relative;
    max-width: 1000px;
    margin: 2rem auto;
    background: linear-gradient(135deg, 
        rgba(10, 14, 26, 0.95) 0%, 
        rgba(20, 30, 50, 0.98) 50%, 
        rgba(10, 14, 26, 0.95) 100%);
    border-radius: 25px;
    padding: 3rem 2rem;
    box-shadow: 
        0 0 50px rgba(79, 156, 255, 0.3),
        0 0 100px rgba(255, 215, 0, 0.2),
        inset 0 0 30px rgba(255, 215, 0, 0.1);
    border: 2px solid rgba(255, 215, 0, 0.5);
    backdrop-filter: blur(15px);
    overflow: hidden;
}

.temple-pillars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.pillar {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    background: linear-gradient(to bottom,
        rgba(255, 215, 0, 0.3) 0%,
        rgba(255, 215, 0, 0.1) 50%,
        rgba(255, 215, 0, 0.3) 100%);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 20px;
}

.pillar-left {
    left: 20px;
    transform: perspective(500px) rotateY(15deg);
}

.pillar-right {
    right: 20px;
    transform: perspective(500px) rotateY(-15deg);
}

.temple-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.temple-header {
    margin-bottom: 2.5rem;
}

.ancient-title {
    font-family: 'Cinzel', serif;
    font-size: 2.8rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 3px;
}

.title-glow {
    background: linear-gradient(45deg, 
        #ffd700 0%, 
        #ffffff 25%, 
        #4f9cff 50%, 
        #ffffff 75%, 
        #ffd700 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: title-shimmer 4s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
    filter: drop-shadow(0 0 10px rgba(79, 156, 255, 0.3));
}

@keyframes title-shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.temple-underline {
    width: 200px;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #ffd700 20%, 
        #4f9cff 50%, 
        #ffd700 80%, 
        transparent 100%);
    margin: 1rem auto;
    border-radius: 2px;
    animation: underline-glow 3s ease-in-out infinite alternate;
}

@keyframes underline-glow {
    0% { opacity: 0.7; transform: scaleX(1); }
    100% { opacity: 1; transform: scaleX(1.1); }
}

.wisdom-declarations {
    margin: 3rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.declaration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.2rem 2rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

.declaration:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: rgba(255, 215, 0, 0.6);
    box-shadow: 0 10px 30px rgba(79, 156, 255, 0.3);
}

.declaration:hover::before {
    left: 100%;
}

.declaration-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
    animation: icon-pulse 2s ease-in-out infinite;
}

@keyframes icon-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.declaration-text {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
}

.declaration-prefix {
    color: #4f9cff;
    font-weight: bold;
    font-size: 1.2rem;
    text-shadow: 0 0 10px rgba(79, 156, 255, 0.5);
}

.force-declaration .declaration-prefix {
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.declaration-content {
    color: #e8e8e8;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

.temple-footer {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 215, 0, 0.3);
}

.master-welcome {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    font-style: italic;
    color: #f39c12;
    text-shadow: 0 0 10px rgba(243, 156, 18, 0.5);
    line-height: 1.6;
}

.welcome-star {
    color: #ffd700;
    font-size: 1.5rem;
    animation: star-twinkle 2s ease-in-out infinite alternate;
}

@keyframes star-twinkle {
    0% { opacity: 0.6; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.2); }
}

.welcome-text {
    max-width: 600px;
    text-align: center;
}

/* Floating Cosmic Particles */
.cosmic-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: radial-gradient(circle, #ffd700 0%, transparent 70%);
    border-radius: 50%;
    animation: float-particle 15s linear infinite;
}

.particle-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.particle-2 {
    top: 20%;
    right: 15%;
    animation-delay: -3s;
    animation-duration: 18s;
}

.particle-3 {
    bottom: 30%;
    left: 20%;
    animation-delay: -6s;
    animation-duration: 14s;
}

.particle-4 {
    top: 60%;
    right: 25%;
    animation-delay: -9s;
    animation-duration: 16s;
}

.particle-5 {
    bottom: 20%;
    left: 70%;
    animation-delay: -12s;
    animation-duration: 20s;
}

@keyframes float-particle {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-20px) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive Design for Temple */
@media (max-width: 768px) {
    .wisdom-temple {
        margin: 1rem;
        padding: 2rem 1rem;
    }
    
    .ancient-title {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .declaration {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
    
    .master-welcome {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .pillar {
        width: 20px;
    }
    
    .pillar-left {
        left: 10px;
    }
    
    .pillar-right {
        right: 10px;
    }
}

/* ============================================ */
/* 🎮 NAVIGATION BUTTONS */
/* ============================================ */

.home-button-container {
    position: sticky;
    top: 20px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 0 20px;
}

.btn-home {
    background: var(--gradient-space);
    color: var(--text-primary);
    border: 2px solid var(--bronze-primary);
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-card);
    font-family: 'Orbitron', sans-serif;
}

.btn-home:hover {
    background: var(--gradient-force);
    border-color: var(--jedi-blue);
    transform: translateY(-3px);
    box-shadow: var(--glow-blue), var(--shadow-deep);
}

.btn-next {
    background: var(--gradient-gold);
    color: var(--bg-primary);
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse-gold 2s infinite;
    font-family: 'Orbitron', sans-serif;
    box-shadow: var(--shadow-card);
}

.btn-next:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--glow-gold), var(--shadow-deep);
    animation: none;
}

@keyframes pulse-gold {
    0%, 100% { box-shadow: var(--shadow-card); }
    50% { box-shadow: var(--glow-gold), var(--shadow-card); }
}

/* ============================================ */
/* 📜 CARD STYLES - ANCIENT SCROLLS */
/* ============================================ */

.welcome-card,
.path-card,
.wisdom-card {
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 25px;
    padding: 3rem;
    box-shadow: var(--shadow-deep);
    color: var(--text-primary);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.welcome-card::before,
.path-card::before,
.wisdom-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.05) 0%, 
        rgba(79, 156, 255, 0.05) 50%, 
        rgba(157, 78, 221, 0.05) 100%);
    z-index: -1;
}

.welcome-card h2,
.path-card h2,
.wisdom-card h2 {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--gold-primary);
    margin-bottom: 1.5rem;
    text-align: center;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

/* ============================================ */
/* 🛤️ PATH SELECTION - JEDI COUNCIL STYLE */
/* ============================================ */

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

.path-option {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.path-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 215, 0, 0.2), 
        transparent);
    transition: left 0.6s ease;
}

.path-option:hover::before {
    left: 100%;
}

.path-option:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--gold-primary);
    box-shadow: var(--glow-gold), var(--shadow-deep);
    background: rgba(42, 48, 64, 0.95);
}

.path-option.selected {
    border-color: var(--gold-primary);
    background: rgba(255, 215, 0, 0.1);
    box-shadow: var(--glow-gold);
    transform: translateY(-5px);
}

.path-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
}

.path-option h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.path-microtitle {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
    background: linear-gradient(90deg, rgba(255, 215, 0, 0.1), transparent);
    padding-left: 0.5rem;
    border-radius: 3px;
}

.path-option p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

/* ============================================ */
/* 🎯 MOOD & GOAL OPTIONS */
/* ============================================ */

.mood-options,
.goal-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.mood-option,
.goal-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 15px;
    background: rgba(42, 48, 64, 0.6);
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.mood-option:hover,
.goal-option:hover {
    background: rgba(79, 156, 255, 0.1);
    border-color: var(--jedi-blue);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(79, 156, 255, 0.2);
}

.mood-option input[type="radio"],
.goal-option input[type="radio"] {
    margin-right: 1rem;
    transform: scale(1.3);
    accent-color: var(--gold-primary);
}

.mood-option label,
.goal-option label {
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
    font-size: 1.1rem;
}

/* ============================================ */
/* 🏆 SPECIALIZATION GRID */
/* ============================================ */

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

.spec-option {
    padding: 1.5rem;
    border: 2px solid rgba(157, 78, 221, 0.3);
    border-radius: 15px;
    background: rgba(42, 48, 64, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    backdrop-filter: blur(5px);
}

.spec-option:hover {
    border-color: var(--force-purple);
    background: rgba(157, 78, 221, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(157, 78, 221, 0.2);
}

.spec-option.selected {
    border-color: var(--gold-primary);
    background: rgba(255, 215, 0, 0.1);
    box-shadow: var(--glow-gold);
}

.spec-emoji {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.3));
}

.spec-name {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.spec-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ============================================ */
/* 📝 INPUT STYLES */
/* ============================================ */

.input-group {
    margin-bottom: 2rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--gold-primary);
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
}

.input-group input[type="text"] {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    background: rgba(42, 48, 64, 0.8);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
}

.input-group input[type="text"]:focus {
    outline: none;
    border-color: var(--gold-primary);
    box-shadow: var(--glow-gold);
    background: rgba(42, 48, 64, 0.95);
}

.input-group input[type="text"]::placeholder {
    color: var(--text-muted);
    font-style: italic;
}

/* ============================================ */
/* 🎮 BUTTON SYSTEM */
/* ============================================ */

.btn {
    display: inline-block;
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    margin: 0.5rem;
    font-family: 'Orbitron', sans-serif;
    position: relative;
    overflow: hidden;
}

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

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

.btn-primary {
    background: var(--gradient-force);
    color: var(--text-primary);
    box-shadow: var(--shadow-card);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-blue), var(--shadow-deep);
}

.btn-secondary {
    background: var(--gradient-gold);
    color: var(--bg-primary);
    box-shadow: var(--shadow-card);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-gold), var(--shadow-deep);
}

.btn-tertiary {
    background: var(--gradient-sith);
    color: var(--text-primary);
    box-shadow: var(--shadow-card);
}

.btn-tertiary:hover {
    transform: translateY(-3px);
    box-shadow: var(--glow-red), var(--shadow-deep);
}

/* ============================================ */
/* 📖 WISDOM DISPLAY */
/* ============================================ */

.wisdom-section {
    animation: fadeInUp 0.8s ease-out;
}

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

.terminal-separator {
    font-family: 'Orbitron', monospace;
    text-align: center;
    color: var(--gold-primary);
    margin: 2rem 0;
    font-weight: bold;
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.quote-display {
    background: rgba(79, 156, 255, 0.1);
    border-left: 5px solid var(--jedi-blue);
    padding: 2.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    backdrop-filter: blur(5px);
    position: relative;
}

.quote-display::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--jedi-blue);
    font-family: 'Cinzel', serif;
    opacity: 0.3;
}

.quote-text {
    font-size: 1.4rem;
    line-height: 1.7;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 400;
    font-family: 'Inter', sans-serif;
}

.quote-author {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-accent);
    margin-bottom: 0.5rem;
    font-family: 'Cinzel', serif;
}

.companion-phrase {
    font-size: 1rem;
    opacity: 0.8;
    color: var(--text-muted);
    font-weight: 300;
}

.advice-display {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.15) 0%, 
        rgba(79, 156, 255, 0.12) 50%, 
        rgba(157, 78, 221, 0.15) 100%);
    border: 2px solid transparent;
    background-clip: padding-box;
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-deep), var(--glow-gold);
}

.advice-display::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        #ffd700 0%, #4f9cff 25%, #9d4edd 50%, #4f9cff 75%, #ffd700 100%);
    border-radius: 22px;
    z-index: -1;
    animation: wisdom-border-glow 3s ease-in-out infinite;
}

@keyframes wisdom-border-glow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.01); }
}

.advice-display::after {
    content: '🧭';
    position: absolute;
    top: -15px;
    right: -15px;
    background: var(--gradient-gold);
    border: 2px solid var(--gold-primary);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--glow-gold);
    animation: wisdom-icon-pulse 2s ease-in-out infinite;
}

@keyframes wisdom-icon-pulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

.advice-text {
    font-size: 1.3rem;
    line-height: 1.7;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

/* Enhanced wisdom guidance text styling */
.wisdom-guidance-text {
    font-size: 1.35rem;
    line-height: 1.8;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
    background: linear-gradient(135deg, 
        #ffffff 0%, 
        #e2e8f0 50%, 
        #cbd5e1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 1.5rem 0;
    padding: 1.5rem;
    text-align: center;
    position: relative;
}

.wisdom-guidance-text::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.05) 0%, 
        rgba(79, 156, 255, 0.03) 50%, 
        rgba(157, 78, 221, 0.05) 100%);
    border-radius: 15px;
    z-index: -1;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

/* Power up message styling */
.power-up-message {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.2) 0%, 
        rgba(255, 237, 78, 0.15) 100%);
    border: 1px solid rgba(255, 215, 0, 0.4);
    border-radius: 15px;
    padding: 1.2rem;
    margin-top: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.power-up-message::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 215, 0, 0.1) 50%, 
        transparent 100%);
    animation: power-up-shimmer 2s ease-in-out infinite;
}

@keyframes power-up-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.power-up-text {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--gold-primary);
    font-family: 'Orbitron', monospace;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    position: relative;
    z-index: 1;
}

/* ============================================ */
/* 🎪 MODAL SYSTEM */
/* ============================================ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    backdrop-filter: blur(10px);
}

.modal-content {
    background: var(--bg-card);
    border: 2px solid var(--gold-primary);
    border-radius: 25px;
    padding: 0;
    max-width: 700px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: var(--glow-gold), var(--shadow-deep);
}

.modal-header {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
    color: var(--bg-primary);
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 2px solid var(--gold-primary);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.modal-header h2 {
    margin: 0;
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-gold);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.8);
    text-transform: uppercase;
    letter-spacing: 1px;
    animation: golden-glow 2s ease-in-out infinite alternate;
}

.close-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 2rem;
    font-weight: 400;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    z-index: 10;
}

.close-btn:hover {
    background: rgba(255, 68, 68, 0.15);
    border-color: rgba(255, 68, 68, 0.4);
    color: #ff6b6b;
    transform: scale(1.05) rotate(90deg);
    box-shadow: 0 2px 8px rgba(255, 68, 68, 0.2);
}

.modal-body {
    padding: 2.5rem;
    color: var(--text-primary);
    overflow-y: auto;
    max-height: 60vh;
}

/* ============================================ */
/* 🌀 LOADING ANIMATION */
/* ============================================ */

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 26, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 3000;
    color: var(--text-primary);
    backdrop-filter: blur(5px);
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 215, 0, 0.3);
    border-top: 4px solid var(--gold-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 2rem;
    box-shadow: var(--glow-gold);
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading p {
    font-size: 1.2rem;
    font-family: 'Orbitron', sans-serif;
    color: var(--gold-primary);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

/* ============================================ */
/* 🔄 CONTINUATION OPTIONS */
/* ============================================ */

.continuation-section {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(42, 48, 64, 0.8);
    border-radius: 15px;
    border: 1px solid rgba(255, 215, 0, 0.3);
    backdrop-filter: blur(5px);
}

.continue-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 1.5rem 0;
}

.continue-option {
    display: flex;
    align-items: center;
    padding: 1rem;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: rgba(42, 48, 64, 0.5);
}

.continue-option:hover {
    background: rgba(79, 156, 255, 0.1);
    transform: translateX(10px);
}

.continue-option input[type="radio"] {
    margin-right: 1rem;
    transform: scale(1.2);
    accent-color: var(--gold-primary);
}

.continue-option label {
    cursor: pointer;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 1.1rem;
}

#continuePrompt {
    color: var(--gold-primary);
    font-weight: 600;
    margin-top: 1.5rem;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
}

/* ============================================ */
/* 🎬 ACTION BUTTONS */
/* ============================================ */

.action-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 3rem;
}

/* ============================================ */
/* 📱 RESPONSIVE DESIGN */
/* ============================================ */

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .main-logo {
        height: 80px;
    }
    
    .welcome-card,
    .path-card,
    .wisdom-card {
        padding: 2rem;
    }
    
    .path-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .mood-options,
    .goal-options,
    .specialization-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .home-button-container {
        padding: 0 10px;
    }
}

/* ============================================ */
/* 🎭 UTILITY CLASSES */
/* ============================================ */

.hidden {
    display: none !important;
}

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

.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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

/* ============================================ */
/* ✨ SPECIAL EFFECTS */
/* ============================================ */

/* Scroll reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hover glow effects */
.glow-on-hover {
    transition: all 0.3s ease;
}

.glow-on-hover:hover {
    filter: drop-shadow(0 0 15px currentColor);
}

/* Text gradient effects */
.text-gradient-gold {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================ */
/* 🏛️⚔️ ENHANCED MODERNIZED TEMPLE ARCHITECTURE */
/* ============================================ */

/* Modernized Wisdom Temple with Star Wars Fusion */
.wisdom-temple-modernized {
    position: relative;
    max-width: 1200px;
    margin: 2rem auto;
    background: linear-gradient(135deg, 
        rgba(10, 14, 26, 0.98) 0%, 
        rgba(15, 20, 35, 0.99) 30%,
        rgba(25, 35, 55, 0.98) 50%, 
        rgba(15, 20, 35, 0.99) 70%,
        rgba(10, 14, 26, 0.98) 100%);
    border-radius: 30px;
    padding: 4rem 3rem;
    box-shadow: 
        0 0 80px rgba(79, 156, 255, 0.4),
        0 0 120px rgba(255, 215, 0, 0.3),
        0 0 160px rgba(157, 78, 221, 0.2),
        inset 0 0 50px rgba(255, 215, 0, 0.15);
    border: 3px solid transparent;
    background-clip: padding-box;
    backdrop-filter: blur(20px);
    overflow: hidden;
}

.wisdom-temple-modernized::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        #ffd700 0%, #4f9cff 25%, #9d4edd 50%, #4f9cff 75%, #ffd700 100%);
    border-radius: 32px;
    z-index: -1;
    animation: border-glow 4s ease-in-out infinite;
}

@keyframes border-glow {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.02); }
}

/* Holographic Temple Architecture */
.temple-architecture {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.holo-pillar {
    position: absolute;
    top: 10%;
    bottom: 10%;
    width: 60px;
    background: linear-gradient(to bottom,
        rgba(255, 215, 0, 0.4) 0%,
        rgba(79, 156, 255, 0.3) 30%,
        rgba(255, 215, 0, 0.2) 50%,
        rgba(79, 156, 255, 0.3) 70%,
        rgba(255, 215, 0, 0.4) 100%);
    border: 2px solid rgba(255, 215, 0, 0.6);
    border-radius: 30px;
    backdrop-filter: blur(10px);
    animation: pillar-pulse 3s ease-in-out infinite alternate;
}

.holo-pillar-left {
    left: 30px;
    transform: perspective(800px) rotateY(20deg) rotateX(5deg);
}

.holo-pillar-right {
    right: 30px;
    transform: perspective(800px) rotateY(-20deg) rotateX(5deg);
}

@keyframes pillar-pulse {
    0% { 
        opacity: 0.7; 
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    }
    100% { 
        opacity: 1; 
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.6), 0 0 80px rgba(79, 156, 255, 0.3);
    }
}

.temple-base-foundation {
    position: absolute;
    bottom: 0;
    left: 10%;
    right: 10%;
    height: 8px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 215, 0, 0.8) 20%, 
        rgba(79, 156, 255, 0.6) 50%, 
        rgba(255, 215, 0, 0.8) 80%, 
        transparent 100%);
    border-radius: 4px;
    animation: foundation-glow 2s ease-in-out infinite alternate;
}

@keyframes foundation-glow {
    0% { opacity: 0.6; transform: scaleY(1); }
    100% { opacity: 1; transform: scaleY(1.5); }
}

/* Central Wisdom Sanctuary */
.wisdom-sanctuary {
    position: relative;
    z-index: 10;
    text-align: center;
}

.sanctuary-header {
    margin-bottom: 3rem;
}

.title-constellation {
    position: relative;
    display: inline-block;
}

/* Quantum Title Effect */
.quantum-title {
    font-family: 'Cinzel', serif;
    font-size: 3.2rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: 4px;
    position: relative;
    display: inline-block;
}

.title-matrix {
    background: linear-gradient(45deg, 
        #ffd700 0%, 
        #ffffff 15%, 
        #4f9cff 30%, 
        #ffffff 45%, 
        #9d4edd 60%, 
        #ffffff 75%, 
        #ffd700 100%);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: quantum-shimmer 5s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.6))
            drop-shadow(0 0 30px rgba(79, 156, 255, 0.4))
            drop-shadow(0 0 45px rgba(157, 78, 221, 0.3));
}

@keyframes quantum-shimmer {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 50% 0%; }
    50% { background-position: 100% 50%; }
    75% { background-position: 50% 100%; }
}

.quantum-underline {
    width: 300px;
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        #ffd700 15%, 
        #4f9cff 30%, 
        #9d4edd 50%, 
        #4f9cff 70%, 
        #ffd700 85%, 
        transparent 100%);
    margin: 1.5rem auto;
    border-radius: 2px;
    animation: quantum-underline-flow 4s ease-in-out infinite;
    position: relative;
}

@keyframes quantum-underline-flow {
    0%, 100% { 
        opacity: 0.8; 
        transform: scaleX(1); 
        box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
    }
    50% { 
        opacity: 1; 
        transform: scaleX(1.2); 
        box-shadow: 0 0 25px rgba(79, 156, 255, 0.6), 0 0 50px rgba(255, 215, 0, 0.4);
    }
}

/* Title Particles Effect */
.title-particles {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 2rem;
    pointer-events: none;
}

.particle-star {
    font-size: 1.5rem;
    color: #ffd700;
    animation: particle-float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.8));
}

.particle-star:nth-child(1) {
    animation-delay: 0s;
    animation-duration: 2.5s;
}

.particle-star:nth-child(2) {
    animation-delay: -0.8s;
    animation-duration: 3s;
}

.particle-star:nth-child(3) {
    animation-delay: -1.6s;
    animation-duration: 2.8s;
}

@keyframes particle-float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.7;
    }
    25% { 
        transform: translateY(-8px) rotate(90deg) scale(1.1);
        opacity: 1;
    }
    50% { 
        transform: translateY(-15px) rotate(180deg) scale(1.2);
        opacity: 0.9;
    }
    75% { 
        transform: translateY(-8px) rotate(270deg) scale(1.1);
        opacity: 1;
    }
}

/* Modernized Wisdom Command Center */
.wisdom-command-center {
    margin: 4rem 0;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.command-interface {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 20px;
    border: 2px solid transparent;
    backdrop-filter: blur(15px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.command-interface::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 215, 0, 0.15) 30%, 
        rgba(79, 156, 255, 0.15) 50%, 
        rgba(255, 215, 0, 0.15) 70%, 
        transparent 100%);
    transition: left 1s ease;
}

.command-interface:hover::before {
    left: 100%;
}

.command-interface:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 15px 40px rgba(79, 156, 255, 0.4);
}

/* Warrior Interface */
.warrior-interface {
    border-color: rgba(255, 68, 68, 0.4);
}

.warrior-interface:hover {
    border-color: rgba(255, 68, 68, 0.8);
    box-shadow: 0 15px 40px rgba(255, 68, 68, 0.3);
}

/* Transformation Interface */
.transformation-interface {
    border-color: rgba(255, 133, 0, 0.4);
}

.transformation-interface:hover {
    border-color: rgba(255, 133, 0, 0.8);
    box-shadow: 0 15px 40px rgba(255, 133, 0, 0.3);
}

/* Force Interface */
.force-interface {
    border-color: rgba(157, 78, 221, 0.4);
}

.force-interface:hover {
    border-color: rgba(157, 78, 221, 0.8);
    box-shadow: 0 15px 40px rgba(157, 78, 221, 0.3);
}

/* Interface Core */
.interface-core {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.core-icon {
    font-size: 2.5rem;
    z-index: 2;
    position: relative;
    animation: core-pulse 2s ease-in-out infinite;
}

.warrior-core {
    color: #ff4444;
    text-shadow: 0 0 15px rgba(255, 68, 68, 0.8);
}

.transformation-core {
    color: #ff8500;
    text-shadow: 0 0 15px rgba(255, 133, 0, 0.8);
}

.force-core {
    color: #9d4edd;
    text-shadow: 0 0 15px rgba(157, 78, 221, 0.8);
}

@keyframes core-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Core Energy Ring */
.core-energy-ring {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    animation: ring-rotation 4s linear infinite;
}

.warrior-ring {
    border-color: rgba(255, 68, 68, 0.6);
    box-shadow: 0 0 20px rgba(255, 68, 68, 0.4), inset 0 0 20px rgba(255, 68, 68, 0.2);
}

.transformation-ring {
    border-color: rgba(255, 133, 0, 0.6);
    box-shadow: 0 0 20px rgba(255, 133, 0, 0.4), inset 0 0 20px rgba(255, 133, 0, 0.2);
}

.force-ring {
    border-color: rgba(157, 78, 221, 0.6);
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.4), inset 0 0 20px rgba(157, 78, 221, 0.2);
}

@keyframes ring-rotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Interface Data Stream */
.interface-data {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.data-prefix {
    font-family: 'Orbitron', monospace;
    font-size: 1.5rem;
    font-weight: bold;
    animation: prefix-blink 2s ease-in-out infinite;
}

.warrior-prefix {
    color: #ff4444;
    text-shadow: 0 0 10px rgba(255, 68, 68, 0.6);
}

.transformation-prefix {
    color: #ff8500;
    text-shadow: 0 0 10px rgba(255, 133, 0, 0.6);
}

.force-prefix {
    color: #9d4edd;
    text-shadow: 0 0 10px rgba(157, 78, 221, 0.6);
}

@keyframes prefix-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.data-stream {
    position: relative;
    flex: 1;
}

.data-content {
    font-family: 'Inter', sans-serif;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-primary);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    line-height: 1.4;
}

.data-pulse-line {
    position: absolute;
    bottom: -8px;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    animation: pulse-line-flow 3s ease-in-out infinite;
}

.warrior-pulse {
    color: #ff4444;
}

.transformation-pulse {
    color: #ff8500;
}

.force-pulse {
    color: #9d4edd;
}

@keyframes pulse-line-flow {
    0%, 100% { width: 0%; opacity: 0; }
    50% { width: 100%; opacity: 1; }
}

/* Enhanced Master Portal */
.master-portal {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
}

.portal-frame {
    position: relative;
    max-width: 800px;
    padding: 2rem;
    border-radius: 25px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid transparent;
    background-clip: padding-box;
    backdrop-filter: blur(15px);
}

.portal-frame::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        #ffd700 0%, #4f9cff 33%, #9d4edd 66%, #ffd700 100%);
    border-radius: 27px;
    z-index: -1;
    animation: portal-border-flow 6s linear infinite;
}

@keyframes portal-border-flow {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.portal-energy {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 20px;
    background: radial-gradient(circle at center,
        rgba(255, 215, 0, 0.1) 0%,
        rgba(79, 156, 255, 0.05) 30%,
        rgba(157, 78, 221, 0.03) 60%,
        transparent 100%);
    animation: portal-energy-pulse 4s ease-in-out infinite;
}

@keyframes portal-energy-pulse {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.portal-content {
    position: relative;
    z-index: 2;
}

.welcome-constellation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    text-align: center;
}

.constellation-star {
    font-size: 2rem;
    color: #ffd700;
    animation: constellation-twinkle 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8));
}

.constellation-star:first-child {
    animation-delay: 0s;
}

.constellation-star:last-child {
    animation-delay: -1.5s;
}

@keyframes constellation-twinkle {
    0%, 100% { 
        opacity: 0.7; 
        transform: scale(1) rotate(0deg); 
    }
    25% { 
        opacity: 1; 
        transform: scale(1.2) rotate(90deg); 
    }
    50% { 
        opacity: 0.8; 
        transform: scale(1.1) rotate(180deg); 
    }
    75% { 
        opacity: 1; 
        transform: scale(1.2) rotate(270deg); 
    }
}

.master-greeting {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-primary);
    font-style: italic;
    line-height: 1.6;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.4);
    max-width: 600px;
}

/* Advanced Quantum Effects */
.quantum-effects {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.quantum-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: radial-gradient(circle, #ffd700 0%, rgba(255, 215, 0, 0.5) 50%, transparent 100%);
    border-radius: 50%;
    animation: quantum-float 20s linear infinite;
}

.quantum-particle-1 {
    top: 15%;
    left: 15%;
    animation-delay: 0s;
    animation-duration: 15s;
}

.quantum-particle-2 {
    top: 25%;
    right: 20%;
    animation-delay: -3s;
    animation-duration: 18s;
}

.quantum-particle-3 {
    bottom: 35%;
    left: 25%;
    animation-delay: -6s;
    animation-duration: 16s;
}

.quantum-particle-4 {
    top: 65%;
    right: 30%;
    animation-delay: -9s;
    animation-duration: 20s;
}

.quantum-particle-5 {
    bottom: 25%;
    left: 75%;
    animation-delay: -12s;
    animation-duration: 17s;
}

.quantum-particle-6 {
    top: 45%;
    left: 50%;
    animation-delay: -15s;
    animation-duration: 19s;
}

@keyframes quantum-float {
    0% {
        transform: translateY(0px) translateX(0px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-30px) translateX(15px) rotate(360deg);
        opacity: 0;
    }
}

/* 📱 MOBILE RESPONSIVE - Epic Contextual Next Button */
@media (max-width: 768px) {
    .btn-next-floating {
        right: 15px;
        bottom: 15px;
        padding: 14px 18px;
        font-size: 0.9rem;
        min-width: 120px;
        max-width: 160px;
        border-radius: 50px;
        gap: 10px;
    }
    
    .btn-next-floating .next-icon {
        font-size: 1.2rem;
    }
    
    .btn-next-floating .next-text {
        font-size: 0.9rem;
        font-weight: 600;
    }
    
    .btn-next-floating .next-subtitle {
        font-size: 0.7rem;
        opacity: 0.8;
        margin-top: 2px;
    }
    
    /* Mobile-specific: Hide subtitle for mid-flow buttons to save space */
    .btn-next-floating:not(.begin-phase):not(.specialization-phase):not(.reveal-phase) .next-subtitle {
        display: none;
    }
    
    .btn-home-floating {
        left: 10px;
        bottom: 20px;
        padding: 12px 20px; /* Increased horizontal padding for text fit */
        font-size: 0.9rem; /* Increased from 0.85rem */
        min-width: 70px; /* Increased from 60px to properly fit "Home" */
        max-width: 110px; /* Increased from 95px */
        border-radius: 35px; /* Slightly larger radius */
    }
    
    .btn-home-floating .home-icon {
        font-size: 0.95rem; /* Slightly larger icon */
    }
    
    .btn-home-floating .home-text {
        font-size: 0.85rem; /* Slightly larger text */
        white-space: nowrap; /* Prevent text wrapping */
        overflow: visible; /* Ensure text is visible */
    }
    
    .wisdom-temple-modernized {
        margin: 1rem;
        padding: 2.5rem 1.5rem;
    }
    
    .quantum-title {
        font-size: 2.2rem;
        letter-spacing: 2px;
    }
    
    .command-interface {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .interface-data {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .welcome-constellation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .holo-pillar {
        width: 40px;
    }
    
    .holo-pillar-left {
        left: 15px;
    }
    
    .holo-pillar-right {
        right: 15px;
    }
    
    .title-particles {
        gap: 1rem;
    }
}

.text-gradient-force {
    background: var(--gradient-force);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================ */
/* 🎯 FINAL TOUCHES */
/* ============================================ */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection styling */
::selection {
    background: rgba(255, 215, 0, 0.3);
    color: var(--text-primary);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-secondary);
}

/* Focus indicators for accessibility */
.btn:focus,
input:focus,
.path-option:focus,
.spec-option:focus {
    outline: 2px solid var(--gold-primary);
    outline-offset: 2px;
}

/* ============================================ */
/* 🌍 MODERN LANGUAGE SWITCHER */
/* ============================================ */

.language-switcher {
    position: relative;
    display: inline-block;
}

.btn-language {
    background: var(--bg-glass);
    border: 2px solid var(--gold-primary);
    color: var(--text-primary);
    padding: 8px 16px;
    border-radius: 25px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-card);
    min-width: 120px;
}

.btn-language:hover {
    background: var(--gold-primary);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: var(--glow-gold), var(--shadow-deep);
}

.btn-language .language-icon {
    font-size: 1.1rem;
    animation: rotate-globe 8s linear infinite;
}

@keyframes rotate-globe {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.btn-language .dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.btn-language.active .dropdown-arrow {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-card);
    border: 2px solid var(--gold-primary);
    border-radius: 15px;
    padding: 10px 0;
    min-width: 200px;
    box-shadow: var(--shadow-deep), var(--glow-gold);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    margin-top: 8px;
}

.language-dropdown.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    display: block !important;
}

/* Ensure language switcher has proper stacking context */
.language-switcher {
    position: relative;
    z-index: 1001;
}

/* Better button active state */
.btn-language.active {
    background: var(--gold-primary);
    color: var(--bg-primary);
    box-shadow: var(--glow-gold);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

.language-option:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    padding-left: 20px;
}

.language-option.active {
    background: var(--gold-primary);
    color: var(--bg-primary);
    font-weight: 600;
}

.language-option .flag {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.language-option .lang-name {
    flex: 1;
    font-size: 0.95rem;
}

.language-option .lang-status {
    font-size: 0.8rem;
    opacity: 0.8;
}

.language-option .lang-status[data-status="available"] {
    color: #4ade80;
}

.language-option .lang-status[data-status="coming_soon"] {
    color: #fbbf24;
}

.language-divider {
    height: 1px;
    background: var(--bg-tertiary);
    margin: 8px 16px;
}

.language-coming-soon {
    padding: 8px 16px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-style: italic;
}

/* Language switcher mobile responsiveness */
@media (max-width: 768px) {
    .btn-language {
        padding: 6px 12px;
        font-size: 0.8rem;
        min-width: 100px;
    }
    
    .language-dropdown {
        min-width: 180px;
        left: -40px;
    }
    
    .language-option {
        padding: 10px 14px;
        font-size: 0.9rem;
    }
}

/* 📱 MOBILE-OPTIMIZED LANGUAGE DROPDOWN */
@media (max-width: 480px) {
    #language-dropdown {
        position: absolute;
        /* Position below the button */
        top: 100%;
        left: 0;
        /* Prevent horizontal overflow on small screens */
        width: auto;
        max-width: 90vw;
        /* Set max-height and enable vertical scrolling */
        max-height: 80vh;
        overflow-y: auto;
        overflow-x: hidden;
        
        /* Keep existing styling but optimized for mobile */
        background: var(--bg-card);
        border: 2px solid var(--gold-primary);
        border-radius: 15px;
        padding: 5px 0; /* Reduced padding for mobile */
        box-shadow: var(--shadow-deep), var(--glow-gold);
        backdrop-filter: blur(20px);
        z-index: 1000;
        margin-top: 8px;
        
        /* Enhanced mobile transition */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }
    
    #language-dropdown.show {
        opacity: 1 !important;
        visibility: visible !important;
        transform: translateY(0) !important;
        display: block !important;
    }
    
    /* Mobile-optimized language options */
    .language-option {
        padding: 12px 16px; /* Larger touch targets for mobile */
        font-size: 14px; /* Consistent with mobile standards */
        border-bottom: 1px solid rgba(255, 215, 0, 0.1); /* Subtle separator */
        cursor: pointer;
        transition: all 0.2s ease;
        
        /* Ensure proper spacing */
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .language-option:last-child {
        border-bottom: none; /* No border for the last item */
    }
    
    .language-option:hover,
    .language-option:active {
        background: var(--bg-tertiary);
        color: var(--text-primary);
        padding-left: 20px; /* Slide effect on mobile */
    }
    
    .language-option.active {
        background: var(--gold-primary);
        color: var(--bg-primary);
        font-weight: 600;
    }
    
    /* Mobile flag and text sizing */
    .language-option .flag {
        font-size: 1.3rem; /* Slightly larger flags for mobile */
        width: 24px;
        text-align: center;
        flex-shrink: 0;
    }
    
    .language-option .lang-name {
        flex: 1;
        font-size: 14px;
        font-weight: 500;
    }
    
    .language-option .lang-status {
        font-size: 12px;
        opacity: 0.9;
        flex-shrink: 0;
    }
    
    /* Mobile divider styling */
    .language-divider {
        height: 1px;
        background: var(--bg-tertiary);
        margin: 4px 16px; /* Reduced margin for mobile */
    }
    
    /* Ensure proper scrolling on mobile */
    #language-dropdown::-webkit-scrollbar {
        width: 4px;
    }
    
    #language-dropdown::-webkit-scrollbar-track {
        background: transparent;
    }
    
    #language-dropdown::-webkit-scrollbar-thumb {
        background: var(--gold-primary);
        border-radius: 2px;
        opacity: 0.7;
    }
    
    #language-dropdown::-webkit-scrollbar-thumb:hover {
        background: var(--gold-secondary);
        opacity: 1;
    }
}

/* Language transition animation */
.language-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.language-transition.active {
    opacity: 1;
    visibility: visible;
}

.language-transition-content {
    text-align: center;
    color: var(--text-primary);
}

.language-transition-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.language-transition-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--gold-primary);
}

/* ============================================ */
/* 🏠🔥 FLOATING BUTTONS - HOME & MENU */
/* ============================================ */

/* 🏠 Floating Home Button (Bottom-Left) */
.btn-home-floating {
    position: fixed;
    bottom: 25px;
    left: 15px;
    background: var(--gradient-force);
    color: #ffffff;
    border: none;
    padding: 18px 28px; /* Increased horizontal padding */
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse-blue 2s infinite;
    font-family: 'Orbitron', sans-serif;
    box-shadow: var(--shadow-card), var(--glow-blue), 0 8px 25px rgba(79, 156, 255, 0.4);
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 95px; /* Increased from 80px */
    max-width: 150px; /* Increased from 140px */
    overflow: visible; /* Changed from hidden to ensure text is visible */
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 2px rgba(79, 156, 255, 0.3);
}

.btn-home-floating:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-deep), var(--glow-blue), 0 12px 35px rgba(79, 156, 255, 0.6);
    background: linear-gradient(135deg, #5fa8ff 0%, #a855f7 100%);
}

.btn-home-floating .home-icon {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
    flex-shrink: 0; /* Prevent icon from shrinking */
}

.btn-home-floating .home-text {
    font-weight: 800;
    font-size: 1rem;
    opacity: 0.9;
    white-space: nowrap; /* Prevent text wrapping */
    flex-shrink: 0; /* Prevent text from shrinking */
}

.btn-home-floating:hover .home-text {
    opacity: 1;
}

/* 🌟 Enhanced Glassmorphism Menu Button (2025 Ultra Modern Design) */
.btn-menu-fixed {
    /* Restore original red gradient background */
    background: var(--gradient-sith);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    
    /* Premium Border with Gradient */
    border: 1px solid;
    border-image: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(255, 68, 68, 0.2) 50%, 
        rgba(255, 255, 255, 0.1) 100%) 1;
    border-radius: 32px;
    
    /* Typography & Layout */
    color: #ffffff;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: 'Orbitron', sans-serif;
    
    /* Advanced Flex Layout */
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0; /* Remove default margin to avoid misalignment */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center within nav-bar */
    z-index: 1010; /* Above nav-bar baseline */
    min-width: 90px;
    overflow: visible;
    
    /* Premium Shadows & Effects */
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.12),
        0 4px 16px rgba(255, 68, 68, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    
    /* Smooth Transitions */
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Subtle Text Shadow */
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    
    /* Modern Transform Origin */
    transform-origin: center;
    will-change: transform, background, box-shadow;
}

.btn-menu-fixed:hover {
    /* Keep red gradient on hover */
    background: var(--gradient-sith);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    backdrop-filter: blur(24px) saturate(200%);
    
    /* Dynamic Border Glow */
    border-image: linear-gradient(135deg, 
        rgba(255, 68, 68, 0.6) 0%, 
        rgba(255, 255, 255, 0.4) 50%, 
        rgba(255, 68, 68, 0.3) 100%) 1;
    
    /* Premium Hover Effects */
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.18),
        0 8px 24px rgba(255, 68, 68, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05),
        0 0 20px rgba(255, 68, 68, 0.1);
}

.btn-menu-fixed:active {
    /* Micro-interaction on Click */
    transform: translateY(0) scale(0.98);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-menu-fixed .menu-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
    /* Modern Icon Enhancement */
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-menu-fixed .menu-text {
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    flex-shrink: 0;
    opacity: 0.95;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* Enhanced Text Rendering */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.btn-menu-fixed:hover .menu-text {
    opacity: 1;
    transform: translateX(1px);
    text-shadow: 0 1px 4px rgba(255, 68, 68, 0.2);
}

.btn-menu-fixed:hover .menu-icon {
    transform: rotate(90deg) scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(255, 68, 68, 0.3));
}

/* 📱 Responsive Glassmorphism Menu Button - Tablet */
@media (max-width: 768px) {
    .btn-menu-fixed {
        padding: 10px 18px;
        font-size: 0.9rem;
        margin-right: 8px;
        min-width: 85px;
        border-radius: 28px;
        gap: 8px;
        
        /* Maintain glassmorphism on tablet */
        -webkit-backdrop-filter: blur(16px) saturate(160%);
        backdrop-filter: blur(16px) saturate(160%);
        
        /* Optimized shadows for tablet */
        box-shadow: 
            0 6px 24px rgba(0, 0, 0, 0.1),
            0 3px 12px rgba(255, 68, 68, 0.06),
            inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }
    
    .btn-menu-fixed .menu-icon {
        font-size: 1.1rem;
    }
    
    .btn-menu-fixed .menu-text {
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    .btn-menu-fixed:hover {
        transform: translateY(-1px) scale(1.01);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        backdrop-filter: blur(20px) saturate(180%);
    }
}

@media (max-width: 480px) {
    /* Extra small mobile - maintain button structure */
    .btn-next-floating {
        padding: 12px 16px;
        font-size: 0.85rem;
        min-width: 100px;
        max-width: 130px;
        border-radius: 50px;
        right: 10px;
        bottom: 10px;
    }
    
    .btn-next-floating .next-icon {
        font-size: 1rem;
    }
    
    .btn-next-floating .next-text {
        font-size: 0.8rem;
    }
    
    .btn-next-floating .next-subtitle {
        font-size: 0.65rem;
    }
    
    /* Mobile-specific: Keep epic subtitles for important phases */
    .btn-next-floating.begin-phase .next-subtitle,
    .btn-next-floating.specialization-phase .next-subtitle,
    .btn-next-floating.reveal-phase .next-subtitle {
        display: block; /* Show subtitle for epic moments */
        font-size: 0.6rem;
    }
    
    .btn-next-floating:hover {
        transform: scale(1.05); /* Reduced scale for mobile */
        max-width: 150px;
        padding: 16px 18px;
    }
    
    .btn-home-floating {
        padding: 10px 16px; /* Increased horizontal padding */
        font-size: 0.8rem; /* Increased from 0.75rem */
        min-width: 60px; /* Increased from 50px to fit "Home" text */
        max-width: 85px; /* Increased from 75px */
        border-radius: 30px; /* Larger radius */
        left: 8px;
        bottom: 15px;
    }
    
    .btn-home-floating .home-icon {
        font-size: 0.85rem; /* Slightly larger icon */
    }
    
    .btn-home-floating .home-text {
        font-size: 0.75rem; /* Maintain readability */
        white-space: nowrap; /* Prevent text wrapping */
        overflow: visible; /* Ensure text is visible */
    }

/* 📱 Mobile Optimized Glassmorphism Menu Button */
@media (max-width: 480px) {
    #fixedMenuButton {
        display: flex;
        /* Use gap for consistent spacing between flex items (icon and text) */
        gap: 8px; /* Adjust the value as needed for desired spacing */
        padding: 8px 16px; /* Optimized padding for mobile */
        margin: 0px 6px 0px 0px; /* Keep existing margin or adjust if needed */
        border: 0.666667px solid rgb(255, 255, 255); /* Keep existing border */
        background-color: rgba(255, 255, 255, 0.06); /* Optimized background opacity */
        color: rgb(255, 255, 255); /* Keep existing text color */
        font-size: 14px; /* Consistent font-size for mobile */
        align-items: center; /* Vertically aligns items in the flex container */
        cursor: pointer; /* Indicate it's clickable */
        min-width: 85px;
        border-radius: 28px;
        
        /* Simplified glassmorphism for mobile performance */
        -webkit-backdrop-filter: blur(12px) saturate(140%);
        backdrop-filter: blur(12px) saturate(140%);
        
        /* Optimized mobile shadows */
        box-shadow: 
            0 4px 16px rgba(0, 0, 0, 0.08),
            0 2px 8px rgba(255, 68, 68, 0.04),
            inset 0 1px 0 rgba(255, 255, 255, 0.06);
        
        /* Faster transitions for mobile */
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    span.menu-text {
        /* No need for padding/margin if using gap on the parent */
        padding: 0;
        margin: 0;
        font-size: 14px; /* Match the parent font-size for consistency */
        font-weight: 600; /* Slightly less bold than 700 for better readability */
        line-height: 1.2; /* Explicit line-height for better vertical spacing */
        display: inline-block; /* Better control over layout */
        white-space: nowrap;
    }

    /* Optional: Add hover/active states for better user interaction */
    #fixedMenuButton:hover {
        background-color: rgba(255, 255, 255, 0.1);
        transform: translateY(-1px) scale(1.01);
        -webkit-backdrop-filter: blur(16px) saturate(160%);
        backdrop-filter: blur(16px) saturate(160%);
        
        /* Lighter mobile hover effects */
        box-shadow: 
            0 6px 20px rgba(0, 0, 0, 0.12),
            0 3px 10px rgba(255, 68, 68, 0.08);
    }

    #fixedMenuButton:active {
        background-color: rgba(255, 255, 255, 0.15);
    }
    
    #fixedMenuButton .menu-icon {
        font-size: 1rem;
    }
    
    #fixedMenuButton:hover .menu-icon {
        transform: rotate(90deg) scale(1.05);
    }
}
    
    .nav-bar {
        padding: 0.25rem 0;
        margin-bottom: 0.5rem;
    }
    
    .auth-nav, .nav-right {
        gap: 0.5rem;
    }
}

/* 📋 Floating Menu Button (Top Center) */
.btn-menu-floating {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-sith);
    color: #ffffff;
    border: none;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse-red 2s infinite;
    font-family: 'Orbitron', sans-serif;
    box-shadow: var(--shadow-card), var(--glow-red), 0 8px 25px rgba(255, 68, 68, 0.4);
    z-index: 3000; /* Higher z-index to ensure it's always on top */
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 100px;
    max-width: 140px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    text-shadow: 0 1px 2px rgba(255, 68, 68, 0.3);
}

.btn-menu-floating:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: var(--shadow-deep), var(--glow-red), 0 12px 35px rgba(255, 68, 68, 0.6);
    background: linear-gradient(135deg, #ff5555 0%, #dd2200 100%);
}

.btn-menu-floating .next-icon {
    font-size: 1.3rem;
    transition: transform 0.3s ease;
}

.btn-menu-floating .next-text {
    font-weight: 800;
    font-size: 1rem;
    opacity: 0.9;
}

.btn-menu-floating:hover .next-text {
    opacity: 1;
}

/* Responsive design for Menu button */
@media (max-width: 768px) {
    .btn-menu-floating {
        top: 15px;
        padding: 10px 16px;
        font-size: 0.9rem;
        min-width: 80px;
        max-width: 120px;
        gap: 6px;
    }
    
    .btn-menu-floating .next-icon {
        font-size: 1.1rem;
    }
    
    .btn-menu-floating .next-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .btn-menu-floating {
        top: 10px;
        padding: 8px 12px;
        font-size: 0.8rem;
        min-width: 70px;
        max-width: 100px;
        gap: 4px;
    }
    
    .btn-menu-floating .next-icon {
        font-size: 1rem;
    }
    
    .btn-menu-floating .next-text {
        font-size: 0.75rem;
    }
}

/* Pulse animations for floating buttons */
@keyframes pulse-blue {
    0%, 100% { box-shadow: var(--shadow-card), var(--glow-blue), 0 8px 25px rgba(79, 156, 255, 0.4); }
    50% { box-shadow: var(--shadow-card), var(--glow-blue), 0 12px 35px rgba(79, 156, 255, 0.6); }
}

@keyframes pulse-red {
    0%, 100% { box-shadow: var(--shadow-card), var(--glow-red), 0 8px 25px rgba(255, 68, 68, 0.4); }
    50% { box-shadow: var(--shadow-card), var(--glow-red), 0 12px 35px rgba(255, 68, 68, 0.6); }
}

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

.stat-item {
    background: linear-gradient(145deg, var(--bg-secondary), var(--bg-tertiary));
    border: 1px solid var(--gold-secondary);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--gold-primary);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}

.stat-item h3 {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: var(--gold-primary);
    margin: 0 0 0.75rem 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--gradient-gold);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.3);
}

.journey-summary {
    background: linear-gradient(145deg, var(--bg-primary), var(--bg-secondary));
    border: 1px solid var(--gold-secondary);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-card);
}

.journey-summary h3 {
    font-family: 'Cinzel', serif;
    color: var(--gold-primary);
    margin: 0 0 1rem 0;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.journey-summary p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0.75rem 0;
}

.journey-summary strong {
    color: var(--gold-primary);
    font-weight: 600;
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .journey-summary {
        padding: 1.5rem;
    }
}

/* ============================================ */
/* 🌟 ANCIENT WISDOM ENERGY SYSTEM STYLES */
/* ============================================ */

/* Ancient Wisdom Header */
.ancient-wisdom-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--gradient-space);
    border-radius: 15px;
    border: 2px solid var(--gold-primary);
    box-shadow: var(--glow-gold);
}

.ancient-wisdom-header h2 {
    color: var(--gold-primary);
    font-family: 'Cinzel', serif;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
}

/* Rank Display */
.rank-display {
    margin-top: 1rem;
}

.rank-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(255, 215, 0, 0.1);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.rank-emoji {
    font-size: 3rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    animation: rankGlow 3s ease-in-out infinite alternate;
}

.rank-details h3.rank-name {
    color: var(--gold-primary);
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 1px 4px rgba(255, 215, 0, 0.3);
}

.rank-details p.rank-title {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0.25rem 0 0 0;
    font-style: italic;
}

/* Energy System */
.energy-system {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 215, 0, 0.2);
    box-shadow: var(--shadow-card);
}

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

.energy-header h3 {
    color: var(--text-primary);
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    margin: 0;
}

.energy-percent {
    color: var(--gold-primary);
    font-family: 'Orbitron', monospace;
    font-weight: 700;
    font-size: 1.1rem;
    text-shadow: 0 1px 3px rgba(255, 215, 0, 0.5);
}

/* Energy Progress Bars */
.energy-progress-container {
    margin: 1rem 0;
}

.energy-progress-bar {
    background: var(--bg-secondary);
    border-radius: 25px;
    height: 12px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.3);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.energy-progress-fill {
    height: 100%;
    border-radius: 25px;
    position: relative;
    transition: width 0.8s ease;
    overflow: hidden;
}

.energy-sparkle, .rank-progress-sparkle {
    position: absolute;
    top: 0;
    left: -100%;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: sparkle 2s ease-in-out infinite;
}

.rank-progress-container {
    margin-top: 1rem;
}

.rank-progress-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.rank-progress-bar {
    background: var(--bg-secondary);
    border-radius: 20px;
    height: 8px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.rank-progress-fill {
    height: 100%;
    border-radius: 20px;
    position: relative;
    transition: width 0.8s ease;
    overflow: hidden;
}

.energy-description {
    color: var(--text-secondary);
    font-style: italic;
    text-align: center;
    margin: 1rem 0;
    padding: 0.5rem;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 8px;
    border-left: 3px solid var(--gold-primary);
}

/* Next Rank Info */
.next-rank-info, .max-rank-info {
    background: var(--bg-tertiary);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.next-rank-text, .max-rank-text {
    color: var(--gold-primary);
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.energy-needed {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.mastery-text {
    color: var(--text-secondary);
    font-style: italic;
    margin: 0;
}

/* Wisdom Milestone */
.wisdom-milestone {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1rem;
    border: 1px solid rgba(255, 215, 0, 0.3);
    text-align: center;
}

.milestone-text {
    color: var(--gold-primary);
    font-weight: 500;
    margin: 0;
    font-size: 0.95rem;
}

/* Energy Notification */
.energy-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--gradient-space);
    border: 2px solid var(--gold-primary);
    border-radius: 15px;
    padding: 1rem 1.5rem;
    z-index: 10000;
    box-shadow: var(--glow-gold), var(--shadow-deep);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    min-width: 250px;
}

.energy-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.energy-gain {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.energy-icon {
    font-size: 1.2rem;
    animation: energyPulse 0.6s ease;
}

.energy-text {
    color: var(--gold-primary);
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    font-size: 0.95rem;
}

.energy-notification .rank-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    background: rgba(255, 215, 0, 0.1);
    padding: 0.5rem;
    border-radius: 8px;
}

.energy-notification .rank-emoji {
    font-size: 1.1rem;
}

.energy-notification .rank-name {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Animations */
@keyframes rankGlow {
    0% { text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); }
    100% { text-shadow: 0 2px 15px rgba(255, 215, 0, 0.7), 0 0 30px rgba(255, 215, 0, 0.3); }
}

@keyframes sparkle {
    0% { left: -100%; }
    100% { left: 100%; }
}

@keyframes energyPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Responsive Design for Energy System */
@media (max-width: 768px) {
    .ancient-wisdom-header h2 {
        font-size: 1.5rem;
    }
    
    .rank-info {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .rank-emoji {
        font-size: 2.5rem;
    }
    
    .energy-header {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    /* 📱 MOBILE OPTIMIZATION: 50% smaller energy notification */
    .energy-notification {
        right: 10px;
        left: auto; /* Removed left positioning to keep it right-aligned */
        top: 15px; /* Slightly adjusted position */
        transform: translateX(100%); /* Keep original slide animation */
        min-width: 125px; /* 50% of 250px */
        max-width: 180px; /* Prevent it from getting too wide */
        padding: 0.5rem 0.75rem; /* 50% of original padding (1rem 1.5rem) */
        border-radius: 12px; /* Slightly smaller radius */
        font-size: 0.8rem; /* Scale down text */
    }
    
    .energy-notification.show {
        transform: translateX(0); /* Maintain slide-in from right */
    }
    
    /* Scale down internal elements for mobile */
    .energy-notification .energy-text {
        font-size: 0.8rem; /* Reduced from 0.95rem */
    }
    
    .energy-notification .energy-icon {
        font-size: 1rem; /* Reduced from 1.2rem */
    }
    
    .energy-notification .rank-name {
        font-size: 0.7rem; /* Reduced from 0.85rem */
    }
    
    .energy-notification .rank-emoji {
        font-size: 0.9rem; /* Reduced from 1.1rem */
    }
    
    .energy-notification .rank-info {
        padding: 0.25rem; /* Reduced from 0.5rem */
        border-radius: 6px; /* Smaller radius */
    }
}

/* ============================================ */
/* 🏺 ENHANCED QUOTE REVELATION SYSTEM */
/* ============================================ */

/* Main quote revelation container */
.quote-revelation-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out;
}

/* Wisdom introduction text */
.wisdom-intro {
    margin-bottom: 2rem;
    opacity: 0.9;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* MAIN QUOTE AREA - THE MOST IMPORTANT SECTION */
.main-quote-area {
    background: linear-gradient(135deg, 
        rgba(79, 156, 255, 0.15) 0%, 
        rgba(157, 78, 221, 0.1) 50%, 
        rgba(255, 215, 0, 0.1) 100%);
    border: 3px solid rgba(255, 215, 0, 0.3);
    border-radius: 25px;
    padding: 3rem 2.5rem;
    margin: 2rem 0;
    position: relative;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 
        var(--shadow-deep),
        0 0 40px rgba(255, 215, 0, 0.2),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-width: 800px;
    width: 100%;
}

.main-quote-area:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 215, 0, 0.5);
    box-shadow: 
        var(--shadow-deep),
        0 0 60px rgba(255, 215, 0, 0.3),
        inset 0 0 30px rgba(255, 255, 255, 0.08);
}

.main-quote-area::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 30px;
    font-size: 6rem;
    color: var(--gold-primary);
    font-family: 'Cinzel', serif;
    opacity: 0.4;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    z-index: 1;
}

.main-quote-area::after {
    content: '"';
    position: absolute;
    bottom: -30px;
    right: 30px;
    font-size: 6rem;
    color: var(--gold-primary);
    font-family: 'Cinzel', serif;
    opacity: 0.4;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
    transform: rotate(180deg);
    z-index: 1;
}

/* THE PRIMARY QUOTE TEXT - MOST IMPORTANT TEXT ON SCREEN */
.primary-quote-text {
    font-size: 2rem !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    color: var(--text-primary) !important;
    font-family: 'Cinzel', serif !important;
    font-style: italic;
    margin-bottom: 2rem !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    letter-spacing: 0.02em;
}

/* Quote author styling */
.quote-author-line {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid rgba(255, 215, 0, 0.3);
    position: relative;
    z-index: 2;
}

.quote-author-line p {
    font-size: 1.3rem !important;
    color: var(--gold-primary) !important;
    font-family: 'Orbitron', monospace !important;
    font-weight: 600 !important;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.4);
}

/* Action buttons container */
.quote-action-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Enhanced action buttons */
.ancient-action-btn {
    background: var(--gradient-gold);
    border: 3px solid var(--gold-primary);
    border-radius: 20px;
    padding: 1rem 1.5rem;
    font-family: 'Orbitron', monospace;
    font-size: 1rem;
    font-weight: 600;
    color: var(--bg-primary);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 
        var(--shadow-card), 
        var(--glow-gold),
        0 0 20px rgba(255, 215, 0, 0.3);
    position: relative;
    overflow: hidden;
    min-width: 180px;
    justify-content: center;
}

.ancient-action-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        var(--shadow-deep), 
        0 0 35px rgba(255, 215, 0, 0.5),
        0 0 60px rgba(255, 215, 0, 0.3);
    border-color: var(--gold-secondary);
}

.ancient-action-btn.loading {
    pointer-events: none;
    opacity: 0.7;
    animation: pulse 1.5s infinite;
}

.ancient-action-btn .action-icon {
    font-size: 1.3rem;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.3));
}

.ancient-action-btn .action-text {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Save button specific styling */
.ancient-action-btn.save-btn.saved {
    background: var(--gradient-force);
    border-color: var(--jedi-blue);
    box-shadow: 
        var(--shadow-card), 
        var(--glow-blue),
        0 0 20px rgba(79, 156, 255, 0.3);
}

.ancient-action-btn.save-btn.saved:hover {
    box-shadow: 
        var(--shadow-deep), 
        0 0 35px rgba(79, 156, 255, 0.5),
        0 0 60px rgba(79, 156, 255, 0.3);
}

/* Share button specific styling */
.ancient-action-btn.share-btn {
    background: linear-gradient(135deg, #E1306C 0%, #F56040 50%, #FCAF45 100%);
    border-color: #E1306C;
    box-shadow: 
        var(--shadow-card), 
        0 0 20px rgba(225, 48, 108, 0.3);
}

.ancient-action-btn.share-btn:hover {
    box-shadow: 
        var(--shadow-deep), 
        0 0 35px rgba(225, 48, 108, 0.5),
        0 0 60px rgba(225, 48, 108, 0.3);
}

/* Ancient glow effect */
.ancient-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
}

.ancient-action-btn:hover .ancient-glow {
    transform: translateX(100%);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .main-quote-area {
        padding: 2rem 1.5rem;
        margin: 1.5rem 0;
    }
    
    .primary-quote-text {
        font-size: 1.6rem !important;
        line-height: 1.3 !important;
    }
    
    .quote-author-line p {
        font-size: 1.1rem !important;
    }
    
    .quote-action-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .ancient-action-btn {
        min-width: 200px;
        width: 100%;
        max-width: 300px;
    }
    
    .main-quote-area::before,
    .main-quote-area::after {
        font-size: 4rem;
    }
}

/* ============================================ */
/* 🏺 ORIGINAL ANCIENT WISDOM SAVE QUOTE SYSTEM */
/* ============================================ */

/* Ancient Save Button */
.ancient-save-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    background: var(--gradient-gold);
    border: 2px solid var(--gold-primary);
    border-radius: 50px;
    padding: 10px 16px;
    font-family: 'Orbitron', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bg-primary);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow-card), var(--glow-gold);
    overflow: hidden;
    z-index: 10;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transform: scale(0.9);
}

.ancient-save-btn:hover {
    transform: scale(1);
    background: linear-gradient(135deg, #ffed4e 0%, #ffd700 100%);
    box-shadow: var(--shadow-deep), var(--glow-gold), 0 0 30px rgba(255, 215, 0, 0.6);
}

.ancient-save-btn.saved {
    background: linear-gradient(135deg, #4f9cff 0%, #9d4edd 100%);
    border-color: var(--jedi-blue);
    color: var(--text-primary);
    box-shadow: var(--shadow-card), var(--glow-blue);
}

.ancient-save-btn.saved:hover {
    background: linear-gradient(135deg, #9d4edd 0%, #4f9cff 100%);
    box-shadow: var(--shadow-deep), var(--glow-blue), 0 0 30px rgba(79, 156, 255, 0.6);
}

.ancient-save-btn.loading {
    animation: ancient-save-loading 1s linear infinite;
    pointer-events: none;
}

@keyframes ancient-save-loading {
    0% { transform: scale(0.9) rotate(0deg); }
    100% { transform: scale(0.9) rotate(360deg); }
}

.save-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.ancient-save-btn:hover .save-icon {
    transform: scale(1.2);
}

.save-text {
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ancient-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-gold);
    border-radius: 50px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ancient-save-btn:hover .ancient-glow {
    opacity: 0.3;
    animation: ancient-glow-pulse 2s ease-in-out infinite;
}

@keyframes ancient-glow-pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.6; }
}

/* Save Notification */
.ancient-save-notification {
    position: fixed;
    top: 100px;
    right: 30px;
    background: var(--gradient-space);
    border: 2px solid var(--gold-primary);
    border-radius: 15px;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    font-family: 'Orbitron', monospace;
    font-weight: 500;
    box-shadow: var(--shadow-deep), var(--glow-gold);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
}

.ancient-save-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.notification-icon {
    font-size: 1.2rem;
    animation: notification-pulse 2s ease-in-out infinite;
}

@keyframes notification-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.notification-text {
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* ============================================ */
/* 🏛️ ENHANCED PROFILE MODAL SYSTEM */
/* ============================================ */

/* Modal Overlay */
.ancient-profile-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 26, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.4s ease-out;
}

/* Main Modal */
.ancient-profile-modal {
    background: var(--gradient-space);
    border: 3px solid var(--gold-primary);
    border-radius: 25px;
    width: 90%;
    max-width: 900px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: var(--shadow-deep), var(--glow-gold), 
                0 0 100px rgba(255, 215, 0, 0.3);
    position: relative;
    animation: modalSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalSlideIn {
    0% { transform: scale(0.8) translateY(50px); opacity: 0; }
    100% { transform: scale(1) translateY(0); opacity: 1; }
}

/* Modal Header */
.profile-modal-header {
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--gold-primary);
}

.profile-modal-header h2 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
    letter-spacing: 1px;
}

.modal-close-btn {
    background: var(--gradient-sith);
    border: 2px solid var(--sith-red);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-btn:hover {
    background: var(--sith-red);
    transform: scale(1.1);
    box-shadow: var(--glow-red);
}

/* Modal Content */
.profile-modal-content {
    padding: 0;
    max-height: calc(85vh - 120px);
    overflow-y: auto;
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--gold-primary);
}

.profile-tab {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1rem 1.5rem;
    color: var(--text-secondary);
    font-family: 'Orbitron', monospace;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.profile-tab:hover {
    background: rgba(255, 215, 0, 0.1);
    color: var(--gold-primary);
}

.profile-tab.active {
    background: var(--gradient-gold);
    color: var(--bg-primary);
    border-bottom-color: var(--gold-primary);
    font-weight: 700;
}

/* Tab Content */
.profile-tab-content {
    display: none;
    padding: 2rem;
}

.profile-tab-content.active {
    display: block;
}

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

.profile-stat-card {
    background: var(--bg-card);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.profile-stat-card:hover {
    border-color: var(--gold-primary);
    box-shadow: var(--glow-gold);
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 2rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-info {
    flex: 1;
}

.stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-family: 'Orbitron', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold-primary);
}

/* Additional Info */
.profile-additional-info {
    background: var(--bg-card);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 215, 0, 0.2);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-family: 'Inter', sans-serif;
    color: var(--text-secondary);
    font-weight: 500;
}

.info-value {
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    color: var(--gold-primary);
}

/* =================================================================== */
/* STATISTICS TAB STYLES */
/* =================================================================== */

/* Statistics Section */
.statistics-section {
    padding: 1rem 0;
}

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

.section-header h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.8rem;
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
}

/* Statistics Categories */
.stats-category {
    margin-bottom: 2.5rem;
}

.stats-category h4 {
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    color: var(--gold-secondary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

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

/* Detailed Stat Cards */
.stat-detail-card {
    background: var(--bg-card);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 12px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.stat-detail-card:hover {
    border-color: var(--gold-primary);
    box-shadow: var(--glow-gold);
    transform: translateY(-2px);
}

.stat-detail-card .stat-icon {
    font-size: 2.2rem;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    min-width: 50px;
    text-align: center;
}

.stat-detail-card .stat-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-detail-card .stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.stat-detail-card .stat-value {
    font-family: 'Orbitron', monospace;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--gold-primary);
    line-height: 1;
}

.stat-detail-card .stat-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.8;
    font-style: italic;
}

/* Progress Bar for Energy */
.stat-progress {
    margin-top: 0.75rem;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    height: 8px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    background: var(--gradient-gold);
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Setting Actions */
.setting-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: center;
}

.setting-actions .btn {
    min-width: 140px;
    padding: 0.75rem 1.5rem;
}

/* Responsive Design for Statistics */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .stat-detail-card {
        padding: 1rem;
    }
    
    .stat-detail-card .stat-icon {
        font-size: 1.8rem;
        min-width: 40px;
    }
    
    .stat-detail-card .stat-value {
        font-size: 1.3rem;
    }
    
    .setting-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .setting-actions .btn {
        width: 100%;
        max-width: 250px;
    }
}

.info-value {
    font-family: 'Orbitron', monospace;
    color: var(--gold-primary);
    font-weight: 600;
}

/* ============================================ */
/* 🏺 SAVED QUOTES TAB STYLING */
/* ============================================ */

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

.saved-quotes-header h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.6rem;
    color: var(--gold-primary);
    margin-bottom: 0.5rem;
}

.saved-quotes-header p {
    color: var(--text-secondary);
    font-style: italic;
}

.saved-quotes-container {
    min-height: 200px;
}

.loading-message {
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    padding: 2rem;
}

/* No Saved Quotes State */
.no-saved-quotes {
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.no-saved-quotes h4 {
    font-family: 'Cinzel', serif;
    color: var(--gold-primary);
    margin-bottom: 1rem;
}

.no-saved-quotes p {
    margin: 0.5rem 0;
    line-height: 1.6;
}

/* Saved Quote Cards */
.saved-quotes-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.saved-quote-card {
    background: var(--bg-card);
    border: 2px solid rgba(255, 215, 0, 0.3);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.saved-quote-card:hover {
    border-color: var(--gold-primary);
    box-shadow: var(--glow-gold);
    transform: translateY(-2px);
}

.saved-quote-content {
    flex: 1;
}

.quote-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.quote-author {
    font-family: 'Orbitron', monospace;
    color: var(--gold-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.quote-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.quote-category,
.quote-path {
    background: rgba(255, 215, 0, 0.2);
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    font-family: 'Orbitron', monospace;
    text-transform: capitalize;
}

.quote-date {
    font-style: italic;
}

/* Quote Actions */
.saved-quote-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-shrink: 0;
}

.quote-action-btn {
    background: var(--gradient-gold);
    border: 2px solid var(--gold-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: var(--bg-primary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quote-action-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--glow-gold);
}

.quote-action-btn.remove-btn {
    background: var(--gradient-sith);
    border-color: var(--sith-red);
    color: var(--text-primary);
}

.quote-action-btn.remove-btn:hover {
    box-shadow: var(--glow-red);
}

/* Error State */
.error-message {
    text-align: center;
    padding: 2rem;
    color: var(--sith-red);
}

.error-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.retry-btn {
    background: var(--gradient-gold);
    border: 2px solid var(--gold-primary);
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    color: var(--bg-primary);
    font-family: 'Orbitron', monospace;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
}

.retry-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--glow-gold);
}

/* Toast Notification */
.ancient-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--gradient-space);
    border: 2px solid var(--gold-primary);
    border-radius: 15px;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    font-family: 'Orbitron', monospace;
    font-weight: 500;
    box-shadow: var(--shadow-deep), var(--glow-gold);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    transform: translateY(100%);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999;
}

.ancient-toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Animations */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fadeOut {
    0% { opacity: 1; }
    100% { opacity: 0; }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .ancient-profile-modal {
        width: 95%;
        max-height: 90vh;
    }
    
    .profile-modal-header {
        padding: 1.5rem;
    }
    
    .profile-modal-header h2 {
        font-size: 1.4rem;
    }
    
    .profile-tabs {
        flex-wrap: wrap;
    }
    
    .profile-tab {
        flex: 1;
        min-width: 120px;
        font-size: 0.8rem;
        padding: 0.75rem 1rem;
    }
    
    .profile-stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .profile-stat-card {
        padding: 1rem;
    }
    
    .stat-icon {
        font-size: 1.5rem;
    }
    
    .stat-value {
        font-size: 1.2rem;
    }
    
    .saved-quote-card {
        flex-direction: column;
        align-items: stretch;
    }
    
    .saved-quote-actions {
        flex-direction: row;
        justify-content: center;
    }
    
    .quote-meta {
        font-size: 0.8rem;
    }
    
    .ancient-save-btn {
        position: static;
        margin: 1rem auto 0;
        display: flex;
        width: fit-content;
    }
    
    .ancient-save-notification,
    .ancient-toast {
        right: 15px;
        left: 15px;
        width: auto;
    }
}
