/* ==========================================================================
   TOMBALA 2027 — Yılbaşı Gecesi & TV Modu Tasarım Sistemi (PUS Studio)
   ========================================================================== */
:root {
  --bg-deep: #071021;
  --bg-mid: #0e1c36;
  --card-bg: rgba(16, 29, 56, 0.92);
  --card-border: rgba(245, 196, 81, 0.24);
  --gold: #f5c451;
  --gold-bright: #ffe18c;
  --red: #d63447;
  --red-dark: #a51f30;
  --green: #1f9d63;
  --blue: #2b7de9;
  --text: #f7f9ff;
  --muted: #a4b5d1;
  --ticket-cream: #fff8e9;
  --ticket-ink: #17233b;
  --radius: 16px;
  --shadow: 0 18px 46px rgba(0, 0, 0, 0.45);
}

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

html, body {
  min-height: 100%;
  font-family: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 15%, rgba(214, 52, 71, 0.18), transparent 40%),
    radial-gradient(circle at 85% 12%, rgba(245, 196, 81, 0.16), transparent 36%),
    radial-gradient(circle at 50% 85%, rgba(31, 157, 99, 0.16), transparent 45%),
    linear-gradient(180deg, #0b162d 0%, #071021 100%);
  -webkit-tap-highlight-color: transparent;
}

button, input, select, textarea {
  font-family: inherit;
}

.hidden {
  display: none !important;
}

/* Admin / Bakım Banner */
.admin-banner {
  display: none;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: linear-gradient(90deg, #f5c451, #ffe08a);
  color: #161d2e;
  font-weight: 800;
  font-size: 13px;
  text-align: center;
}
.admin-banner.maintenance {
  background: linear-gradient(90deg, #d63447, #f45b69);
  color: #fff;
}

/* Ana Kabuk */
.app-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 12px 14px 28px;
}

/* Kompakt Üst Banner — Yalnızca 3 Buton Standardı (Dil · Ses · Profil) */
.top-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}
.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid var(--gold);
  flex-shrink: 0;
}
.brand-title {
  font-size: clamp(16px, 2.8vw, 21px);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--gold);
  line-height: 1.1;
}
.brand-sub {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-actions-3 {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease;
}
.pill-btn:hover { background: rgba(255, 255, 255, 0.16); }
.pill-btn:active { transform: scale(0.96); }

.pc-avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(245, 196, 81, 0.2);
  font-size: 14px;
  overflow: hidden;
}
.pc-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-cloud-dot {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  border: 1px solid #081122;
}

/* Genel Kartlar & Butonlar */
.panel {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: none;
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  transition: transform 0.12s ease, filter 0.15s ease;
  text-decoration: none;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.sm { padding: 7px 11px; font-size: 12.5px; border-radius: 9px; }
.btn.lg { padding: 14px 20px; font-size: 16px; width: 100%; }
.btn.gold { background: linear-gradient(135deg, #f5c451, #e09f1f); color: #161d2e; }
.btn.red { background: linear-gradient(135deg, #e03e52, #b32032); color: #fff; }
.btn.green { background: linear-gradient(135deg, #25b874, #178250); color: #fff; }
.btn.blue { background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #fff; }
.btn.ghost { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); color: var(--text); }

/* Yılbaşı 2027 Geri Sayımı */
.countdown-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: linear-gradient(135deg, rgba(214, 52, 71, 0.24), rgba(245, 196, 81, 0.14));
  border: 1px solid rgba(245, 196, 81, 0.35);
  border-radius: 14px;
  margin-bottom: 12px;
}
.cd-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--gold-bright);
}
.cd-boxes {
  display: flex;
  gap: 6px;
}
.cd-box {
  min-width: 48px;
  padding: 5px 7px;
  border-radius: 9px;
  background: rgba(8, 17, 34, 0.72);
  border: 1px solid rgba(245, 196, 81, 0.28);
  text-align: center;
}
.cd-box strong {
  display: block;
  font-size: 16px;
  color: var(--gold);
  line-height: 1.1;
}
.cd-box span {
  font-size: 9.5px;
  color: var(--muted);
  font-weight: 700;
}

/* Mobil Öncelikli Mod Izgarası (Mobilde de yan yana 2x2) */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}
@media (min-width: 780px) {
  .modes-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.mode-card {
  text-align: left;
  padding: 11px 12px;
  border-radius: 13px;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
}
.mode-card:hover {
  border-color: var(--gold);
  background: rgba(245, 196, 81, 0.1);
}
.mode-card.active {
  border-color: var(--gold);
  background: linear-gradient(145deg, rgba(245, 196, 81, 0.2), rgba(214, 52, 71, 0.14));
  box-shadow: 0 0 0 1px rgba(245, 196, 81, 0.35);
}
.mode-card .mc-ico { font-size: 20px; display: block; margin-bottom: 4px; }
.mode-card .mc-title { font-size: 13.5px; font-weight: 800; color: var(--gold-bright); display: block; }
.mode-card .mc-desc { font-size: 11px; color: var(--muted); line-height: 1.3; margin-top: 2px; display: block; }

.start-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}

.quick-prefs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.seg-group {
  display: inline-flex;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.seg-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.seg-btn.active {
  background: var(--gold);
  color: #161d2e;
}

/* 3'lü Kompakt Başarım Rozetleri Izgarası (Mobil + Masaüstü Yan Yana) */
.badges-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}
.badge-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 3px;
  padding: 8px 6px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  min-height: 62px;
}
.badge-tile.unlocked {
  border-color: rgba(245, 196, 81, 0.55);
  background: rgba(245, 196, 81, 0.12);
  color: var(--text);
}
.badge-tile.selected {
  box-shadow: 0 0 0 2px var(--gold);
}
.badge-tile .bt-ico { font-size: 20px; filter: grayscale(0.9) opacity(0.55); }
.badge-tile.unlocked .bt-ico { filter: none; }
.badge-tile .bt-name { font-size: 11px; font-weight: 800; line-height: 1.15; }

.badge-detail-box {
  margin-top: 8px;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(245, 196, 81, 0.1);
  border: 1px solid rgba(245, 196, 81, 0.35);
  font-size: 12.5px;
}

/* Son Kazananlar & Alt Bilgi */
.lobby-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 780px) {
  .lobby-two-col {
    grid-template-columns: 1fr 1fr;
  }
}
.winners-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.winner-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12.5px;
}

.studio-footer {
  margin-top: 14px;
  padding: 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
.studio-footer a {
  color: var(--gold-bright);
  text-decoration: none;
  font-weight: 700;
}
.studio-footer a:hover { text-decoration: underline; }

/* Bekleme Odası & QR */
.waiting-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 820px) {
  .waiting-grid {
    grid-template-columns: 330px 1fr;
  }
}
.qr-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.room-code-big {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: var(--gold);
  background: rgba(8, 17, 34, 0.75);
  border: 2px dashed rgba(245, 196, 81, 0.5);
  border-radius: 12px;
  padding: 8px 16px;
}
.qr-box {
  width: 176px;
  height: 176px;
  padding: 10px;
  background: #fff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
}
.participant-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 6px;
}

/* ==========================================================================
   KLASİK 3×9 TOMBALA KARTI TASARIMI
   ========================================================================== */
.tombala-card {
  background: var(--ticket-cream);
  color: var(--ticket-ink);
  border-radius: 14px;
  overflow: hidden;
  border: 2.5px solid #e6d3ad;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  margin-bottom: 10px;
}
.ticket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 12px;
  color: #fff;
  font-weight: 800;
  font-size: 12.5px;
}
.ticket-theme-0 .ticket-header { background: linear-gradient(90deg, #c62828, #e53935); }
.ticket-theme-1 .ticket-header { background: linear-gradient(90deg, #1b7f52, #25a76d); }
.ticket-theme-2 .ticket-header { background: linear-gradient(90deg, #1d4ed8, #3b82f6); }
.ticket-theme-3 .ticket-header { background: linear-gradient(90deg, #7c3aed, #a855f7); }
.ticket-theme-4 .ticket-header { background: linear-gradient(90deg, #b45309, #d97706); }
.ticket-theme-5 .ticket-header { background: linear-gradient(90deg, #0f766e, #14b8a6); }

.ticket-grid {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  gap: 3px;
  padding: 6px;
  background: #ead9b7;
}
.t-cell {
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  font-size: clamp(14px, 3vw, 20px);
  font-weight: 900;
  user-select: none;
}
.t-cell.empty {
  background: repeating-linear-gradient(
    45deg,
    rgba(23, 35, 59, 0.06),
    rgba(23, 35, 59, 0.06) 5px,
    rgba(23, 35, 59, 0.11) 5px,
    rgba(23, 35, 59, 0.11) 10px
  );
}
.t-cell.num {
  background: #fffdf7;
  color: #16233b;
  border: 1px solid #d5c198;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease;
}
.t-cell.num:active { transform: scale(0.93); }
.t-cell.num.highlighted {
  background: #fff1b8;
  border-color: #eab308;
  box-shadow: inset 0 0 0 2px rgba(234, 179, 8, 0.45);
}
.t-cell.num.latest {
  animation: pulseBall 0.7s ease-in-out 2;
  border-color: #dc2626;
}
.t-cell.num.marked {
  background: #16233b;
  color: #ffe28a;
  border-color: #f5c451;
}
.t-cell.num.marked::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 2.5px solid #f5c451;
  background: radial-gradient(circle at 35% 30%, rgba(214, 52, 71, 0.92), rgba(145, 22, 37, 0.94));
  z-index: 0;
}
.t-cell.num.marked span {
  position: relative;
  z-index: 1;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}
.t-cell.num.row-done {
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.55);
}

@keyframes pulseBall {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.09); }
}

.ticket-progress {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 8px;
  background: #f5ead1;
  font-size: 11.5px;
  font-weight: 800;
  color: #3a465f;
}
.prog-bar {
  flex: 1;
  height: 7px;
  border-radius: 999px;
  background: rgba(23, 35, 59, 0.14);
  overflow: hidden;
}
.prog-bar > div {
  height: 100%;
  background: linear-gradient(90deg, #1f9d63, #f5c451);
  transition: width 0.25s ease;
}

/* Çekilen Top & Son 10 Şeridi */
.draw-hud {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ball-hero {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  color: #161d2e;
  background: radial-gradient(circle at 32% 28%, #fff6d1, #f5c451 58%, #b97d10 100%);
  border: 3px solid #fff3c4;
  box-shadow: 0 8px 24px rgba(245, 196, 81, 0.4);
  flex-shrink: 0;
}
.ball-hero.pop {
  animation: popIn 0.35s cubic-bezier(0.22, 1.35, 0.36, 1);
}
@keyframes popIn {
  0% { transform: scale(0.55) rotate(-14deg); }
  100% { transform: scale(1) rotate(0); }
}

.last10-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.mini-ball {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.mini-ball.latest {
  background: var(--gold);
  color: #161d2e;
  border-color: #fff;
}

.anons-bar {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(245, 196, 81, 0.13);
  border: 1px solid rgba(245, 196, 81, 0.32);
  font-size: 13px;
  font-weight: 700;
  color: var(--gold-bright);
}

/* 1-90 Tablosu */
.board-90 {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 4px;
}
.b90-cell {
  padding: 6px 2px;
  text-align: center;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.b90-cell.drawn {
  background: rgba(31, 157, 99, 0.28);
  color: #fff;
  border-color: rgba(31, 157, 99, 0.7);
}
.b90-cell.latest {
  background: var(--gold);
  color: #161d2e;
  border-color: #fff;
  box-shadow: 0 0 12px rgba(245, 196, 81, 0.65);
}

/* Kart Sekmeleri & Özet Grid */
.card-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}
.summary-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 820px) {
  .summary-cards-grid {
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  }
}

.claim-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.reactions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.rx-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 16px;
  cursor: pointer;
}
.rx-btn:hover { background: rgba(245, 196, 81, 0.22); }

/* ==========================================================================
   TV MODU (UZAKTAN OKUNABİLİR SALON GÖSTERİ EKRANI)
   ========================================================================== */
body.tv-mode .app-shell {
  max-width: 100%;
  padding: 12px 18px;
}
body.tv-mode .top-banner {
  display: none;
}
.tv-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: calc(100vh - 24px);
}
.tv-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-radius: 16px;
  background: linear-gradient(90deg, rgba(214, 52, 71, 0.35), rgba(16, 29, 56, 0.95));
  border: 1.5px solid rgba(245, 196, 81, 0.4);
}
.tv-title {
  font-size: clamp(20px, 2.8vw, 32px);
  font-weight: 900;
  color: var(--gold);
}
.tv-main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  flex: 1;
}
@media (min-width: 960px) {
  .tv-main {
    grid-template-columns: 280px 1fr 220px;
  }
}
.tv-ball-giant {
  width: clamp(130px, 14vw, 180px);
  height: clamp(130px, 14vw, 180px);
  margin: 8px auto;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(54px, 6vw, 82px);
  font-weight: 900;
  color: #161d2e;
  background: radial-gradient(circle at 32% 28%, #fff8dc, #f5c451 56%, #b5790d 100%);
  border: 5px solid #fff3c4;
  box-shadow: 0 18px 46px rgba(245, 196, 81, 0.45);
}
.tv-board .b90-cell {
  font-size: clamp(14px, 1.5vw, 20px);
  padding: 9px 4px;
}
.tv-last10 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.tv-last10 .mini-ball {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  font-size: 18px;
}
.tv-players-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tv-player-pill {
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14px;
  font-weight: 700;
}

/* Formlar & Modallar */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 9, 19, 0.8);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
  z-index: 1000;
}
.modal-card {
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  overflow-y: auto;
  background: #101c36;
  border: 1.5px solid rgba(245, 196, 81, 0.4);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.modal-head h2 {
  font-size: 18px;
  color: var(--gold);
}
.close-x {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
}

.field-lbl {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  margin: 10px 0 4px;
}
.ctrl-input, .ctrl-select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #0a1428;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
.chk-line {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 6px;
}
.avatar-pick-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 4px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
}
.avatar-pick-btn.active {
  border-color: var(--gold);
  background: rgba(245, 196, 81, 0.18);
}
.avatar-pick-btn .av-emoji { font-size: 22px; }
.avatar-pick-btn small { font-size: 11px; color: var(--muted); }

/* Auth UI */
.google-gsi-wrap { display: flex; justify-content: center; margin-bottom: 8px; min-height: 40px; }
.google-gsi-wrap:empty { display: none; min-height: 0; margin: 0; }
.auth-btns-row { display: flex; flex-wrap: wrap; gap: 6px; }
.btn-oauth-google { background: #fff; color: #1f2937; }
.btn-oauth-fb { background: #1877f2; color: #fff; }
.auth-tabs { display: flex; gap: 6px; margin-bottom: 6px; }
.auth-tab {
  flex: 1;
  padding: 6px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}
.auth-tab.active { background: var(--gold); color: #161d2e; }
.auth-signed-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(31, 157, 99, 0.15);
  border: 1px solid rgba(31, 157, 99, 0.4);
}
.tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
}
.tag.green { background: rgba(31, 157, 99, 0.3); color: #86efac; }
.tag.gold { background: rgba(245, 196, 81, 0.25); color: var(--gold-bright); }
.tag.red { background: rgba(214, 52, 71, 0.3); color: #fca5a5; }

/* Konfeti & Toast */
#confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1200;
}
.toast-pill {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #101d36;
  border: 1.5px solid var(--gold);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 800;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  z-index: 1500;
  display: none;
  max-width: 92vw;
  text-align: center;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}
.stat-card {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.stat-card small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; }
.stat-card strong { font-size: 18px; color: var(--gold-bright); }
.poster-preview {
  display: block;
  width: 100%;
  max-width: 360px;
  margin: 0 auto 12px;
  border-radius: 14px;
  border: 2px solid var(--gold);
}
.muted-note { color: var(--muted); font-size: 12.5px; }

/* Ses, Dil & Ton Stüdyosu Modalı */
.toggle-pill-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}
.toggle-pill-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}
.tone-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin-top: 4px;
}
@media (min-width: 480px) {
  .tone-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.tone-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 9px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}
.tone-btn.active {
  border-color: var(--gold);
  background: rgba(245, 196, 81, 0.22);
  color: var(--gold-bright);
}
.range-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.range-row input[type="range"] {
  flex: 1;
  accent-color: var(--gold);
}
.range-val {
  min-width: 48px;
  text-align: center;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 7px;
  background: rgba(245, 196, 81, 0.16);
  color: var(--gold-bright);
}

