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

:root {
  --bg: #08080f;
  --bg-card: #0f0f1a;
  --bg-hover: #15152a;
  --border: #1c1c30;
  --border-hover: #2a2a4a;
  --text: #e8e8f0;
  --text-2: #8a8aa6;
  --text-3: #4a4a66;
  --accent: #6c5ce7;
  --accent2: #00cec9;
  --red: #e74c6f;
  --green: #00b894;
  --gold: #fdcb6e;
  --silver: #b2bec3;
  --bronze: #e17055;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(0,0,0,0.3);
  --glow-accent: 0 0 20px rgba(108,92,231,0.15);
  --glow-cyan: 0 0 20px rgba(0,206,201,0.12);
  --glow-red: 0 0 20px rgba(231,76,111,0.12);
  --glow-green: 0 0 20px rgba(0,184,148,0.12);
  --transition: 0.2s ease;
}

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

body {
  font-family: 'Inter', 'Noto Sans SC', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255,255,255,0.008) 2px,
    rgba(255,255,255,0.008) 4px
  );
}

.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    linear-gradient(rgba(108,92,231,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108,92,231,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

.scan-line {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(108,92,231,0.08), transparent);
  z-index: 9998;
  animation: scanLineMove 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes scanLineMove {
  0%, 100% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  50% { top: 100%; opacity: 0.3; }
  90% { opacity: 1; }
}

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

/* ─── Header ─── */
header {
  border-bottom: 1px solid var(--border);
  background: rgba(8,8,15,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 8px;
  margin: 8px 12px 0;
  border-radius: var(--radius);
  z-index: 100;
  transition: var(--transition);
}

header.scrolled {
  top: 0;
  margin: 0;
  border-radius: 0;
  background: rgba(8,8,15,0.92);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  padding: 0 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
  transition: opacity var(--transition);
}

.logo:hover { opacity: 0.85; }

.logo-mark {
  width: 30px; height: 30px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--glow-accent);
}

.logo-mark svg {
  width: 18px; height: 18px;
  fill: #fff;
}

.logo span { color: var(--accent2); }

nav { display: flex; gap: 4px; align-items: center; }

nav a, nav button {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  color: var(--text-2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

nav a:hover, nav button:hover {
  color: var(--text);
  background: var(--bg-hover);
}

nav .btn-register {
  background: var(--accent);
  color: #fff;
  margin-left: 4px;
  box-shadow: 0 0 12px rgba(108,92,231,0.2);
}

nav .btn-register:hover { background: #5a4bd1; color: #fff; box-shadow: 0 0 20px rgba(108,92,231,0.35); }

.user-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
}

.user-badge .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px rgba(0,184,148,0.5);
}

.user-badge .admin-tag {
  background: var(--red);
  color: #fff;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 700;
}

/* ─── Hero ─── */
.hero {
  text-align: center;
  padding: 140px 0 100px;
  position: relative;
  overflow: hidden;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.hero h1 {
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 30%, var(--accent2), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(108,92,231,0.1);
}

.hero p {
  color: var(--text-2);
  font-size: 18px;
  margin-top: 16px;
  letter-spacing: 0.3px;
}

.hero .hero-sub {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-3);
}

/* Hero background event cards */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-event {
  position: absolute;
  padding: 12px 18px;
  background: rgba(231, 76, 111, 0.04);
  border: 1px solid rgba(231, 76, 111, 0.06);
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  animation: heroFloat var(--dur, 18s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.hero-event.ev-small { max-width: 150px; font-size: 11px; padding: 8px 14px; }
.hero-event.ev-medium { max-width: 200px; }
.hero-event.ev-large { max-width: 260px; }
.hero-event.ev-dim { border-color: rgba(108, 92, 231, 0.08); background: rgba(108, 92, 231, 0.04); }
.hero-event.ev-dim .ev-name { color: var(--accent2); }

.hero-event .ev-name {
  font-weight: 600;
  color: var(--red);
  font-size: 13px;
}

.hero-event .ev-type {
  font-size: 9px;
  color: var(--text-3);
  background: rgba(255,255,255,0.04);
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
}

.hero-event .ev-detail {
  margin-top: 4px;
  color: var(--text-3);
  font-size: 11px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@keyframes heroFloat {
  0%, 100% {
    transform: translateY(0) scale(0.95);
    opacity: 0;
  }
  8% {
    opacity: 0.45;
    transform: translateY(-4px) scale(1);
  }
  50% {
    opacity: 0.45;
    transform: translateY(-12px) scale(1);
  }
  58% {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
}

@media (max-width: 768px) {
  .hero { padding: 80px 0 60px; min-height: auto; }
  .hero h1 { font-size: clamp(32px, 10vw, 44px); }
  .hero p { font-size: 15px; }
  .hero-event { display: none; }
}

/* ─── Stats ─── */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: all var(--transition);
  cursor: default;
}

.stat-card:hover {
  border-color: var(--accent2);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

.stat-card .number {
  font-size: 30px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent2), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}

.stat-card .label {
  color: var(--text-2);
  font-size: 12px;
  margin-top: 4px;
  font-weight: 500;
}

/* ─── Filter ─── */
.filter-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-bar input, .filter-bar select {
  padding: 8px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  transition: all var(--transition);
}

.filter-bar input:focus, .filter-bar select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108,92,231,0.1);
}

.filter-bar select option { background: var(--bg); }
.filter-bar input { flex: 1; min-width: 160px; }

.filter-bar button {
  padding: 8px 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.filter-bar button:hover {
  background: #5a4bd1;
  box-shadow: var(--glow-accent);
}

/* ─── Tabs ─── */
.tabs {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3px;
  width: fit-content;
}

.tab-btn {
  padding: 7px 20px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all var(--transition);
  font-family: inherit;
}

.tab-btn:hover { color: var(--text); }

.tab-btn.active {
  background: var(--red);
  color: #fff;
  box-shadow: 0 0 12px rgba(231,76,111,0.3);
}

.tab-btn.green-active.active { background: var(--green); color: #fff; box-shadow: 0 0 12px rgba(0,184,148,0.3); }

/* ─── Section ─── */
.section { margin-bottom: 48px; }

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 18px;
  font-weight: 700;
}

.section-divider {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-2);
  margin: 28px 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-divider svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
}

.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}

/* ═══ SVG Icon shared styles ═══ */
.icon { display: inline-flex; align-items: center; justify-content: center; }

/* ═══ PODIUM ═══ */

.ranking-podium {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
  align-items: end;
}

.podium-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  transition: all var(--transition);
  cursor: default;
}

.podium-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.podium-item.rank-1 {
  padding-bottom: 28px;
  border-color: rgba(253,203,110,0.15);
  background: linear-gradient(180deg, rgba(253,203,110,0.06), var(--bg-card));
  box-shadow: 0 0 30px rgba(253,203,110,0.04);
}

.podium-item.rank-1:hover { border-color: rgba(253,203,110,0.3); box-shadow: 0 0 40px rgba(253,203,110,0.08); }

.podium-item.rank-2 {
  border-color: rgba(178,190,195,0.12);
  background: linear-gradient(180deg, rgba(178,190,195,0.04), var(--bg-card));
}

.podium-item.rank-3 {
  border-color: rgba(225,112,85,0.12);
  background: linear-gradient(180deg, rgba(225,112,85,0.04), var(--bg-card));
}

.podium-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  margin-bottom: 8px;
}

.podium-badge svg {
  width: 18px; height: 18px;
}

.rank-1 .podium-badge { background: var(--gold); color: #1a1a1a; box-shadow: 0 0 16px rgba(253,203,110,0.3); }
.rank-2 .podium-badge { background: var(--silver); color: #1a1a1a; }
.rank-3 .podium-badge { background: var(--bronze); color: #fff; }

.podium-name { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 3px; }

.podium-meta {
  font-size: 11px;
  color: var(--text-3);
  margin-bottom: 8px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.podium-score {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 6px;
  color: var(--red);
}

.podium-reason {
  font-size: 11px;
  color: var(--text-3);
  line-height: 1.4;
  max-width: 85%;
  margin: 0 auto;
}

.podium-actions {
  margin-top: 8px;
  display: flex;
  gap: 4px;
  justify-content: center;
}

.podium-actions a, .podium-actions button {
  padding: 3px 9px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-3);
  font-size: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  font-family: inherit;
}

.podium-actions a:hover, .podium-actions button:hover {
  border-color: var(--accent2);
  color: var(--accent2);
}

/* ═══ RANK LIST ═══ */

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rank-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 14px;
  transition: all var(--transition);
  cursor: pointer;
}

.rank-item:hover {
  border-color: var(--accent);
  background: var(--bg-hover);
  box-shadow: var(--glow-accent);
  transform: translateX(4px);
}

.rank-number {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-3);
  text-align: center;
}

.rank-item:nth-child(1) .rank-number { color: var(--gold); }
.rank-item:nth-child(2) .rank-number { color: var(--silver); }
.rank-item:nth-child(3) .rank-number { color: var(--bronze); }

.rank-info .rank-name { font-size: 14px; font-weight: 600; color: #fff; }
.rank-info .rank-detail { font-size: 11px; color: var(--text-3); margin-top: 1px; }

.rank-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.rank-score {
  font-size: 16px;
  font-weight: 700;
  color: var(--red);
  min-width: 30px;
  text-align: right;
}

.rank-count { font-size: 11px; color: var(--text-3); white-space: nowrap; }

.rank-icon {
  color: var(--text-3);
  font-size: 11px;
  text-decoration: none;
  opacity: 0.4;
  transition: opacity var(--transition);
}

.rank-icon:hover { opacity: 1; color: var(--accent2); }

.rank-actions {
  display: flex;
  gap: 2px;
  opacity: 0;
  transition: opacity var(--transition);
}

.rank-item:hover .rank-actions { opacity: 1; }

.rank-actions a, .rank-actions button {
  padding: 2px 7px;
  border-radius: 3px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-3);
  font-size: 10px;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: all var(--transition);
}

.rank-actions a:hover, .rank-actions button:hover {
  border-color: var(--accent2);
  color: var(--accent2);
}

/* ─── Forms ─── */
.form-container {
  max-width: 400px;
  margin: 60px auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
}

.form-container::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: calc(var(--radius) + 1px);
  background: linear-gradient(135deg, rgba(108,92,231,0.15), transparent, rgba(0,206,201,0.1));
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition);
}

.form-container:focus-within::before { opacity: 1; }

.form-container h2 {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 4px;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 9px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  transition: all var(--transition);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108,92,231,0.1);
}

.form-group textarea { min-height: 60px; resize: vertical; }
.form-group select option { background: var(--bg); }
.form-group input[type="file"] { padding: 6px; }
.form-group input[type="file"]::file-selector-button {
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-2);
  font-size: 11px;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input[type="file"]::file-selector-button:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── Slider ─── */
.dim-slider-group { margin-bottom: 14px; }
.dim-slider-group label {
  display: flex; justify-content: space-between;
  font-size: 12px; font-weight: 500; color: var(--text-2);
}
.dim-slider-group label span { color: var(--accent2); font-weight: 600; }
.dim-slider-group input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  height: 3px;
  background: var(--border);
  border-radius: 2px;
  outline: none;
  margin-top: 6px;
}
.dim-slider-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  background: var(--accent);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(108,92,231,0.4);
  transition: box-shadow var(--transition);
}

.dim-slider-group input[type="range"]::-webkit-slider-thumb:hover {
  box-shadow: 0 0 14px rgba(108,92,231,0.6);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.btn svg {
  width: 14px; height: 14px;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #5a4bd1; box-shadow: var(--glow-accent); transform: translateY(-1px); }

.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #d6305a; box-shadow: var(--glow-red); transform: translateY(-1px); }

.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: #00a381; box-shadow: var(--glow-green); transform: translateY(-1px); }

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-2);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.btn-small { padding: 6px 12px; font-size: 11px; }
.btn-block { width: 100%; }

.form-footer {
  text-align: center;
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-3);
}
.form-footer a { color: var(--accent2); text-decoration: none; transition: color var(--transition); }
.form-footer a:hover { color: #00e6df; }

.alert {
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 12px;
  text-align: center;
}
.alert-error { background: rgba(231,76,111,0.08); border: 1px solid rgba(231,76,111,0.2); color: var(--red); }

/* ─── Empty ─── */
.empty-state {
  text-align: center;
  padding: 40px;
  color: var(--text-3);
  background: var(--bg-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  cursor: default;
}

.empty-state svg {
  width: 32px; height: 32px;
  margin-bottom: 8px;
  opacity: 0.2;
}

.empty-state p { font-size: 13px; }

/* ─── Dashboard ─── */
.dashboard { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 32px 0; }

.dashboard-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color var(--transition);
}

.dashboard-panel:hover { border-color: var(--border-hover); }

.dashboard-panel h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text);
}

.dashboard-panel.full { grid-column: 1 / -1; }

.dashboard-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  gap: 8px;
  transition: var(--transition);
}

.dashboard-item:hover { padding-left: 4px; }

.dashboard-item:last-child { border-bottom: none; }
.dashboard-item .info { flex: 1; }
.dashboard-item .info .name { color: #fff; font-weight: 500; }
.dashboard-item .info .detail { font-size: 11px; color: var(--text-3); }

/* ─── Modal ─── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}
.modal-overlay.show { display: flex; }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 460px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  animation: modalIn 0.2s ease;
}

@keyframes modalIn {
  from { transform: scale(0.95) translateY(10px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

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

.modal h3 { font-size: 16px; font-weight: 700; }

.modal-close {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-3);
  cursor: pointer;
  transition: all var(--transition);
}

.modal-close:hover {
  border-color: var(--red);
  color: var(--red);
  box-shadow: var(--glow-red);
}

.modal-close svg {
  width: 14px; height: 14px;
}

.modal-body textarea {
  width: 100%;
  padding: 9px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  font-family: inherit;
  margin: 12px 0;
  resize: vertical;
  transition: all var(--transition);
}

.modal-body textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(108,92,231,0.1);
}

.modal-body .error {
  color: var(--red);
  font-size: 12px;
  margin-top: 8px;
}

.modal-body .hint {
  color: var(--text-3);
  font-size: 11px;
  margin-top: 8px;
  text-align: center;
}

/* ─── Stars ─── */
.rating-stars {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-bottom: 16px;
}

.star {
  cursor: pointer;
  font-size: 28px;
  color: var(--text-3);
  transition: all var(--transition);
}

.star:hover {
  color: var(--gold);
  transform: scale(1.15);
}

.star.active {
  color: var(--gold);
  text-shadow: 0 0 12px rgba(253,203,110,0.4);
}

/* ─── Admin ─── */
.admin-layout {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 32px 0;
  min-height: calc(100vh - 60px);
}

.admin-sidebar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px;
  position: sticky;
  top: 80px;
  height: fit-content;
}

.admin-sidebar a {
  display: block;
  padding: 7px 12px;
  color: var(--text-2);
  text-decoration: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition);
}

.admin-sidebar a:hover, .admin-sidebar a.active {
  background: var(--bg-hover);
  color: var(--text);
}

.admin-content h2 { font-size: 17px; font-weight: 700; margin-bottom: 16px; }

.admin-table-wrap {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.admin-table { width: 100%; border-collapse: collapse; min-width: 560px; }

.admin-table th, .admin-table td {
  padding: 9px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  white-space: nowrap;
}

.admin-table th {
  background: rgba(108,92,231,0.04);
  color: var(--text-2);
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg-hover); }

.admin-table .actions { display: flex; gap: 3px; }
.admin-table .actions button, .admin-table .actions a {
  padding: 2px 7px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: transparent;
  color: var(--text-3);
  cursor: pointer;
  font-size: 10px;
  transition: all var(--transition);
  text-decoration: none;
  font-family: inherit;
}
.admin-table .actions .edit:hover { border-color: var(--accent); color: var(--accent); }
.admin-table .actions .delete:hover { border-color: var(--red); color: var(--red); box-shadow: var(--glow-red); }
.admin-table .actions .approve:hover { border-color: var(--green); color: var(--green); box-shadow: var(--glow-green); }

.status-badge {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
}
.status-badge.active { background: rgba(0,184,148,0.1); color: var(--green); }
.status-badge.hidden { background: rgba(231,76,111,0.1); color: var(--red); }
.status-badge.pending { background: rgba(253,203,110,0.1); color: var(--gold); }

.evidence-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  font-size: 10px;
  background: rgba(0,206,201,0.06);
  border: 1px solid rgba(0,206,201,0.15);
  border-radius: 3px;
  color: var(--accent2);
  text-decoration: none;
  transition: all var(--transition);
}

.evidence-tag:hover {
  background: rgba(0,206,201,0.1);
  border-color: rgba(0,206,201,0.3);
}

.evidence-tag svg {
  width: 12px; height: 12px;
}

.appeal-tag {
  display: inline-block;
  padding: 2px 6px;
  font-size: 10px;
  border-radius: 3px;
  font-weight: 500;
}
.appeal-tag.pending { background: rgba(253,203,110,0.1); color: var(--gold); }
.appeal-tag.approved { background: rgba(0,184,148,0.1); color: var(--green); }
.appeal-tag.rejected { background: rgba(231,76,111,0.1); color: var(--red); }

/* ─── Toast ─── */
.toast {
  position: fixed;
  bottom: 24px; right: 24px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  z-index: 2000;
  animation: slideIn 0.25s ease;
}
.toast.success { background: rgba(0,184,148,0.12); border: 1px solid rgba(0,184,148,0.2); color: var(--green); }
.toast.error { background: rgba(231,76,111,0.12); border: 1px solid rgba(231,76,111,0.2); color: var(--red); }

@keyframes slideIn {
  from { transform: translateX(40px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ─── Footer ─── */
footer {
  text-align: center;
  padding: 24px 0;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-size: 12px;
}

footer a { color: var(--accent2); text-decoration: none; transition: color var(--transition); }
footer a:hover { color: #00e6df; }

/* ─── Textarea ─── */
textarea { font-family: inherit; }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  header {
    margin: 0;
    top: 0;
    border-radius: 0;
  }

  .stats { grid-template-columns: 1fr 1fr; }
  .ranking-podium { grid-template-columns: 1fr; }
  .podium-item.rank-2 { order: 1; }
  .podium-item.rank-1 { order: 0; }
  .podium-item.rank-3 { order: 2; }
  .rank-item { grid-template-columns: 28px 1fr; gap: 6px; }
  .rank-right { display: none; }
  .dashboard { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .header-inner { flex-direction: column; height: auto; padding: 12px 0; gap: 10px; }
  nav { justify-content: center; flex-wrap: wrap; }
  .tabs { width: 100%; }
  .tab-btn { flex: 1; text-align: center; }
  .rank-actions { opacity: 1; }
}

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