:root {
  color-scheme: dark;
  --bg: #080a13;
  --panel: rgba(18, 24, 43, 0.78);
  --text: #f8fafc;
  --muted: #9ca3af;
  --line: rgba(255, 255, 255, 0.1);
  --primary: #8b5cf6;
  --primary2: #06b6d4;
  --danger: #fb7185;
  --success: #34d399;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background: radial-gradient(circle at top, #16213f 0, #080a13 42%);
  color: var(--text);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.bg-orb {
  position: fixed;
  width: 380px;
  height: 380px;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
}

.orb-one {
  background: #7c3aed;
  top: 8%;
  left: -120px;
}

.orb-two {
  background: #0891b2;
  bottom: 5%;
  right: -120px;
}

.support-project-card {
  margin: 34px 0;
  padding: 34px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(88, 101, 242, 0.28), transparent 35%),
    linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.72));
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
}

.support-project-head {
  max-width: 760px;
}

.support-project-head h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.support-project-head p,
.support-actions p {
  color: #cbd5e1;
  line-height: 1.7;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.support-item {
  padding: 20px;
  border-radius: 22px;
  background: rgba(2, 6, 23, 0.42);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.support-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.support-item strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.support-item span {
  color: #94a3b8;
  line-height: 1.5;
}

.support-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.support-actions p {
  margin: 0;
}

@media (max-width: 800px) {
  .support-grid {
    grid-template-columns: 1fr;
  }
}

.global-support-banner {
  width: min(1180px, calc(100% - 28px));
  margin: 40px auto 24px;
  padding: 18px 22px;
  border-radius: 24px;
  background:
    linear-gradient(
      135deg,
      rgba(88, 101, 242, 0.16),
      rgba(124, 58, 237, 0.14)
    );
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: 0 18px 50px rgba(0,0,0,0.22);
}

.global-support-content {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  flex-wrap:wrap;
}

.global-support-content strong {
  display:block;
  font-size:1.1rem;
  margin-bottom:6px;
  color:#fff;
}

.global-support-content p {
  margin:0;
  color:#cbd5e1;
  line-height:1.6;
}

.support-kofi-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 18px;
  border-radius:16px;
  background:linear-gradient(
    135deg,
    #ff5f5f,
    #ff8a65
  );
  color:white !important;
  font-weight:800;
  text-decoration:none;
  box-shadow:0 12px 30px rgba(255,95,95,0.28);
  transition:0.2s ease;
}

.support-kofi-btn:hover {
  transform:translateY(-2px);
  filter:brightness(1.06);
}

.global-supporters {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto 24px;
  padding: 16px 20px;
  border-radius: 22px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.global-supporters strong {
  display: block;
  margin-bottom: 12px;
}

.supporter-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.supporter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 95, 95, 0.12);
  border: 1px solid rgba(255, 95, 95, 0.22);
}

.supporter-pill span {
  font-weight: 800;
}

.supporter-pill small {
  color: #cbd5e1;
}

.bootstrap-select .dropdown-toggle {
  background: rgba(2, 6, 23, 0.75) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: #fff !important;
  border-radius: 16px !important;
  padding: 14px 16px !important;
}

.bootstrap-select .dropdown-menu {
  background: #0f172a;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
}

.bootstrap-select .dropdown-item {
  color: #e2e8f0;
}

.bootstrap-select .dropdown-item:hover {
  background: rgba(124,58,237,0.18);
  color: #fff;
}

.bootstrap-select .bs-searchbox input {
  background: rgba(2,6,23,0.8);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
}

.slot-edit-form {
  display: grid;
  gap: 8px;
}

.editable-field {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 8px;
  align-items: center;
}

.editable-field label {
  margin: 0;
  font-size: 13px;
  color: #94a3b8;
}

.editable-field input[readonly] {
  opacity: 0.75;
}

.edit-field-btn,
.save-slot-btn {
  border: 1px solid rgba(103,232,249,0.25);
  background: rgba(6,182,212,0.12);
  color: #67e8f9;
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 800;
  cursor: pointer;
}

.save-slot-btn {
  width: fit-content;
}

.game-image-wrap {
  position: relative;
}

.game-status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  backdrop-filter: blur(10px);
}

.game-status-badge.active {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.18);
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.game-status-badge.dev {
  color: #fde68a;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.game-card-disabled {
  opacity: 0.72;
}

.game-card-disabled .game-image {
  filter: grayscale(0.55);
}

.notification-nav {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.notification-badge {
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: #ff4d4f;
  color: white;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

.notification-page {
  max-width: 980px;
  margin: 0 auto;
}

.notification-page-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.notification-page-header h1 {
  margin-bottom: 6px;
}

.notification-page-header p {
  margin: 0;
  opacity: 0.75;
}

.notification-count-pill {
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(124, 58, 237, 0.15);
  color: #c4b5fd;
  font-weight: 700;
  white-space: nowrap;
}

.notification-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.notification-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.notification-tabs a.active {
  background: rgba(124, 58, 237, 0.25);
  border-color: rgba(196, 181, 253, 0.35);
}

.notification-tabs span {
  font-size: 12px;
  opacity: 0.8;
}

.notification-list {
  display: grid;
  gap: 12px;
}

.notification-preview {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.notification-preview:hover {
  transform: translateY(-1px);
  border-color: rgba(196, 181, 253, 0.3);
}

.notification-preview.unread {
  background: rgba(124, 58, 237, 0.16);
  border-color: rgba(196, 181, 253, 0.35);
}

.notification-preview-main {
  display: flex;
  gap: 14px;
  min-width: 0;
}

.notification-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.notification-preview-content {
  min-width: 0;
}

.notification-preview-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.notification-preview-title-row strong {
  font-size: 16px;
}

.unread-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #a78bfa;
  flex-shrink: 0;
}

.notification-game {
  margin-top: 3px;
  font-size: 13px;
  color: #c4b5fd;
  font-weight: 700;
}

.notification-preview p {
  margin: 7px 0 0;
  opacity: 0.78;
  line-height: 1.4;
}

.notification-preview-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  opacity: 0.7;
  white-space: nowrap;
  font-size: 13px;
}

.empty-notifications {
  padding: 48px 20px;
  text-align: center;
  opacity: 0.8;
}

.empty-notifications > div {
  font-size: 42px;
  margin-bottom: 10px;
}

@media (max-width: 700px) {
  .notification-page-header,
  .notification-preview {
    flex-direction: column;
  }

  .notification-preview-meta {
    align-items: flex-start;
  }
}

.notification-preview-wrap {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: stretch;
}

.notification-delete-btn,
.notification-delete-read-btn {
  border: 0;
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(239, 68, 68, 0.14);
  color: #fecaca;
  font-weight: 700;
  cursor: pointer;
}

.notification-delete-btn:hover,
.notification-delete-read-btn:hover {
  background: rgba(239, 68, 68, 0.24);
}

@media (max-width: 700px) {
  .notification-preview-wrap {
    grid-template-columns: 1fr;
  }
}

.task-progress-card {
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(124, 58, 237, 0.16);
  border: 1px solid rgba(196, 181, 253, 0.35);
}

.task-progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.task-progress-bar {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
}

#taskProgressFill {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: #a78bfa;
  transition: width 0.35s ease;
}

#taskProgressMessage {
  margin: 10px 0 0;
  opacity: 0.8;
}

.dashboard-page {
  max-width: 1100px;
  margin: 0 auto;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 24px 0;
}

.stat-card,
.chart-card,
.dashboard-highlight,
.recent-failures {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-card span {
  display: block;
  opacity: 0.7;
  margin-bottom: 8px;
}

.stat-card strong {
  font-size: 30px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 22px 0;
}

.failure-list {
  display: grid;
  gap: 10px;
}

.failure-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 14px;
  background: rgba(239, 68, 68, 0.1);
}

.failure-row span,
.failure-row small {
  display: block;
  opacity: 0.72;
}

@media (max-width: 800px) {
  .dashboard-stats,
  .dashboard-grid,
  .failure-row {
    grid-template-columns: 1fr;
  }
}

/* BASE LAYOUT */

.grid.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

@media (max-width: 1050px) {
  .grid.cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .grid.cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .grid.cards {
    grid-template-columns: 1fr;
  }
}

.game-card {
  overflow: hidden;
  min-width: 0;
}

.game-image {
  height: 170px;
}

.site-shell {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.page-container,
.container {
  width: min(1100px, calc(100% - 40px));
  margin: 40px auto 56px;
}

.site-footer {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto 24px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.48);
  border: 1px solid rgba(148, 163, 184, 0.1);
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.site-footer a {
  color: #c4b5fd;
  font-weight: 700;
}

/* NAV */

.top-nav {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 1000;
  width: 250px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  padding: 18px;
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.16);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: #f8fafc;
  white-space: nowrap;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
  box-shadow: 0 10px 28px rgba(124, 58, 237, 0.35);
}

.nav-links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
}

.nav-links > a,
.nav-games-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 11px 13px;
  border-radius: 15px;
  color: #cbd5e1;
  font-weight: 800;
  font-size: 0.92rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid transparent;
  transition: 0.18s ease;
  cursor: pointer;
}

.nav-links > a:hover,
.nav-games-btn:hover {
  color: #fff;
  background: rgba(148, 163, 184, 0.12);
  border-color: rgba(148, 163, 184, 0.16);
  transform: translateX(-2px);
}

.pill {
  background: linear-gradient(135deg, #7c3aed, #4f46e5) !important;
  color: #fff !important;
  box-shadow: 0 10px 26px rgba(124, 58, 237, 0.28);
}

.discord-nav-btn {
  background: linear-gradient(135deg, #5865f2, #4752c4) !important;
  color: #fff !important;
  box-shadow: 0 10px 26px rgba(88, 101, 242, 0.25);
}

.mobile-nav-toggle {
  display: none;
  border: 0;
  border-radius: 14px;
  padding: 10px 12px;
  color: #fff;
  background: rgba(148, 163, 184, 0.12);
  font-weight: 800;
  cursor: pointer;
}

/* GAME DROPDOWN - JS CONTROLLED ONLY */

.nav-games-dropdown {
  position: relative;
  display: block;
}

.nav-games-menu {
  position: absolute;
  top: 0;
  right: calc(100% + 12px);
  width: 320px;
  max-height: 480px;
  overflow: hidden;
  display: none;
  padding: 12px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(18px);
  z-index: 2000;
}

.nav-games-dropdown.open .nav-games-menu {
  display: block;
}

#gameNavSearch {
  width: 100%;
  margin-bottom: 10px;
  padding: 12px 13px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(2, 6, 23, 0.7);
  color: #f8fafc;
  outline: none;
}

#gameNavList {
  max-height: 370px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
}

.game-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  color: #e2e8f0;
  transition: 0.18s ease;
}

.game-nav-item:hover {
  background: rgba(124, 58, 237, 0.18);
  color: #fff;
}

.game-nav-item img,
.game-nav-item span {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: rgba(124, 58, 237, 0.22);
  font-weight: 800;
  flex-shrink: 0;
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px 18px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  transition: 0.18s ease;
}

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

.btn.primary {
  border: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary2));
  box-shadow: 0 20px 55px rgba(124, 58, 237, 0.35);
}

.btn.ghost {
  background: transparent;
}

.btn.small {
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 0.9rem;
  background: #1b2235;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn.small:hover {
  background: #252f47;
  border-color: rgba(255, 255, 255, 0.16);
}

.btn.full {
  width: 100%;
  border: 0;
  margin-top: 8px;
}

/* FORMS */

label {
  color: #e5e7eb;
  font-weight: 700;
  display: block;
  margin-bottom: 10px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(2, 6, 23, 0.75);
  color: #fff;
  border-radius: 16px;
  padding: 15px 16px;
  font: inherit;
  outline: none;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.18);
}

select {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.95),
    rgba(30, 41, 59, 0.95)
  );
  color: #f8fafc;
}

select option {
  background: #111827;
  color: #f8fafc;
}

.input-row {
  display: flex;
  gap: 12px;
}

.uid-form button,
.search-form button {
  border: 0;
  cursor: pointer;
  border-radius: 16px;
  padding: 14px 22px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #06b6d4);
}

/* CARDS / PANELS */

.panel,
.game-card,
.glass-card {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  border-radius: 28px;
  box-shadow: 0 25px 75px rgba(0, 0, 0, 0.22);
}

.panel,
.glass-card {
  padding: 26px;
}

.panel h2 {
  margin-top: 0;
}

.glass-card {
  background: rgba(15, 23, 42, 0.86);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.card-body {
  padding: 24px;
}

.card-body h3 {
  font-size: 1.5rem;
  margin: 0 0 8px;
}

.game-card {
  overflow: hidden;
}

.game-image {
  height: 190px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #0b0f1a;
  border-bottom: 4px solid var(--accent);
}

/* HERO */

.hero {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.6fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 28px;
  padding: 28px 0 10px;
}

.hero h1,
.game-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.06em;
  margin: 8px 0 14px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #67e8f9;
  font-weight: 800;
  font-size: 0.78rem;
}

.muted,
.helper-text,
.section-help {
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  min-height: auto;
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.26), rgba(6, 182, 212, 0.1));
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.24);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-card h2 {
  font-size: 1.35rem;
  margin: 0;
  letter-spacing: 0.02em;
}

.hero-card p,
.hero-card span {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.hero-card hr {
  width: 100%;
  margin: 8px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.hero-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  margin-top: 4px;
  padding: 11px 15px;
  border-radius: 14px;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, #7c3aed, #06b6d4);
}

/* GAME PAGE */

.game-hero {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 48px;
  margin-bottom: 32px;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--accent) 40%, transparent), transparent 35%),
    linear-gradient(135deg, #111827, #020617);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
}

.hero-bg-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  right: -80px;
  top: -80px;
  background: var(--accent);
  opacity: 0.25;
  filter: blur(100px);
  border-radius: 999px;
}

.game-hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: 32px;
  align-items: center;
}

.game-badge,
.section-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.game-info h1 {
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.95;
  margin: 0 0 18px;
  color: #fff;
}

.game-description {
  max-width: 640px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.7;
}

.game-art-card {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
}

.game-art-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-placeholder {
  font-size: 96px;
  font-weight: 900;
  color: #fff;
}

.game-layout,
.game-clean-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.section-header h2 {
  color: #fff;
  margin: 0;
  font-size: 28px;
}

.status-pill {
  font-size: 12px;
  font-weight: 800;
  color: #67e8f9;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(103, 232, 249, 0.25);
  border-radius: 999px;
  padding: 7px 12px;
  white-space: nowrap;
}

.uid-toolbar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}

.uid-toolbar-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.uid-toolbar-row input,
.uid-toolbar-row select {
  flex: 1;
  min-width: 220px;
}

.bulk-box {
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.45);
}

/* UID CARDS */

.uid-slot-grid {
  display: grid;
  gap: 14px;
}

.uid-card-top-actions {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 2;
}

.group-select-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 6px 10px;

  border-radius: 999px;

  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);

  color: #e5e7eb;

  font-size: 0.78rem;
  font-weight: 700;

  white-space: nowrap;
}

.group-select-switch .form-check-input {
  margin: 0;
  box-shadow: none !important;
  outline: none !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  background-color: rgba(255,255,255,0.08) !important;
  cursor: pointer;
}

.group-select-switch .form-check-label {
  cursor: pointer;
  margin: 0;
}

.group-select-switch .form-check-input:focus {
  box-shadow: none !important;
  outline: none !important;
}

.group-select-switch .form-check-input:checked {
  background-color: #6d28d9 !important;
  border-color: #6d28d9 !important;
  box-shadow: none !important;
}

.group-select-switch .form-check-input::before {
  background-color: white !important;
}

.uid-slot {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.uid-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.uid-select {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #cbd5e1;
}

.uid-main {
  display: flex;
  gap: 14px;
  align-items: center;
  flex: 1;
  min-width: 0;
  padding-right: 150px;
}

.uid-avatar {
  grid-column: 2;

  width: 88px;
  height: 88px;

  min-width: 88px;
  min-height: 88px;

  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #2a2a2a;
  border-radius: 14px;
}

.uid-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.uid-avatar span {
  font-size: 30px;
  font-weight: 600;
  color: #fff;
}

.uid-info {
  flex: 1;
  min-width: 0;
}

.uid-info strong {
  color: #fff;
  font-size: 14px;
}

.uid-info p,
.uid-meta {
  color: #94a3b8;
  margin: 2px 0 0;
  font-size: 12px;
}

.uid-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.12);
  color: #67e8f9;
  border: 1px solid rgba(34, 211, 238, 0.35);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

.uid-actions {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  flex-shrink: 0;
  padding-top: 42px;
}

.delete-slot-btn {
  border: 1px solid rgba(248, 113, 113, 0.3);
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
  border-radius: 12px;
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.delete-slot-btn:hover {
  background: rgba(239, 68, 68, 0.22);
}

/* PROGRESS */

.redemption-progress {
  margin-top: 8px;
  max-width: 260px;
}

.redemption-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.redemption-progress-top strong {
  color: #fff;
}

.redemption-bar {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.redemption-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), #06b6d4);
}

.redemption-progress p {
  display: none;
}

/* EMPTY / PAGINATION */

.empty-slots {
  text-align: center;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  padding: 28px;
  color: #94a3b8;
}

.empty-slots strong {
  color: #fff;
  display: block;
  margin-top: 10px;
}

.empty-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 30px;
  font-weight: 900;
}

.pagination {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  color: #94a3b8;
}

.pagination a {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 9px 14px;
  font-weight: 800;
}

/* ADMIN */

.admin-page {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.admin-head div,
.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.admin-actions form {
  display: inline-flex;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 20px 0 35px;
}

.stat-card,
.stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 22px;
  text-align: center;
}

.stat span,
.stat-label {
  display: block;
  margin-top: 6px;
  opacity: 0.75;
  font-size: 0.95rem;
}

.stat strong,
.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.admin-grid .panel {
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* TABLES */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  vertical-align: top;
}

th {
  color: #cbd5e1;
}

/* ALERTS */

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

.alert {
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.82);
  color: #f8fafc;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
  animation: slideIn 0.4s ease;
}

.alert.success {
  border-color: rgba(34, 197, 94, 0.35);
  color: #bbf7d0;
}

.alert.error {
  border-color: rgba(239, 68, 68, 0.35);
  color: #fecdd3;
}

.alert.warning {
  border-color: rgba(245, 158, 11, 0.35);
}

.alert.processing {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  color: white;
  box-shadow: 0 8px 25px rgba(14, 165, 233, 0.35);
}

.spinner {
  width: 18px;
  height: 18px;
  display: inline-block;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

.alert-content {
  flex: 1;
  font-size: 0.95rem;
}

.warning-banner {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 0.5rem;
  background: rgba(255, 165, 0, 0.1);
  border: 1px solid rgba(255, 165, 0, 0.4);
  color: #f59e0b;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* MODALS */

.modal-content {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  color: #fff;
}

.modal-header,
.modal-footer {
  border-color: rgba(255, 255, 255, 0.08);
}

.modal-title {
  color: #fff;
  font-weight: 800;
}

.modal-body {
  color: #cbd5e1;
  line-height: 1.7;
}

.btn-close {
  filter: invert(1);
}

.modal-backdrop.show {
  opacity: 0.7;
}

/* ANIMATIONS */

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .page-container,
  .container,
  .site-footer,
  .global-support-banner,
  .global-supporters {
    width: min(1180px, calc(100% - 28px));
    margin-left: auto;
    margin-right: auto;
  }

  .top-nav {
    position: sticky;
    top: 12px;
    right: auto;
    width: min(1180px, calc(100% - 28px));
    margin: 14px auto 0;
  }
}

@media (max-width: 900px) {
  .game-hero {
    padding: 32px;
  }

  .game-hero-content,
  .game-layout,
  .game-clean-layout,
  .hero,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .game-art-card {
    max-width: 260px;
  }

  .input-row {
    flex-direction: column;
  }
}

@media (max-width: 860px) {
  .top-nav {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    padding: 12px 14px;
    border-radius: 22px;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-links {
    width: 100%;
    display: none;
    justify-content: flex-start;
    padding-top: 10px;
  }

  .top-nav.open .nav-links {
    display: flex;
  }

  .nav-games-dropdown {
    width: 100%;
    display: block;
  }

  .nav-games-btn {
    width: 100%;
    justify-content: space-between;
  }

  .nav-games-menu {
    position: static;
    width: 100%;
    max-height: 70vh;
    margin-top: 10px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-head,
  .admin-actions {
    align-items: flex-start;
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .uid-slot {
    flex-direction: column;
    align-items: stretch;
  }

  .uid-main {
    padding-right: 0;
  }

  .uid-card-top-actions {
    position: static;
    margin-bottom: 10px;
    align-self: flex-end;
  }
  
  .uid-actions {
    margin-left: 0;
    align-items: stretch;
  }

  .delete-slot-btn {
    width: 100%;
  }

  .hero h1,
  .game-hero h1 {
    font-size: clamp(2.3rem, 13vw, 4rem);
    line-height: 1;
    letter-spacing: -0.05em;
  }
}

/* CENTER ALL PAGE CONTENT */

.page-container,
.container,
.dashboard-page,
.notification-page {
  width: min(1100px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

/* HERO */

.hero,
.compact-hero,
.game-hero-content,
.game-layout,
.game-clean-layout,
.admin-grid,
.dashboard-grid {
  justify-content: center;
  align-items: start;
}

/* CARDS */

.grid.cards,
.stats-grid,
.dashboard-stats {
  justify-content: center;
}

/* GAME PAGE */

.game-art-card {
  margin-left: auto;
  margin-right: auto;
}

/* ADMIN */

.admin-page {
  align-items: center;
}

.admin-page > * {
  width: 100%;
}

/* MOBILE */

@media (max-width: 900px) {
  .page-container,
  .container {
    width: min(100%, calc(100% - 24px));
  }
}

.notification-detail-page {
  max-width: 900px;
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: #c4b5fd;
  font-weight: 700;
}

.notification-hero-card {
  padding: 32px;
  border-radius: 30px;
  background:
    linear-gradient(
      145deg,
      rgba(124, 58, 237, 0.22),
      rgba(6, 182, 212, 0.10)
    );

  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 25px 70px rgba(0,0,0,0.28);
  margin-bottom: 24px;
}

.notification-header {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
}

.notification-icon-large {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  font-size: 32px;

  background:
    linear-gradient(
      135deg,
      #7c3aed,
      #06b6d4
    );

  box-shadow:
    0 18px 40px rgba(124,58,237,0.35);
}

.notification-header h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1;
}

.notification-game-pill {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;

  background: rgba(124,58,237,0.16);
  border: 1px solid rgba(196,181,253,0.35);

  color: #c4b5fd;
  font-weight: 800;
}

.notification-message {
  padding: 22px;
  border-radius: 20px;

  background: rgba(255,255,255,0.05);

  color: #e2e8f0;
  line-height: 1.8;
  font-size: 1.05rem;
}

.notification-failure-card {
  padding: 26px;
  border-radius: 28px;

  background: rgba(239,68,68,0.08);

  border: 1px solid rgba(239,68,68,0.18);
}

.failure-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 18px;
}

.failure-header h2 {
  margin: 0;
}

.failure-header span {
  padding: 8px 14px;
  border-radius: 999px;

  background: rgba(239,68,68,0.14);
  color: #fecaca;

  font-weight: 800;
}

.notification-errors {
  display: grid;
  gap: 14px;
}

.notification-error-row {
  padding: 18px;
  border-radius: 18px;

  background: rgba(0,0,0,0.18);

  border: 1px solid rgba(255,255,255,0.06);
}

.error-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.server-pill {
  padding: 5px 10px;
  border-radius: 999px;

  background: rgba(245,158,11,0.14);
  color: #fde68a;

  font-size: 0.8rem;
  font-weight: 800;
}

.notification-error-row p {
  margin: 0;
  color: #cbd5e1;
}