/* ========================================
   Volks Vault â€“ Design System & Styles
   ======================================== */

/* ---------- CSS VARIABLES ---------- */
:root {
  --bg-dark: #120503;
  --bg-surface: #1e0805;
  --bg-card: #2c0c07;
  --bg-card-hover: #3d120a;
  --bg-input: #120503;
  --bg-modal: #2c0c07;
  --border-color: #4c1a11;
  --border-hover: #7c140a;

  --text-primary: #fff0e6;
  --text-secondary: #fba184;
  --text-muted: #b9705a;

  --accent-purple: #ee5d24; /* Mapped to primary orange */
  --accent-purple-glow: rgba(238, 93, 36, 0.35);
  --accent-blue: #ca1f13; /* Mapped to secondary red-orange */
  --accent-green: #34d399;
  --accent-orange: #ee5d24;
  --accent-red: #7c140a;
  --accent-yellow: #facc15;
  --accent-pink: #ca1f13;

  --gradient-primary: linear-gradient(135deg, #ee5d24, #ca1f13);
  --gradient-card: linear-gradient(145deg, #2c0c07 0%, #1e0805 100%);
  --gradient-glass: linear-gradient(135deg, rgba(238, 93, 36, 0.05) 0%, rgba(202, 31, 19, 0.01) 100%);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px var(--accent-purple-glow);

  --sidebar-width: 250px;
  --topbar-height: 70px;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- COLOR THEMES ---------- */
/* 1. Theme: Ocean */
body.theme-ocean {
  --bg-dark: #000c18;
  --bg-surface: #021626;
  --bg-card: #042139;
  --bg-card-hover: #073456;
  --bg-modal: #042139;
  --border-color: #0d4b79;
  --border-hover: #166ba8;
  --accent-purple: #06b6d4; /* primary: Cyan */
  --accent-purple-glow: rgba(6, 182, 212, 0.35);
  --accent-blue: #3b82f6; /* secondary: Blue */
  --gradient-primary: linear-gradient(135deg, #06b6d4, #3b82f6);
  --gradient-card: linear-gradient(145deg, #042139 0%, #021626 100%);
  --gradient-glass: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, rgba(59, 130, 246, 0.01) 100%);
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
}

/* 2. Theme: Forest */
body.theme-forest {
  --bg-dark: #02110c;
  --bg-surface: #041d14;
  --bg-card: #072b1d;
  --bg-card-hover: #0b402b;
  --bg-modal: #072b1d;
  --border-color: #125c3f;
  --border-hover: #1a8258;
  --accent-purple: #10b981; /* primary: Emerald */
  --accent-purple-glow: rgba(16, 185, 129, 0.35);
  --accent-blue: #84cc16; /* secondary: Lime */
  --gradient-primary: linear-gradient(135deg, #10b981, #84cc16);
  --gradient-card: linear-gradient(145deg, #072b1d 0%, #041d14 100%);
  --gradient-glass: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(132, 204, 22, 0.01) 100%);
  --text-secondary: #a7f3d0;
  --text-muted: #6ee7b7;
}

/* 3. Theme: Cyberpunk */
body.theme-cyberpunk {
  --bg-dark: #0b0213;
  --bg-surface: #140524;
  --bg-card: #1f0838;
  --bg-card-hover: #2e0d54;
  --bg-modal: #1f0838;
  --border-color: #581c87;
  --border-hover: #7e22ce;
  --accent-purple: #f472b6; /* primary: Pink */
  --accent-purple-glow: rgba(244, 114, 182, 0.45);
  --accent-blue: #22d3ee; /* secondary: Cyan */
  --gradient-primary: linear-gradient(135deg, #f472b6, #22d3ee);
  --gradient-card: linear-gradient(145deg, #1f0838 0%, #140524 100%);
  --gradient-glass: linear-gradient(135deg, rgba(244, 114, 182, 0.05) 0%, rgba(34, 211, 238, 0.01) 100%);
  --text-primary: #fdf4ff;
  --text-secondary: #e879f9;
  --text-muted: #c084fc;
}

/* 4. Theme: Midnight */
body.theme-midnight {
  --bg-dark: #000000;
  --bg-surface: #0a0a0a;
  --bg-card: #171717;
  --bg-card-hover: #262626;
  --bg-modal: #171717;
  --border-color: #404040;
  --border-hover: #525252;
  --accent-purple: #3b82f6; /* primary: Royal Blue */
  --accent-purple-glow: rgba(59, 130, 246, 0.35);
  --accent-blue: #60a5fa; /* secondary: Light Blue */
  --gradient-primary: linear-gradient(135deg, #3b82f6, #60a5fa);
  --gradient-card: linear-gradient(145deg, #171717 0%, #0a0a0a 100%);
  --gradient-glass: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(96, 165, 250, 0.01) 100%);
}

/* 5. Theme: Synthwave */
body.theme-synthwave {
  --bg-dark: #0f0518;
  --bg-surface: #190928;
  --bg-card: #2b1141;
  --bg-card-hover: #401961;
  --bg-modal: #2b1141;
  --border-color: #6b21a8;
  --border-hover: #9333ea;
  --accent-purple: #e879f9; /* primary: Fuchsia */
  --accent-purple-glow: rgba(232, 121, 249, 0.35);
  --accent-blue: #f97316; /* secondary: Neon Orange */
  --gradient-primary: linear-gradient(135deg, #e879f9, #f97316);
  --gradient-card: linear-gradient(145deg, #2b1141 0%, #190928 100%);
  --gradient-glass: linear-gradient(135deg, rgba(232, 121, 249, 0.05) 0%, rgba(249, 115, 22, 0.01) 100%);
}

/* 6. Theme: Crimson */
body.theme-crimson {
  --bg-dark: #0a0000;
  --bg-surface: #140000;
  --bg-card: #240000;
  --bg-card-hover: #3d0000;
  --bg-modal: #240000;
  --border-color: #5c0000;
  --border-hover: #850000;
  --accent-purple: #ef4444; /* primary: Red */
  --accent-purple-glow: rgba(239, 68, 68, 0.35);
  --accent-blue: #fca5a5; /* secondary: Light Red */
  --gradient-primary: linear-gradient(135deg, #ef4444, #fca5a5);
  --gradient-card: linear-gradient(145deg, #240000 0%, #140000 100%);
  --gradient-glass: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, rgba(252, 165, 165, 0.01) 100%);
}

/* 7. Theme: Solar */
body.theme-solar {
  --bg-dark: #120e03;
  --bg-surface: #1f1705;
  --bg-card: #332607;
  --bg-card-hover: #4a370a;
  --bg-modal: #332607;
  --border-color: #73550e;
  --border-hover: #a17713;
  --accent-purple: #eab308; /* primary: Yellow */
  --accent-purple-glow: rgba(234, 179, 8, 0.35);
  --accent-blue: #f97316; /* secondary: Orange */
  --gradient-primary: linear-gradient(135deg, #eab308, #f97316);
  --gradient-card: linear-gradient(145deg, #332607 0%, #1f1705 100%);
  --gradient-glass: linear-gradient(135deg, rgba(234, 179, 8, 0.05) 0%, rgba(249, 115, 22, 0.01) 100%);
  --text-secondary: #fcd34d;
}

/* 8. Theme: Toxic */
body.theme-toxic {
  --bg-dark: #050a05;
  --bg-surface: #0a140a;
  --bg-card: #0f1f0f;
  --bg-card-hover: #193319;
  --bg-modal: #0f1f0f;
  --border-color: #244724;
  --border-hover: #336633;
  --accent-purple: #84cc16; /* primary: Lime */
  --accent-purple-glow: rgba(132, 204, 22, 0.35);
  --accent-blue: #eab308; /* secondary: Yellow */
  --gradient-primary: linear-gradient(135deg, #84cc16, #eab308);
  --gradient-card: linear-gradient(145deg, #0f1f0f 0%, #0a140a 100%);
  --gradient-glass: linear-gradient(135deg, rgba(132, 204, 22, 0.05) 0%, rgba(234, 179, 8, 0.01) 100%);
}

/* 9. Theme: Amethyst */
body.theme-amethyst {
  --bg-dark: #0f0a1c;
  --bg-surface: #160e2c;
  --bg-card: #241645;
  --bg-card-hover: #362266;
  --bg-modal: #241645;
  --border-color: #5533a3;
  --border-hover: #724cbd;
  --accent-purple: #a855f7; /* primary: Purple */
  --accent-purple-glow: rgba(168, 85, 247, 0.35);
  --accent-blue: #d946ef; /* secondary: Fuchsia */
  --gradient-primary: linear-gradient(135deg, #a855f7, #d946ef);
  --gradient-card: linear-gradient(145deg, #241645 0%, #160e2c 100%);
  --gradient-glass: linear-gradient(135deg, rgba(168, 85, 247, 0.05) 0%, rgba(217, 70, 239, 0.01) 100%);
}

/* 10. Theme: Monochrome */
body.theme-monochrome {
  --bg-dark: #0f1115;
  --bg-surface: #181b21;
  --bg-card: #22262d;
  --bg-card-hover: #2f343d;
  --bg-modal: #22262d;
  --border-color: #444b56;
  --border-hover: #5e6774;
  --accent-purple: #cbd5e1; /* primary: Slate 300 */
  --accent-purple-glow: rgba(203, 213, 225, 0.25);
  --accent-blue: #f8fafc; /* secondary: Slate 50 */
  --gradient-primary: linear-gradient(135deg, #94a3b8, #f8fafc);
  --gradient-card: linear-gradient(145deg, #22262d 0%, #181b21 100%);
  --gradient-glass: linear-gradient(135deg, rgba(203, 213, 225, 0.05) 0%, rgba(248, 250, 252, 0.01) 100%);
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
}

/* ---------- RESET ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: linear-gradient(rgba(18, 5, 3, 0.75), rgba(18, 5, 3, 0.75)), url('character_with_gamepad.png') no-repeat center center fixed;
  background-size: cover;
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.app-wrapper {
  display: flex;
  min-height: 100vh;
}

a {
  color: var(--accent-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font-family: var(--font);
  cursor: pointer;
  border: none;
  background: none;
  color: var(--text-primary);
}

input,
select,
textarea {
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text-primary);
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

/* ---------- SIDEBAR ---------- */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform var(--transition);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 22px 20px;
  border-bottom: 1px solid var(--border-color);
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-purple);
  box-shadow: 0 0 12px var(--accent-purple-glow);
}

.logo-text {
  font-size: 1.3rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
  position: relative;
  width: 100%;
  text-align: left;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav-item.active {
  background: rgba(238, 93, 36, 0.15);
  color: var(--accent-purple);
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 24px;
  background: var(--accent-purple);
  border-radius: 0 3px 3px 0;
}

.nav-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-badge {
  margin-left: auto;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  color: var(--text-secondary);
}

.nav-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 8px 0;
}

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border-color);
}

.btn-add-game {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--gradient-primary);
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-add-game:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-add-game span {
  font-size: 1.2rem;
}

/* ---------- MAIN CONTENT ---------- */
.main-content {
  margin-left: var(--sidebar-width);
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- TOPBAR ---------- */
.topbar {
  height: var(--topbar-height);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  background: rgba(13, 17, 23, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hamburger {
  display: none;
  font-size: 1.4rem;
  padding: 4px;
  border-radius: var(--radius-sm);
}

.page-title {
  font-size: 1.3rem;
  font-weight: 700;
  white-space: nowrap;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  font-size: 0.9rem;
  pointer-events: none;
}

.search-input {
  width: 220px;
  padding: 8px 12px 8px 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  transition: border-color var(--transition), width var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--accent-purple);
  width: 280px;
}

.filter-wrap {
  display: flex;
  gap: 8px;
}

.filter-select {
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  cursor: pointer;
  transition: border-color var(--transition);
}

.filter-select:focus {
  outline: none;
  border-color: var(--accent-purple);
}

/* ---------- VIEWS ---------- */
.view {
  display: none;
  padding: 28px;
  flex: 1;
  animation: fadeUp 0.35s ease;
}

.view.active {
  display: block;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- GAMES GRID ---------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.game-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}

.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-purple);
  box-shadow: var(--shadow-glow);
}

.game-card-cover {
  width: 100%;
  height: 160px;
  object-fit: cover;
  background: linear-gradient(135deg, #1e2a3a 0%, #141c28 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--text-muted);
  position: relative;
}

.game-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.game-card-status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  backdrop-filter: blur(8px);
}

.status-playing {
  background: rgba(238, 93, 36, 0.2);
  color: var(--accent-orange);
  border: 1px solid rgba(238, 93, 36, 0.4);
}

.status-completed {
  background: rgba(52, 211, 153, 0.25);
  color: var(--accent-green);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.status-wishlist {
  background: rgba(250, 204, 21, 0.25);
  color: var(--accent-yellow);
  border: 1px solid rgba(250, 204, 21, 0.3);
}

.game-card-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.game-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.game-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.game-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.game-card-progress-bar {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
  margin-top: auto;
}

.game-card-progress-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
  background: var(--gradient-primary);
}

.steam-badge {
  margin-top: 10px;
  background: rgba(42, 71, 94, 0.4);
  border: 1px solid rgba(102, 192, 244, 0.2);
  color: #66c0f4;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  display: inline-block;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.steam-badge.loaded {
  opacity: 1;
  background: rgba(42, 71, 94, 0.8);
  border-color: rgba(102, 192, 244, 0.5);
  box-shadow: 0 0 10px rgba(102, 192, 244, 0.1);
}

.game-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px 14px;
}

.game-card-stars {
  color: var(--accent-yellow);
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.game-card-hours {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.game-card-actions {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  opacity: 0;
  transition: opacity var(--transition);
}

.game-card:hover .game-card-actions {
  opacity: 1;
}

.game-card-actions button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background var(--transition), transform var(--transition);
}

.game-card-actions button:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

/* ---------- EMPTY STATE ---------- */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  animation: fadeUp 0.5s ease;
}

.empty-icon {
  font-size: 4.5rem;
  margin-bottom: 16px;
  opacity: 0.5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.empty-state h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ---------- STATS ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition);
}

.stat-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-purple);
}

.stat-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-total .stat-value {
  color: var(--accent-purple);
}

.stat-playing .stat-value {
  color: var(--accent-blue);
}

.stat-completed .stat-value {
  color: var(--accent-green);
}

.stat-hours .stat-value {
  color: var(--accent-orange);
}

.stat-avg-rating .stat-value {
  color: var(--accent-yellow);
}

.stat-completion .stat-value {
  color: var(--accent-pink);
}

.stats-charts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.chart-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.chart-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 18px;
  color: var(--text-secondary);
}

.bar-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bar-label {
  width: 110px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  text-align: right;
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-track {
  flex: 1;
  height: 22px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.bar-fill {
  height: 100%;
  border-radius: 6px;
  min-width: 2px;
  transition: width 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8px;
  font-size: 0.72rem;
  font-weight: 600;
}

.bar-fill-playing {
  background: linear-gradient(90deg, rgba(202, 31, 19, 0.5), var(--accent-blue));
}

.bar-fill-completed {
  background: linear-gradient(90deg, rgba(52, 211, 153, 0.5), var(--accent-green));
}

.bar-fill-backlog {
  background: linear-gradient(90deg, rgba(251, 146, 60, 0.5), var(--accent-orange));
}

.bar-fill-dropped {
  background: linear-gradient(90deg, rgba(124, 20, 10, 0.5), var(--accent-red));
}

.bar-fill-wishlist {
  background: linear-gradient(90deg, rgba(250, 204, 21, 0.5), var(--accent-yellow));
}

.bar-fill-default {
  background: var(--gradient-primary);
}

.recent-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.recent-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
}

.recent-item-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.recent-item-date {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ---------- MODALS ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: modalFadeIn 0.25s ease;
}

.modal-overlay.open {
  display: flex;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.modal {
  background: var(--bg-modal);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: modalSlideUp 0.3s ease;
  overflow-y: auto;
  overflow-x: hidden;
}

.modal-lg {
  max-width: 750px;
}

.modal-sm {
  max-width: 420px;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  background: var(--bg-modal);
  z-index: 100;
}

.modal-header h2 {
  font-size: 1.15rem;
  font-weight: 700;
}

.modal-close {
  font-size: 1.5rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.08);
}

.modal-body {
  padding: 24px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
}

/* ---------- FORM ELEMENTS ---------- */
.form-row {
  display: flex;
  gap: 16px;
}

.form-row .form-group {
  flex: 1;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-input);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-purple);
}

.form-group textarea {
  resize: vertical;
}

.form-group select option {
  background: var(--bg-surface);
}

/* ---------- SEARCH DROPDOWN ---------- */
.search-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.search-results {
  margin-top: 8px;
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--accent-purple);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), var(--shadow-glow);
  z-index: 500;
  overflow: hidden;
  max-height: 450px;
  overflow-y: auto;
  animation: fadeUp 0.15s ease;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background var(--transition);
  border-bottom: 1px solid var(--border-color);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: rgba(238, 93, 36, 0.12);
}

.search-result-cover {
  width: 40px;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.search-result-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-info {
  flex: 1;
  min-width: 0;
}

.search-result-name {
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  background: rgba(238, 93, 36, 0.2);
  color: var(--accent-purple);
  border: 1px solid rgba(238, 93, 36, 0.35);
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

.search-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.search-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border-color);
  border-top-color: var(--accent-purple);
  border-radius: 50%;
  animation: search-spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes search-spin {
  to { transform: rotate(360deg); }
}

.search-no-results {
  padding: 14px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Star Rating */
.star-rating {
  display: flex;
  gap: 4px;
}

.star-rating .star {
  font-size: 1.6rem;
  color: var(--text-muted);
  transition: color var(--transition), transform var(--transition);
  padding: 0;
}

.star-rating .star:hover {
  transform: scale(1.2);
}

.star-rating .star.active {
  color: var(--accent-yellow);
}

/* ---------- BUTTONS ---------- */
.btn-primary {
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  font-size: 0.92rem;
  font-weight: 600;
  border: none;
  color: #fff;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-danger {
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  background: rgba(124, 20, 10, 0.2);
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid rgba(124, 20, 10, 0.4);
  color: var(--accent-red);
  cursor: pointer;
  transition: background var(--transition);
}

.btn-danger:hover {
  background: rgba(124, 20, 10, 0.35);
}

/* ---------- DETAIL VIEW ---------- */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.detail-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.detail-value {
  font-size: 0.95rem;
}

.detail-progress-wrap {
  margin-bottom: 20px;
}

.detail-progress-bar {
  width: 100%;
  height: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 5px;
  overflow: hidden;
  margin-top: 8px;
}

.detail-progress-fill {
  height: 100%;
  border-radius: 5px;
  background: var(--gradient-primary);
  transition: width 0.5s ease;
}

.detail-notes {
  background: rgba(255, 255, 255, 0.03);
  padding: 16px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: pre-wrap;
  margin-bottom: 24px;
}

/* Modal Steam Achievements Grid */
.detail-achievements-section {
  margin-top: 24px;
  margin-bottom: 24px;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 12px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 8px;
}

.achievements-grid::-webkit-scrollbar {
  width: 6px;
}

.achievements-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.achievements-grid::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.achievement-item {
  display: flex;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 10px;
  gap: 12px;
  align-items: center;
  transition: transform 0.2s;
}

.achievement-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
}

.achievement-item.locked {
  opacity: 0.5;
  filter: grayscale(100%);
}

.achievement-icon {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

.achievement-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.achievement-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.achievement-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.achievement-time {
  font-size: 0.75rem;
  color: var(--accent-blue);
  margin-top: 4px;
}

.detail-actions {
  display: flex;
  gap: 10px;
}

/* ---------- TOAST ---------- */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--bg-card);
  border: 1px solid var(--accent-purple);
  border-radius: var(--radius-md);
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-glow);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* ---------- COMPARE VIEW ---------- */
.compare-header {
  margin-bottom: 28px;
}

.compare-title {
  font-size: 1.5rem;
  font-weight: 800;
}

.compare-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-top: 4px;
}

.compare-leaderboard {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.player-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.player-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-purple);
  box-shadow: var(--shadow-glow);
}

.player-card.current-user {
  border-color: var(--accent-purple);
  background: linear-gradient(145deg, rgba(238, 93, 36, 0.08) 0%, #151c28 100%);
}

.player-rank {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 1.6rem;
}

.player-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.player-name .you-badge {
  background: var(--gradient-primary);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.player-joined {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.player-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.player-stat {
  text-align: center;
  padding: 8px 4px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
}

.player-stat-value {
  font-size: 1.2rem;
  font-weight: 700;
}

.player-stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-top: 2px;
}

.player-bar-wrap {
  margin-top: 12px;
}

.player-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.player-bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.player-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}

.compare-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.compare-table-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  overflow-x: auto;
}

.compare-table-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.compare-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
}

.compare-table td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.compare-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.compare-table .highlight {
  color: var(--accent-purple);
  font-weight: 600;
}

/* ---------- SETTINGS THEMES ---------- */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.theme-btn {
  padding: 10px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
}

.theme-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-purple);
  color: var(--text-primary);
}

.theme-btn.active {
  background: var(--accent-purple-glow);
  border-color: var(--accent-purple);
  color: var(--text-primary);
  box-shadow: 0 0 10px var(--accent-purple-glow);
}

/* ---------- AUTH SCREEN ---------- */
.auth-screen {
  position: fixed;
  inset: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 500;
  overflow: hidden;
}

.auth-screen.hidden {
  display: none;
}

.auth-container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  padding: 20px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.auth-logo-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-purple);
  box-shadow: 0 0 24px var(--accent-purple-glow);
  display: block;
  margin: 0 auto 12px;
  animation: floatAnim 3s ease-in-out infinite;
}

@keyframes floatAnim {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

.auth-logo-text {
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-tagline {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-top: 4px;
}

.auth-form {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg);
  animation: modalSlideUp 0.4s ease;
}

.auth-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
  text-align: center;
}

.auth-submit {
  width: 100%;
  padding: 12px;
  font-size: 1rem;
  margin-top: 4px;
}

.auth-switch {
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 18px;
}

.auth-switch a {
  color: var(--accent-purple);
  font-weight: 600;
}

.auth-error {
  color: var(--accent-red);
  font-size: 0.85rem;
  min-height: 20px;
  text-align: center;
  margin-bottom: 4px;
  font-weight: 500;
}

/* Animated background shapes */
.auth-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: var(--accent-purple);
  top: -100px;
  left: -100px;
  animation: shapeDrift 8s ease-in-out infinite;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: var(--accent-blue);
  bottom: -80px;
  right: -80px;
  animation: shapeDrift 10s ease-in-out infinite reverse;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: var(--accent-pink);
  top: 40%;
  right: 20%;
  animation: shapeDrift 12s ease-in-out infinite;
}

@keyframes shapeDrift {

  0%,
  100% {
    transform: translate(0, 0);
  }

  25% {
    transform: translate(30px, -20px);
  }

  50% {
    transform: translate(-20px, 30px);
  }

  75% {
    transform: translate(20px, 20px);
  }
}

/* ---------- USER CONTROLS ---------- */
.user-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.user-greeting {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.btn-logout {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  transition: background var(--transition), color var(--transition);
}

.btn-logout:hover {
  background: rgba(124, 20, 10, 0.15);
  color: var(--accent-red);
  border-color: rgba(124, 20, 10, 0.3);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .hamburger {
    display: block;
  }

  .main-content {
    margin-left: 0;
  }

  .filter-wrap {
    display: none;
  }

  .search-input {
    width: 160px;
  }

  .search-input:focus {
    width: 200px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .user-controls {
    gap: 8px;
  }

  .user-greeting {
    display: none;
  }
}

@media (max-width: 600px) {
  .games-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-charts {
    grid-template-columns: 1fr;
  }

  .topbar {
    padding: 0 16px;
  }

  .view {
    padding: 16px;
  }

  .auth-container {
    padding: 16px;
  }

  .auth-form {
    padding: 28px 20px;
  }
}

/* ---------- ADMIN PANEL ---------- */
.admin-header {
  margin-bottom: 28px;
}

.admin-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.admin-subtitle {
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.admin-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.admin-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition);
}

.admin-card:hover {
  border-color: var(--border-hover);
}

.admin-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}

.admin-card-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.admin-user-count {
  font-size: 0.82rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 12px;
  border-radius: 20px;
}

.admin-card-body {
  padding: 24px;
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--border-color);
  border-radius: 28px;
  transition: background var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  bottom: 3px;
  background: var(--text-primary);
  border-radius: 50%;
  transition: transform var(--transition);
}

.toggle-switch input:checked+.toggle-slider {
  background: var(--accent-purple);
}

.toggle-switch input:checked+.toggle-slider::before {
  transform: translateX(24px);
}

.toggle-switch input:focus+.toggle-slider {
  box-shadow: 0 0 0 3px var(--accent-purple-glow);
}

/* Toggle Row */
.admin-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.admin-toggle-label {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.admin-toggle-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 420px;
  line-height: 1.5;
}

/* Registration Status */
.admin-reg-status {
  margin-top: 16px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
}

.admin-reg-status.status-on {
  background: rgba(52, 211, 153, 0.12);
  color: var(--accent-green);
  border: 1px solid rgba(52, 211, 153, 0.2);
}

.admin-reg-status.status-off {
  background: rgba(124, 20, 10, 0.12);
  color: var(--accent-red);
  border: 1px solid rgba(124, 20, 10, 0.2);
}

/* ---------- SETTINGS ---------- */
.settings-header {
  margin-bottom: 24px;
}
.settings-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.settings-subtitle {
  color: var(--text-secondary);
}
.settings-content {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.settings-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.settings-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: #fff;
}
.settings-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 20px;
}
.settings-form .form-group {
  margin-bottom: 20px;
}

/* Admin Table */
.admin-table {
  width: 100%;
}

.admin-table td {
  vertical-align: middle;
}

/* Admin Badge */
.admin-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(238, 93, 36, 0.25), rgba(202, 31, 19, 0.25));
  color: var(--accent-purple);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 6px;
  letter-spacing: 0.5px;
  border: 1px solid rgba(238, 93, 36, 0.3);
  vertical-align: middle;
}

/* Small danger button */
.btn-sm {
  padding: 5px 14px;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
}

@media (max-width: 600px) {
  .admin-toggle-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .admin-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .admin-table {
    font-size: 0.8rem;
  }
}


/* ---------- SETTINGS MODAL & VIEWS ---------- */
.settings-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.settings-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.settings-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: var(--text-primary);
}
.settings-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 20px;
}

/* ---------- STEAM ACHIEVEMENTS BADGE ---------- */
.steam-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 4px 10px;
  background: rgba(42, 71, 94, 0.3);
  border: 1px solid rgba(102, 192, 244, 0.3);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: #66c0f4;
  font-weight: 600;
}
.steam-badge.loaded {
  background: rgba(42, 71, 94, 0.6);
  border-color: rgba(102, 192, 244, 0.6);
}
.detail-achievements-section {
  margin-top: 24px;
  padding: 16px;
  background: rgba(42, 71, 94, 0.15);
  border: 1px solid rgba(102, 192, 244, 0.2);
  border-radius: var(--radius-md);
  color: #c7d5e0;
}
.achievement-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.achievement-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.2);
  padding: 8px;
  border-radius: var(--radius-sm);
}
.achievement-icon {
  width: 48px;
  height: 48px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  object-fit: cover;
}
.achievement-info {
  flex: 1;
}
.achievement-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}
.achievement-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.achievement-item.locked {
  opacity: 0.4;
  filter: grayscale(100%);
}

/* Steam Sync Enhancements */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.ph-arrows-clockwise.spinning {
  animation: spin 1s linear infinite;
  display: inline-block;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--text-muted);
}

/* Wishlist Pricing Styles */
.game-card-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.game-card-price.on-sale {
  color: var(--accent-green);
}

.game-card-price .original-price {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 400;
}

.game-card-price .discount-badge {
  background: var(--accent-green);
  color: #000;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 800;
}






















