body {
  background: radial-gradient(circle at top right, #0A192F 0%, #020C1B 100%);
  color: #E6F1FF;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
}

body::before {
  content: '';
  position: fixed;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(100, 255, 218, 0.03) 0%, transparent 60%);
  top: -50%;
  left: -50%;
  animation: rotateSky 60s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes rotateSky {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* =========================
   TOP NAVBAR (HEADER)
========================= */
.site-header {
  width: 100%;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 25, 47, 0.85);
  border-bottom: 1px solid rgba(100, 255, 218, 0.12);
  box-shadow: 0 4px 20px rgba(2, 12, 27, 0.6);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #64FFDA;
  text-shadow: 0 0 15px rgba(100, 255, 218, 0.4);
  transition: transform 0.2s ease;
}

.nav-brand:hover {
  transform: scale(1.02);
}

.nav-brand svg {
  width: 26px;
  height: 26px;
  stroke: #64FFDA;
  filter: drop-shadow(0 0 8px rgba(100, 255, 218, 0.6));
}

.nav-links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.nav-link {
  color: #CCD6F6;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s ease;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link:hover {
  color: #64FFDA;
  background: rgba(100, 255, 218, 0.08);
  border-color: rgba(100, 255, 218, 0.25);
}

.nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.6) 0%, rgba(59, 130, 246, 0.6) 100%);
  border-color: rgba(96, 165, 250, 0.5);
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.35);
}

/* =========================
   WRAPPER & PANELS
========================= */
.wrap {
  width: 100%;
  max-width: 550px;
  padding: 40px 20px 60px;
  position: relative;
  z-index: 10;
  margin: auto;
  transition: max-width 0.4s ease;
  box-sizing: border-box;
}

.wrap.wrap-wide {
  max-width: 1000px;
}

.wrap.wrap-selector {
  max-width: 1200px;
  width: 95%;
  padding: 20px 15px 40px;
}

#panel-select-game {
  padding: 28px 32px;
  border-radius: 20px;
}

.panel {
  background: rgba(17, 34, 64, 0.65);
  border: 1px solid rgba(100, 255, 218, 0.15);
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 20px 40px rgba(2, 12, 27, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-align: center;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
  overflow: hidden;
}

.hidden {
  display: none !important;
}

h1 {
  color: #64FFDA;
  margin-bottom: 25px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
  text-shadow: 0 0 20px rgba(100, 255, 218, 0.3);
}

h2 {
  color: #CCD6F6;
  margin-bottom: 20px;
  font-size: 22px;
  font-weight: 600;
}

input {
  width: calc(100% - 32px);
  padding: 16px;
  margin-bottom: 22px;
  background-color: rgba(10, 25, 47, 0.8);
  border: 2px solid rgba(100, 255, 218, 0.2);
  border-radius: 12px;
  color: #64FFDA;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  letter-spacing: 3px;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 5px rgba(2, 12, 27, 0.5);
  box-sizing: border-box;
}

input:focus {
  border-color: #64FFDA;
  box-shadow: 0 0 20px rgba(100, 255, 218, 0.25), inset 0 2px 5px rgba(2, 12, 27, 0.5);
}

input::placeholder {
  color: #495670;
  letter-spacing: normal;
  font-weight: 400;
}

/* Cloudflare Turnstile Widget */
.turnstile-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.turnstile-wrap iframe {
  border-radius: 10px !important;
}

button {
  background: linear-gradient(135deg, #1D4ED8 0%, #3B82F6 100%);
  color: white;
  border: none;
  padding: 15px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  width: 100%;
  margin-bottom: 12px;
  box-shadow: 0 4px 15px rgba(29, 78, 216, 0.4);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
  transform: skewX(-25deg);
  transition: all 0.5s ease;
}

button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6);
  background: linear-gradient(135deg, #2563EB 0%, #60A5FA 100%);
}

button:hover:not(:disabled)::after {
  left: 200%;
}

button:active:not(:disabled) {
  transform: translateY(1px);
}

button:disabled {
  background: #253347 !important;
  color: #8892B0 !important;
  border: 1px solid rgba(136, 146, 176, 0.2) !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  transform: none !important;
}

button:disabled::after {
  display: none;
}

button.muted {
  background: transparent;
  border: 1px solid rgba(136, 146, 176, 0.4);
  color: #8892B0;
  box-shadow: none;
}

button.muted:hover {
  background: rgba(136, 146, 176, 0.1);
  border-color: #CCD6F6;
  color: #E6F1FF;
}

.row {
  margin-top: 20px;
}

.hint {
  margin-top: 16px;
  color: #FF6B6B;
  font-size: 14px;
  font-weight: 500;
  padding: 12px 18px;
  background: rgba(255, 107, 107, 0.1);
  border-left: 4px solid #FF6B6B;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: none;
  animation: bounceIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: left;
}

.hint.show {
  display: block;
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.9) translateY(-10px);
  }
  50% {
    opacity: 1;
    transform: scale(1.02) translateY(5px);
  }
  100% {
    transform: scale(1) translateY(0);
  }
}

/* =========================
   2-PANEL (SPLIT) LAYOUT
========================= */
.split-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 30px;
  text-align: left;
  margin-top: 10px;
}

@media (max-width: 860px) {
  .split-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.panel-left, .panel-right {
  display: flex;
  flex-direction: column;
}

.game-hero {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.game-thumb-compact {
  width: 95px;
  height: 125px;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(100, 255, 218, 0.3);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
  background: rgba(10, 25, 47, 0.8);
}

.game-hero-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.game-title-text {
  font-size: 22px;
  font-weight: 700;
  color: #E6F1FF;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.game-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(100, 255, 218, 0.1);
  color: #64FFDA;
  border: 1px solid rgba(100, 255, 218, 0.3);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  width: fit-content;
}

/* =========================
   ACCOUNT LIST & ITEMS
========================= */
#accList {
  margin-bottom: 15px;
  text-align: left;
}

.acc-row {
  background-color: rgba(10, 25, 47, 0.7);
  border: 1px solid rgba(100, 255, 218, 0.12);
  border-radius: 14px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(2, 12, 27, 0.4);
  transition: all 0.3s ease;
}

.acc-row:hover {
  border-color: rgba(100, 255, 218, 0.3);
  box-shadow: 0 8px 25px rgba(2, 12, 27, 0.6);
}

.acc-head {
  background: linear-gradient(90deg, #112240 0%, #0A192F 100%);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  font-weight: 600;
  font-size: 15px;
  color: #64FFDA;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.acc-logo {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.acc-body {
  padding: 14px 16px;
}

.acc-item {
  margin-bottom: 10px;
  cursor: pointer;
  padding: 12px 16px;
  border-radius: 10px;
  background-color: rgba(17, 34, 64, 0.4);
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  overflow: hidden;
}

.acc-item:last-child {
  margin-bottom: 0;
}

.acc-item:hover {
  background-color: rgba(30, 58, 138, 0.25);
  border-color: rgba(59, 130, 246, 0.45);
  transform: translateX(3px);
}

.acc-item::after {
  content: "Kopyala";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 600;
  background: #3B82F6;
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  opacity: 0;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.4);
}

.acc-item:hover::after {
  opacity: 1;
  right: 18px;
}

.acc-item small {
  display: block;
  color: #8892B0;
  font-size: 11px;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.acc-item span {
  display: block;
  color: #E6F1FF;
  font-size: 15px;
  font-weight: 500;
  word-break: break-all;
}

/* =========================
   RIGHT PANEL: GUARD & NOTICE
========================= */
.guard-card {
  background: rgba(10, 25, 47, 0.8);
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 8px 25px rgba(2, 12, 27, 0.4);
  margin-bottom: 20px;
  position: relative;
}

.guard-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.guard-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #60A5FA;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guard-card-badge {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.15);
  color: #93C5FD;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.btn-guard-prominent {
  width: 100%;
  padding: 16px 20px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.5);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 12px;
}

.btn-guard-prominent:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(59, 130, 246, 0.7);
}

.btn-guard-prominent.disabled-guard {
  background: #1E293B !important;
  color: #94A3B8 !important;
  border: 1px solid rgba(148, 163, 184, 0.2) !important;
  box-shadow: none !important;
  cursor: not-allowed !important;
  transform: none !important;
}

.guard-notice-tag {
  font-size: 12px;
  color: #94A3B8;
  margin-top: 6px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.guard {
  margin-top: 14px;
  font-size: 38px;
  font-weight: 800;
  color: #60A5FA;
  letter-spacing: 8px;
  text-align: center;
  text-shadow: 0 0 25px rgba(59, 130, 246, 0.6), 0 0 10px rgba(59, 130, 246, 0.4);
  padding: 18px;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.25) 0%, rgba(15, 23, 42, 0.85) 100%);
  border-radius: 14px;
  border: 2px solid rgba(59, 130, 246, 0.4);
  display: none;
  animation: pulseBlue 1.5s infinite alternate;
  box-shadow: inset 0 0 20px rgba(59, 130, 246, 0.15);
  cursor: pointer;
  transition: all 0.2s ease;
}

.guard:hover {
  transform: scale(1.02);
  border-color: #60A5FA;
}

.guard.show {
  display: block;
}

.guard-subtext {
  font-size: 12px;
  color: #64FFDA;
  text-align: center;
  margin-top: 6px;
  display: none;
}

@keyframes pulseBlue {
  from {
    box-shadow: inset 0 0 10px rgba(59, 130, 246, 0.1), 0 0 10px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.3);
  }
  to {
    box-shadow: inset 0 0 20px rgba(59, 130, 246, 0.2), 0 0 30px rgba(59, 130, 246, 0.5);
    border-color: rgba(96, 165, 250, 0.8);
  }
}

/* =========================
   UYARI KUTUCUĞU (NOTICE BOX)
========================= */
.notice-box {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-left: 4px solid #F59E0B;
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 20px;
  color: #F3F4F6;
  font-size: 13.5px;
  line-height: 1.6;
  text-align: left;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.notice-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #FBBF24;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
}

.notice-title svg {
  width: 18px;
  height: 18px;
  stroke: #FBBF24;
  flex-shrink: 0;
}

.notice-box ul {
  margin: 0;
  padding-left: 18px;
}

.notice-box li {
  margin-bottom: 8px;
  color: #E2E8F0;
}

.notice-box li:last-child {
  margin-bottom: 0;
}

.notice-box .highlight {
  color: #FDE68A;
  font-weight: 700;
}

/* =========================
   GAME SELECTOR (NORMAL KEY)
========================= */
.game-selector-wrap {
  text-align: left;
}
.selector-header {
  text-align: center;
  margin-bottom: 18px;
}

.selector-header h2 {
  font-size: 24px;
  color: #64FFDA;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
  text-shadow: 0 0 20px rgba(100, 255, 218, 0.25);
}

.selector-header .subtitle {
  font-size: 14px;
  color: #8892B0;
  margin-bottom: 12px;
}

.selection-counter-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(100, 255, 218, 0.12);
  border: 1px solid rgba(100, 255, 218, 0.4);
  color: #64FFDA;
  padding: 6px 18px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 14px;
  box-shadow: 0 0 15px rgba(100, 255, 218, 0.15);
}

.selected-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
  min-height: 32px;
}

.selected-chip {
  background: rgba(59, 130, 246, 0.2);
  border: 1px solid rgba(96, 165, 250, 0.5);
  color: #E6F1FF;
  padding: 5px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.25s ease;
}

.selected-chip .chip-remove {
  color: #F87171;
  cursor: pointer;
  font-weight: 800;
  font-size: 15px;
  line-height: 1;
  transition: transform 0.2s, color 0.2s;
  padding: 0 2px;
}

.selected-chip .chip-remove:hover {
  color: #EF4444;
  transform: scale(1.3);
}

.selector-search-box-wrap {
  position: relative;
  max-width: 580px;
  margin: 0 auto 20px;
  width: 100%;
}

.selector-search-input {
  width: 100%;
  margin-bottom: 0;
  text-align: left;
  padding: 13px 18px 13px 48px;
  letter-spacing: normal;
  font-size: 14.5px;
  border-radius: 12px;
  background-color: rgba(10, 25, 47, 0.85);
  border: 1.5px solid rgba(100, 255, 218, 0.25);
  transition: all 0.3s ease;
}

.selector-search-input:focus {
  border-color: #64FFDA;
  box-shadow: 0 0 16px rgba(100, 255, 218, 0.25), inset 0 2px 5px rgba(2, 12, 27, 0.5);
}

.selector-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #64FFDA;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.selector-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
  max-height: 520px;
  overflow-y: auto;
  padding: 8px 6px;
  margin-bottom: 22px;
  border-radius: 12px;
  scrollbar-gutter: stable;
}

.selector-grid::-webkit-scrollbar {
  width: 8px;
}

.selector-grid::-webkit-scrollbar-track {
  background: rgba(10, 25, 47, 0.4);
  border-radius: 8px;
}

.selector-grid::-webkit-scrollbar-thumb {
  background: rgba(100, 255, 218, 0.3);
  border-radius: 8px;
}

.selector-grid::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 255, 218, 0.5);
}

.selector-card {
  background: rgba(10, 25, 47, 0.85);
  border: 1.5px solid rgba(100, 255, 218, 0.18);
  border-radius: 14px;
  padding: 9px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  user-select: none;
}

.selector-card:hover {
  border-color: #64FFDA;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(2, 12, 27, 0.8), 0 0 14px rgba(100, 255, 218, 0.2);
}

.selector-card.selected {
  border-color: #64FFDA;
  background: rgba(100, 255, 218, 0.12);
  box-shadow: 0 0 18px rgba(100, 255, 218, 0.4), inset 0 0 10px rgba(100, 255, 218, 0.08);
  transform: translateY(-2px);
}

.selector-card img {
  width: 100%;
  height: 175px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 8px;
  background: rgba(17, 34, 64, 0.6);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease;
}

.selector-card:hover img {
  transform: scale(1.03);
}

.selector-card .sel-name {
  font-size: 13px;
  font-weight: 600;
  color: #E6F1FF;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  margin-top: auto;
  padding: 2px 4px;
}

.selector-card .card-check-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #ffffff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6), 0 0 8px rgba(16, 185, 129, 0.6);
  z-index: 2;
  border: 1.5px solid #ffffff;
}

.selector-card.selected .card-check-badge {
  display: flex;
}

.selector-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  max-width: 550px;
  margin: 0 auto;
}

.selector-actions button {
  padding: 13px 24px;
  font-size: 14.5px;
  font-weight: 700;
}

#btnConfirmGame:not(:disabled) {
  background: linear-gradient(135deg, #059669 0%, #10B981 50%, #34D399 100%);
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.4);
}

@media (max-width: 900px) {
  .wrap.wrap-selector {
    max-width: 100%;
    padding: 16px 10px 30px;
  }
  #panel-select-game {
    padding: 20px 14px;
  }
  .selector-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    max-height: 460px;
  }
  .selector-card img {
    height: 150px;
  }
}

@media (max-width: 500px) {
  .selector-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .selector-card img {
    height: 130px;
  }
  .selector-actions {
    flex-direction: column;
  }
}

/* =========================
   GAME TABS (ÇOKLU OYUN)
========================= */
.game-tabs-container {
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(100, 255, 218, 0.15);
  padding-bottom: 16px;
  text-align: left;
}

.game-tabs-header {
  font-size: 12px;
  color: #8892B0;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.game-tabs-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.game-tabs-list::-webkit-scrollbar {
  height: 6px;
}

.game-tabs-list::-webkit-scrollbar-thumb {
  background: rgba(100, 255, 218, 0.25);
  border-radius: 10px;
}

.game-tab-btn {
  background: rgba(10, 25, 47, 0.8);
  border: 1px solid rgba(100, 255, 218, 0.2);
  color: #CCD6F6;
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  flex-shrink: 0;
  margin-bottom: 0;
  width: auto;
  box-shadow: none;
}

.game-tab-btn:hover {
  border-color: #64FFDA;
  color: #64FFDA;
  background: rgba(100, 255, 218, 0.08);
  transform: translateY(-2px);
}

.game-tab-btn.active {
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.8) 0%, rgba(59, 130, 246, 0.8) 100%);
  border-color: #60A5FA;
  color: #fff;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.game-tab-badge {
  font-size: 11px;
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 700;
}

.game-tab-btn.guard-done {
  border-color: rgba(16, 185, 129, 0.4);
}

.game-tab-btn .guard-status-dot {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #10B981;
}

/* =========================
   GAMES PAGE (games.php)
========================= */
.games-page-wrap {
  width: 100%;
  max-width: 1250px;
  padding: 40px 24px 80px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  box-sizing: border-box;
}

.games-header-area {
  text-align: center;
  margin-bottom: 35px;
}

.games-header-area h1 {
  font-size: 34px;
  margin-bottom: 10px;
}

.games-stats-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(100, 255, 218, 0.1);
  border: 1px solid rgba(100, 255, 218, 0.3);
  color: #64FFDA;
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

.games-search-bar {
  max-width: 550px;
  margin: 0 auto 35px;
  position: relative;
}

.games-search-bar input {
  margin-bottom: 0;
  text-align: left;
  padding-left: 45px;
  letter-spacing: normal;
  font-size: 16px;
}

.games-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #64FFDA;
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.games-main-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 24px;
}

@media (max-width: 600px) {
  .games-main-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
  }
}

.game-catalog-card {
  background: rgba(17, 34, 64, 0.65);
  border: 1px solid rgba(100, 255, 218, 0.15);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 10px 30px rgba(2, 12, 27, 0.5);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(10px);
}

.game-catalog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(100, 255, 218, 0.45);
  box-shadow: 0 15px 35px rgba(2, 12, 27, 0.8), 0 0 20px rgba(100, 255, 218, 0.2);
}

.catalog-img-wrap {
  width: 100%;
  height: 260px;
  overflow: hidden;
  position: relative;
  background: rgba(10, 25, 47, 0.8);
}

@media (max-width: 600px) {
  .catalog-img-wrap {
    height: 190px;
  }
}

.catalog-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.game-catalog-card:hover .catalog-img-wrap img {
  transform: scale(1.06);
}

.catalog-content {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.catalog-title {
  font-size: 15px;
  font-weight: 700;
  color: #E6F1FF;
  margin: 0 0 14px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.catalog-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.btn-catalog-action {
  flex: 1;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 0;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.btn-catalog-primary {
  background: linear-gradient(135deg, #1D4ED8 0%, #3B82F6 100%);
  color: #fff;
  border: none;
}

.btn-catalog-primary:hover {
  background: linear-gradient(135deg, #2563EB 0%, #60A5FA 100%);
  transform: translateY(-2px);
}

.btn-catalog-outline {
  background: transparent;
  color: #CCD6F6;
  border: 1px solid rgba(100, 255, 218, 0.3);
}

.btn-catalog-outline:hover {
  background: rgba(100, 255, 218, 0.1);
  color: #64FFDA;
  border-color: #64FFDA;
}

/* =========================
   HEADER ICON & SUBTITLES
========================= */
.header-icon {
  width: 65px;
  height: 65px;
  margin: 0 auto 20px;
  background: rgba(100, 255, 218, 0.1);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #64FFDA;
  box-shadow: 0 0 20px rgba(100, 255, 218, 0.2);
}

.key-icon {
  width: 32px;
  height: 32px;
}

.subtitle {
  color: #8892B0;
  font-size: 15px;
  margin-top: -15px;
  margin-bottom: 28px;
  line-height: 1.6;
  font-weight: 400;
}

/* Animated Light Orbs */
.light-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(90px);
  z-index: 1;
  opacity: 0.35;
  animation: floatOrb 10s infinite ease-in-out alternate;
  pointer-events: none;
}

.orb-1 {
  width: 350px;
  height: 350px;
  background: #1D4ED8;
  top: -100px;
  left: -100px;
  animation-duration: 12s;
}

.orb-2 {
  width: 450px;
  height: 450px;
  background: rgba(100, 255, 218, 0.4);
  bottom: -150px;
  right: -100px;
  animation-duration: 15s;
  animation-delay: -5s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: #8B5CF6;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-duration: 18s;
  animation-delay: -2s;
}

@keyframes floatOrb {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(40px, -60px, 0) scale(1.1);
  }
}

/* Toast Notification */
.toast-container {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 9999;
  pointer-events: none;
}

.toast {
  background: rgba(10, 25, 47, 0.9);
  border: 1px solid rgba(100, 255, 218, 0.5);
  color: #64FFDA;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: toastEnter 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  will-change: transform, opacity;
}

.toast.fade-out {
  animation: toastLeave 0.4s ease forwards;
}

@keyframes toastEnter {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toastLeave {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
}