/* ============================================================
   FUN WALK SYSTEM — SPORTY THEME
   Palette: Hijau neon (#84CC16) + Hitam (#0A0A0A) + Putih
   Typography: Bebas Neue (display) + Inter (body)
   ============================================================ */

:root {
  --accent: #84CC16;
  --accent-dark: #65A30D;
  --accent-light: #BEF264;
  --bg: #FAFAFA;
  --bg-alt: #F4F4F5;
  --surface: #FFFFFF;
  --surface-2: #FAFAFA;
  --text: #0A0A0A;
  --text-2: #404040;
  --text-3: #737373;
  --muted: #9CA3AF;
  --border: #E5E5E5;
  --border-2: #D4D4D4;
  --danger: #EF4444;
  --danger-dark: #B91C1C;
  --warn: #F59E0B;
  --info: #3B82F6;
  --success: #22C55E;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-lg: 0 10px 25px -3px rgba(0,0,0,0.08), 0 4px 10px -2px rgba(0,0,0,0.05);
  --container: 1140px;
}

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }
a { color: var(--accent-dark); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--text); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #0A0A0A; color: #fff;
  border-bottom: 3px solid var(--accent);
  box-shadow: 0 4px 20px -8px rgba(0,0,0,0.5);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; max-width: var(--container); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.brand:hover { color: #fff; }
.brand-mark {
  background: var(--accent); color: #000;
  font-family: 'Bebas Neue', sans-serif; font-size: 22px;
  padding: 6px 12px; border-radius: 8px; letter-spacing: 1px;
  font-weight: 700;
}
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: -0.5px; }
.main-nav { display: flex; align-items: center; gap: 8px; }
.nav-link {
  color: #D4D4D4; font-weight: 500; font-size: 14px;
  padding: 8px 14px; border-radius: 6px; transition: all 0.15s;
}
.nav-link:hover { background: rgba(255,255,255,0.1); color: #fff; }
.nav-link-outline {
  border: 1.5px solid var(--accent); color: var(--accent);
}
.nav-link-outline:hover { background: var(--accent); color: #000; }

.main-content { padding: 32px 20px 60px; min-height: calc(100vh - 200px); }

/* ============ HERO ============ */
.hero {
  background: linear-gradient(135deg, #0A0A0A 0%, #1A2E05 100%);
  color: #fff;
  padding: 64px 20px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(132,204,22,0.25) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-content { position: relative; max-width: 720px; }
.hero-badge {
  display: inline-block; padding: 6px 14px;
  background: rgba(132,204,22,0.2); color: var(--accent);
  border: 1px solid var(--accent); border-radius: 99px;
  font-size: 13px; font-weight: 600; margin-bottom: 18px;
}
.hero-title {
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  font-size: clamp(40px, 7vw, 72px);
  font-weight: 900; line-height: 1.05; letter-spacing: -1px;
  margin: 0 0 18px;
}
.hero-title br + * { color: var(--accent); }
.hero-sub {
  font-size: 17px; line-height: 1.7; color: #D4D4D4;
  max-width: 600px; margin: 0 0 28px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 24px; margin-top: 48px; flex-wrap: wrap;
  position: relative;
}
.stat-box { color: #fff; }
.stat-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 42px; font-weight: 900; color: var(--accent);
  line-height: 1;
}
.stat-label { font-size: 13px; color: #A3A3A3; margin-top: 4px; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 20px; border-radius: var(--radius-sm);
  border: 1.5px solid transparent; background: transparent;
  font-family: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: all 0.15s; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #000; }
.btn-ghost { background: var(--bg-alt); color: var(--text-2); }
.btn-ghost:hover { background: var(--border); color: var(--text); }
.btn-white { background: #fff; color: #0A0A0A; }
.btn-white:hover { background: var(--accent-light); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: var(--danger-dark); }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-xl { padding: 18px 32px; font-size: 18px; font-weight: 700; letter-spacing: 0.3px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-block { width: 100%; }
.link-arrow { color: var(--accent-dark); font-weight: 600; font-size: 14px; }

/* ============ SECTIONS ============ */
.section { padding: 56px 20px; max-width: var(--container); margin: 0 auto; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.section-head h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.5px; margin: 0; }
.section-title-center { text-align: center; font-size: 36px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 40px; }
.section-cta { padding: 48px 20px 0; }
.section-features { background: var(--surface); padding-top: 80px; padding-bottom: 80px; border-top: 1px solid var(--border); }
.cta-box {
  background: linear-gradient(135deg, var(--accent) 0%, #4D7C0F 100%);
  color: #fff; padding: 40px; border-radius: 20px;
  display: flex; justify-content: space-between; align-items: center; gap: 30px;
  box-shadow: 0 20px 40px -10px rgba(132,204,22,0.4);
}
.cta-box h2 { margin: 0 0 8px; font-size: 28px; font-weight: 800; }
.cta-box p { margin: 0; opacity: 0.95; max-width: 580px; }

/* ============ EVENT GRID ============ */
.event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.event-card {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: all 0.2s;
  display: flex; flex-direction: column;
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.event-card-top {
  padding: 24px 20px;
  position: relative;
  min-height: 90px;
  display: flex; align-items: flex-start; justify-content: space-between;
  color: #fff;
}
.event-status {
  display: inline-block; padding: 4px 10px; border-radius: 99px;
  font-size: 11px; font-weight: 700; color: #fff;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.event-date-block { text-align: right; }
.event-date-block .day { font-family: 'Bebas Neue', sans-serif; font-size: 38px; font-weight: 900; line-height: 1; }
.event-date-block .month { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.event-card-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.event-title { font-size: 17px; font-weight: 700; line-height: 1.3; margin: 0 0 6px; color: var(--text); }
.event-meta { font-size: 13px; color: var(--text-3); margin: 0; }
.event-progress { margin-top: auto; padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.event-progress > span:first-child { font-size: 12px; color: var(--text-3); font-weight: 600; }
.progress-bar { display: block; height: 6px; background: var(--bg-alt); border-radius: 3px; overflow: hidden; }
.progress-bar > span { display: block; height: 100%; background: var(--accent); border-radius: 3px; transition: width 0.3s; }

/* ============ EMPTY STATE ============ */
.empty-state {
  text-align: center; padding: 60px 20px;
  background: var(--surface); border-radius: var(--radius);
  border: 1px dashed var(--border-2);
}
.empty-state h3 { margin: 0 0 8px; font-size: 20px; }
.empty-state p { color: var(--text-3); margin: 0 0 18px; }
.empty-state.small-empty { padding: 32px 16px; }

/* ============ FEATURES ============ */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  text-align: center;
}
.feature-emoji { font-size: 44px; margin-bottom: 12px; }
.feature h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.feature p { margin: 0; color: var(--text-3); font-size: 14px; line-height: 1.6; }

/* ============ AUTH PAGES ============ */
.auth-wrap { max-width: 480px; margin: 40px auto; padding: 0 20px; }
.auth-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-lg); }
.auth-card h1 { margin: 0 0 6px; font-size: 24px; font-weight: 800; }
.auth-card .muted { color: var(--text-3); margin: 0 0 24px; }
.auth-switch { margin: 20px 0 0; text-align: center; color: var(--text-3); font-size: 14px; }

/* ============ FORMS ============ */
.form-stack { display: flex; flex-direction: column; gap: 16px; }
.form-inline { flex-direction: row; align-items: flex-end; flex-wrap: wrap; gap: 12px; }
.form-inline .field { flex: 1; min-width: 160px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-2); }
.field .hint, .hint { font-size: 12px; color: var(--muted); }
.req { color: var(--danger); }
.input, select.input, textarea.input {
  width: 100%; padding: 10px 14px;
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14px;
  background: var(--surface); color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(132,204,22,0.18); }
.input-sm { padding: 6px 10px; font-size: 13px; }
.input-lg { padding: 14px 18px; font-size: 16px; }
.input-search { padding-left: 36px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E") 10px center no-repeat; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.field-row { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; }
.field-row .field { flex: 1; }
.field-check label { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.field-check input[type=checkbox] { width: 18px; height: 18px; }
.toggle-row { display: flex; gap: 16px; flex-wrap: wrap; margin: 6px 0; }
.toggle { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 10px 14px; border: 1.5px solid var(--border-2); border-radius: var(--radius-sm); background: var(--surface-2); }
.toggle input { width: 18px; height: 18px; accent-color: var(--accent); }
.form-actions { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.captcha-row { display: flex; gap: 8px; align-items: center; }
.captcha-input { max-width: 140px; }

/* ============ FLASH ============ */
.flash-stack { margin-bottom: 24px; }
.flash {
  padding: 14px 18px; border-radius: var(--radius-sm);
  font-size: 14px; margin-bottom: 12px;
  border: 1px solid transparent;
}
.flash-success { background: #ECFDF5; border-color: #A7F3D0; color: #065F46; }
.flash-error   { background: #FEF2F2; border-color: #FECACA; color: #991B1B; }
.flash-info    { background: #EFF6FF; border-color: #BFDBFE; color: #1E40AF; }
.flash-warning { background: #FFFBEB; border-color: #FDE68A; color: #92400E; }

/* ============ PAGE HEAD ============ */
.page-head { padding: 40px 20px 20px; max-width: var(--container); margin: 0 auto; }
.page-head h1 { font-size: 36px; font-weight: 800; margin: 0 0 6px; }
.page-head p { color: var(--text-3); margin: 0; }

/* ============ FILTER BAR ============ */
.filter-bar { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; align-items: center; }
.filter-bar .input { flex: 1; min-width: 200px; }

/* ============ EVENT DETAIL ============ */
.event-detail-head {
  background: linear-gradient(135deg, #0A0A0A 0%, #1A2E05 100%);
  color: #fff; padding: 48px 20px 40px;
  position: relative;
}
.event-detail-head::before {
  content: ''; position: absolute; inset: 0;
  background: var(--accent); opacity: 0.15;
}
.event-detail-inner { position: relative; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.event-detail-status { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.event-detail-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(36px, 6vw, 56px); font-weight: 900; margin: 0 0 18px; letter-spacing: -0.5px; }
.event-detail-meta { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 14px; color: #D4D4D4; font-size: 15px; }
.event-detail-meta span { display: inline-flex; align-items: center; gap: 4px; }
.event-detail-desc { color: #D4D4D4; margin: 12px 0 18px; max-width: 800px; line-height: 1.7; }
.event-detail-progress { display: flex; align-items: center; gap: 12px; color: #D4D4D4; font-size: 13px; flex-wrap: wrap; }
.event-detail-progress .progress-bar { flex: 1; min-width: 100px; max-width: 280px; }

/* ============ CONTENT WRAP ============ */
.content-wrap { padding: 32px 20px 80px; }
.content-grid { display: grid; grid-template-columns: 1fr 320px; gap: 30px; }
.content-main { min-width: 0; }
.content-side { display: flex; flex-direction: column; gap: 16px; }
.side-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.side-card h3 { margin: 0 0 12px; font-size: 16px; font-weight: 700; }
.side-card p { color: var(--text-3); font-size: 14px; margin: 0 0 14px; line-height: 1.6; }
.info-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.info-list li { font-size: 14px; color: var(--text-2); }
.info-list strong { display: inline-block; min-width: 90px; color: var(--text); }

/* ============ FORM CARD ============ */
.form-card, .checkin-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow);
}
.form-card h2, .checkin-card h2 { margin: 0 0 6px; font-size: 22px; font-weight: 700; }
.form-card .muted, .checkin-card .muted { margin-top: 0; }

/* ============ SUCCESS/RESULT CARD ============ */
.success-card, .result-card {
  text-align: center; padding: 36px 28px;
  background: var(--surface); border-radius: var(--radius);
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-lg);
}
.result-success { border-color: var(--success); background: linear-gradient(180deg, #F0FDF4 0%, #fff 60%); }
.result-already { border-color: var(--warn); background: linear-gradient(180deg, #FFFBEB 0%, #fff 60%); }
.success-icon, .result-icon { font-size: 56px; margin-bottom: 8px; }
.success-card h2, .result-card h2 { margin: 0 0 12px; font-size: 24px; font-weight: 800; }
.success-card p, .result-card p { color: var(--text-2); margin: 6px 0; }
.success-detail { margin: 18px 0; padding: 16px; background: var(--bg-alt); border-radius: var(--radius-sm); }
.result-detail { margin: 16px 0; display: flex; flex-direction: column; gap: 6px; }
.result-detail > div { font-size: 14px; }
.result-time { font-size: 16px; font-weight: 700; margin: 6px 0; }
.result-actions, .success-actions { margin-top: 22px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.winner-name { font-family: 'Bebas Neue', sans-serif; font-size: 32px; font-weight: 900; color: var(--accent-dark); margin: 8px 0; letter-spacing: 1px; }
.winner-nik { font-size: 14px; color: var(--text-3); }
.winner-prize { margin-top: 8px; padding: 8px 16px; background: var(--accent); color: #000; border-radius: 99px; font-weight: 700; display: inline-block; }
.winner-seq { margin-top: 10px; font-size: 13px; color: var(--muted); }
.hidden { display: none !important; }
.hr-soft { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* ============ ADMIN LAYOUT ============ */
.admin-wrap {
  display: grid; grid-template-columns: 240px 1fr;
  min-height: calc(100vh - 60px);
  background: var(--bg-alt);
}
.admin-side {
  background: #0A0A0A; color: #fff; padding: 24px 16px;
  position: sticky; top: 60px; align-self: start;
  height: calc(100vh - 60px);
  display: flex; flex-direction: column;
}
.admin-side-head { display: flex; align-items: center; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid #262626; }
.admin-avatar {
  width: 40px; height: 40px; border-radius: 8px;
  background: var(--accent); color: #000;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px;
}
.admin-name { font-size: 14px; font-weight: 700; line-height: 1.2; }
.admin-role { font-size: 12px; color: #A3A3A3; }
.admin-nav { flex: 1; display: flex; flex-direction: column; gap: 4px; margin-top: 20px; }
.admin-nav a {
  color: #D4D4D4; padding: 10px 14px; border-radius: 6px;
  font-size: 14px; font-weight: 500; transition: all 0.15s;
}
.admin-nav a:hover { background: rgba(255,255,255,0.08); color: #fff; }
.admin-nav a.active { background: var(--accent); color: #000; font-weight: 700; }
.admin-side-foot { padding-top: 16px; border-top: 1px solid #262626; display: flex; flex-direction: column; gap: 4px; }
.admin-side-foot a { color: #A3A3A3; padding: 8px 14px; border-radius: 6px; font-size: 13px; }
.admin-side-foot a:hover { background: rgba(255,255,255,0.05); color: #fff; }

.admin-main { padding: 32px; max-width: 1100px; }
.admin-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; gap: 16px; flex-wrap: wrap; }
.admin-top h1 { margin: 0 0 4px; font-size: 28px; font-weight: 800; }

/* ============ TABS ============ */
.tab-bar {
  display: flex; gap: 4px; margin-bottom: 24px;
  border-bottom: 2px solid var(--border);
  overflow-x: auto;
}
.tab {
  padding: 10px 18px; color: var(--text-3); font-size: 14px; font-weight: 600;
  border-bottom: 2px solid transparent; margin-bottom: -2px;
  white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent-dark); border-bottom-color: var(--accent); }

/* ============ CARDS ============ */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.card-danger { border-color: #FECACA; background: #FFFBFB; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.card-head h2 { margin: 0; font-size: 18px; font-weight: 700; }

/* ============ STATS ============ */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin-bottom: 24px; }
.stat-row-compact .stat-card { padding: 14px 16px; }
.stat-card { padding: 18px 20px; background: var(--surface); border-radius: var(--radius-sm); border: 1px solid var(--border); box-shadow: var(--shadow); }
.stat-card-num { font-family: 'Bebas Neue', sans-serif; font-size: 32px; font-weight: 900; color: var(--accent-dark); line-height: 1; }
.stat-card-lbl { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.stat-card-1 .stat-card-num { color: #2563EB; }
.stat-card-2 .stat-card-num { color: #16A34A; }
.stat-card-3 .stat-card-num { color: #EA580C; }
.stat-card-4 .stat-card-num { color: #9333EA; }

/* ============ TABLES ============ */
.table-wrap { overflow-x: auto; margin: 0 -4px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.data-table th { background: var(--bg-alt); font-weight: 700; font-size: 13px; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.3px; }
.data-table tr:hover { background: var(--bg-alt); }
.data-table .text-right { text-align: right; }
.data-table .empty-row { text-align: center; padding: 32px; color: var(--muted); }
.data-table .mono { font-family: 'JetBrains Mono', 'Courier New', monospace; font-size: 13px; letter-spacing: -0.3px; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 99px; font-size: 11px; font-weight: 700; color: #fff; }
.action-cell { white-space: nowrap; }
.action-cell form { display: inline-block; vertical-align: middle; }
.winner-row { background: linear-gradient(90deg, rgba(132,204,22,0.06) 0%, transparent 60%); }

/* ============ SPINWHEEL ============ */
.spinwheel-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 24px; }
.info-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; text-align: center; box-shadow: var(--shadow); }
.info-tile-large .info-num { font-size: 28px; }
.info-num { font-family: 'Bebas Neue', sans-serif; font-size: 24px; font-weight: 900; color: var(--accent-dark); line-height: 1; }
.info-lbl { font-size: 11px; color: var(--text-3); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.4px; }
.info-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0; }

/* ============ PAGINATION ============ */
.pagination-bar {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px;
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border);
}
.pagination-info { font-size: 13px; color: var(--text-3); }
.pagination-info strong { color: var(--text); }
.pagination-controls { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pagination-controls .btn { min-width: 36px; padding: 6px 10px; }
.pagination-controls .btn.disabled,
.pagination-controls .btn:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.pagination-ellipsis { color: var(--text-3); padding: 0 4px; font-weight: 700; }

.spinwheel-stage {
  display: grid; grid-template-columns: 1fr 360px; gap: 30px;
  background: linear-gradient(135deg, #0A0A0A 0%, #1A2E05 100%);
  color: #fff; padding: 36px; border-radius: 20px;
  margin-bottom: 20px;
}
.wheel-wrap { position: relative; display: flex; align-items: center; justify-content: center; }

/* ============================================================
   NAME RANDOMIZER (Slot-machine style name cycling)
   ============================================================ */
.randomizer-stage {
  background: linear-gradient(135deg, #0A0A0A 0%, #1A2E05 100%);
  color: #fff; padding: 40px 32px; border-radius: 20px;
  margin-bottom: 20px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  position: relative; overflow: hidden;
}
.randomizer-stage::before {
  content: ''; position: absolute; top: -50%; left: -20%;
  width: 140%; height: 140%;
  background: radial-gradient(circle, rgba(132,204,22,0.18) 0%, transparent 60%);
  pointer-events: none;
}
.randomizer-header {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; max-width: 580px; position: relative; z-index: 1;
}
.randomizer-round {
  background: rgba(132,204,22,0.2); color: var(--accent);
  border: 1px solid var(--accent);
  padding: 8px 18px; border-radius: 99px; font-weight: 700; font-size: 14px;
}
.randomizer-pool {
  font-size: 14px; color: #A3A3A3; font-weight: 600;
}
.randomizer-display {
  background: rgba(0,0,0,0.5);
  border: 2px solid var(--accent);
  border-radius: 20px;
  padding: 40px 32px;
  width: 100%; max-width: 580px;
  position: relative; z-index: 1;
  box-shadow: 0 20px 50px -10px rgba(132,204,22,0.3), inset 0 0 60px rgba(132,204,22,0.08);
  min-height: 220px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 14px;
}
.randomizer-display.spinning {
  animation: pulse-border 0.6s ease-in-out infinite alternate;
}
.randomizer-display.idle-cycling {
  animation: pulse-border-idle 1.4s ease-in-out infinite alternate;
}
@keyframes pulse-border {
  from { box-shadow: 0 20px 50px -10px rgba(132,204,22,0.3), inset 0 0 60px rgba(132,204,22,0.08); }
  to   { box-shadow: 0 20px 60px -10px rgba(132,204,22,0.6), inset 0 0 80px rgba(132,204,22,0.18); }
}
@keyframes pulse-border-idle {
  from { box-shadow: 0 20px 50px -10px rgba(132,204,22,0.2), inset 0 0 40px rgba(132,204,22,0.05); }
  to   { box-shadow: 0 20px 50px -10px rgba(132,204,22,0.4), inset 0 0 60px rgba(132,204,22,0.12); }
}
.randomizer-display.winner-reveal {
  animation: winner-pop 0.6s ease;
  background: linear-gradient(135deg, rgba(132,204,22,0.25), rgba(0,0,0,0.7));
}
@keyframes winner-pop {
  0%   { transform: scale(0.92); }
  50%  { transform: scale(1.04); }
  100% { transform: scale(1); }
}
.randomizer-status {
  font-size: 14px; color: var(--accent); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.6px;
  min-height: 18px;
}
.randomizer-name {
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 900; line-height: 1.1; letter-spacing: 1px;
  color: #fff; word-break: break-word; max-width: 100%;
  text-shadow: 0 4px 24px rgba(132,204,22,0.4);
  min-height: 64px; display: flex; align-items: center; justify-content: center;
  transition: transform 0.08s ease;
}
.randomizer-display.spinning .randomizer-name {
  animation: flicker 0.05s linear infinite;
}
.randomizer-display.idle-cycling .randomizer-name {
  animation: flicker-idle 0.08s linear infinite;
}
@keyframes flicker {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}
@keyframes flicker-idle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.92; }
}
.randomizer-display.winner-reveal .randomizer-name {
  color: var(--accent);
  font-size: clamp(34px, 6vw, 64px);
  animation: none;
}
.randomizer-nik {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 14px; color: #9CA3AF; letter-spacing: 0.5px;
  min-height: 18px;
}
.randomizer-progress {
  width: 100%; max-width: 580px;
  display: flex; flex-direction: column; gap: 6px;
  position: relative; z-index: 1;
}
.randomizer-progress-bar { height: 8px !important; }
.randomizer-progress-bar > span { background: var(--accent) !important; }
.randomizer-progress-text {
  font-size: 13px; color: var(--accent); font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}
.randomizer-help {
  width: 100%; max-width: 580px; color: #D4D4D4;
  font-size: 13px; line-height: 1.6;
  position: relative; z-index: 1;
  background: rgba(0,0,0,0.4); padding: 16px 20px; border-radius: 12px;
}
.randomizer-help h4 { margin: 0 0 10px; color: var(--accent); font-size: 14px; }
.randomizer-help ul { margin: 0; padding-left: 20px; }
.randomizer-help li { margin-bottom: 6px; }
.randomizer-help strong { color: var(--accent); }
.randomizer-help code { background: rgba(132,204,22,0.15); color: var(--accent-light); padding: 1px 6px; border-radius: 4px; font-size: 12px; }
#spinwheel { display: block; max-width: 100%; height: auto; }
.wheel-pointer {
  position: absolute; top: -2px; left: 50%; transform: translateX(-50%);
  font-size: 32px; color: var(--accent); text-shadow: 0 4px 12px rgba(0,0,0,0.5);
  z-index: 10; line-height: 1;
}
.wheel-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 60px; height: 60px; background: var(--accent);
  border: 4px solid #0A0A0A; border-radius: 50%;
  z-index: 5;
  box-shadow: 0 0 0 4px var(--accent);
}
.wheel-side { display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
.wheel-status h3 { margin: 0; font-size: 22px; }
.wheel-status .muted { color: #A3A3A3; margin: 4px 0 0; font-size: 13px; }
.winner-card {
  background: var(--surface); color: var(--text);
  border: 2px solid var(--accent); border-radius: 14px; padding: 24px;
  text-align: center; box-shadow: 0 20px 40px -10px rgba(132,204,22,0.5);
  animation: pop 0.6s ease;
}
@keyframes pop { 0% { transform: scale(0.6); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.winner-card .winner-icon { font-size: 44px; }
.wheel-help { color: #D4D4D4; font-size: 13px; }
.wheel-help h4 { margin: 0 0 8px; color: var(--accent); font-size: 14px; }
.wheel-help ul { margin: 0; padding-left: 20px; }
.wheel-help li { margin-bottom: 4px; }
.wheel-help strong { color: var(--accent); }

/* ============ FOOTER ============ */
.site-footer { background: #0A0A0A; color: #A3A3A3; padding: 24px 20px; margin-top: 60px; }
.footer-inner { max-width: var(--container); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: #A3A3A3; }
.footer-links a:hover { color: var(--accent); }

/* ============ UTILS ============ */
.muted { color: var(--text-3); }
.small { font-size: 12px; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.inline-form { display: contents; }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .admin-wrap { grid-template-columns: 1fr; }
  .admin-side { position: relative; top: 0; height: auto; flex-direction: column; }
  .spinwheel-stage { grid-template-columns: 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .cta-box { flex-direction: column; text-align: center; }
  .hero-cta .btn { width: 100%; }
}
@media (max-width: 640px) {
  .header-inner { flex-direction: column; gap: 12px; padding: 12px 16px; }
  .main-nav { flex-wrap: wrap; justify-content: center; }
  .hero { padding: 40px 20px; }
  .section { padding: 36px 20px; }
  .admin-main { padding: 20px 16px; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-bar .input { width: 100%; }
  .admin-top { flex-direction: column; align-items: stretch; }
}
