:root {
  --bg-primary: #06080d;
  --bg-secondary: #0d1017;
  --bg-card: rgba(13, 16, 24, 0.68);
  --bg-card-hover: rgba(20, 25, 38, 0.82);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-gold: linear-gradient(135deg, rgba(245, 158, 11, 0.6), rgba(217, 119, 6, 0.3));
  
  --gold-primary: #f59e0b;
  --gold-glow: rgba(245, 158, 11, 0.25);
  --gold-light: #fef3c7;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --twitch-color: #a970ff;
  --twitch-glow: rgba(169, 112, 255, 0.25);
  --kick-color: #53fc18;
  --kick-glow: rgba(83, 252, 24, 0.25);
  --youtube-color: #FF0000;
  --youtube-glow: rgba(255, 0, 0, 0.25);

  --accent-blue: #38bdf8;
  --accent-red: #ef4444;
  --accent-green: #22c55e;

  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border-width: 0 !important;
}

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

body {
  background: 
    linear-gradient(180deg, rgba(6, 8, 14, 0.25) 0%, rgba(6, 8, 14, 0.45) 100%),
    url("bg.png") center center / cover no-repeat fixed;
  color: var(--text-main);
  font-family: var(--font-family);
  overflow: hidden;
  height: 100vh;
  display: flex;
  flex-direction: column;
  user-select: none;
  -webkit-user-select: none;
}

input, textarea, select {
  user-select: text !important;
  -webkit-user-select: text !important;
  cursor: text !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(10, 12, 19, 0.6);
}
::-webkit-scrollbar-thumb {
  background: rgba(245, 158, 11, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 158, 11, 0.6);
}

/* Header & Top Bar - Modern Sleek Glassmorphism */
.top-nav {
  height: 68px;
  background: rgba(6, 8, 13, 0.88);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.6), inset 0 -1px 0 rgba(255, 255, 255, 0.03);
  z-index: 1000;
  gap: 16px;
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.brand-section:hover {
  transform: translateY(-1px);
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  background: #000;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 1px;
  line-height: 1.1;
  background: linear-gradient(135deg, #ffffff 30%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-size: 0.65rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  font-weight: 700;
}

/* Nav Tabs - Modern Floating Capsule */
.nav-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(11, 15, 23, 0.75);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 4px 16px rgba(0, 0, 0, 0.3);
  overflow-x: auto;
  max-width: 100%;
}

.nav-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
}

.tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.tab-btn.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 2px 10px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
}

.tab-btn.active span:first-child {
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

/* Right Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Compact Platform Status Pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 700;
  color: #94a3b8;
  transition: all 0.2s ease;
  cursor: pointer;
  user-select: none;
}

.status-pill:hover {
  background: rgba(30, 41, 59, 0.9);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #64748b;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.status-pill.twitch {
  border-color: rgba(145, 70, 255, 0.25);
}
.status-pill.twitch:hover {
  border-color: rgba(145, 70, 255, 0.6);
  color: #c084fc;
}
.status-pill.twitch.active {
  background: rgba(145, 70, 255, 0.15);
  border-color: #9146ff;
  color: #e9d5ff;
}
.status-pill.twitch.active .status-dot {
  background: #a855f7;
  box-shadow: 0 0 8px #9146ff;
}

.status-pill.kick {
  border-color: rgba(83, 252, 24, 0.25);
}
.status-pill.kick:hover {
  border-color: rgba(83, 252, 24, 0.6);
  color: #86efac;
}
.status-pill.kick.active {
  background: rgba(83, 252, 24, 0.15);
  border-color: #53fc18;
  color: #bbf7d0;
}
.status-pill.kick.active .status-dot {
  background: #22c55e;
  box-shadow: 0 0 8px #53fc18;
}

.status-pill.youtube {
  border-color: rgba(239, 68, 68, 0.25);
}
.status-pill.youtube:hover {
  border-color: rgba(239, 68, 68, 0.6);
  color: #fca5a5;
}
.status-pill.youtube.active {
  background: rgba(239, 68, 68, 0.15);
  border-color: #ef4444;
  color: #fecaca;
}
.status-pill.youtube.active .status-dot {
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
}

/* User Profile Header Pill & Floating Dropdown */
.header-user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  user-select: none;
}

.header-user-pill:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
}

.header-user-avatar {
  font-size: 1rem;
  line-height: 1;
}

.header-user-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #f1f5f9;
  letter-spacing: 0.2px;
}

.header-user-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.header-user-badge.admin {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.28);
}

.header-user-dropdown {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  right: 0 !important;
  min-width: 210px !important;
  background: rgba(13, 17, 26, 0.96) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  padding: 8px !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  z-index: 9999 !important;
  display: none !important;
  flex-direction: column !important;
  gap: 3px !important;
}

.header-user-dropdown.active {
  display: flex !important;
}

.dropdown-item {
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  width: 100% !important;
  padding: 8px 12px !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  color: #cbd5e1 !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  text-align: left !important;
  outline: none !important;
  box-shadow: none !important;
}

.dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  transform: none !important;
}

.dropdown-item span {
  font-size: 0.95rem;
}

.dropdown-item.danger {
  color: #f87171 !important;
}

.dropdown-item.danger:hover {
  background: rgba(239, 68, 68, 0.12) !important;
  border-color: rgba(239, 68, 68, 0.25) !important;
  color: #fca5a5 !important;
}

/* Icon Buttons (Sound, Fullscreen) */
.icon-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 0.95rem;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  transform: translateY(-1px);
}

/* Main Container */
.main-wrapper {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
}

.tab-content {
  position: absolute;
  inset: 0;
  display: none;
  padding: 16px;
  overflow-y: auto;
}

.tab-content.active {
  display: flex;
  flex-direction: column;
}

/* Home Landing Tab - Full Natural Scroll Flow (Never Squeezed) */
#tab-home.tab-content.active {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  height: 100% !important;
  padding: 24px 28px 100px 28px !important;
  box-sizing: border-box !important;
}

#tab-home > * {
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}

/* Giveaway Tab Layout */
.giveaway-layout {
  display: grid;
  grid-template-columns: 340px 1fr 340px;
  gap: 16px;
  height: 100%;
}

/* Cards & Panels */
.panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.06), 0 12px 36px rgba(0, 0, 0, 0.5);
}

.panel-header {
  padding: 14px 18px;
  background: rgba(14, 18, 27, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.panel-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-body {
  padding: 16px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Form Controls */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}

.input-text, .select-input {
  background: rgba(10, 12, 19, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  user-select: text !important;
  -webkit-user-select: text !important;
  pointer-events: auto !important;
  transform: translateZ(0);
}

.input-text:focus, .select-input:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 8px var(--gold-glow);
}

.row-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Custom Buttons - Modern Obsidian Aesthetic */
.btn {
  position: relative;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
  overflow: hidden;
  letter-spacing: 0.2px;
  user-select: none;
}

.btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: translateX(-150%) skewX(-25deg);
  pointer-events: none;
}

.btn:hover::after {
  animation: buttonShimmer 2.2s infinite;
}

.btn:hover {
  transform: translateY(-1.5px);
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn-primary {
  background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  color: #0b0e14 !important;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 4px 14px rgba(217, 119, 6, 0.3);
  font-weight: 800;
  text-shadow: none;
}

.btn-primary:hover {
  background: linear-gradient(180deg, #fbbf24 0%, #f59e0b 100%);
  box-shadow: inset 0 1px 0 #ffffff, 0 6px 20px rgba(245, 158, 11, 0.45);
  transform: translateY(-1.5px);
  color: #05070a !important;
}

.btn-success {
  background: linear-gradient(135deg, #22c55e, #15803d);
  color: #fff;
  border: 1px solid #86efac;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
}
.btn-success:hover {
  background: linear-gradient(135deg, #4ade80, #16a34a);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444, #991b1b);
  color: #fff;
  border: 1px solid #fca5a5;
}
.btn-danger:hover {
  background: linear-gradient(135deg, #f87171, #b91c1c);
}

.btn-youtube {
  background: linear-gradient(135deg, #FF0000, #cc0000);
  color: #fff;
  border: 1px solid #ff6666;
  box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}
.btn-youtube:hover {
  background: linear-gradient(135deg, #ff3333, #aa0000);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  transform: translateY(-1.5px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 14px rgba(0, 0, 0, 0.3);
}

.btn-sm {
  padding: 6px 12px !important;
  font-size: 0.8rem !important;
  border-radius: 7px !important;
}

.btn-large {
  padding: 14px 28px;
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: 10px;
  letter-spacing: 0.3px;
}

#btn-start-draw {
  animation: arcadePulse 2.8s infinite ease-in-out;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 45%, #d97706 100%) !important;
  color: #0c0e14 !important;
  border: 1.5px solid #fde68a !important;
  font-weight: 900 !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
}

#btn-start-draw:hover {
  animation: none;
  transform: translateY(-3px) scale(1.04) !important;
  box-shadow: 0 12px 35px rgba(245, 158, 11, 0.8), 0 0 40px rgba(251, 191, 36, 0.7) !important;
}

/* Center Raffle Stage */
.raffle-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  gap: 16px;
  text-align: center;
  position: relative;
  background: radial-gradient(circle at 50% 40%, rgba(245, 158, 11, 0.08) 0%, rgba(10, 14, 24, 0.75) 70%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.raffle-box {
  width: 100%;
  max-width: 500px;
  height: 180px;
  background: rgba(15, 20, 32, 0.9);
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 0 30px var(--gold-glow), inset 0 0 20px rgba(245, 158, 11, 0.15);
  overflow: hidden;
}

.raffle-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fef08a, transparent);
}

.rolling-username {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
  transition: all 0.05s ease;
  word-break: break-all;
  padding: 0 16px;
}

.rolling-platform {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
}

/* Winner Card Display */
.winner-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(18, 22, 34, 0.95));
  border: 2px solid var(--gold-primary);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  box-shadow: 0 4px 15px var(--gold-glow);
  animation: slideInUp 0.4s ease;
}

.winner-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.winner-crown {
  font-size: 1.5rem;
}

.winner-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.winner-tag {
  font-size: 0.75rem;
  color: var(--gold-primary);
  font-weight: 700;
}

/* Participants List */
.participants-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 100%;
}

.participant-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  transition: all 0.15s;
}

.participant-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.participant-item .name {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.delete-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
}
.delete-btn:hover {
  color: var(--accent-red);
}

/* Chat Feed Tab */
.chat-stream-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 12px;
}

.chat-message-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
}

.chat-msg {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.9rem;
  line-height: 1.4;
}

.chat-badge {
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.chat-badge.twitch {
  background: var(--twitch-color);
  color: #000;
}

.chat-badge.kick {
  background: var(--kick-color);
  color: #000;
}

.chat-badge.youtube {
  background: var(--youtube-color);
  color: #fff;
}

.chat-author {
  font-weight: 700;
}

.chat-text {
  color: var(--text-main);
  word-break: break-word;
}

/* Bil Bakalim Game Frame Wrapper */
.game-frame-container {
  flex: 1;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.game-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ============================
   ÇEKİLİŞ GEÇMİŞİ LOGu
   ============================ */
.history-entry {
  border-bottom: 1px solid rgba(245, 158, 11, 0.1);
  padding: 14px 0;
  transition: background 0.15s;
}

.history-entry:first-child {
  border-top: 1px solid rgba(245, 158, 11, 0.1);
}

.history-entry:hover {
  background: rgba(245, 158, 11, 0.04);
  border-radius: var(--radius-sm);
}

.history-entry-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}

.history-entry-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.history-entry-num {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--gold-primary);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.5px;
  min-width: 36px;
  text-align: center;
}

.history-entry-time {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.history-entry-keyword {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.history-entry-keyword code {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: 'Consolas', monospace;
  color: var(--accent-blue);
  font-size: 0.77rem;
}

.history-entry-participants {
  font-size: 0.78rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.history-winners-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 6px;
}

.history-winner-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border-left: 3px solid transparent;
  transition: background 0.15s;
}

.history-winner-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.history-platform-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 5px currentColor;
}

.history-winner-name {
  font-weight: 700;
  font-size: 0.95rem;
  flex: 1;
}

.history-winner-platform {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================
   GEÇMİŞ TABLO GÖRÜNÜMÜ & EXPORT
   ============================ */
.history-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.history-view-btn-group {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 2px;
}

.history-view-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 5px;
}

.history-view-btn.active {
  background: var(--gold-primary);
  color: #000;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.history-btn-excel {
  background: linear-gradient(135deg, #107c41, #1e4620);
  border: 1px solid #23a55a;
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.history-btn-excel:hover {
  background: linear-gradient(135deg, #15803d, #166534);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.4);
}

.history-btn-copy {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.history-btn-copy:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: var(--gold-primary);
}

.history-table-container {
  width: 100%;
  overflow-x: auto;
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-md);
  background: rgba(10, 12, 19, 0.95);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

.history-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  text-align: left;
}

.history-data-table thead tr {
  background: rgba(245, 158, 11, 0.12);
  border-bottom: 2px solid rgba(245, 158, 11, 0.3);
}

.history-data-table th {
  padding: 10px 14px;
  font-weight: 800;
  color: var(--gold-light);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.history-data-table tbody tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.15s ease;
}

.history-data-table tbody tr:hover {
  background: rgba(245, 158, 11, 0.06);
}

.history-data-table td {
  padding: 10px 14px;
  color: var(--text-main);
  vertical-align: middle;
}

.table-badge-draw {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--gold-primary);
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 2px 7px;
  border-radius: 6px;
}

.table-badge-kw {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #38bdf8;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.78rem;
}

.table-winner-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.82rem;
  margin: 2px 4px 2px 0;
}

/* ==========================================
   GAMES HUB (OYUNLAR MENÜSÜ & DASHBOARD)
   ========================================== */

.games-hub-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.games-hub-header {
  background: rgba(13, 17, 26, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 30px rgba(0, 0, 0, 0.45);
}

.games-hub-title-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

.games-hub-icon {
  font-size: 1.8rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.games-hub-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.01em;
  margin: 0 0 2px 0;
}

.games-hub-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
}

.games-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  padding-bottom: 20px;
}

.game-hub-card {
  position: relative;
  background: rgba(13, 17, 26, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 6px 20px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.game-hub-card:hover {
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 16px 36px rgba(0, 0, 0, 0.6);
}

.game-hub-card.featured {
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: linear-gradient(180deg, rgba(20, 25, 38, 0.8) 0%, rgba(13, 17, 26, 0.8) 100%);
  box-shadow: inset 0 1px 0 rgba(245, 158, 11, 0.15), 0 6px 24px rgba(0, 0, 0, 0.5);
}

.game-hub-card.featured:hover {
  border-color: rgba(245, 158, 11, 0.5);
  box-shadow: inset 0 1px 0 rgba(245, 158, 11, 0.25), 0 16px 36px rgba(245, 158, 11, 0.12);
}

.game-hub-card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.game-hub-card-badge.live {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.35);
}

.game-hub-card-badge.chat {
  background: rgba(56, 189, 248, 0.18);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.35);
}

.game-hub-card-badge.trivia {
  background: rgba(168, 85, 247, 0.18);
  color: #c084fc;
  border-color: rgba(168, 85, 247, 0.35);
}

.game-hub-card-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: transform 0.2s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.game-hub-card:hover .game-hub-card-icon-wrap {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.2);
}

.game-hub-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.game-hub-card-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.game-hub-card-desc {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.45;
  margin: 0;
}

.game-hub-card-desc code {
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 4px;
  border-radius: 3px;
  color: var(--gold-light);
  font-size: 0.78rem;
}

.game-hub-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}

.game-hub-card-tags .tag {
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  padding: 2px 7px;
  border-radius: 4px;
}

.game-hub-card-btn {
  margin-top: auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 14px;
}

/* ==========================================
   BACK BUTTON & GAME TOOLBARS
   ========================================== */

.btn-back-to-games {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(18, 22, 34, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--gold-light);
  padding: 5px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  user-select: none;
}

.btn-back-to-games:hover {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--gold-primary);
  color: #fff;
  transform: translateX(-2px);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.game-wrapper-with-toolbar {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 10px;
  padding: 12px 16px;
}

.game-top-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 12, 19, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 6px 14px;
  flex-shrink: 0;
}

.game-top-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--gold-light);
  display: flex;
  align-items: center;
  gap: 8px;
}

.game-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ==========================================
   FULLSCREEN MODE OPTIMIZATIONS
   ========================================== */
:fullscreen .top-nav,
body.fullscreen-active .top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  transform: translateY(-92%);
  opacity: 0.05;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  z-index: 9999;
  background: rgba(13, 16, 23, 0.98);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.9);
}

:fullscreen .top-nav:hover,
body.fullscreen-active .top-nav:hover {
  transform: translateY(0);
  opacity: 1;
}

:fullscreen .main-wrapper,
body.fullscreen-active .main-wrapper {
  height: 100vh;
}

:fullscreen .boss-layout,
body.fullscreen-active .boss-layout {
  height: 100vh;
  padding: 8px 12px;
}

:fullscreen .game-wrapper-with-toolbar,
body.fullscreen-active .game-wrapper-with-toolbar {
  height: 100vh;
  padding: 8px 12px;
}

/* ==========================================
   MODAL OVERLAYS & DIALOG POPUPS
   ========================================== */

.modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(5, 7, 12, 0.88) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  z-index: 99999 !important;
  display: none !important;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

.modal-overlay.active,
.modal-overlay[style*="display: flex"],
.modal-overlay[style*="display: block"] {
  display: flex !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  visibility: visible !important;
}

.modal-card {
  position: relative;
  background: linear-gradient(180deg, #181f2f 0%, #0d121c 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(245, 158, 11, 0.18);
  border-radius: 16px;
  width: 100%;
  max-width: 500px;
  padding: 24px;
  animation: modalPopIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ==========================================
   MEMBERSHIP, AUTH & ADMIN DASHBOARD STYLES
   ========================================== */

.membership-status-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(245, 158, 11, 0.3);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.membership-status-pill:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

.btn-admin-nav {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24 !important;
  font-weight: 700;
  border: 1px solid rgba(245, 158, 11, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 8px rgba(0, 0, 0, 0.3);
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  display: none;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-admin-nav:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: rgba(245, 158, 11, 0.5);
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25);
}

/* Admin Dashboard Modal */
.admin-modal-overlay {
  position: fixed !important;
  inset: 0 !important;
  background: rgba(5, 7, 12, 0.88) !important;
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  z-index: 10000 !important;
  display: none !important;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

.admin-modal-overlay.active,
.admin-modal-overlay[style*="display: flex"],
.admin-modal-overlay[style*="display: block"] {
  display: flex !important;
  pointer-events: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.admin-modal-card {
  background: linear-gradient(180deg, #161c2b 0%, #0d121c 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85);
  border-radius: 16px;
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-modal-header {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(245, 158, 11, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 14, 23, 0.6);
}

.admin-stats-row {
  display: flex;
  gap: 16px;
  padding: 16px 24px;
  background: rgba(8, 11, 18, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-stat-card {
  flex: 1;
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 16px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-stat-card .val {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--gold-primary);
}
.admin-stat-card .lbl {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
}

.admin-nav-tabs {
  display: flex;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(10, 14, 23, 0.4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.admin-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.admin-tab-btn.active {
  background: rgba(245, 158, 11, 0.2);
  color: var(--gold-light);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.admin-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.badge-role {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-block;
}
.badge-role.admin { background: rgba(245, 158, 11, 0.2); color: #f59e0b; border: 1px solid #f59e0b; }
.badge-role.active { background: rgba(34, 197, 94, 0.2); color: #4ade80; border: 1px solid #22c55e; }
.badge-role.expired { background: rgba(239, 68, 68, 0.2); color: #fca5a5; border: 1px solid #ef4444; }
.badge-role.banned { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; border: 1px solid #94a3b8; }

.module-tag {
  background: rgba(59, 130, 246, 0.18);
  border: 1px solid rgba(96, 165, 250, 0.4);
  color: #93c5fd;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
}

/* Feature Lock Screen */
.feature-lock-overlay {
  position: absolute;
  inset: 0;
  background: rgba(8, 11, 18, 0.94);
  backdrop-filter: blur(8px);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-align: center;
  padding: 24px;
}

/* ==========================================================================
   MIDNIGHT SUITE - RACE, BOMB, LOYALTY & OBS STYLES
   ========================================================================== */

/* RACE GAME */
.race-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 18px 24px;
  gap: 16px;
  overflow-y: auto;
}

.race-stage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(15, 23, 42, 0.7);
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.25);
}

.race-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: rgba(10, 14, 23, 0.8);
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.race-tracks-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.race-lane-card {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.race-lane-card:hover {
  background: rgba(26, 38, 66, 0.9);
  border-color: rgba(245, 158, 11, 0.3);
}

.race-lane-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.race-racer-avatar {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.4);
  padding: 2px;
}

.race-supporters-preview {
  flex: 1;
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.race-track-strip {
  position: relative;
  height: 48px;
  background: linear-gradient(90deg, #1e293b 0%, #0f172a 100%);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
}

.race-finish-checker {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 24px;
  background-image: repeating-linear-gradient(45deg, #000 0, #000 6px, #fff 6px, #fff 12px);
  opacity: 0.7;
}

.race-runner-sprite {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: left 0.15s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 2;
}

.race-runner-sprite.nitro-active {
  animation: nitroPulse 0.4s infinite alternate;
}

@keyframes nitroPulse {
  0% { transform: translateY(-50%) scale(1); filter: drop-shadow(0 0 6px #ef4444); }
  100% { transform: translateY(-50%) scale(1.15); filter: drop-shadow(0 0 16px #f59e0b); }
}

.race-nitro-flame {
  background: linear-gradient(135deg, #ef4444, #f59e0b);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
}

/* BOMB GAME */
.bomb-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 18px 24px;
  gap: 16px;
  overflow-y: auto;
}

.bomb-stage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  background: rgba(15, 23, 42, 0.7);
  padding: 12px 20px;
  border-radius: 12px;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.bomb-stage-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  flex: 1;
}

@media (max-width: 900px) {
  .bomb-stage-body {
    grid-template-columns: 1fr;
  }
}

.bomb-arena-card {
  background: linear-gradient(180deg, rgba(26, 31, 46, 0.85) 0%, rgba(13, 16, 26, 0.95) 100%);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
}

.bomb-timer-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 4px solid #f59e0b;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.4);
  margin-bottom: 8px;
}

.pulse-danger {
  animation: pulseDanger 0.5s infinite alternate;
  border-color: #ef4444 !important;
  box-shadow: 0 0 40px rgba(239, 68, 68, 0.8) !important;
}

@keyframes pulseDanger {
  0% { transform: scale(1); }
  100% { transform: scale(1.08); }
}

.bomb-word-display {
  font-family: monospace;
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: 12px;
  color: #fff;
  text-shadow: 0 0 25px rgba(245, 158, 11, 0.6);
  word-break: break-all;
}

/* LOYALTY TAB */
.loyalty-layout {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 18px 24px;
  gap: 16px;
  overflow-y: auto;
}

.loyalty-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.loyalty-stat-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.loyalty-stat-val {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold-primary);
}

.loyalty-stat-lbl {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 700;
}

/* Accessibility: WCAG Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* FAZ 3: Advanced Form Accordion */
.advanced-accordion {
  background: rgba(13, 18, 29, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px 14px;
  margin: 10px 0;
  transition: all 0.25s ease;
}

.advanced-accordion summary {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold-light);
  cursor: pointer;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.advanced-accordion summary::-webkit-details-marker {
  display: none;
}

.advanced-accordion summary::after {
  content: '▾';
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.advanced-accordion[open] summary::after {
  transform: rotate(180deg);
}

.advanced-accordion-body {
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* FAZ 6: WCAG AA High-Contrast Gri Metin İyileştirmesi */
:root {
  --text-dim: #cbd5e1;
  --text-muted: #94a3b8;
}

/* Accessibility: Focus visible outline for keyboard navigation */
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible {
  outline: 2px solid var(--gold-light) !important;
  outline-offset: 2px !important;
}



