/* shivassai - Tiktok Games — Cyber-TikTok Neon Tema, 3D Hareketli Ana Sayfa, 9:16 Dikey Sahne ve Ultra-Kompakt HUD Stilleri */
:root {
  --bg-main: #06070d;
  --bg-card: #0c0f1d;
  --bg-card-alt: #13182e;
  --bg-input: #080a14;
  --border-color: #1f2744;
  --border-amber: rgba(0, 242, 254, 0.45);
  --amber: #00f2fe;
  --amber-hover: #4df7ff;
  --amber-dim: rgba(0, 242, 254, 0.14);
  --pink: #ff0050;
  --pink-dim: rgba(255, 0, 80, 0.16);
  --purple: #8b5cf6;
  --gold: #f5a623;
  --green: #10b981;
  --green-dim: rgba(16, 185, 129, 0.16);
  --red: #f43f5e;
  --red-dim: rgba(244, 63, 94, 0.16);
  --blue: #38bdf8;
  --text-main: #f4f7ff;
  --text-muted: #94a3b8;
  --radius-lg: 14px;
  --radius-md: 10px;
  --radius-sm: 7px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  background-color: var(--bg-main);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(255, 0, 80, 0.11) 0%, transparent 45%),
    radial-gradient(circle at 82% 16%, rgba(0, 242, 254, 0.11) 0%, transparent 48%),
    radial-gradient(circle at 50% 85%, rgba(139, 92, 246, 0.08) 0%, transparent 55%);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  min-height: 100vh;
}

/* Üst Navigasyon Barı */
.topbar {
  max-width: 1380px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid rgba(0, 242, 254, 0.12);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 900;
  font-size: 19px;
  letter-spacing: -0.3px;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(135deg, #ff0050 0%, #8b5cf6 52%, #00f2fe 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  box-shadow: 0 4px 18px rgba(255, 0, 80, 0.4), 0 0 14px rgba(0, 242, 254, 0.3);
}

.brand-live {
  background: linear-gradient(90deg, #ff0050, #00f2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}

.nav-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  padding: 5px;
  border-radius: 11px;
  border: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.nav-tab {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.nav-tab:hover {
  color: var(--text-main);
}

.nav-tab.active {
  background: var(--bg-card-alt);
  color: var(--amber);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.main-container {
  max-width: 1380px;
  margin: 0 auto;
  padding: 22px 20px 60px;
}

.hidden {
  display: none !important;
}

/* Müşteri Giriş Kartı */
.auth-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 34px 30px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.55);
  text-align: center;
}

.shield-icon {
  font-size: 38px;
  margin-bottom: 12px;
  display: inline-block;
}

.auth-card h1 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 8px;
}

.auth-subtitle {
  color: var(--text-muted);
  font-size: 12.5px;
  margin-bottom: 24px;
  line-height: 1.5;
}

.auth-subtitle strong {
  color: var(--text-main);
}

.form-group {
  text-align: left;
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #b0b8cc;
  margin-bottom: 5px;
}

.input-control {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px 13px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.18s ease;
}

.input-control:focus {
  border-color: var(--amber);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
  text-decoration: none;
}

.btn-amber {
  background: linear-gradient(180deg, #f7b036 0%, #e89514 100%);
  color: #11131a;
  box-shadow: 0 4px 14px rgba(245, 166, 35, 0.28);
}

.btn-amber:hover {
  background: linear-gradient(180deg, #ffbc47 0%, #f5a322 100%);
  transform: translateY(-1px);
}

.btn-dark {
  background: var(--bg-card-alt);
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-dark:hover {
  border-color: #3a425e;
  background: #1f2436;
}

.btn-red {
  background: var(--red-dim);
  color: #ff6b6b;
  border-color: rgba(231, 76, 60, 0.35);
}

.btn-red:hover {
  background: rgba(231, 76, 60, 0.28);
}

.btn-block {
  width: 100%;
  padding: 11px 18px;
  font-size: 13.5px;
}

.auth-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: var(--text-muted);
}

.auth-footer a {
  color: var(--amber);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.alert-box {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  text-align: left;
}

.alert-error {
  background: var(--red-dim);
  border: 1px solid rgba(231, 76, 60, 0.4);
  color: #ff8787;
}

.alert-success {
  background: var(--green-dim);
  border: 1px solid rgba(46, 204, 113, 0.4);
  color: #69db7c;
}

/* 3 Oyun Seçici Üst Bar */
.game-switcher-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.game-switch-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.18s ease;
  text-align: left;
  color: var(--text-main);
}

.game-switch-card:hover {
  border-color: var(--border-amber);
  background: var(--bg-card-alt);
}

.game-switch-card.active {
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.16), rgba(245, 166, 35, 0.04));
  border-color: var(--amber);
  box-shadow: 0 6px 20px rgba(245, 166, 35, 0.15);
}

.game-switch-icon {
  font-size: 26px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-input);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.game-switch-title {
  font-size: 14px;
  font-weight: 800;
}

.game-switch-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

/* Müşteri Odası Üst Barı */
.room-header-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.room-meta-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.badge-lock-green {
  background: var(--green-dim);
  color: var(--green);
  padding: 2px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 11px;
}

.room-meta-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.room-title-name {
  font-size: 17px;
  font-weight: 800;
}

.key-badge {
  background: var(--amber-dim);
  color: var(--amber);
  border: 1px solid var(--border-amber);
  font-family: Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.room-controls-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tiktok-input {
  width: 150px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 8px 11px;
  border-radius: var(--radius-md);
  font-size: 13px;
}

/* Müşteri Odası 2 Sütunlu Çalışma Alanı (Sol: 9:16 Dikey Telefon Sahnesi, Sağ: Özelleştirme Panelleri) */
.room-workspace {
  display: grid;
  grid-template-columns: 470px 1fr;
  gap: 20px;
  align-items: start;
}

.room-workspace.aspect-wide {
  grid-template-columns: 1.25fr 1fr;
}

/* 3D Sahne Kartı (1080x1920 9:16 Dikey TikTok / Telefon Uyumlu) */
.stage-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.stage-top-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  padding: 4px 8px 10px;
  font-size: 11.5px;
  color: var(--text-muted);
}
.stage-top-strip > * { min-width: 0; }

.stage-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 820px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background: #18110c;
  border: 1px solid rgba(245, 166, 35, 0.28);
}

.stage-viewport.viewport-16-9 {
  aspect-ratio: 16 / 9;
  max-height: 560px;
}

.stage-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Sahne Üstü HUD Kartları (Ekranı Kaplamayan Ultra-Kompakt & Yarı Şeffaf Tasarım) */
.hud-overlay-top {
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  z-index: 5;
}

.hud-cards-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.hud-card {
  background: rgba(6, 8, 16, 0.62);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(0, 242, 254, 0.28);
  border-radius: 7px;
  padding: 3px 6px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.hud-card.hud-card-wide {
  grid-column: span 2;
}

.hud-icon {
  font-size: 13px;
}

.hud-label {
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--amber);
  text-transform: uppercase;
  line-height: 1.1;
}

.hud-value {
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.15;
}

.hud-sub {
  font-size: 8px;
  color: #cbd5e1;
  line-height: 1.1;
}

/* Kamera Seçim Butonları */
.camera-modes-bar {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(6, 8, 16, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2px;
  border-radius: 6px;
  pointer-events: auto;
  width: fit-content;
}

.cam-btn {
  background: transparent;
  color: #cfd5e6;
  border: none;
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.cam-btn.active {
  background: var(--amber);
  color: #06070d;
}

/* 3. Oyun: Canlı Bilgi Yarışması 9:16 Dikey Stüdyo Katmanı (Ortadaki 3D Horoncuları Kapatmaz) */
.quiz-overlay {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 92px 8px 92px;
  background: linear-gradient(180deg, rgba(6, 8, 16, 0.45) 0%, transparent 35%, transparent 65%, rgba(6, 8, 16, 0.55) 100%);
  pointer-events: none;
}

.quiz-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.quiz-cat-badge {
  background: var(--amber);
  color: #06070d;
  font-weight: 800;
  font-size: 9.5px;
  padding: 2px 8px;
  border-radius: 999px;
}

.quiz-timer-pill {
  background: rgba(6, 8, 16, 0.82);
  border: 1px solid var(--amber);
  color: var(--amber);
  font-weight: 800;
  font-size: 10.5px;
  padding: 2px 9px;
  border-radius: 999px;
}

.quiz-question-box {
  background: rgba(8, 11, 22, 0.78);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 242, 254, 0.45);
  border-radius: 10px;
  padding: 7px 10px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.38);
  margin: 4px 0;
}

.quiz-question-text {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
}

.quiz-options-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.quiz-opt-row {
  position: relative;
  background: rgba(10, 14, 26, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  padding: 5px 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.quiz-opt-row.correct {
  border-color: var(--green);
  background: rgba(16, 185, 129, 0.28);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
}

.quiz-opt-row.eliminated {
  opacity: 0.32;
}

.quiz-opt-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: rgba(0, 242, 254, 0.18);
  width: 0%;
  transition: width 0.25s ease;
}

.quiz-opt-left {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 10.5px;
}

.quiz-opt-letter {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--amber);
  color: #06070d;
  font-weight: 900;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.quiz-opt-pct {
  position: relative;
  z-index: 2;
  font-size: 9.5px;
  font-weight: 800;
  color: var(--amber);
}

.quiz-leaderboard-box {
  background: rgba(6, 8, 16, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 7px;
  padding: 4px 7px;
  font-size: 9.5px;
}

.quiz-lb-title {
  color: var(--amber);
  font-weight: 800;
  font-size: 8.5px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.quiz-lb-items {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.quiz-lb-pill {
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 5px;
  border-radius: 4px;
  color: #e2e8f0;
  font-weight: 700;
}

/* Sahne İçi Bildirim / Konuşma Balonu (Ultra-Kompakt Kapsül, Ekranı Kapatmaz) */
.stage-toast {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  max-width: 90%;
  bottom: 84px;
  background: rgba(6, 8, 16, 0.76);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 242, 254, 0.4);
  color: #fff;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 700;
  z-index: 7;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sahne Altı Test ve Simülasyon Barı */
.stage-test-bar {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  z-index: 8;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.test-row {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.test-btn {
  background: rgba(16, 19, 28, 0.92);
  color: #eef2fa;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  padding: 5px 8px;
  font-size: 10.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.14s ease;
}

.test-btn:hover {
  border-color: var(--amber);
  background: rgba(28, 33, 48, 0.95);
}

.test-btn-amber {
  background: var(--amber);
  color: #12131a;
  border-color: var(--amber);
}

.test-ticker {
  flex: 1;
  min-width: 110px;
  background: rgba(12, 14, 20, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  padding: 5px 8px;
  font-size: 10.5px;
  color: #d8deed;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Sağ Sütun: Ayar ve Özelleştirme Kartları */
.settings-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.panel-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.panel-card-header h3 {
  font-size: 15px;
  font-weight: 800;
}

.panel-card-header p {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.gift-rules-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 12px;
}

.gift-rule-row {
  display: grid;
  grid-template-columns: 1.15fr 1.25fr 68px 34px;
  gap: 7px;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 6px;
  border-radius: 9px;
}

.select-control, .num-control {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 7px 8px;
  border-radius: 6px;
  font-size: 12px;
}

.del-rule-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid rgba(231, 76, 60, 0.35);
  background: var(--red-dim);
  color: #ff6b6b;
  font-weight: 800;
  cursor: pointer;
}

.two-col-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.three-col-inputs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #d0d7e8;
  cursor: pointer;
  margin-bottom: 8px;
}

/* OBS & Yayın Kurulumu Sekmesi */
.guide-header {
  text-align: center;
  margin-bottom: 24px;
}

.badge-pill {
  display: inline-block;
  background: var(--amber-dim);
  color: var(--amber);
  border: 1px solid var(--border-amber);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.obs-link-card {
  max-width: 960px;
  margin: 0 auto 24px;
  background: rgba(245, 166, 35, 0.05);
  border: 1px solid var(--border-amber);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}

.obs-link-row {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.obs-link-input {
  flex: 1;
  background: #080a0f;
  border: 1px solid var(--border-color);
  color: var(--green);
  font-family: Consolas, monospace;
  font-size: 13px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
}

.steps-grid {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.step-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text-muted);
  font-size: 12.5px;
  margin-top: 10px;
}

/* Yönetici Paneli */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.admin-table th {
  text-align: left;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 12px;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border-color);
}

.admin-table td {
  padding: 13px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  vertical-align: middle;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.btn-xs {
  padding: 5px 9px;
  font-size: 11px;
  border-radius: 7px;
}

.admin-bottom-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 18px;
  margin-top: 20px;
}

.logs-scroll {
  max-height: 290px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

.log-item {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 9px;
  padding: 9px 11px;
}

.log-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  margin-bottom: 3px;
}

.log-type {
  color: var(--amber);
  font-weight: 800;
  font-family: Consolas, monospace;
}

.log-time {
  color: var(--text-muted);
  font-family: Consolas, monospace;
}

.log-msg {
  font-size: 12.5px;
  color: #dce1f0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1020px;
  margin: 0 auto;
}

.price-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.price-card.featured {
  border-color: var(--amber);
}

.price-amount {
  font-size: 28px;
  font-weight: 800;
  color: var(--amber);
  margin: 10px 0;
}

/* Temiz OBS & Mobil Tam Ekran (1080x1920 9:16 Dikey Uyumlu) */
body.obs-clean-body {
  background: #000;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}

.obs-fullscreen-stage {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: #000;
}

/* Sabit çözünürlüklü tuval kutusu (genişlik/yükseklik ve ölçek /js/stage/frame.js'ten gelir) */
.stage-frame {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  transform-origin: 0 0;
  background: #000;
}
.stage-frame > .stage-canvas {
  position: absolute;
  inset: 0;
}

/* ?tani=1 bilgi kutusu: yayın kaynağının gerçek boyutunu görmek için */
.stage-diag {
  position: fixed;
  top: 8px;
  right: 8px;
  z-index: 50;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.78);
  color: #e6ecea;
  font: 600 13px/1.3 system-ui, "Segoe UI", sans-serif;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}

/* ============================================================================
   TEMA ÖZELLEŞTİRİCİ (Amber, Karadeniz Yeşili, Kırmızı Şölen, Gece Moru)
   ============================================================================ */
.theme-amber {
  --amber: #f5a623;
  --amber-hover: #ffb83d;
  --amber-dim: rgba(245, 166, 35, 0.16);
  --border-amber: rgba(245, 166, 35, 0.45);
}

.theme-emerald {
  --amber: #10b981;
  --amber-hover: #34d399;
  --amber-dim: rgba(16, 185, 129, 0.16);
  --border-amber: rgba(16, 185, 129, 0.48);
}

.theme-crimson {
  --amber: #f43f5e;
  --amber-hover: #fb7185;
  --amber-dim: rgba(244, 63, 94, 0.16);
  --border-amber: rgba(244, 63, 94, 0.48);
}

.theme-neon {
  --amber: #a855f7;
  --amber-hover: #c084fc;
  --amber-dim: rgba(168, 85, 247, 0.16);
  --border-amber: rgba(168, 85, 247, 0.48);
}

/* ============================================================================
   ÜST BEĞENİ (LIKE) HEDEF BARI & TOP 3 HEDİYE KRALLARI KÜRSÜSÜ (ULTRA-KOMPAKT)
   ============================================================================ */
.like-goal-bar {
  background: rgba(6, 8, 16, 0.64);
  backdrop-filter: blur(5px);
  border: 1px solid var(--border-amber);
  border-radius: 7px;
  padding: 2px 7px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.like-goal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font-size: 8.5px;
  font-weight: 800;
}

.like-goal-title {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 4px;
}

.like-goal-reward {
  color: var(--amber);
  font-size: 8px;
  background: var(--amber-dim);
  padding: 0 5px;
  border-radius: 999px;
}

.like-goal-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.like-goal-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff0050, var(--amber), #10b981);
  border-radius: 999px;
  width: 0%;
  transition: width 0.35s ease;
}

.top-gifters-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.gifter-podium-pill {
  background: rgba(6, 8, 16, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 2px 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3px;
  font-size: 8.5px;
  font-weight: 800;
  color: #f1f5f9;
}

.gifter-podium-pill.rank-1 {
  border-color: rgba(255, 215, 0, 0.5);
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.14), rgba(6, 8, 16, 0.72));
}

.gifter-podium-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gifter-podium-coins {
  color: var(--amber);
  font-size: 8px;
  flex-shrink: 0;
}

/* ============================================================================
   KOMPAKT KUTLAMA / COMBO KAPSÜLÜ (EKRANIN ORTASINI ASLA KAPATMAZ!)
   ============================================================================ */
.celebration-banner {
  position: absolute;
  left: 50%;
  top: 98px;
  transform: translateX(-50%);
  max-width: 88%;
  z-index: 12;
  background: linear-gradient(135deg, rgba(255, 0, 80, 0.86), rgba(12, 16, 32, 0.9), rgba(0, 242, 254, 0.82));
  border: 1px solid var(--amber);
  border-radius: 999px;
  padding: 4px 12px;
  text-align: center;
  box-shadow: 0 4px 18px rgba(255, 0, 80, 0.45);
  pointer-events: none;
  animation: popPulse 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

@keyframes popPulse {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.8);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
}

.celebration-title {
  font-size: 10.5px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.celebration-sub {
  font-size: 9px;
  font-weight: 700;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================================
   SAĞ KÖŞE MİNİ CANLI AKIŞ (LIVE FEED) KUTUSU (ULTRA-KOMPAKT)
   ============================================================================ */
.live-feed-box {
  position: absolute;
  right: 6px;
  bottom: 112px;
  width: 132px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 2px;
  pointer-events: none;
}

.live-feed-item {
  background: rgba(6, 8, 16, 0.58);
  backdrop-filter: blur(3px);
  border-left: 2px solid var(--amber);
  border-radius: 5px;
  padding: 2px 5px;
  font-size: 8px;
  color: #eef2ff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-feed-item strong {
  color: var(--amber);
}

/* ============================================================================
   HER OYUNA ÖZEL HEDİYE GÖREV MİNİ-BARI (ULTRA-KOMPAKT TEK ŞERİT)
   ============================================================================ */
.gift-mini-bar {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 48px;
  z-index: 7;
  background: rgba(6, 8, 16, 0.68);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: 8px;
  padding: 3px 5px;
  pointer-events: none;
}

.gift-mini-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 7.5px;
  font-weight: 800;
  color: var(--amber);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 2px;
  padding: 0 2px;
}

.gift-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}

.gift-mini-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 5px;
  padding: 2px 4px;
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
}

.gift-mini-icon {
  font-size: 11px;
  flex-shrink: 0;
}

.gift-mini-info {
  min-width: 0;
  flex: 1;
}

.gift-mini-role {
  font-size: 8px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.1;
}

.gift-mini-cost {
  font-size: 7.5px;
  color: var(--amber);
  font-weight: 700;
  line-height: 1.1;
}

/* ============================================================================
   ALTTA KAYAN DUYURU ŞERİDİ (SMOOTH MARQUEE TICKER — İNCE ŞERİT)
   ============================================================================ */
.marquee-ticker {
  position: relative;
  width: 100%;
  background: rgba(6, 8, 16, 0.78);
  border: 1px solid rgba(0, 242, 254, 0.3);
  border-radius: 6px;
  height: 20px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.marquee-badge {
  background: linear-gradient(90deg, #ff0050, #8b5cf6);
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  padding: 0 6px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  z-index: 2;
  flex-shrink: 0;
  text-transform: uppercase;
}

.marquee-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.marquee-track {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  font-size: 9.5px;
  font-weight: 700;
  color: #f8fafc;
  animation: marqueeScroll 22s linear infinite;
}

@keyframes marqueeScroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-100%, 0, 0);
  }
}

/* ============================================================================
   CANLI REJİ (DIRECTOR) HIZLI AKSİYON PEDLERİ & ŞABLONLAR
   ============================================================================ */
.reji-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.reji-pad-btn {
  background: linear-gradient(180deg, #161c33 0%, #0d1121 100%);
  border: 1px solid rgba(0, 242, 254, 0.18);
  border-radius: 10px;
  padding: 10px 8px;
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.16s ease;
}

.reji-pad-btn:hover {
  border-color: var(--amber);
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(0, 242, 254, 0.22);
}

.reji-pad-icon {
  font-size: 18px;
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.preset-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 9px;
  padding: 8px 10px;
  color: var(--text-main);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.16s ease;
}

.preset-btn:hover {
  border-color: var(--amber);
  background: var(--amber-dim);
}

.theme-pills {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-top: 6px;
}

.theme-pill-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 7px 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.theme-pill-btn.active {
  border-color: var(--amber);
  background: var(--amber-dim);
  color: var(--amber);
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.mini-stat-box {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 9px;
  padding: 8px 10px;
  text-align: center;
}

.mini-stat-val {
  font-size: 16px;
  font-weight: 800;
  color: var(--amber);
}

.mini-stat-lbl {
  font-size: 10.5px;
  color: var(--text-muted);
}

/* ============================================================================
   3D HAREKETLİ TANITIM ANA SAYFASI (#tab-home — CYBER-TİKTOK NEON VİTRİN)
   ============================================================================ */
.hero-3d-section {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 1.12fr;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, rgba(14, 18, 36, 0.92) 0%, rgba(8, 10, 20, 0.96) 100%);
  border: 1px solid rgba(0, 242, 254, 0.28);
  border-radius: 22px;
  padding: 28px;
  margin-bottom: 26px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(255, 0, 80, 0.12);
  overflow: hidden;
}

.hero-neon-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(90deg, rgba(255, 0, 80, 0.18), rgba(0, 242, 254, 0.18));
  border: 1px solid rgba(0, 242, 254, 0.45);
  color: #00f2fe;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  margin-bottom: 14px;
}

.hero-title {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.6px;
  margin-bottom: 14px;
}

.hero-title-gradient {
  background: linear-gradient(90deg, #ff0050 0%, #a855f7 50%, #00f2fe 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  color: #b4c0d9;
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.btn-cyber-pink {
  background: linear-gradient(135deg, #ff0050 0%, #8b5cf6 100%);
  color: #ffffff;
  box-shadow: 0 6px 22px rgba(255, 0, 80, 0.42);
  padding: 12px 22px;
  font-size: 14px;
}

.btn-cyber-pink:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(255, 0, 80, 0.58);
}

.btn-cyber-cyan {
  background: rgba(0, 242, 254, 0.14);
  border: 1px solid #00f2fe;
  color: #00f2fe;
  padding: 12px 22px;
  font-size: 14px;
}

.btn-cyber-cyan:hover {
  background: #00f2fe;
  color: #06070d;
  transform: translateY(-2px);
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.hero-stat-pill {
  background: rgba(6, 8, 16, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px 12px;
}

.hero-stat-num {
  font-size: 18px;
  font-weight: 900;
  color: #00f2fe;
}

.hero-stat-txt {
  font-size: 11px;
  color: var(--text-muted);
}

.hero-3d-canvas-wrap {
  position: relative;
  width: 100%;
  height: 440px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 0, 80, 0.4);
  background: #06070d;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.7);
}

.hero-3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-canvas-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(6, 8, 16, 0.82);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(0, 242, 254, 0.45);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 800;
  color: #e2e8f0;
  pointer-events: none;
}

.showcase-games-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}

.showcase-game-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.2s ease;
}

.showcase-game-card:hover {
  border-color: var(--amber);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 242, 254, 0.14);
}

/* ============================================================================
   HESAP GİRİŞ & KAYIT OL SEKMELERİ (#tab-auth) VE 3D KARAKTER STÜDYOSU
   ============================================================================ */
.auth-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  background: var(--bg-input);
  padding: 5px;
  border-radius: 11px;
  border: 1px solid var(--border-color);
  margin-bottom: 18px;
}

.auth-mode-btn {
  background: transparent;
  color: var(--text-muted);
  border: none;
  padding: 8px 6px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.16s ease;
}

.auth-mode-btn.active {
  background: linear-gradient(135deg, #ff0050, #8b5cf6);
  color: #fff;
  box-shadow: 0 3px 12px rgba(255, 0, 80, 0.35);
}

.free-sites-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.free-site-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 9px;
  padding: 8px 10px;
  text-decoration: none;
  color: var(--text-main);
  transition: all 0.16s ease;
}

.free-site-link:hover {
  border-color: var(--amber);
  background: var(--amber-dim);
}

.free-site-name {
  font-size: 12px;
  font-weight: 800;
  color: var(--amber);
}

.free-site-desc {
  font-size: 10.5px;
  color: var(--text-muted);
}

@media (max-width: 980px) {
  .room-workspace,
  .game-switcher-bar,
  .steps-grid,
  .stats-grid,
  .admin-bottom-grid,
  .pricing-grid,
  .three-col-inputs,
  .reji-grid,
  .preset-grid,
  .analytics-grid,
  .hero-3d-section,
  .showcase-games-grid,
  .free-sites-grid {
    grid-template-columns: 1fr;
  }
  .stage-viewport {
    max-width: 440px;
  }
}
