:root {
    --bg: #050508;
    --bg-alt: #0a0a12;
    --surface: #11111c;
    --surface2: #1a1a2b;
    --surface3: #22223a;
    --accent: #8b5cf6;
    --accent-light: #a78bfa;
    --accent2: #22d3ee;
    --accent-glow: rgba(139, 92, 246, 0.35);
    --text: #f8fafc;
    --muted: #94a3b8;
    --success: #22c55e;
    --danger: #ef4444;
    --tg: #29b6f6;
    --radius: 16px;
    --radius-sm: 10px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: var(--accent2); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-light); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Nav */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(5, 5, 8, 0.88); backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo {
    font-weight: 800; font-size: 1.15rem;
    background: linear-gradient(135deg, var(--accent-light), var(--accent2));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-tg {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(41, 182, 246, 0.12); color: var(--tg) !important;
    padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(41, 182, 246, 0.25);
}
.nav-tg:hover { background: rgba(41, 182, 246, 0.2); color: #4fc3f7 !important; }

.nav-toggle {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--text); border-radius: 2px; transition: .2s;
}

/* Hero */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    padding: 100px 0 60px; overflow: hidden;
}
.hero-glow {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 60% 50% at 20% 30%, rgba(139,92,246,0.18), transparent),
        radial-gradient(ellipse 50% 40% at 80% 70%, rgba(34,211,238,0.1), transparent);
}
.hero-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
    align-items: center; position: relative; z-index: 1;
}
.hero-badge {
    display: inline-block; font-size: 0.8rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .08em;
    background: rgba(139,92,246,0.15); color: var(--accent-light);
    border: 1px solid rgba(139,92,246,0.3);
    padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 {
    font-size: clamp(2.4rem, 5.5vw, 3.6rem); font-weight: 800;
    line-height: 1.1; margin-bottom: 20px; letter-spacing: -0.02em;
}
.hero h1 span {
    background: linear-gradient(135deg, #c4b5fd 0%, #67e8f9 50%, #a78bfa 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-content > p { color: var(--muted); font-size: 1.1rem; max-width: 480px; margin-bottom: 28px; }

.hero-stats {
    display: flex; gap: 28px; margin-bottom: 32px;
}
.stat { display: flex; flex-direction: column; }
.stat strong {
    font-size: 1.6rem; font-weight: 800;
    background: linear-gradient(135deg, var(--accent-light), var(--accent2));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.stat span { font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual {
    position: relative; height: 380px;
    display: flex; align-items: center; justify-content: center;
}
.vr-ring {
    position: absolute; width: 280px; height: 280px;
    border: 2px solid rgba(139,92,246,0.25); border-radius: 50%;
    animation: pulse-ring 4s ease-in-out infinite;
}
.vr-ring-2 {
    width: 340px; height: 340px;
    border-color: rgba(34,211,238,0.15);
    animation-delay: -2s; animation-direction: reverse;
}
.vr-headset { font-size: 7rem; filter: drop-shadow(0 0 40px var(--accent-glow)); z-index: 1; }

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

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 14px 28px; border-radius: 12px; font-weight: 700; font-size: 0.95rem;
    border: none; cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #6d28d9 100%);
    color: white; box-shadow: 0 4px 20px rgba(139,92,246,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(139,92,246,0.45); }
.btn-outline {
    background: transparent; border: 1px solid rgba(255,255,255,0.15); color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); background: rgba(139,92,246,0.08); }
.btn-tg {
    background: rgba(41, 182, 246, 0.15); color: var(--tg);
    border: 1px solid rgba(41, 182, 246, 0.35);
}
.btn-tg:hover { background: rgba(41, 182, 246, 0.25); transform: translateY(-2px); }
.btn-full { width: 100%; }

/* Sections */
section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; margin-bottom: 10px; letter-spacing: -0.02em; }
.section-sub { color: var(--muted); margin-bottom: 40px; font-size: 1.05rem; max-width: 600px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature-card {
    background: var(--surface); border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius); padding: 28px;
    transition: border-color .25s, transform .25s;
}
.feature-card:hover { border-color: rgba(139,92,246,0.35); transform: translateY(-3px); }
.feature-card .icon { font-size: 2rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: 8px; font-weight: 700; }
.feature-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.55; }

/* Notices */
.notice {
    display: flex; gap: 16px; padding: 20px 22px;
    border-radius: var(--radius); margin-bottom: 36px;
    font-size: 0.92rem; line-height: 1.55;
}
.notice-icon { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.notice strong { display: block; margin-bottom: 4px; color: var(--text); }
.notice p { color: var(--muted); margin: 0; }
.notice-info {
    background: rgba(34, 211, 238, 0.06);
    border: 1px solid rgba(34, 211, 238, 0.2);
}
.notice-accent {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.25);
    margin-bottom: 0; margin-top: 20px;
}

/* Library */
.library-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px;
}
.library-category {
    background: var(--surface); border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius); padding: 22px;
}
.library-category h3 {
    font-size: 0.8rem; text-transform: uppercase; letter-spacing: .08em;
    color: var(--accent-light); margin-bottom: 14px; font-weight: 700;
}
.game-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.game-tag {
    font-size: 0.82rem; padding: 6px 12px;
    background: var(--surface2); border: 1px solid rgba(255,255,255,0.07);
    border-radius: 999px; color: var(--text); font-weight: 500;
    transition: border-color .2s, background .2s;
}
.game-tag:hover { border-color: rgba(139,92,246,0.4); background: rgba(139,92,246,0.1); }

/* Booking */
.booking-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }
.booking-side { position: sticky; top: 96px; }
.price-badge {
    font-size: 3rem; font-weight: 800; line-height: 1;
    background: linear-gradient(135deg, var(--accent-light), var(--accent2));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.price-badge small { font-size: 1.1rem; -webkit-text-fill-color: var(--muted); }
.side-note { color: var(--accent2); font-weight: 600; margin: 12px 0 20px; }
.side-list { list-style: none; color: var(--muted); font-size: 0.9rem; }
.side-list li {
    padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-left: 20px; position: relative;
}
.side-list li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.booking-form {
    background: var(--surface); border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius); padding: 28px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.3);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block; font-size: 0.75rem; color: var(--muted);
    margin-bottom: 6px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 12px 14px; background: var(--surface2);
    border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-sm);
    color: var(--text); font-size: 0.95rem; font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
}
.form-group textarea { resize: vertical; min-height: 72px; }

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.checkbox-row input { width: auto; margin-top: 4px; accent-color: var(--accent); }
.checkbox-row label { font-size: 0.9rem; color: var(--muted); cursor: pointer; }

/* Date picker */
.date-picker { position: relative; }
.date-input-row {
    display: flex; gap: 0;
    border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-sm);
    background: var(--surface2); overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.date-input-row:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(139,92,246,0.15);
}
.date-input {
    flex: 1; border: none; background: transparent; padding: 12px 14px;
    color: var(--text); font-size: 0.95rem; font-family: inherit; min-width: 0;
}
.date-input:focus { outline: none; }
.date-input::placeholder { color: var(--muted); opacity: 0.7; }
.date-input-invalid { color: var(--danger) !important; }
.date-cal-btn {
    display: flex; align-items: center; justify-content: center;
    width: 44px; flex-shrink: 0; border: none; border-left: 1px solid rgba(255,255,255,0.08);
    background: transparent; color: var(--muted); cursor: pointer;
    transition: color .2s, background .2s;
}
.date-cal-btn:hover { color: var(--accent-light); background: rgba(139,92,246,0.1); }

.cal-popover {
    display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 300;
    min-width: 280px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.cal-popover.open { display: block; }

.cal-widget {
    background: var(--surface); border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-sm); padding: 12px;
}
.cal-compact { padding: 10px; }
.cal-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 8px;
}
.cal-title { font-weight: 700; font-size: 0.85rem; }
.cal-nav {
    width: 28px; height: 28px; border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1); background: var(--surface2);
    color: var(--text); cursor: pointer; font-size: 1.1rem; line-height: 1;
    transition: border-color .2s, background .2s;
}
.cal-nav:hover:not(:disabled) { border-color: var(--accent); background: rgba(139,92,246,0.15); }
.cal-nav:disabled { opacity: 0.3; cursor: not-allowed; }
.cal-weekdays {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px;
    margin-bottom: 4px; text-align: center;
}
.cal-weekdays span { font-size: 0.65rem; color: var(--muted); font-weight: 600; }
.cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-day {
    width: 100%; aspect-ratio: 1; max-height: 34px;
    border: 1px solid transparent; border-radius: 6px;
    background: transparent; color: var(--text); font-size: 0.8rem; font-weight: 500;
    cursor: pointer; transition: all .12s; padding: 0;
}
.cal-day:hover:not(:disabled):not(.cal-selected) { background: rgba(139,92,246,0.12); }
.cal-day.cal-today:not(.cal-selected) { color: var(--accent2); font-weight: 700; }
.cal-day.cal-selected { background: var(--accent); font-weight: 700; }
.cal-day.cal-disabled { opacity: 0.22; cursor: not-allowed; }
.cal-day.cal-blocked:not(.cal-selected) { opacity: 0.35; text-decoration: line-through; color: var(--danger); }
.cal-empty { pointer-events: none; }

/* Slots */
.slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 8px; }
.slot-btn {
    padding: 10px 4px; border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.1); background: var(--surface2);
    color: var(--text); font-size: 0.85rem; font-weight: 500; cursor: pointer; transition: all .15s;
}
.slot-btn:hover:not(:disabled) { border-color: var(--accent); background: rgba(139,92,246,0.1); }
.slot-btn.selected { background: var(--accent); border-color: var(--accent); font-weight: 700; box-shadow: 0 2px 12px var(--accent-glow); }
.slots-loading { color: var(--muted); font-size: 0.85rem; padding: 8px 0; }
.slots-blocked { color: var(--danger); font-size: 0.85rem; }

.price-breakdown {
    background: var(--surface2); border-radius: var(--radius-sm);
    padding: 16px; margin: 16px 0; font-size: 0.9rem;
    border: 1px solid rgba(255,255,255,0.05);
}
.price-line { display: flex; justify-content: space-between; padding: 5px 0; color: var(--muted); }
.price-line.total {
    color: var(--text); font-weight: 800; font-size: 1.15rem;
    border-top: 1px solid rgba(255,255,255,0.08); margin-top: 10px; padding-top: 12px;
}

/* Bookable games */
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.game-card {
    background: var(--surface); border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius); overflow: hidden;
    transition: transform .25s, border-color .25s, box-shadow .25s;
}
.game-card:hover {
    transform: translateY(-5px); border-color: rgba(34,211,238,0.3);
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.game-card-img {
    height: 140px;
    background: linear-gradient(135deg, #1e1b4b 0%, #0e4f5c 100%);
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem; position: relative; overflow: hidden;
}
.game-card-img::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, var(--surface), transparent 60%);
}
.game-card-body { padding: 22px; }
.game-card h3 { font-size: 1.1rem; margin-bottom: 6px; font-weight: 700; }
.game-card .meta { color: var(--muted); font-size: 0.82rem; margin-bottom: 10px; }
.game-card p { color: var(--muted); font-size: 0.88rem; margin-bottom: 14px; line-height: 1.5; }
.game-card .price { font-size: 1.35rem; font-weight: 800; color: var(--accent2); margin-bottom: 16px; }
.game-card .btn { width: 100%; padding: 12px; font-size: 0.9rem; }

/* Certificates */
.cert-rules {
    background: var(--surface); border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius); padding: 28px; margin-bottom: 36px;
}
.cert-rules h3 { font-size: 1.1rem; margin-bottom: 20px; font-weight: 700; }
.cert-rules-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px;
    margin-bottom: 4px;
}
.cert-rule {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 16px; background: var(--surface2); border-radius: var(--radius-sm);
    border: 1px solid rgba(255,255,255,0.04);
}
.cert-rule-icon { font-size: 1.5rem; flex-shrink: 0; }
.cert-rule p { font-size: 0.88rem; color: var(--muted); line-height: 1.5; margin: 0; }
.cert-rule strong { color: var(--text); }

.certs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.cert-card {
    background: linear-gradient(145deg, var(--surface) 0%, var(--surface2) 100%);
    border: 1px solid rgba(139,92,246,0.2); border-radius: var(--radius);
    padding: 32px 24px; text-align: center; cursor: pointer;
    transition: border-color .25s, transform .25s, box-shadow .25s;
}
.cert-card:hover {
    border-color: var(--accent); transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(139,92,246,0.2);
}
.cert-card h3 {
    font-size: 2.5rem; font-weight: 800;
    background: linear-gradient(135deg, var(--accent-light), var(--accent2));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.cert-card > p { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }
.cert-card .cert-price { font-size: 1.5rem; font-weight: 800; margin-top: 12px; color: var(--text); }
.cert-card .cert-save { font-size: 0.78rem; color: var(--success); margin-top: 8px; font-weight: 600; }

/* Modal */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(4px);
    z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal {
    background: var(--surface); border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius); padding: 28px; width: 100%; max-width: 480px;
    max-height: 90vh; overflow-y: auto; overflow-x: visible; position: relative;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
.modal .date-picker { z-index: 1; }
.modal-close {
    position: absolute; top: 14px; right: 18px; background: var(--surface2);
    border: none; color: var(--muted); font-size: 1.3rem; cursor: pointer;
    width: 36px; height: 36px; border-radius: 50%; line-height: 1;
}
.modal-close:hover { color: var(--text); background: var(--surface3); }
.modal h2 { margin-bottom: 8px; font-size: 1.35rem; padding-right: 36px; }
.modal-price { color: var(--accent2); font-weight: 700; margin-bottom: 20px; }
.modal-hint { color: var(--muted); font-size: 0.85rem; margin-bottom: 20px; }

.modal-success { text-align: center; max-width: 400px; }
.modal-success h2 { padding-right: 0; margin-bottom: 12px; }
.modal-success p { color: var(--muted); margin-bottom: 24px; line-height: 1.55; }
.success-icon {
    width: 64px; height: 64px; margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--success), #16a34a);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: white; font-weight: 800;
    box-shadow: 0 8px 24px rgba(34, 197, 94, 0.35);
}

/* Toast */
.toast {
    position: fixed; bottom: 24px; right: 24px; left: 24px; max-width: 400px;
    margin: 0 auto; z-index: 300; padding: 14px 24px; border-radius: 12px;
    font-weight: 600; text-align: center;
    transform: translateY(100px); opacity: 0; transition: all .3s;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.success { background: var(--success); color: white; }
.toast.error { background: var(--danger); color: white; }

/* Footer */
footer {
    padding: 48px 0 32px; border-top: 1px solid rgba(255,255,255,0.06);
    background: var(--bg-alt);
}
.footer-inner { text-align: center; }
.footer-logo {
    font-size: 1.2rem; font-weight: 800; margin-bottom: 6px;
    background: linear-gradient(135deg, var(--accent-light), var(--accent2));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.footer-inner > div:first-child p:last-child { color: var(--muted); font-size: 0.9rem; }
.footer-links { display: flex; justify-content: center; gap: 24px; margin: 20px 0; flex-wrap: wrap; }
.footer-tg { color: var(--tg) !important; font-weight: 600; }
.footer-copy { color: var(--muted); font-size: 0.8rem; margin-top: 16px; }

/* Mobile */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; text-align: center; }
    .hero-content > p { margin-left: auto; margin-right: auto; }
    .hero-stats { justify-content: center; }
    .hero-cta { justify-content: center; }
    .hero-visual { height: 240px; }
    .vr-headset { font-size: 5rem; }
    .booking-grid { grid-template-columns: 1fr; }
    .booking-side { position: static; text-align: center; margin-bottom: 8px; }
    .side-list { text-align: left; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links {
        display: none; position: absolute; top: 68px; left: 0; right: 0;
        flex-direction: column; gap: 0; background: rgba(5,5,8,0.97);
        border-bottom: 1px solid rgba(255,255,255,0.06); padding: 12px 0;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 14px 24px; width: 100%; }
    .nav-tg { margin: 8px 20px 12px; justify-content: center; }
    .form-row { grid-template-columns: 1fr; }
    section { padding: 64px 0; }
}
