@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

@font-face {
  font-family: 'FightFont';
  src: url('/fonts/FIGHTT3_.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ─── CSS Variables ─────────────────────────────── */
:root {
  --bg: #080810;
  --bg-2: #0d0d1a;
  --bg-3: #12121f;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(124, 58, 237, 0.35);

  --primary: #ec4899;
  --primary-light: #f472b6;
  --primary-dim: rgba(236, 72, 153, 0.15);
  --accent: #f43f5e;
  --accent-dim: rgba(244, 63, 94, 0.15);

  --text: #fff0f6;
  --text-2: #c4b5fd;
  --text-3: #705878;

  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;

  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  --shadow: 0 4px 32px rgba(0, 0, 0, 0.5);
  --shadow-primary: 0 0 40px rgba(236, 72, 153, 0.25);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);

  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset & Base ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

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

img { max-width: 100%; display: block; }

/* ─── Animated Background (Cleaner) ──────────────── */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(236, 72, 153, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 72, 153, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
}

.bg-glow-1 {
  width: 500px; height: 500px;
  background: rgba(236, 72, 153, 0.06);
  top: -150px; left: -150px;
  animation: float1 15s ease-in-out infinite;
}

.bg-glow-2 {
  width: 400px; height: 400px;
  background: rgba(244, 63, 94, 0.05);
  bottom: -100px; right: -100px;
  animation: float2 18s ease-in-out infinite;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(60px, 40px); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-40px, -60px); }
}

/* ─── Layout ────────────────────────────────────── */
.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding-top: 28px;
  padding-bottom: 64px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─── Floating Glass Navbar ─────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 16, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0 24px;
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  transition: opacity var(--transition);
}

.navbar-brand:hover {
  opacity: 0.9;
}

.navbar-brand .brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(236, 72, 153, 0.35);
}

.brand-text {
  font-family: 'FightFont', 'Outfit', sans-serif;
  font-size: 22px;
  background: linear-gradient(135deg, #ffffff 30%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
  display: inline-block;
  line-height: 1.2;
  padding: 4px 6px 4px 0;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ─── Unified User Hamburger Pill Button ────────── */
.user-hamburger-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  color: var(--text);
  cursor: pointer;
  transition: all var(--transition);
}

.user-hamburger-btn:hover {
  background: rgba(236, 72, 153, 0.15);
  border-color: rgba(236, 72, 153, 0.35);
  color: #fff;
}

.user-avatar-sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: #fff;
  flex-shrink: 0;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4px;
  border-radius: 50px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 50px;
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 500;
  transition: all var(--transition);
}

.nav-link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.25), rgba(139, 92, 246, 0.25));
  border: 1px solid rgba(236, 72, 153, 0.3);
  font-weight: 600;
}

/* ─── Hamburger Button ──────────────────────────── */
.hamburger-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.hamburger-btn:hover {
  background: rgba(236, 72, 153, 0.15);
  border-color: rgba(236, 72, 153, 0.35);
  color: #fff;
  transform: scale(1.05);
}

/* ─── Slide-Over Drawer Navigation ───────────────── */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: rgba(12, 12, 24, 0.95);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.6);
}

.nav-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.drawer-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition);
}

.drawer-close:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
  transform: rotate(90deg);
}

.drawer-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.drawer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: #fff;
  box-shadow: 0 4px 16px rgba(236, 72, 153, 0.35);
  flex-shrink: 0;
}

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

.drawer-user-name {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-user-role {
  font-size: 12px;
  color: var(--primary-light);
  font-weight: 500;
  margin-top: 2px;
}

.drawer-links {
  padding: 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  overflow-y: auto;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--text-2);
  font-size: 14.5px;
  font-weight: 500;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition);
}

.drawer-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(4px);
}

.drawer-link.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(139, 92, 246, 0.2));
  border: 1px solid rgba(236, 72, 153, 0.3);
  font-weight: 600;
}

.drawer-footer {
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.drawer-logout {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.drawer-logout:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #fff;
  transform: none;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 4px 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50px;
  transition: all var(--transition);
}

.user-pill:hover {
  border-color: rgba(236, 72, 153, 0.3);
  background: rgba(255, 255, 255, 0.06);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: #fff;
  box-shadow: 0 2px 10px rgba(236, 72, 153, 0.3);
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  padding-right: 4px;
}

.logout-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-2);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.logout-btn:hover {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #ef4444;
}

/* ─── Buttons ───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  outline: none;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #6d28d9);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(124, 58, 237, 0.5);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), #0891b2);
  color: #fff;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3);
}

.btn-accent:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(6, 182, 212, 0.45);
}

.btn-warning {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.35);
  border: none;
}

.btn-warning:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(245, 158, 11, 0.5);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text-2);
  border: 1px solid var(--border);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--surface-hover);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.btn-danger:hover:not(:disabled) {
  background: rgba(239, 68, 68, 0.25);
}

.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--radius); }
.btn-block { width: 100%; }

.btn-loading .btn-text { opacity: 0; }
.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* ─── Cards ─────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  transition: all var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-card);
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.card-body { padding: 24px; }

.card-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* Game Card */
.game-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-3);
  border: 1px solid var(--border);
  transition: all var(--transition-slow);
  cursor: pointer;
}

.game-card-edit-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(12, 12, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.game-card-edit-btn:hover {
  background: rgba(236, 72, 153, 0.25);
  border-color: rgba(236, 72, 153, 0.5);
  color: #fff;
  transform: scale(1.1);
}

.game-card-desc-full {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
  white-space: pre-line;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(124, 58, 237, 0.2);
}

.game-card-cover {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: linear-gradient(135deg, #1a1a2e 0%, #12121f 100%);
}

.game-card-cover-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a1a2e 0%, #12121f 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.game-card-body {
  padding: 16px;
}

.game-card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  border: 2px solid var(--border);
  background: var(--bg-2);
  overflow: hidden;
  flex-shrink: 0;
}

.game-card-icon-placeholder {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-dim), var(--accent-dim));
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.game-card-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.game-card-name {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.game-card-nominator {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 2px;
}

.game-card-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 8px;
}

.vote-bar {
  margin-top: 12px;
  background: var(--surface);
  border-radius: 4px;
  height: 4px;
  overflow: hidden;
}

.vote-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px;
  transition: width 0.6s ease;
}

.vote-count {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 6px;
}

/* ─── Forms ─────────────────────────────────────── */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  transition: all var(--transition);
  outline: none;
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--text-3);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--primary);
  background: rgba(124, 58, 237, 0.06);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-hint {
  margin-top: 6px;
  font-size: 12px;
  color: var(--text-3);
  font-style: italic;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%23606080' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 36px;
}

.form-hint {
  font-size: 12px;
  color: var(--text-3);
  margin-top: 6px;
}

/* File Upload */
.upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 28px 20px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  background: rgba(255, 255, 255, 0.02);
}

.upload-area:hover, .upload-area.drag-over {
  border-color: var(--primary-light);
  background: rgba(236, 72, 153, 0.08);
}

.upload-area input[type="file"] { display: none; }

.upload-icon { font-size: 32px; margin-bottom: 12px; }
.upload-label { font-size: 14px; color: var(--text-2); }
.upload-hint { font-size: 12px; color: var(--text-3); margin-top: 4px; }

.upload-preview {
  width: 100%;
  border-radius: var(--radius-sm);
  object-fit: cover;
  margin-top: 12px;
}

/* ─── Login Page ────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-box {
  width: 100%;
  max-width: 420px;
  background: rgba(13, 13, 26, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(24px);
  padding: 48px 40px;
  box-shadow: var(--shadow), 0 0 80px rgba(124, 58, 237, 0.1);
  animation: fadeInUp 0.5s ease forwards;
}

.login-logo {
  text-align: center;
  margin-bottom: 40px;
}

.login-logo-icon {
  width: 72px; height: 72px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 20px;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  margin: 0 auto 16px;
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.4);
  animation: pulse-glow 3s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 8px 32px rgba(124, 58, 237, 0.4); }
  50% { box-shadow: 0 8px 48px rgba(124, 58, 237, 0.7), 0 0 80px rgba(6, 182, 212, 0.3); }
}

.login-logo h1 {
  font-family: 'FightFont', 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: 1px;
}

.login-logo p {
  font-size: 14px;
  color: var(--text-3);
}

.login-step { display: none; }
.login-step.active { display: block; animation: fadeInUp 0.3s ease forwards; }

.otp-inputs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 24px 0;
}

.otp-input {
  width: 52px !important;
  height: 60px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  border-radius: var(--radius-sm);
  padding: 0 !important;
}

.back-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 20px;
  cursor: pointer;
  transition: color var(--transition);
}

.back-link:hover { color: var(--text-2); }

/* ─── Hero Card (Active Session) ───────────────── */
.hero-card {
  position: relative;
  background: linear-gradient(135deg, rgba(20, 20, 38, 0.75) 0%, rgba(12, 12, 24, 0.85) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 32px;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  overflow: hidden;
  transition: all var(--transition-slow);
  margin-bottom: 32px;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #ec4899, #8b5cf6, #3b82f6);
  opacity: 0.8;
}

.hero-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Inter', sans-serif;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 10px currentColor;
  animation: pulse-ring 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}

.hero-badge.nominating {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c4b5fd;
}

.hero-badge.voting_game {
  background: rgba(236, 72, 153, 0.15);
  border: 1px solid rgba(236, 72, 153, 0.3);
  color: #f472b6;
}

.hero-badge.voting_schedule {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.hero-badge.done {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.countdown-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.countdown-label-text {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-3);
  font-weight: 600;
}

.countdown {
  display: flex;
  align-items: center;
  gap: 6px;
}

.countdown-item {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.countdown-value {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.countdown-label {
  font-size: 10px;
  color: var(--text-3);
  text-transform: lowercase;
}

.countdown-sep {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-3);
}

.hero-title {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}

.hero-subtitle {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.5;
}

/* Visual Winner Game Card in Hero */
.hero-winning-game-card {
  margin-top: 24px;
}

.winning-game-banner {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: flex-end;
  padding: 20px 24px;
}

.winning-game-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.winning-game-cover-placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1e1e38 0%, #0d0d1a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
}

.winning-game-banner:hover .winning-game-cover {
  transform: scale(1.04);
}

.winning-game-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 10, 20, 0.95) 0%, rgba(10, 10, 20, 0.4) 50%, rgba(10, 10, 20, 0.1) 100%);
  z-index: 1;
}

.winning-game-badge {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(236, 72, 153, 0.4);
  line-height: 1;
}

.winning-game-badge svg {
  display: block;
  flex-shrink: 0;
}

.winning-game-info {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
}

.winning-game-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  flex-shrink: 0;
}

.winning-game-icon-placeholder {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.winning-game-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #f472b6;
  margin-bottom: 2px;
}

.winning-game-title {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

/* Mini Cards for Nominations in Dashboard */
.hero-nominations-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nominations-section-header {
  margin-bottom: 14px;
}

.nominations-section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.mini-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.mini-game-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 8px 10px;
  overflow: hidden;
  transition: all var(--transition);
}

.mini-game-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(236, 72, 153, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.mini-game-media {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.3);
}

.mini-game-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mini-game-cover-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(139, 92, 246, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
}

.mini-game-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

.mini-game-icon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.mini-game-details {
  flex: 1;
  min-width: 0;
}

.mini-game-title {
  font-family: 'Outfit', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.mini-game-nominator {
  display: block;
  font-size: 11px;
  color: var(--text-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.empty-nominations-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: var(--text-3);
  font-size: 13px;
}

.empty-nominations-notice svg {
  flex-shrink: 0;
  color: var(--text-2);
}

/* ─── Star Ratings Component ────────────────────────── */
.game-rating-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.stars-display {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.star-icon-wrap {
  position: relative;
  font-size: 16px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.2);
}

.star-icon-wrap .star-bg {
  color: rgba(255, 255, 255, 0.2);
}

.star-icon-wrap .star-fg {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  color: #f59e0b;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
  white-space: nowrap;
}

.rating-score {
  font-size: 13px;
  font-weight: 700;
  color: #fbbf24;
}

.rating-count {
  font-size: 12px;
  color: var(--text-3);
}

.rate-game-bar {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  user-select: none;
}

.rate-game-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Star Slider Widget */
.star-slider-widget {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  touch-action: none;
}

.star-slider-track {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  position: relative;
  cursor: pointer;
}

.slider-star {
  position: relative;
  font-size: 22px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.2);
  transition: transform 0.15s ease;
  pointer-events: none;
}

.slider-star .star-fg {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  color: #f59e0b;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.6);
  white-space: nowrap;
  pointer-events: none;
}

.star-slider-value {
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #fbbf24;
  min-width: 32px;
}

.hero-card-footer {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.btn-glow {
  position: relative;
  background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
  color: #fff;
  border-radius: 14px;
  padding: 12px 26px;
  font-weight: 700;
  box-shadow: 0 4px 24px rgba(236, 72, 153, 0.35);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(236, 72, 153, 0.5);
}

.btn-glow svg {
  transition: transform var(--transition);
}

.btn-glow:hover svg {
  transform: translateX(4px);
}

/* ─── Past Sessions Cards ─────────────────────── */
.sessions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.past-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 18px 20px;
  cursor: pointer;
  transition: all var(--transition);
}

.past-card:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.past-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(236, 72, 153, 0.1);
  border: 1px solid rgba(236, 72, 153, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.past-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.past-card-meta {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 2px;
}

.past-date {
  color: var(--text-3);
  font-size: 12px;
}

.past-card-arrow {
  color: var(--text-3);
  transition: transform var(--transition), color var(--transition);
}

.past-card:hover .past-card-arrow {
  color: var(--primary-light);
  transform: translateX(3px);
}

/* Empty States */
.empty-hero {
  text-align: center;
  padding: 48px 24px;
}

.empty-icon-glow {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: rgba(236, 72, 153, 0.08);
  border: 1px solid rgba(236, 72, 153, 0.2);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.empty-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
}

.empty-desc {
  font-size: 14px;
  color: var(--text-3);
  max-width: 480px;
  margin: 0 auto;
}

.empty-state-past {
  padding: 32px 0;
  text-align: center;
  color: var(--text-3);
  font-size: 14px;
}

.session-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
  cursor: pointer;
}

.session-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.session-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.session-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 16px;
}

/* ─── Winner Card ───────────────────────────────── */
.winner-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(124, 58, 237, 0.4);
  box-shadow: 0 0 60px rgba(124, 58, 237, 0.2);
}

.winner-card-cover {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

.winner-card-cover-placeholder {
  width: 100%;
  height: 280px;
  background: linear-gradient(135deg, #1a1a35 0%, #0d0d1a 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 80px;
}

.winner-card-body {
  padding: 32px;
  background: linear-gradient(to bottom, rgba(8,8,16,0.6), var(--bg));
}

.winner-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 8px;
}

.winner-title {
  font-family: 'Outfit', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
}

.winner-datetime {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: #ffffff;
  margin-top: 12px;
}

.winner-datetime svg {
  color: #ffffff;
  flex-shrink: 0;
}

/* ─── Schedule Options ──────────────────────────── */
.schedule-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  margin-bottom: 10px;
  cursor: pointer;
}

.schedule-option:hover {
  background: var(--surface-hover);
}

.schedule-option.voted {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.06);
}

.schedule-option-datetime {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.schedule-option-votes {
  font-size: 13px;
  color: var(--text-3);
  margin-top: 2px;
}

/* ─── Table ─────────────────────────────────────── */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead {
  background: var(--surface);
}

th {
  padding: 12px 16px;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-3);
  border-bottom: 1px solid var(--border);
}

td {
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
}

tbody tr:last-child td { border-bottom: none; }

tbody tr {
  transition: background var(--transition);
}

tbody tr:hover { background: var(--surface); }

/* ─── Badges ────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-admin {
  background: rgba(124, 58, 237, 0.15);
  color: var(--primary-light);
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.badge-member {
  background: var(--surface);
  color: var(--text-3);
  border: 1px solid var(--border);
}

/* ─── Floating Glass Toasts ──────────────────────── */
.toast-container {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  width: auto;
  max-width: 90vw;
}

.toast {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 12px;
  background: rgba(18, 18, 32, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50px;
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(236, 72, 153, 0.12);
  animation: toastSpringIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  white-space: nowrap;
}

.toast-hiding {
  animation: toastFadeOut 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards !important;
}

.toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast-icon.success {
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.toast-icon.error {
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
}

.toast-icon.info {
  background: rgba(236, 72, 153, 0.18);
  border: 1px solid rgba(236, 72, 153, 0.35);
  color: #f472b6;
}

.toast-text {
  font-family: 'Inter', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
}

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

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

/* ─── Modal ─────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.open {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.modal {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  animation: fadeInUp 0.3s ease;
}

.modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.modal-close {
  width: 32px; height: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-3);
  font-size: 18px;
  transition: all var(--transition);
}

.modal-close:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.modal-body { padding: 28px; }

.modal-footer {
  padding: 20px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

/* ─── Empty State ───────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 64px 24px;
}

.empty-icon { font-size: 56px; margin-bottom: 20px; opacity: 0.5; }
.empty-title {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.empty-desc { font-size: 14px; color: var(--text-3); }

/* ─── Section Headers ───────────────────────────── */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}

.section-title {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.section-subtitle {
  font-size: 14px;
  color: var(--text-3);
  margin-top: 4px;
}

/* ─── Divider ───────────────────────────────────── */
.divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

/* ─── Loading Spinner ───────────────────────────── */
.spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 40px auto;
}

/* ─── Utilities ─────────────────────────────────── */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-3); }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary-light); }
.text-success { color: var(--success); }
.text-error { color: var(--error); }

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }

.hidden { display: none !important; }

/* ─── Animations ────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn 0.4s ease forwards; }
.fade-in-up { animation: fadeInUp 0.4s ease forwards; }

/* ─── Page Header ───────────────────────────────── */
.page-header {
  padding: 40px 0 32px;
}

.page-title {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 15px;
  color: var(--text-3);
}

/* ─── Mobile First & Responsive Design ───────────── */
@media (max-width: 768px) {
  .navbar {
    padding: 0 12px;
  }

  .navbar-inner {
    height: 60px;
  }

  .navbar-brand {
    font-size: 17px;
    gap: 8px;
  }

  .navbar-brand .brand-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
    border-radius: 10px;
  }

  .brand-text {
    font-size: 16px;
  }

  .navbar-nav {
    display: flex; /* Mantém links visíveis no mobile */
    padding: 3px;
    gap: 2px;
  }

  .nav-link {
    padding: 6px 12px;
    font-size: 12px;
  }

  .nav-link svg {
    width: 13px;
    height: 13px;
  }

  .user-pill {
    padding: 3px 5px;
    gap: 6px;
  }

  .user-avatar {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }

  .user-name {
    display: none; /* Oculta o nome de texto em telas pequenas para não quebrar a barra */
  }

  .logout-btn {
    width: 26px;
    height: 26px;
  }

  .container {
    padding: 0 16px !important;
  }

  /* Hero Card Mobile */
  .hero-card {
    padding: 20px;
    border-radius: 18px;
    margin-bottom: 24px;
  }

  .hero-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .hero-title {
    font-size: 22px;
  }

  .hero-subtitle {
    font-size: 13.5px;
  }

  .countdown-bar {
    width: 100%;
    justify-content: space-between;
    padding: 6px 12px;
  }

  .countdown-value {
    font-size: 16px;
  }

  .hero-card-footer {
    width: 100%;
    margin-top: 20px;
  }

  .btn-glow {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 15px;
  }

  /* Past Cards Mobile */
  .sessions-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .past-card {
    padding: 14px 16px;
  }

  .past-card-title {
    font-size: 15px;
  }

  /* Winner Card Mobile */
  .winner-card-cover, .winner-card-cover-placeholder {
    height: 180px;
  }

  .winner-card-body {
    padding: 20px 16px;
  }

  .winner-title {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .winner-datetime {
    font-size: 13px;
    padding: 8px 14px;
    width: 100%;
    justify-content: center;
  }

  /* Game Cards Mobile Grid */
  .game-card-body {
    padding: 14px;
  }

  /* Schedule Options Mobile */
  .schedule-option {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
  }

  .schedule-option > div:last-child {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* Modals Mobile (Bottom sheet style) */
  .modal-overlay {
    padding: 12px;
    align-items: flex-end;
  }

  .modal {
    max-height: 85vh;
    border-radius: 20px 20px 0 0;
    animation: fadeInUp 0.3s ease;
  }

  .modal-header, .modal-body, .modal-footer {
    padding: 18px 20px;
  }

  .modal-footer {
    flex-direction: row;
    gap: 8px;
  }

  .modal-footer .btn {
    flex: 1;
  }

  /* Toast Mobile */
  .toast-container {
    left: 16px;
    right: 16px;
    bottom: 16px;
    transform: none;
  }

  .toast {
    min-width: 0;
    width: 100%;
  }

  /* Login Mobile */
  .login-box {
    padding: 28px 20px;
  }

  /* Section Headers & Admin Controls Mobile */
  .admin-control-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .admin-control-header .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
  }

  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .btn-lg-mobile {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 15px;
  }
}

.admin-control-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 400px) {
  .brand-text {
    display: none;
  }
}

/* ─── Autocomplete Dropdown ────────────────────── */
.autocomplete-wrapper {
  position: relative;
  width: 100%;
}

.autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 2000;
  background: rgba(18, 18, 32, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  backdrop-filter: blur(24px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.8);
  max-height: 190px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.autocomplete-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover, .autocomplete-item.selected {
  background: rgba(236, 72, 153, 0.18);
}

.autocomplete-thumb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-2);
}

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

.autocomplete-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.autocomplete-user {
  font-size: 11.5px;
  color: var(--text-2);
}

.backlog-card-delete-btn {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(12, 12, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  color: var(--error);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.backlog-card-delete-btn:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fff;
  transform: scale(1.1);
}

/* ─── Compact Game Card (para jogos indicados após término) ──────── */
.compact-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media (min-width: 640px) {
  .compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
  }
}

.compact-game-card {
  padding: 12px 14px;
}

.compact-card-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.compact-card-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: var(--bg-2);
}

.compact-card-thumb-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.15), rgba(139, 92, 246, 0.15));
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.compact-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-card-nominator {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 2px;
}

/* ─── Voter Avatar Stack (Fotos dos Votantes nos Cards) ─── */
.voters-avatar-stack {
  display: flex;
  align-items: center;
  margin-top: 10px;
  padding-left: 4px;
}

.voter-avatar-item {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid #16162a;
  object-fit: cover;
  margin-left: -9px;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, z-index 0.2s ease;
}

.voter-avatar-item:first-child {
  margin-left: 0;
}

.voter-avatar-item:hover {
  transform: scale(1.22);
  z-index: 10;
}

.profile-avatar-large {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899, #8b5cf6);
  border: 3px solid rgba(236, 72, 153, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(236, 72, 153, 0.3);
}

/* ─── Profile Avatar Custom Picker ──────────────────────────── */
.profile-avatar-picker-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(236, 72, 153, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.profile-avatar-picker-wrapper:hover {
  transform: scale(1.05);
  box-shadow: 0 12px 40px rgba(236, 72, 153, 0.5);
}

.profile-avatar-picker-wrapper .profile-avatar-large {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: none;
  border: none;
}

.profile-avatar-overlay {
  position: absolute;
  inset: 0;
  background: rgba(12, 12, 24, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.profile-avatar-picker-wrapper:hover .profile-avatar-overlay {
  opacity: 1;
}

.profile-avatar-overlay span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ─── SPA Page Transitions & Loading Bar ──────────────── */
.page-wrapper {
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  transform: translateY(0);
}

.page-wrapper.spa-fade-out {
  opacity: 0;
  transform: translateY(8px);
}

.spa-loading-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  z-index: 9999;
  width: 0;
  transition: width 0.4s cubic-bezier(0.1, 0.8, 0.3, 1), opacity 0.2s ease;
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.5);
  pointer-events: none;
}

/* ─── Custom File Dropzone UI ───────────────────────────── */
.custom-file-dropzone {
  position: relative;
  width: 100%;
  height: 72px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.custom-file-dropzone:hover {
  background: rgba(236, 72, 153, 0.08);
  border-color: var(--primary-light);
  transform: translateY(-1px);
}

.hidden-file-input {
  display: none !important;
}

.dropzone-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  text-align: center;
}

.dropzone-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}
