/* =============================================
   CROSSFIT CHAMPIONSHIP - Main Stylesheet
   ============================================= */

:root {
  --primary: #ff6b00;
  --primary-dark: #cc5500;
  --primary-light: #ff8c3a;
  --bg: #0d0d0d;
  --bg-2: #161616;
  --bg-3: #1e1e1e;
  --bg-card: #242424;
  --border: #333;
  --text: #f0f0f0;
  --text-muted: #888;
  --text-dim: #bbb;
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #3b82f6;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 4px 20px rgba(0,0,0,0.4);
  --transition: 0.2s ease;
  --nav-height: 64px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-light); }

img { max-width: 100%; }

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }

/* ── NAVBAR ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13,13,13,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
}

.navbar-inner {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 1px;
  flex-shrink: 0;
}

.navbar-brand span { color: var(--primary); }

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin-left: auto;
  flex-wrap: wrap;
}

.navbar-menu a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
}

.navbar-menu a:hover,
.navbar-menu a.active {
  color: var(--primary);
  background: rgba(255,107,0,0.1);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.5rem;
  flex-shrink: 0;
}

/* Hamburger */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text);
  font-size: 1.5rem;
  margin-left: auto;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }

.btn-secondary {
  background: var(--bg-3);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg-card); color: var(--text); }

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

.btn-success {
  background: rgba(34,197,94,0.15);
  color: var(--success);
  border: 1px solid rgba(34,197,94,0.3);
}
.btn-success:hover { background: var(--success); color: #fff; }

.btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; }
.btn-lg { padding: 0.75rem 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0d0d0d 0%, #1a0a00 50%, #0d0d0d 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(255,107,0,0.15) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding: 2rem 1.5rem;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,107,0,0.15);
  border: 1px solid rgba(255,107,0,0.4);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.hero h1 span { color: var(--primary); }

.hero p {
  font-size: 1.1rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── SECTIONS ── */
.section {
  padding: 4rem 1.5rem;
}

.section-dark { background: var(--bg-2); }

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

.section-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  margin-bottom: 0.5rem;
}

.section-title span { color: var(--primary); }

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-size: 0.95rem;
}

/* ── CARDS ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.card:hover { border-color: rgba(255,107,0,0.3); }

.card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* ── GRID ── */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ── FORMS ── */
.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,107,0,0.15);
}

.form-control::placeholder { color: var(--text-muted); }

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

/* ── AUTH PAGES ── */
.auth-page {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  background: var(--bg);
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow);
}

.auth-card h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.auth-card .subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* ── PAGE HEADER ── */
.page-header {
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: 2rem 1.5rem;
}

.page-header h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  text-transform: uppercase;
}

.page-header p {
  color: var(--text-muted);
  margin-top: 0.25rem;
  font-size: 0.9rem;
}

/* ── RANKING TABLE ── */
.ranking-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.ranking-table th {
  background: var(--bg-3);
  padding: 0.85rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border);
}

.ranking-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(51,51,51,0.5);
  vertical-align: middle;
}

.ranking-table tr:last-child td { border-bottom: none; }

.ranking-table tbody tr {
  transition: background var(--transition);
  cursor: pointer;
}

.ranking-table tbody tr:hover { background: rgba(255,107,0,0.05); }

.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.8rem;
  background: var(--bg-3);
  color: var(--text-muted);
}

.rank-badge.gold { background: rgba(251,191,36,0.2); color: #fbbf24; }
.rank-badge.silver { background: rgba(156,163,175,0.2); color: #9ca3af; }
.rank-badge.bronze { background: rgba(180,120,80,0.2); color: #b47850; }

.user-info { display: flex; align-items: center; gap: 0.75rem; }

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  flex-shrink: 0;
  text-transform: uppercase;
}

.score-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}

/* ── PROFILE ── */
.profile-header {
  background: linear-gradient(135deg, var(--bg-2), var(--bg-3));
  border-bottom: 1px solid var(--border);
  padding: 3rem 1.5rem;
  text-align: center;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  margin: 0 auto 1rem;
  text-transform: uppercase;
  border: 3px solid rgba(255,107,0,0.4);
}

.profile-name {
  font-size: 2rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-score {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin: 0.5rem 0;
}

.profile-meta {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.profile-meta-item {
  text-align: center;
}

.profile-meta-item .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.profile-meta-item .value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}

/* ── VIDEO ── */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
}

.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.video-info {
  padding: 1rem;
}

.video-title {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.video-status {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-pending { background: rgba(245,158,11,0.15); color: var(--warning); border: 1px solid rgba(245,158,11,0.3); }
.status-approved { background: rgba(34,197,94,0.15); color: var(--success); border: 1px solid rgba(34,197,94,0.3); }
.status-rejected { background: rgba(239,68,68,0.15); color: var(--danger); border: 1px solid rgba(239,68,68,0.3); }

/* ── CATEGORIES ── */
.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

.category-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
}

.category-card:hover {
  border-color: rgba(255,107,0,0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.category-name {
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.category-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.category-details {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.category-detail {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
}

.category-price {
  font-size: 1.75rem;
  font-weight: 900;
  color: var(--primary);
}

.category-price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }

.spots-bar {
  background: var(--bg-3);
  border-radius: 100px;
  height: 6px;
  margin-top: 0.75rem;
  overflow: hidden;
}

.spots-fill {
  height: 100%;
  background: var(--primary);
  border-radius: 100px;
  transition: width 0.5s ease;
}

.spots-fill.low { background: var(--danger); }

/* ── RULES ── */
.rules-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  line-height: 1.8;
}

.rules-content h2, .rules-content h3 {
  color: var(--text);
  margin: 1.5rem 0 0.75rem;
}

.rules-content h2:first-child,
.rules-content h3:first-child { margin-top: 0; }

.rules-content h3 { color: var(--primary); font-size: 1.1rem; }

.rules-content ul, .rules-content ol {
  padding-left: 1.5rem;
  margin: 0.5rem 0;
}

.rules-content li { margin-bottom: 0.4rem; color: var(--text-dim); }
.rules-content p { color: var(--text-dim); margin-bottom: 1rem; }

/* ── ADMIN ── */
.admin-layout {
  display: flex;
  min-height: calc(100vh - var(--nav-height));
}

.admin-sidebar {
  width: 240px;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
  flex-shrink: 0;
  position: sticky;
  top: var(--nav-height);
  height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}

.admin-sidebar-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 0 1.25rem;
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}

.admin-sidebar-title:first-child { margin-top: 0; }

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
  border-left: 3px solid transparent;
}

.admin-nav-item:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.admin-nav-item.active { color: var(--primary); border-left-color: var(--primary); background: rgba(255,107,0,0.07); }

.admin-content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

.admin-section { display: none; }
.admin-section.active { display: block; }

/* Stats */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(255,107,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.stat-info .label { font-size: 0.8rem; color: var(--text-muted); }
.stat-info .value { font-size: 1.75rem; font-weight: 800; color: var(--text); }

/* Admin table */
.admin-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-top: 1rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.admin-table th {
  background: var(--bg-3);
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border);
}

.admin-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(51,51,51,0.5);
  vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }

.admin-table tbody tr:hover { background: rgba(255,255,255,0.02); }

/* Score input */
.score-input-wrap {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.score-input {
  width: 80px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
}

.score-input:focus {
  outline: none;
  border-color: var(--primary);
}

/* ── DASHBOARD ── */
.dashboard-layout {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.dashboard-section {
  margin-bottom: 2.5rem;
}

.dashboard-section-title {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dashboard-section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── ALERTS ── */
.alert {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.alert-success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: var(--success); }
.alert-danger { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: var(--danger); }
.alert-warning { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.3); color: var(--warning); }
.alert-info { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.3); color: var(--info); }

/* ── MODAL ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
  animation: modalIn 0.2s ease;
}

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

.modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
}
.modal-close:hover { color: var(--text); }

/* ── TOAST ── */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.25rem;
  font-size: 0.875rem;
  box-shadow: var(--shadow);
  animation: toastIn 0.3s ease;
  max-width: 320px;
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.toast.success { border-left: 3px solid var(--success); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--info); }

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

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-muted);
}

.empty-state .icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.1rem; margin-bottom: 0.5rem; color: var(--text-dim); }

/* ── FOOTER ── */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer strong { color: var(--primary); }

/* ── LOADING ── */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,107,0,0.3);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

.page-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  flex-direction: column;
  gap: 1rem;
  color: var(--text-muted);
}

/* ── RICH TEXT EDITOR ── */
.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.5rem;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.editor-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 0.3rem 0.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition);
}

.editor-btn:hover { background: var(--bg-card); color: var(--text); border-color: var(--border); }

.editor-content {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 1rem;
  min-height: 300px;
  color: var(--text);
  outline: none;
  line-height: 1.8;
}

.editor-content:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,107,0,0.15); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .navbar-menu { display: none; flex-direction: column; gap: 0; }
  .navbar-menu.open { display: flex; }
  .navbar-inner { flex-wrap: wrap; }
  .navbar-toggle { display: flex; }
  .navbar-brand { flex: 1; }

  .mobile-menu-wrapper {
    position: fixed;
    inset: 0;
    top: var(--nav-height);
    background: rgba(13,13,13,0.97);
    z-index: 999;
    flex-direction: column;
    padding: 1.5rem;
    gap: 0.25rem;
  }

  .mobile-menu-wrapper .navbar-menu { display: flex; flex-direction: column; width: 100%; margin: 0; }
  .mobile-menu-wrapper .navbar-menu a { font-size: 1.1rem; padding: 0.85rem 1rem; }
  .mobile-menu-wrapper .navbar-actions { flex-direction: column; width: 100%; margin-top: 1rem; }
  .mobile-menu-wrapper .navbar-actions .btn { width: 100%; justify-content: center; padding: 0.85rem; }

  .admin-layout { flex-direction: column; }
  .admin-sidebar { width: 100%; height: auto; position: static; display: flex; overflow-x: auto; padding: 0.5rem; border-right: none; border-bottom: 1px solid var(--border); }
  .admin-sidebar-title { display: none; }
  .admin-nav-item { flex-shrink: 0; border-left: none; border-bottom: 2px solid transparent; padding: 0.5rem 1rem; }
  .admin-nav-item.active { border-left: none; border-bottom-color: var(--primary); }
  .admin-content { padding: 1.5rem 1rem; }

  .profile-meta { gap: 1rem; }
  .profile-score { font-size: 2.5rem; }

  .hero h1 { letter-spacing: -0.5px; }

  .section { padding: 2.5rem 1rem; }

  .auth-card { padding: 2rem 1.25rem; }

  .modal { padding: 1.5rem; }
}

@media (max-width: 480px) {
  .admin-table { font-size: 0.8rem; }
  .admin-table th, .admin-table td { padding: 0.6rem 0.75rem; }
  .ranking-table { font-size: 0.825rem; }
  .ranking-table th, .ranking-table td { padding: 0.7rem 0.75rem; }
}

/* ── UTILS ── */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none !important; }
.w-full { width: 100%; }
.font-bold { font-weight: 700; }
.uppercase { text-transform: uppercase; }
.divider { height: 1px; background: var(--border); margin: 1.5rem 0; }
