/* ConnectX — dark cyber-neon theme matching aravindlabs.tech */

:root {
  --primary: #00ff88;
  --primary-dim: rgba(0, 255, 136, 0.5);
  --primary-glow: rgba(0, 255, 136, 0.15);
  --secondary: #00ccff;
  --bg: #0A0A0A;
  --bg-soft: #111111;
  --bg-card: rgba(255, 255, 255, 0.03);
  --border: rgba(0, 255, 136, 0.2);
  --border-dim: rgba(255, 255, 255, 0.08);
  --text: #E5E5E5;
  --text-dim: #A1A1AA;
  --text-muted: #6B7280;
  --danger: #ff5544;
  --warning: #fbbf24;
  --success: #00ff88;
  --space: 16px;
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, -apple-system, sans-serif; line-height: 1.6; min-height: 100vh; }
body { overflow-x: hidden; }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Background grid + glow (matches aravindlabs.tech) */
.bg-grid { position: fixed; inset: 0; background-image:
  linear-gradient(rgba(0,255,136,0.04) 1px, transparent 1px),
  linear-gradient(90deg, rgba(0,255,136,0.04) 1px, transparent 1px);
  background-size: 50px 50px; pointer-events: none; z-index: 0; }
.bg-glow { position: fixed; top: 30%; left: 50%; transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none; z-index: 0; }

/* Header */
header.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
}
header .inner { max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { font-family: 'Orbitron', sans-serif; font-weight: 700; letter-spacing: 1px; color: var(--primary); font-size: 1.1rem; text-decoration: none; }
.brand .x { color: var(--secondary); }
nav.main-nav { display: flex; gap: 24px; }
nav.main-nav a { color: var(--text-dim); font-size: 0.92rem; transition: color 0.15s; }
nav.main-nav a:hover { color: var(--primary); text-decoration: none; }
.header-cta { display: flex; gap: 10px; align-items: center; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px;
  background: transparent; color: var(--text); border: 1px solid var(--border);
  border-radius: 8px; font-size: 0.92rem; font-weight: 500; cursor: pointer;
  transition: all 0.15s; text-decoration: none; font-family: inherit; }
.btn:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--bg); border-color: var(--primary); font-weight: 600; }
.btn-primary:hover { background: var(--primary); box-shadow: 0 0 24px var(--primary-glow); color: var(--bg); }
.btn-secondary { background: var(--bg-card); }
.btn-danger { color: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: rgba(255, 85, 68, 0.1); color: var(--danger); }
.btn-sm { padding: 6px 12px; font-size: 0.82rem; }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Main container */
main { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 40px 20px; }

/* Hero */
.hero { padding: 60px 0 40px; text-align: center; }
.hero h1 { font-family: 'Orbitron', sans-serif; font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.05; margin-bottom: 16px;
  background: linear-gradient(135deg, #FFFFFF 0%, var(--primary) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero .lede { font-size: 1.15rem; color: var(--text-dim); max-width: 680px; margin: 0 auto 28px; }
.hero .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Eyebrow */
.eyebrow { display: inline-block; padding: 4px 12px; background: var(--primary-glow);
  border: 1px solid var(--border); border-radius: 20px; font-size: 0.75rem;
  color: var(--primary); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px; }

/* H2/H3 */
h2 { font-family: 'Orbitron', sans-serif; color: var(--primary); font-size: 1.5rem; margin: 36px 0 14px; }
h3 { color: #FFFFFF; font-size: 1.15rem; margin: 18px 0 8px; }

/* Cards */
.card { background: var(--bg-card); border: 1px solid var(--border-dim); border-radius: var(--radius); padding: 20px; transition: all 0.15s; }
.card:hover { border-color: var(--border); }
.card.glow:hover { border-color: var(--primary); box-shadow: 0 0 20px var(--primary-glow); transform: translateY(-2px); }
.card .icon { font-size: 2rem; margin-bottom: 8px; }
.card h3 { font-family: 'Orbitron', sans-serif; color: var(--primary); margin: 0 0 4px; font-size: 1.05rem; }
.card p { color: var(--text-dim); font-size: 0.92rem; margin: 0; }
.card .count { display: inline-block; padding: 2px 10px; background: var(--primary-glow); color: var(--primary); border-radius: 10px; font-size: 0.78rem; font-family: 'JetBrains Mono', monospace; margin-top: 8px; }

/* Category grid */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 24px 0; }

/* Rooms list */
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin: 24px 0; }
.room-card { background: var(--bg-card); border: 1px solid var(--border-dim); border-radius: var(--radius); padding: 18px; transition: all 0.15s; display: block; color: inherit; }
.room-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 4px 20px var(--primary-glow); text-decoration: none; color: inherit; }
.room-card .room-head { display: flex; justify-content: space-between; align-items: start; margin-bottom: 8px; }
.room-card .room-title { font-weight: 600; color: #FFFFFF; font-size: 1.05rem; }
.room-card .room-cat { font-size: 0.78rem; color: var(--primary); }
.room-card .room-desc { color: var(--text-dim); font-size: 0.88rem; margin: 6px 0 12px; }
.room-card .room-meta { display: flex; justify-content: space-between; align-items: center; font-size: 0.82rem; color: var(--text-muted); }
.room-card .live-dot { display: inline-block; width: 8px; height: 8px; background: var(--primary); border-radius: 50%; margin-right: 4px; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: 0.4; }}

/* Forms */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.85rem; color: var(--text-dim); margin-bottom: 4px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 10px 14px; background: var(--bg-soft);
  border: 1px solid var(--border-dim); border-radius: 8px;
  color: var(--text); font-family: inherit; font-size: 0.95rem;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-glow);
}
.field textarea { resize: vertical; min-height: 80px; }
.field .hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 4px; }

/* Toast */
.toast { position: fixed; bottom: 20px; right: 20px; padding: 12px 18px;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); z-index: 200; max-width: 360px; box-shadow: 0 4px 20px rgba(0,0,0,0.4); }
.toast.success { border-color: var(--primary); color: var(--primary); }
.toast.error { border-color: var(--danger); color: var(--danger); }

/* Footer */
footer.site-footer { position: relative; z-index: 1; border-top: 1px solid var(--border);
  padding: 30px 20px; margin-top: 60px; }
footer .inner { max-width: 1280px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; color: var(--text-muted); font-size: 0.85rem; }
footer a { color: var(--text-muted); margin: 0 8px; }
footer a:hover { color: var(--primary); }

/* Live room */
.room-stage { display: grid; grid-template-columns: 1fr 320px; gap: 16px; min-height: calc(100vh - 100px); }
@media (max-width: 900px) { .room-stage { grid-template-columns: 1fr; }}
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; align-content: start; }
.video-tile { background: var(--bg-soft); border: 1px solid var(--border-dim); border-radius: var(--radius); aspect-ratio: 16/9; position: relative; overflow: hidden; }
.video-tile video { width: 100%; height: 100%; object-fit: cover; }
.video-tile .nameplate { position: absolute; bottom: 8px; left: 8px; background: rgba(0,0,0,0.65); padding: 3px 10px; border-radius: 14px; font-size: 0.82rem; color: white; backdrop-filter: blur(4px); }
.video-tile .badge { position: absolute; top: 8px; right: 8px; padding: 2px 8px; border-radius: 10px; font-size: 0.7rem; font-weight: 600; }
.video-tile .badge.host { background: var(--primary); color: var(--bg); }
.video-tile .badge.muted { background: var(--danger); color: white; }
.video-tile .empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-muted); font-size: 0.92rem; }
.video-tile .empty .avatar { width: 70px; height: 70px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); display: flex; align-items: center; justify-content: center; font-family: 'Orbitron', sans-serif; font-size: 1.6rem; color: var(--bg); margin-bottom: 10px; }

.room-sidebar { background: var(--bg-card); border: 1px solid var(--border-dim); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; max-height: calc(100vh - 100px); }
.room-sidebar h3 { margin: 0 0 10px; font-family: 'Orbitron', sans-serif; color: var(--primary); font-size: 1rem; }
.chat-log { flex: 1; overflow-y: auto; padding-right: 4px; }
.chat-msg { padding: 8px 0; border-bottom: 1px solid var(--border-dim); font-size: 0.88rem; }
.chat-msg:last-child { border-bottom: none; }
.chat-msg .name { color: var(--primary); font-weight: 600; font-size: 0.78rem; }
.chat-msg .body { color: var(--text); margin-top: 2px; word-wrap: break-word; }
.chat-input { display: flex; gap: 6px; margin-top: 10px; }
.chat-input input { flex: 1; padding: 8px 12px; background: var(--bg-soft); border: 1px solid var(--border-dim); border-radius: 6px; color: var(--text); font-family: inherit; }
.chat-input input:focus { outline: none; border-color: var(--primary); }
.chat-input button { padding: 8px 14px; background: var(--primary); color: var(--bg); border: none; border-radius: 6px; font-weight: 600; cursor: pointer; }

.room-controls { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; padding: 10px 16px; background: rgba(10,10,10,0.92); backdrop-filter: blur(12px); border: 1px solid var(--border); border-radius: 60px; z-index: 100; }
.room-controls button { width: 46px; height: 46px; border-radius: 50%; background: var(--bg-soft); border: 1px solid var(--border-dim); color: var(--text); cursor: pointer; font-size: 1.1rem; transition: all 0.15s; display: flex; align-items: center; justify-content: center; }
.room-controls button:hover { border-color: var(--primary); color: var(--primary); }
.room-controls button.danger { color: var(--danger); border-color: var(--danger); }
.room-controls button.danger:hover { background: var(--danger); color: white; }
.room-controls button.muted { background: var(--danger); color: white; border-color: var(--danger); }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 30px 0; }
.price-card { background: var(--bg-card); border: 1px solid var(--border-dim); border-radius: var(--radius); padding: 28px; }
.price-card.featured { border-color: var(--primary); box-shadow: 0 0 30px var(--primary-glow); }
.price-card h3 { font-family: 'Orbitron', sans-serif; color: var(--primary); font-size: 1.3rem; margin-bottom: 6px; }
.price-card .price { font-family: 'Orbitron', sans-serif; font-size: 2.5rem; color: var(--text); margin: 14px 0; }
.price-card .price .unit { font-size: 1rem; color: var(--text-muted); }
.price-card ul { list-style: none; padding: 0; margin: 14px 0; }
.price-card li { padding: 6px 0; color: var(--text-dim); font-size: 0.92rem; padding-left: 22px; position: relative; }
.price-card li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.price-card li.no::before { content: "✕"; color: var(--text-muted); }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); z-index: 300; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: var(--bg-soft); border: 1px solid var(--primary); border-radius: var(--radius); padding: 28px; max-width: 480px; width: 100%; }
.modal h2 { color: var(--primary); margin: 0 0 12px; }
.modal-close { float: right; background: none; border: none; color: var(--text-muted); font-size: 1.3rem; cursor: pointer; }

/* Hide / show */
.hidden { display: none !important; }

/* Mobile */
@media (max-width: 720px) {
  nav.main-nav { display: none; }
  .hero { padding: 40px 0 20px; }
  .hero h1 { font-size: 2.1rem; }
}
