:root {
    --bg: #0a0e1a; --surface: #111827; --surface-2: #1f2937;
    --primary: #2563eb; --primary-hover: #1d4ed8; --accent: #38bdf8;
    --text: #f8fafc; --muted: #94a3b8; --border: #1e293b;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: system-ui, -apple-system, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: var(--accent); text-decoration: none; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.navbar { background: rgba(10, 14, 26, 0.95); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 15px; flex-wrap: wrap; }
.brand { font-size: 1.3rem; color: #fff; display: flex; align-items: center; gap: 8px; }
.brand-badge { background: var(--primary); padding: 3px 8px; border-radius: 6px; font-size: 0.75rem; font-weight: 700; }
.nav-links { display: flex; gap: 18px; align-items: center; }
.nav-links a { color: #cbd5e1; font-size: 0.95rem; }
.nav-highlight { color: #38bdf8 !important; font-weight: 600; }
.nav-auth { display: flex; gap: 10px; align-items: center; }
.btn { display: inline-block; padding: 10px 18px; border-radius: 8px; font-weight: 600; cursor: pointer; border: none; font-size: 0.95rem; text-align: center; }
.btn-sm { padding: 6px 12px; font-size: 0.85rem; }
.btn-block { display: block; width: 100%; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: transparent; border: 1px solid #334155; color: #fff; }
.btn-danger { background: #dc2626; color: #fff; }
.hero { padding: 60px 0; background: radial-gradient(circle at top right, #1e3a8a 0%, var(--bg) 60%); border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: center; }
.badge-glow { display: inline-block; background: rgba(37, 99, 235, 0.2); border: 1px solid #3b82f6; color: #60a5fa; padding: 5px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; margin-bottom: 14px; }
.hero h1 { font-size: 2.5rem; line-height: 1.2; margin-bottom: 16px; }
.hero h1 span { color: var(--accent); }
.hero p { color: #cbd5e1; margin-bottom: 24px; }
.hero-actions { display: flex; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hero-stats div { background: var(--surface); padding: 12px; border-radius: 10px; border: 1px solid var(--border); }
.hero-stats strong { display: block; color: #fff; font-size: 1rem; }
.hero-stats span { color: var(--muted); font-size: 0.8rem; }
.hero-card, .panel-card, .auth-box, .pricing-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px; }
.feature-checklist { list-style: none; margin-top: 14px; }
.feature-checklist li { margin-bottom: 12px; color: #cbd5e1; font-size: 0.95rem; }
.section { padding: 48px 0; }
.section-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-bar input, .filter-bar select, .auth-box input, .save-actions select { background: var(--surface-2); border: 1px solid #334155; color: #fff; padding: 10px 14px; border-radius: 8px; }
.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.game-card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.game-thumb { position: relative; height: 175px; }
.game-thumb img { width: 100%; height: 100%; object-fit: cover; }
.platform-tag { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 6px; font-size: 0.75rem; font-weight: 800; color: #fff; }
.platform-tag.ps4 { background: #2563eb; }
.platform-tag.ps3 { background: #0f172a; border: 1px solid #64748b; }
.rating-tag { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.75); padding: 4px 8px; border-radius: 6px; font-size: 0.8rem; color: #facc15; }
.game-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.game-genre { font-size: 0.78rem; color: var(--accent); margin-bottom: 6px; }
.game-body h3 { font-size: 1.12rem; margin-bottom: 8px; }
.game-body p { font-size: 0.88rem; color: var(--muted); margin-bottom: 16px; flex: 1; }
.play-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 12px; }
.play-header .platform-tag { position: static; display: inline-block; margin-bottom: 6px; }
.status-indicators { display: flex; flex-direction: column; gap: 8px; }
.indicator { padding: 8px 14px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; }
.indicator.ok { background: rgba(34, 197, 94, 0.15); border: 1px solid #22c55e; color: #4ade80; }
.indicator.warn { background: rgba(234, 179, 8, 0.15); border: 1px solid #eab308; color: #facc15; }
.indicator.neutral { background: var(--surface-2); border: 1px solid #334155; color: #cbd5e1; }
.stream-wrapper { background: #000; border: 2px solid #1e3a8a; border-radius: 14px; overflow: hidden; margin-bottom: 24px; }
#game-canvas { width: 100%; height: auto; display: block; cursor: crosshair; }
.stream-hud { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: #0f172a; font-size: 0.85rem; color: #94a3b8; gap: 10px; flex-wrap: wrap; }
.control-panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 20px; }
.panel-card h3 { margin-bottom: 10px; font-size: 1.08rem; }
.panel-card p { font-size: 0.9rem; color: var(--muted); margin-bottom: 14px; }
.qr-box { margin-top: 16px; padding: 14px; background: #fff; color: #0f172a; border-radius: 10px; text-align: center; }
.qr-box.hidden { display: none; }
#qrcode-canvas { display: flex; justify-content: center; margin-bottom: 10px; }
.pairing-code { color: #0f172a !important; font-size: 1rem; margin-bottom: 4px !important; }
.keybind-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font-size: 0.85rem; }
.keybind-grid div { display: flex; justify-content: space-between; align-items: center; background: var(--surface-2); padding: 6px 10px; border-radius: 6px; }
.key-btn { background: #334155; color: #fff; border: none; padding: 3px 8px; border-radius: 4px; font-size: 0.78rem; }
.lock-box { background: rgba(239, 68, 68, 0.1); border: 1px solid #ef4444; padding: 14px; border-radius: 10px; }
.badge-active { display: inline-block; background: rgba(34, 197, 94, 0.2); color: #4ade80; padding: 4px 10px; border-radius: 6px; font-size: 0.8rem; font-weight: 700; margin-bottom: 8px; }
.save-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.feedback-text { margin-top: 10px; font-weight: 600; font-size: 0.88rem; }
.auth-box { max-width: 440px; margin: 0 auto; }
.auth-box label { display: block; margin: 12px 0 6px; font-size: 0.9rem; }
.auth-box input { width: 100%; margin-bottom: 8px; }
.auth-switch { margin-top: 16px; text-align: center; font-size: 0.9rem; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.pricing-card .price { font-size: 1.8rem; font-weight: 800; color: var(--accent); margin: 12px 0; }
.pricing-card ul { list-style: none; margin-bottom: 20px; }
.pricing-card li { margin-bottom: 8px; color: #cbd5e1; font-size: 0.92rem; }
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; }
.alert.error { background: rgba(239, 68, 68, 0.15); border: 1px solid #ef4444; color: #fca5a5; }
.alert.success { background: rgba(34, 197, 94, 0.15); border: 1px solid #22c55e; color: #86efac; }
.token-pill { padding: 4px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; }
.token-pill.active { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.token-pill.inactive { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.steps-list { margin: 16px 0 24px 20px; color: #cbd5e1; }
.steps-list li { margin-bottom: 10px; }
.footer { background: #060913; border-top: 1px solid var(--border); padding: 40px 0 20px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 28px; margin-bottom: 24px; }
.footer h3, .footer h4 { margin-bottom: 10px; }
.footer p, .footer li { color: var(--muted); font-size: 0.9rem; list-style: none; margin-bottom: 6px; }
.footer-bottom { text-align: center; border-top: 1px solid var(--border); padding-top: 16px; color: #64748b; font-size: 0.85rem; }
@media (max-width: 820px) { .hero-grid, .footer-grid { grid-template-columns: 1fr; } .hero-stats { grid-template-columns: repeat(2, 1fr); } }
