:root {
    --bg-color: #0d0f14;
    --card-bg: rgba(255, 255, 255, 0.03);
    --accent-color: #ffb347;
    --accent-glow: rgba(255, 179, 71, 0.4);
    --text-primary: #ffffff;
    --text-secondary: #8e94a0;
    --success: #00ff88;
    --error: #ff3c3c;
    --glass-border: rgba(255, 255, 255, 0.08);
    --lamp-light: #ffaa33;
}

body {
    background: linear-gradient(rgba(13, 15, 20, 0.85), rgba(13, 15, 20, 0.85)), url('assets/luxury_lounge_bg_1_1772225798425.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    transition: background 0.5s ease;
}

body.lights-off {
    background: #050608;
}

/* Map Section */
.map-container {
    width: 100%;
    max-width: 800px;
    margin: 2rem auto;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--glass-border);
}

.map-container img {
    width: 100%;
    display: block;
}

/* Menu Grid */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.menu-item-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    text-align: left;
}

.menu-item-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.menu-item-info {
    padding: 1.2rem;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Glass Navigation */
.glass-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(15, 17, 23, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.logo span {
    color: var(--accent-color);
}

.nav-links button {
    background: transparent;
    border: none;
    color: var(--text-primary);
    margin-left: 2rem;
    cursor: pointer;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links button:hover {
    color: var(--accent-color);
}

/* Hero Section & Lamp */
.hero {
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.1;
}

.hero h1 span {
    background: linear-gradient(90deg, var(--accent-color), #ffcc70);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

/* 3D Lamp CSS */
.lamp-container {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lamp-cord {
    width: 2px;
    height: 120px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.1));
}

.lamp-head {
    width: 80px;
    height: 50px;
    background: #1a1a1a;
    border-radius: 50% 50% 5px 5px;
    position: relative;
    box-shadow: inset 0 2px 5px rgba(255, 255, 255, 0.1);
}

.lamp-bulb {
    width: 40px;
    height: 40px;
    background: var(--lamp-light);
    border-radius: 50%;
    position: absolute;
    bottom: -20px;
    left: 20px;
    filter: blur(8px);
    box-shadow: 0 0 100px 40px var(--accent-glow);
    transition: all 0.5s ease;
}

.lights-off .lamp-bulb {
    background: #333;
    box-shadow: none;
    filter: none;
}

.pull-chain {
    width: 2px;
    height: 150px;
    background: #555;
    position: absolute;
    right: 15px;
    top: 40px;
    cursor: pointer;
    transition: transform 0.1s;
}

.pull-chain::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: -4px;
    width: 10px;
    height: 10px;
    background: #777;
    border-radius: 50%;
}

.pull-chain.active {
    transform: translateY(20px);
}

@keyframes flicker {
    0% {
        opacity: 0.8;
        box-shadow: 0 0 40px 15px rgba(255, 179, 71, 0.3);
    }

    100% {
        opacity: 1;
        box-shadow: 0 0 70px 30px rgba(255, 179, 71, 0.5);
    }
}

/* Common Components */
.view {
    display: none;
    padding: 4rem 5%;
    animation: fadeIn 0.5s ease-out;
}

.view.active {
    display: block;
}

@keyframes pulse {
    0% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(255, 179, 71, 0.7);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(255, 179, 71, 0);
    }

    100% {
        transform: scale(0.9);
        box-shadow: 0 0 0 0 rgba(255, 179, 71, 0);
    }
}

.feature-box {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.feature-box:hover {
    transform: translateY(-5px);
}

.badg-ai {
    animation: glow-pulse 3s infinite;
}

@keyframes glow-pulse {
    0% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.3);
        box-shadow: 0 0 15px var(--accent-color);
    }

    100% {
        filter: brightness(1);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 3rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lights-off .glass-card {
    opacity: 0.1;
    transform: scale(0.98);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 179, 71, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #f39c12);
    border: none;
    color: #000;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 5px 15px rgba(255, 179, 71, 0.3);
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 179, 71, 0.5);
}

.btn-secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    margin-left: 1rem;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Auth Card */
.auth-card {
    max-width: 450px;
    margin: 4rem auto;
    text-align: center;
}

.auth-card h2 {
    margin-bottom: 2rem;
    font-size: 2rem;
}

.auth-card input {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: white;
    font-size: 1rem;
}

.auth-card button {
    width: 100%;
    margin-top: 1rem;
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

/* 3D Action Buttons */
.action-buttons {
    perspective: 1000px;
}

.btn-action {
    display: block;
    width: 100%;
    margin-bottom: 12px;
    padding: 1.2rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-action:hover {
    transform: translateZ(25px) rotateX(10deg);
    background: rgba(255, 179, 71, 0.08);
    border-color: var(--accent-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 20px var(--accent-glow);
}

.btn-action::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05));
    pointer-events: none;
}

/* Face Scan & Register */
.scan-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    perspective: 1500px;
}

.video-wrapper {
    position: relative;
    border-radius: 32px;
    overflow: hidden;
    margin: 2rem auto;
    border: 1px solid var(--glass-border);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
    background: #000;
    max-width: 600px;
    transform: rotateX(10deg);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-wrapper:hover {
    transform: rotateX(0deg) scale(1.02);
}

.video-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid var(--accent-color);
    border-radius: inherit;
    opacity: 0.3;
    pointer-events: none;
    z-index: 10;
    animation: scan-glow 4s infinite alternate;
}

@keyframes scan-glow {
    from {
        box-shadow: inset 0 0 20px var(--accent-glow);
    }

    to {
        box-shadow: inset 0 0 60px var(--accent-glow);
    }
}

video {
    width: 100%;
    transform: scaleX(-1);
    display: block;
    filter: contrast(1.1) brightness(1.1);
}

.scan-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 320px;
    border: 2px solid var(--accent-color);
    border-radius: 120px;
    box-shadow: 0 0 0 2000px rgba(0, 0, 0, 0.7);
    z-index: 5;
}

.scan-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    box-shadow: 0 0 15px var(--accent-color);
    animation: scanning 3s linear infinite;
}

@keyframes scanning {
    0% {
        top: 0;
    }

    100% {
        top: 100%;
    }
}

.scan-status {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.scan-status.success {
    color: var(--success);
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
}

.scan-status.error {
    color: var(--error);
    text-shadow: 0 0 10px rgba(255, 60, 60, 0.3);
}

/* Notifications */
.notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    background: rgba(30, 30, 30, 0.9);
    border-left: 4px solid var(--accent-color);
    color: white;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 2000;
    backdrop-filter: blur(10px);
}

.notification.show {
    transform: translateX(0);
}