:root {
  --bg: #0b1224;
  --panel: #0f172a;
  --glass: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.12);
  --text: #e2e8f0;
  --text-dim: #a5b4c2;
  --pink: #ff5ea8;
  --purple: #1c64f2;
  --cyan: #1ad1ff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  background:
    linear-gradient(135deg, rgba(255,94,168,0.22), rgba(106,91,255,0.24), rgba(11,18,36,0.92)),
    radial-gradient(circle at 20% 20%, rgba(255,94,168,0.25), transparent 38%),
    radial-gradient(circle at 80% 60%, rgba(106,91,255,0.18), transparent 38%),
    #0b1020;
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.locked { overflow: hidden; }

.bg-orbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.5; }
.orb-pink { width: 420px; height: 420px; background: #ff5ea8; top: -100px; left: -80px; }
.orb-cyan { width: 360px; height: 360px; background: #1ad1ff; bottom: -80px; right: -40px; }

.hub-header {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 14px;
  padding: 18px 6vw;
  background: rgba(11,18,36,0.9);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.brand-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--pink), var(--cyan), var(--purple));
  color: #fff;
  font-weight: 700;
}
.brand-word {
  background: linear-gradient(120deg, var(--pink), var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 8s linear infinite;
}
.brand-icon.sm {
  width: 36px;
  height: 36px;
  font-size: 16px;
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--stroke);
}
.search-bar input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  outline: none;
  font-size: 14px;
}
.search-bar button.search-submit {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  color: #e5ecf5;
  cursor: pointer;
  font-weight: 700;
}
.search-bar button.search-submit:hover {
  background: rgba(255,255,255,0.14);
}
.search-icon { opacity: 0.7; }
.search-results {
  position: fixed;
  top: 76px;
  left: 6vw;
  width: min(420px, 70vw);
  max-height: 340px;
  overflow-y: auto;
  background: #0f172a;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.45);
  display: none;
  z-index: 20;
}
.search-results .result {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  padding: 10px;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
}
.search-results .result:last-child { border-bottom: none; }
.search-results .avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
}
.search-results .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.search-results .meta {
  color: #9fb3c8;
  font-size: 12px;
}
.search-results .title {
  font-weight: 700;
  color: #e5ecf5;
}

.nav-quick {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.nav-chip {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--stroke);
  font-weight: 600;
  color: var(--text-dim);
}
.nav-chip.active {
  color: #fff;
  background: linear-gradient(140deg, var(--pink), var(--purple));
  border: none;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
}
.nav-chip:hover { color: #fff; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-weight: 600;
}
.pill.brand-pill {
  background: linear-gradient(140deg, rgba(255,94,168,0.24), rgba(28,100,242,0.24));
  border: 1px solid rgba(255,255,255,0.18);
}
.pill.primary { background: linear-gradient(140deg, var(--pink), var(--purple)); border: none; }
.pill.ghost { background: rgba(255,255,255,0.07); }
.pill.badge { background: linear-gradient(120deg, var(--pink), var(--purple)); color: #fff; border: none; }
.balance { gap: 6px; padding-left: 12px; padding-right: 12px; }
.balance .label { color: var(--text-dim); font-weight: 600; }
.balance .coin { color: var(--cyan); font-weight: 700; }
.avatar-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--purple), var(--pink));
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.action { cursor: pointer; }

.banner-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  padding: 16px 6vw 8px;
}
.promo-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}
.promo-card h3 { margin: 4px 0; }
.promo-card p { margin: 0; }
.promo-card .muted { color: var(--text-dim); }
.promo-card .pill { white-space: nowrap; }
.promo-purple { background: linear-gradient(120deg, rgba(255,94,168,0.16), rgba(28,100,242,0.18)); }
.promo-gold { background: linear-gradient(120deg, rgba(255,215,128,0.18), rgba(255,255,255,0.06)); }

.live-section {
  position: relative;
  z-index: 1;
  padding: 8px 6vw 32px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 10px 0 14px;
  flex-wrap: wrap;
}
.section-head h2 { margin: 2px 0 0; }
.section-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 12px; color: var(--text-dim); margin: 0; }

.live-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.live-card {
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  position: relative;
  box-shadow: 0 14px 36px rgba(0,0,0,0.35);
}
.live-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background:
    linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.65) 100%),
    var(--poster-bg, linear-gradient(180deg, rgba(255,94,168,0.2), rgba(28,100,242,0.25)));
  background-size: cover;
  background-position: center;
}
.live-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #05080f;
  opacity: 0;
  transition: opacity 150ms ease;
}
.live-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.65) 100%);
  pointer-events: none;
}
.live-meta {
  position: absolute;
  inset: auto 10px 10px 10px;
  display: grid;
  gap: 8px;
  color: #fff;
  z-index: 1;
  pointer-events: none;
}
.live-topline { display: flex; align-items: center; gap: 8px; }
.live-topline .metric { font-size: 13px; color: #e2e8f0; }
.live-user { display: flex; align-items: center; gap: 8px; }
.avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.14);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
}
.name { font-weight: 700; }
.muted { color: var(--text-dim); font-size: 12px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 6vw;
  background: rgba(11,18,36,0.85);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar nav { display: flex; gap: 16px; font-size: 14px; color: var(--text-dim); }
.topbar a:hover { color: #fff; }
.brand {
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  background: linear-gradient(120deg, var(--pink), var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 8s linear infinite;
}

.page {
  position: relative;
  z-index: 1;
  padding: 30px 6vw 40px;
}
.page h1 { margin: 0 0 8px; font-size: 30px; }
.page p.lead { margin: 0 0 20px; color: var(--text-dim); }
.card-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card-plain {
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.05);
}
.shop-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.shop-item {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.05);
}
.shop-item h4 { margin: 0 0 4px; }
.shop-item p { margin: 0; color: var(--text-dim); }
.price { font-weight: 700; color: #fff; }
.cam-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.cam-card {
  border: 1px solid var(--stroke);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}
.cam-card img, .cam-card video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #000;
}
.cam-card .cam-body { padding: 10px; }

.form {
  max-width: 520px;
  display: grid;
  gap: 12px;
}
.form label { font-weight: 600; }
.form input, .form select, .form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.05);
  color: #fff;
}
.form textarea { min-height: 120px; resize: vertical; }
.form .actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn {
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  font-weight: 600;
  color: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  background: rgba(255,255,255,0.06);
}
.btn.primary { background: linear-gradient(140deg, var(--pink), var(--purple)); border: none; }
.btn.ghost { background: rgba(255,255,255,0.06); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,0.3); }

.badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; color: var(--text-dim); }
.badges li { padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,0.07); font-size: 12px; }

footer {
  text-align: center;
  padding: 18px;
  color: var(--text-dim);
  font-size: 13px;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,94,168,0.16), transparent 42%),
    radial-gradient(circle at 80% 70%, rgba(28,100,242,0.14), transparent 42%),
    #05080f;
  display: grid;
  place-items: center;
  z-index: 10;
  padding: 16px;
}
.locked .bg-orbs { display: none; }
.auth-overlay.hidden { display: none; }
.auth-shell {
  position: relative;
  width: min(900px, 94%);
  max-height: 90vh;
  background: linear-gradient(160deg, rgba(255,94,168,0.08), rgba(28,100,242,0.08));
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  overflow: auto;
}
.auth-shell::before,
.auth-shell::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.38;
  pointer-events: none;
}
.auth-shell::before {
  width: 220px;
  height: 220px;
  top: -60px;
  right: -40px;
  background: radial-gradient(circle, rgba(255,94,168,0.45), transparent 60%);
}
.auth-shell::after {
  width: 240px;
  height: 240px;
  bottom: -80px;
  left: -60px;
  background: radial-gradient(circle, rgba(28,100,242,0.45), transparent 60%);
}
.cta-stack {
  display: grid;
  gap: 12px;
  margin: 10px 0 6px;
}
.cta-btn {
  width: 100%;
  padding: 16px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  background: linear-gradient(120deg, rgba(255,94,168,0.18), rgba(28,100,242,0.18));
  color: #fff;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  display: inline-flex;
  align-items: center;
  gap: 0;
  justify-content: center;
  font-size: 18px;
}
.cta-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(0,0,0,0.35); }
.cta-btn.dark { background: linear-gradient(120deg, #0b1224, #131b2f); }
.cta-btn.light { background: rgba(255,255,255,0.12); color: #fff; }
.cta-btn.outline { background: linear-gradient(120deg, rgba(255,94,168,0.06), rgba(28,100,242,0.08)); border: 1px solid rgba(255,255,255,0.25); }
.cta-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: rgba(255,255,255,0.1);
  font-size: 14px;
}
.cta-icon svg { width: 18px; height: 18px; display: block; }
.google-icon { background: #fff; }
.pill-icon { background: rgba(255,255,255,0.12); }
.or-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
}
.or-divider::before,
.or-divider::after {
  content: "";
  height: 1px;
  background: rgba(255,255,255,0.15);
}
.auth-header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}
.auth-header h2 { margin: 6px 0 4px; }
.auth-header .muted { margin: 0; font-size: 16px; }
.auth-header h2 { font-size: 34px; color: #fff; }
.close-auth { cursor: pointer; }
.auth-tabs {
  display: inline-flex;
  gap: 6px;
  margin: 16px 0 10px;
  padding: 4px;
  background: rgba(255,255,255,0.05);
  border-radius: 12px;
  border: 1px solid var(--stroke);
}
.auth-tabs .tab {
  border: none;
  background: transparent;
  color: var(--text);
  padding: 12px 20px;
  border-radius: 14px;
  font-weight: 700;
  cursor: pointer;
}
.auth-tabs .tab.active {
  background: linear-gradient(140deg, var(--pink), var(--purple));
  color: #fff;
}
.auth-form {
  display: grid;
  gap: 12px;
}
.auth-form.hidden { display: none; }
.auth-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}
.auth-form input,
.auth-form select {
  width: 100%;
  padding: 14px 14px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-size: 15px;
}
.auth-form .two-up {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.form-actions {
  display: grid;
  gap: 10px;
}
.social-row {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.wide { justify-content: center; width: 100%; text-align: center; }

/* Chat widget */
.chat-toggle {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #7f5af0, #ec4899);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  cursor: pointer;
  z-index: 50;
}

.chat-panel {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 340px;
  max-width: 90vw;
  background: rgba(12, 16, 32, 0.96);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  padding: 14px;
  display: none;
  flex-direction: column;
  gap: 10px;
  z-index: 60;
}

.chat-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.chat-panel input,
.chat-panel textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 10px;
  background: rgba(255,255,255,0.03);
  color: #fff;
}

.chat-messages {
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 4px;
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
}

.chat-bubble {
  padding: 8px 10px;
  border-radius: 12px;
  max-width: 82%;
  line-height: 1.3;
  font-size: 13px;
}

.chat-bubble.me {
  align-self: flex-end;
  background: linear-gradient(135deg, #7f5af0, #ec4899);
  color: #fff;
}

.chat-bubble.them {
  align-self: flex-start;
  background: rgba(255,255,255,0.06);
  color: #e5e7eb;
}

.chat-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.chat-actions button {
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  background: #7f5af0;
  color: #fff;
  font-weight: 600;
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@media (max-width: 720px) {
  .hub-header {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 10px;
  }
  .nav-quick { justify-content: flex-start; }
  .header-actions { justify-content: flex-start; flex-wrap: wrap; }
  .banner-row { padding: 10px 5vw; }
  .live-section { padding: 8px 5vw 24px; }
}
