/* LUXURY LOGIN DEMO STYLES - High Fidelity Port */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Theme Variables */
:root {
    /* Silver Theme (default) */
    --accent-primary: #e8e8e8;
    --accent-secondary: #b8b8b8;
    --accent-glow: rgba(232, 232, 232, 0.3);
    --accent-glow-hover: rgba(232, 232, 232, 0.1);
    --accent-bg-primary: rgba(232, 232, 232, 0.1);
    --accent-bg-secondary: rgba(232, 232, 232, 0.06);
    --accent-bg-tertiary: rgba(232, 232, 232, 0.03);
    --accent-border: rgba(232, 232, 232, 0.22);
    --accent-inset: rgba(232, 232, 232, 0.18);
    --accent-inset-hover: rgba(232, 232, 232, 0.25);
    --accent-muted: rgba(232, 232, 232, 0.7);
    --accent-placeholder: rgba(232, 232, 232, 0.45);
    --particle-glow-1: rgba(232, 232, 232, 0.6);
    --particle-glow-2: rgba(232, 232, 232, 0.4);
    
    /* Fullscreen layout adjustments */
    --fullscreen-top-offset: 80px;  /* Mobile: Adjust this value to fine-tune vertical position */
    --fullscreen-edge-padding: 12px; /* Mobile: Extra padding for curved screen edges */
    --desktop-fullscreen-top-offset: 70px; /* Desktop: Browser chrome offset (URL bar + tabs) */
    
    /* Desktop container width limits */
    --desktop-container-max-width: 900px; /* Max width for content on desktop */
    
    /* Dynamic Vertical Shift for Fullscreen */
    --fullscreen-shift-offset: 0px;
}

/* Gold Theme */
[data-theme="gold"] {
    --accent-primary: #d4af37;
    --accent-secondary: #c9a961;
    --accent-glow: rgba(212, 175, 55, 0.3);
    --accent-glow-hover: rgba(212, 175, 55, 0.1);
    --accent-bg-primary: rgba(212, 175, 55, 0.1);
    --accent-bg-secondary: rgba(212, 175, 55, 0.06);
    --accent-bg-tertiary: rgba(212, 175, 55, 0.03);
    --accent-border: rgba(212, 175, 55, 0.22);
    --accent-inset: rgba(212, 175, 55, 0.18);
    --accent-inset-hover: rgba(212, 175, 55, 0.25);
    --accent-muted: rgba(212, 175, 55, 0.7);
    --accent-placeholder: rgba(212, 175, 55, 0.45);
    --particle-glow-1: rgba(212, 175, 55, 0.6);
    --particle-glow-2: rgba(212, 175, 55, 0.4);
}

/* Cyan Theme */
[data-theme="cyan"] {
    --accent-primary: #00d9ff;
    --accent-secondary: #00b8d4;
    --accent-glow: rgba(0, 217, 255, 0.3);
    --accent-glow-hover: rgba(0, 217, 255, 0.1);
    --accent-bg-primary: rgba(0, 217, 255, 0.1);
    --accent-bg-secondary: rgba(0, 217, 255, 0.06);
    --accent-bg-tertiary: rgba(0, 217, 255, 0.03);
    --accent-border: rgba(0, 217, 255, 0.22);
    --accent-inset: rgba(0, 217, 255, 0.18);
    --accent-inset-hover: rgba(0, 217, 255, 0.25);
    --accent-muted: rgba(0, 217, 255, 0.65);
    --accent-placeholder: rgba(0, 217, 255, 0.4);
    --particle-glow-1: rgba(0, 217, 255, 0.6);
    --particle-glow-2: rgba(0, 217, 255, 0.4);
}

/* Amber Theme */
[data-theme="amber"] {
    --accent-primary: #ffb000;
    --accent-secondary: #ff8c00;
    --accent-glow: rgba(255, 176, 0, 0.3);
    --accent-glow-hover: rgba(255, 176, 0, 0.1);
    --accent-bg-primary: rgba(255, 176, 0, 0.1);
    --accent-bg-secondary: rgba(255, 176, 0, 0.06);
    --accent-bg-tertiary: rgba(255, 176, 0, 0.03);
    --accent-border: rgba(255, 176, 0, 0.22);
    --accent-inset: rgba(255, 176, 0, 0.18);
    --accent-inset-hover: rgba(255, 176, 0, 0.25);
    --accent-muted: rgba(255, 176, 0, 0.65);
    --accent-placeholder: rgba(255, 176, 0, 0.4);
    --particle-glow-1: rgba(255, 176, 0, 0.6);
    --particle-glow-2: rgba(255, 176, 0, 0.4);
}

body {
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #000000;
    background-attachment: fixed;
    min-height: 100vh;
    padding: 40px 20px;
    color: #f5f5f5;
    position: relative;
    overflow-x: hidden;
    
    /* Prevent mobile browser from responding to touch gestures for chrome UI manipulation */
    touch-action: none; 
    -webkit-user-select: none; 
    user-select: none;
    overscroll-behavior: none; 
    -webkit-overflow-scrolling: touch;
}

/* Fullscreen mode styles - Mobile */
body.is-fullscreen {
    /* Account for browser chrome space + camera cutout + extra breathing room */
    padding-top: calc(env(safe-area-inset-top, 0px) + var(--fullscreen-top-offset));
    padding-left: max(10px, env(safe-area-inset-left, 10px));
    padding-right: max(10px, env(safe-area-inset-right, 10px));
    padding-bottom: max(10px, env(safe-area-inset-bottom, 10px));
}

/* Fake fullscreen fallback */
body.fake-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    padding-top: calc(env(safe-area-inset-top, 0px) + var(--fullscreen-top-offset));
    padding-left: max(10px, env(safe-area-inset-left, 10px));
    padding-right: max(10px, env(safe-area-inset-right, 10px));
    padding-bottom: max(10px, env(safe-area-inset-bottom, 10px));
}

/* Desktop fullscreen: Shift down to compensate for lost browser chrome */
@media (min-width: 769px) {
    body.is-fullscreen,
    body.fake-fullscreen {
        padding-top: calc(20px + var(--desktop-fullscreen-top-offset));
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 20px;
    }
}

/* Mobile immersive mode - hide header when scrolling down */
body.scrolling-down .header {
    transform: translateY(-120%);
    transition: transform 0.3s ease-out;
}

.header {
    transition: transform 0.3s ease-out;
}

/* iOS/Mobile safe area support for normal (non-fullscreen) mode */
@supports (padding: env(safe-area-inset-top)) {
    @media (max-width: 768px) {
        body {
            padding-top: max(40px, env(safe-area-inset-top));
            padding-left: max(20px, env(safe-area-inset-left));
            padding-right: max(20px, env(safe-area-inset-right));
            padding-bottom: max(20px, env(safe-area-inset-bottom));
        }
        
        body.is-fullscreen,
        body.fake-fullscreen {
            padding-top: calc(env(safe-area-inset-top) + var(--fullscreen-top-offset));
            padding-left: calc(env(safe-area-inset-left) + var(--fullscreen-edge-padding));
            padding-right: calc(env(safe-area-inset-right) + var(--fullscreen-edge-padding));
        }
    }
}

/* 3D Starfield Canvas */
#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    display: block;
    transform: translateZ(0);
    will-change: contents;
    backface-visibility: hidden;
    touch-action: none;
}

#starfield.hidden {
    display: none;
}

/* CSS Particles Container */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Falling snow particles (CSS-based) */
.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    border-radius: 50%;
    opacity: 0;
    box-shadow: 
        0 0 8px var(--particle-glow-1),
        0 0 16px var(--particle-glow-2);
    animation: fallSnow 12s linear infinite;
}

/* Varying sizes for depth perception */
.particle:nth-child(2n) { 
    width: 3px; height: 3px;
    box-shadow: 0 0 6px var(--particle-glow-1), 0 0 12px var(--particle-glow-2);
}
.particle:nth-child(3n) { 
    width: 1.5px; height: 1.5px;
    box-shadow: 0 0 3px var(--particle-glow-1), 0 0 6px var(--particle-glow-2);
}
.particle:nth-child(5n) { 
    width: 4px; height: 4px;
    box-shadow: 0 0 8px var(--particle-glow-1), 0 0 16px var(--particle-glow-2);
}

@keyframes fallSnow {
    0% { transform: translateY(0) translateX(0) rotate(0deg) scale(0); opacity: 0; }
    5% { opacity: 0.7; transform: translateY(0) translateX(0) rotate(0deg) scale(1); }
    95% { opacity: 0.4; }
    100% { transform: translateY(100vh) translateX(-30px) rotate(180deg) scale(1); opacity: 0; }
}

.container {
    max-width: var(--desktop-container-max-width);
    margin: 0 auto;
    position: relative;
    z-index: 1;
    touch-action: none;
    overscroll-behavior: contain;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateY(var(--fullscreen-shift-offset));
}

/* Desktop fullscreen: Keep same width, don't expand */
@media (min-width: 769px) {
    body.is-fullscreen .container,
    body.fake-fullscreen .container {
        max-width: var(--desktop-container-max-width);
    }
}

/* Mobile fullscreen: tighter container for curved screens */
@media (max-width: 768px) {
    body.is-fullscreen .container,
    body.fake-fullscreen .container {
        max-width: calc(100vw - 40px);
    }
}

/* Header - Glassmorphism with luxury touches */
.header {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.5) 0%, rgba(8, 8, 8, 0.4) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 48px;
    margin-bottom: 30px;
    border: 1px solid var(--accent-border);
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.8),
        0 0 20px var(--accent-glow-hover),
        inset 0 1px 0 var(--accent-inset),
        8px 8px 16px rgba(0, 0, 0, 0.3),
        -8px -8px 16px rgba(255, 255, 255, 0.008);
    position: relative;
    overflow: hidden;
    transition: background 0.5s ease-in-out, 
                backdrop-filter 0.5s ease-in-out, 
                border 0.5s ease-in-out, 
                box-shadow 0.5s ease-in-out,
                transform 0.3s ease-out;
}

/* Immersive mode logic */
body.immersive-mode .header {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid transparent;
    box-shadow: none;
    pointer-events: none; 
}

body.immersive-mode .header-left,
body.immersive-mode .icon-button:not(#fullscreenButton):not(#settingsButton),
body.immersive-mode .section {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out, visibility 0s linear 0.5s;
}

body.immersive-mode #fullscreenButton,
body.immersive-mode #settingsButton {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out, visibility 0s linear 0.5s;
}

body.immersive-mode.immersive-controls-visible #fullscreenButton,
body.immersive-mode.immersive-controls-visible #settingsButton {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    transition: opacity 0.5s ease-in-out;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.header-left {
    flex: 1;
}

.header h1 {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 50%, var(--accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 40px var(--accent-glow);
}

.sub-header-text {
    font-size: 0.9rem;
    color: var(--accent-primary);
    opacity: 0.8;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

.header-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* Icon Buttons */
.icon-button {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-bg-tertiary) 0%, var(--accent-bg-secondary) 100%);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--accent-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 var(--accent-inset),
        4px 4px 8px rgba(0, 0, 0, 0.3),
        -4px -4px 8px rgba(255, 255, 255, 0.008);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    opacity: 0.5; 
}

@media (hover: hover) and (pointer: fine) {
    .icon-button:hover {
        box-shadow: 
            0 10px 30px rgba(0, 0, 0, 0.6),
            0 0 18px var(--accent-glow-hover),
            inset 0 1px 0 var(--accent-inset-hover),
            6px 6px 12px rgba(0, 0, 0, 0.4),
            -6px -6px 12px rgba(255, 255, 255, 0.01);
        opacity: 0.7;
    }
    .icon-button:hover svg {
        transform: scale(1.1);
    }
}

.icon-button svg {
    width: 22px;
    height: 22px;
    fill: var(--accent-primary);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-button.active {
    opacity: 1; 
    background: linear-gradient(135deg, var(--accent-bg-primary) 0%, var(--accent-bg-secondary) 100%);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.7),
        0 0 20px var(--accent-glow-hover),
        inset 0 1px 0 var(--accent-inset-hover),
        10px 10px 20px rgba(0, 0, 0, 0.4),
        -10px -10px 20px rgba(255, 255, 255, 0.01);
}

.icon-button.active svg {
    fill: var(--accent-primary);
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.settings-button:hover svg {
    transform: rotate(90deg);
}

/* Section - Deep luxury glass */
.section {
    background: linear-gradient(135deg, rgba(8, 8, 8, 0.5) 0%, rgba(6, 6, 6, 0.4) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 32px;
    padding: 40px;
    margin-bottom: 30px;
    border: 1px solid var(--accent-border);
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.8),
        0 0 20px var(--accent-glow-hover),
        inset 0 1px 0 var(--accent-inset),
        8px 8px 16px rgba(0, 0, 0, 0.3),
        -8px -8px 16px rgba(255, 255, 255, 0.008);
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.section.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out, visibility 0s linear 0.5s;
}

.section-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 32px;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    letter-spacing: 0.5px;
}

/* LOGIN FORM */
#loginSection {
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.login-container {
    display: flex;
    flex-direction: column;
    gap: 8px; /* Reduced from 16px */
    width: fit-content;
    margin: 0 auto;
    align-items: center;
    text-align: center;
}

/* Add specific centering for step groups */
#emailStepGroup, #otpStepGroup {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.input-group {
    position: relative;
    width: auto;
}

.luxury-input {
    width: 340px;
    max-width: 85vw;
    padding: 16px 20px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--accent-border);
    border-radius: 12px;
    color: var(--accent-primary);
    font-size: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    font-family: inherit;
}

.luxury-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 
        0 0 20px var(--accent-glow-hover),
        inset 0 1px 0 var(--accent-inset-hover);
    background: rgba(0, 0, 0, 0.5);
}

.luxury-input.otp-input {
    letter-spacing: 12px;
    font-size: 1.4rem;
    font-family: 'Courier New', monospace;
    font-weight: bold;
}

.luxury-input::placeholder {
    color: var(--accent-placeholder);
}

.luxury-button {
    width: auto;
    min-width: 200px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--accent-bg-primary) 0%, var(--accent-bg-secondary) 100%);
    border: 1px solid var(--accent-border);
    border-radius: 12px;
    color: var(--accent-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 var(--accent-inset);
}

.luxury-button:hover {
    background: linear-gradient(135deg, var(--accent-bg-secondary) 0%, var(--accent-bg-primary) 100%);
    box-shadow: 
        0 0 20px var(--accent-glow-hover),
        inset 0 1px 0 var(--accent-inset-hover);
    transform: translateY(-1px);
}

/* Unavailable State */
.luxury-button.unavailable {
    background: linear-gradient(135deg, var(--accent-bg-tertiary) 0%, var(--accent-bg-secondary) 100%);
    opacity: 0.5;
    box-shadow: none;
    cursor: not-allowed;
    transform: none !important;
    border-color: rgba(128, 128, 128, 0.1);
}

.luxury-button.unavailable:hover {
    background: linear-gradient(135deg, var(--accent-bg-tertiary) 0%, var(--accent-bg-secondary) 100%);
    box-shadow: none;
}

/* Text Button (Resend Code) */
.text-button {
    background: none;
    border: none;
    color: var(--accent-primary);
    font-size: 0.85rem;
    cursor: pointer;
    opacity: 0.8;
    transition: all 0.3s ease;
    font-family: inherit;
    text-decoration: underline;
    padding: 8px;
    margin: 0 auto;
    display: block;
}

.text-button:hover {
    opacity: 1;
    text-shadow: 0 0 8px var(--accent-glow-hover);
}

.text-button:disabled,
.text-button.unavailable {
    opacity: 0.3;
    cursor: not-allowed;
    text-decoration: none;
}

.login-status-text {
    text-align: center;
    font-size: 0.85rem;
    color: var(--accent-muted);
    font-style: italic;
    margin-top: 0; /* Removed top margin */
    margin-bottom: 12px; /* Added bottom margin to separate from inputs */
    min-height: 1.2em;
    transition: color 0.3s ease;
    padding-bottom: 0;
    order: -1; /* Flexbox order backup, though DOM order is changed */
}

.login-status-text.error {
    color: var(--accent-primary); /* Use theme color */
    font-style: normal;
    text-shadow: 0 0 12px var(--accent-glow); /* Use theme glow */
    opacity: 0.8;
}

.login-status-text.success {
    color: var(--accent-primary); /* Use theme color */
    font-style: normal;
    text-shadow: 0 0 15px var(--accent-glow), 0 0 30px var(--accent-glow); /* Stronger theme glow for success */
    font-weight: 600;
}

/* Modal/Overlay Styles */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-panel {
    background: linear-gradient(135deg, rgba(8, 8, 8, 0.5) 0%, rgba(6, 6, 6, 0.4) 100%);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-radius: 24px;
    padding: 40px;
    width: 90%;
    max-width: 450px;
    max-height: 85vh;
    overflow-y: auto;
    border: 1px solid var(--accent-border);
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.9),
        0 0 40px var(--accent-glow-hover),
        inset 0 1px 0 var(--accent-inset);
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-30px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.modal-title {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-bg-primary) 0%, var(--accent-bg-secondary) 100%);
    border: 1px solid var(--accent-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--accent-primary);
    font-size: 24px;
    line-height: 1;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: linear-gradient(135deg, var(--accent-bg-secondary) 0%, var(--accent-bg-primary) 100%);
}

/* Settings Toggles */
.setting-group {
    margin-bottom: 28px;
}

.setting-label {
    font-size: 0.9rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
}

.toggle-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.toggle-button {
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(128, 128, 128, 0.1) 0%, rgba(128, 128, 128, 0.06) 100%);
    border: 1px solid rgba(128, 128, 128, 0.22);
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.toggle-button:hover {
    box-shadow: 
        0 6px 16px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.toggle-button[data-theme="gold"] {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.06) 100%);
    border-color: rgba(212, 175, 55, 0.22);
    color: #d4af37;
}
.toggle-button[data-theme="gold"].active {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(212, 175, 55, 0.06) 100%);
    border-color: rgba(212, 175, 55, 0.22);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.1);
}

.toggle-button[data-theme="silver"] {
    background: linear-gradient(135deg, rgba(232, 232, 232, 0.1) 0%, rgba(232, 232, 232, 0.06) 100%);
    border-color: rgba(232, 232, 232, 0.22);
    color: #e8e8e8;
}
.toggle-button[data-theme="silver"].active {
    background: linear-gradient(135deg, rgba(232, 232, 232, 0.1) 0%, rgba(232, 232, 232, 0.06) 100%);
    border-color: rgba(232, 232, 232, 0.22);
    box-shadow: 0 0 20px rgba(232, 232, 232, 0.1);
}

.toggle-button[data-theme="cyan"] {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1) 0%, rgba(0, 217, 255, 0.06) 100%);
    border-color: rgba(0, 217, 255, 0.22);
    color: #00d9ff;
}
.toggle-button[data-theme="cyan"].active {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1) 0%, rgba(0, 217, 255, 0.06) 100%);
    border-color: rgba(0, 217, 255, 0.22);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.1);
}

.toggle-button[data-theme="amber"] {
    background: linear-gradient(135deg, rgba(255, 176, 0, 0.1) 0%, rgba(255, 176, 0, 0.06) 100%);
    border-color: rgba(255, 176, 0, 0.22);
    color: #ffb000;
}
.toggle-button[data-theme="amber"].active {
    background: linear-gradient(135deg, rgba(255, 176, 0, 0.1) 0%, rgba(255, 176, 0, 0.06) 100%);
    border-color: rgba(255, 176, 0, 0.22);
    box-shadow: 0 0 20px rgba(255, 176, 0, 0.1);
}

/* Particle Buttons */
.toggle-button[data-particles] {
    background: linear-gradient(135deg, var(--accent-bg-secondary) 0%, rgba(0, 0, 0, 0.02) 100%);
    border: 1px solid var(--accent-border);
    color: var(--accent-primary);
}
.toggle-button[data-particles].active {
    background: linear-gradient(135deg, var(--accent-bg-primary) 0%, var(--accent-bg-secondary) 100%);
    border-color: var(--accent-border);
    box-shadow: 0 0 20px var(--accent-glow-hover);
}

/* Logout Button */
.logout-button {
    display: inline-block;
    padding: 12px 20px;
    margin-top: 24px;
    background: linear-gradient(135deg, var(--accent-bg-primary) 0%, var(--accent-bg-secondary) 100%);
    border: 1px solid var(--accent-border);
    border-radius: 12px;
    color: var(--accent-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 var(--accent-inset);
}

.logout-button:hover {
    background: linear-gradient(135deg, var(--accent-bg-secondary) 0%, var(--accent-bg-primary) 100%);
    box-shadow: 0 0 18px var(--accent-glow-hover);
}

/* Demo Mode Toggle Button (Enable demo from login page) */
.demo-mode-button {
    display: inline-block;
    padding: 12px 20px;
    margin-top: 8px;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--accent-bg-primary) 0%, var(--accent-bg-secondary) 100%);
    border: 1px solid var(--accent-border);
    border-radius: 12px;
    color: var(--accent-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 var(--accent-inset);
}

.demo-mode-button:hover {
    background: linear-gradient(135deg, var(--accent-bg-secondary) 0%, var(--accent-bg-primary) 100%);
    border-color: var(--accent-border);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.4),
        0 0 18px var(--accent-glow-hover),
        inset 0 1px 0 var(--accent-inset-hover);
}

.demo-mode-button.active {
    background: linear-gradient(135deg, var(--accent-bg-secondary) 0%, var(--accent-bg-primary) 100%);
    border-color: var(--accent-border);
    color: var(--accent-primary);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.4),
        0 0 18px var(--accent-glow-hover),
        inset 0 1px 0 var(--accent-inset-hover);
}

/* Hidden demo button (not used on login page but kept for consistency) */
.demo-mode-button.hidden {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    body {
        padding: 20px 12px;
    }

    .header, .section {
        padding: 24px 16px;
        border-radius: 24px;
    }

    .header h1 {
        font-size: 2rem;
    }

    .header-content {
        gap: 16px;
    }

    .icon-button {
        width: 44px;
        height: 44px;
    }

    .icon-button svg {
        width: 20px;
        height: 20px;
    }

    .section-title {
        font-size: 1.5rem;
    }
}

/* Animation */
@keyframes fadeInLuxury {
    from {
        opacity: 0;
        transform: translateY(40px);
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        backdrop-filter: blur(20px);
    }
}

.header, .section {
    animation: fadeInLuxury 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
