/* ============================
   FIRE ARENA - Free Fire Tournament Platform
   Dark Gaming Theme
   ============================ */

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a26;
  --bg-card-hover: #1f1f30;
  --accent-orange: #ff6b00;
  --accent-red: #ff2244;
  --accent-yellow: #ffd700;
  --accent-green: #00e676;
  --accent-neon: #00e5ff;
  --text-primary: #f0f0f0;
  --text-secondary: #9090a8;
  --text-muted: #60607a;
  --border: #2a2a3a;
  --border-accent: #3a3a55;
  --gradient-hero: linear-gradient(135deg, #0a0a0f 0%, #1a0a2e 50%, #0a0f1e 100%);
  --gradient-card: linear-gradient(145deg, #1a1a26, #12121a);
  --gradient-orange: linear-gradient(135deg, #ff6b00, #ff2244);
  --gradient-gold: linear-gradient(135deg, #ffd700, #ff8c00);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-accent: 0 0 20px rgba(255,107,0,0.3);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --header-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* === SCROLLBAR === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border-accent); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-orange); }

/* === TYPOGRAPHY === */
h1 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 800; line-height: 1.2; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }
p { color: var(--text-secondary); }
a { color: inherit; text-decoration: none; }

.gradient-text {
  background: var(--gradient-orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gold-text { color: var(--accent-yellow); }

/* === LAYOUT === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.page { min-height: 100vh; padding-top: var(--header-h); }
.section { padding: 64px 0; }
.section-sm { padding: 40px 0; }

/* === HEADER === */
header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(10,10,15,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex; align-items: center;
}
.header-inner {
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.3rem; font-weight: 800; letter-spacing: -0.5px;
  cursor: pointer;
}
.logo-icon { font-size: 1.6rem; }
.logo-text span { color: var(--accent-orange); }

nav { display: flex; align-items: center; gap: 4px; }
nav a {
  padding: 6px 14px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.2s;
  cursor: pointer;
}
nav a:hover, nav a.active { color: var(--text-primary); background: var(--border); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.profile-menu {
  position: relative;
}
.profile-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  cursor: pointer; font-size: 0.85rem; transition: all 0.2s;
}
.profile-btn:hover { border-color: var(--accent-orange); }
.avatar-sm {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--gradient-orange);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700; color: white;
}
.dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 200px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: none;
}
.dropdown.open { display: block; }
.dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  font-size: 0.9rem; color: var(--text-secondary);
  transition: all 0.2s; cursor: pointer;
}
.dropdown a:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.dropdown-divider { height: 1px; background: var(--border); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 6px;
}
.hamburger span { width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: 0.3s; }

.mobile-nav {
  display: none;
  position: fixed; top: var(--header-h); left: 0; right: 0;
  background: rgba(10,10,15,0.98);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  z-index: 999;
  flex-direction: column; gap: 4px;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 16px; border-radius: var(--radius-sm);
  font-size: 0.95rem; color: var(--text-secondary);
  cursor: pointer; transition: all 0.2s;
}
.mobile-nav a:hover, .mobile-nav a.active { background: var(--border); color: var(--text-primary); }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
  border: none; transition: all 0.2s; line-height: 1;
  text-decoration: none;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary {
  background: var(--gradient-orange); color: white;
  box-shadow: 0 4px 15px rgba(255,107,0,0.3);
}
.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,107,0,0.4);
}
.btn-secondary {
  background: transparent; color: var(--text-primary);
  border: 1px solid var(--border-accent);
}
.btn-secondary:hover:not(:disabled) { border-color: var(--accent-orange); color: var(--accent-orange); }
.btn-ghost { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--border-accent); background: var(--bg-card-hover); }
.btn-danger { background: rgba(255,34,68,0.15); color: var(--accent-red); border: 1px solid rgba(255,34,68,0.3); }
.btn-danger:hover { background: rgba(255,34,68,0.25); }
.btn-success { background: rgba(0,230,118,0.15); color: var(--accent-green); border: 1px solid rgba(0,230,118,0.3); }
.btn-success:hover { background: rgba(0,230,118,0.25); }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

/* === CARDS === */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s;
}
.card:hover { border-color: var(--border-accent); box-shadow: var(--shadow-card); transform: translateY(-2px); }
.card-body { padding: 20px; }
.card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-footer { padding: 16px 20px; border-top: 1px solid var(--border); }

/* === TOURNAMENT CARD === */
.tournament-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all 0.3s; cursor: pointer;
}
.tournament-card:hover { border-color: var(--accent-orange); box-shadow: var(--shadow-accent); transform: translateY(-3px); }
.tournament-banner {
  height: 160px; background: var(--gradient-hero);
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.tournament-banner img { width: 100%; height: 100%; object-fit: cover; }
.tournament-banner-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.badge {
  position: absolute; top: 12px; right: 12px;
  padding: 4px 10px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-open { background: rgba(0,230,118,0.2); color: var(--accent-green); border: 1px solid rgba(0,230,118,0.4); }
.badge-closed { background: rgba(255,34,68,0.2); color: var(--accent-red); border: 1px solid rgba(255,34,68,0.4); }
.badge-upcoming { background: rgba(0,229,255,0.2); color: var(--accent-neon); border: 1px solid rgba(0,229,255,0.4); }
.badge-completed { background: rgba(144,144,168,0.2); color: var(--text-secondary); border: 1px solid var(--border); }
.badge-draft { background: rgba(255,215,0,0.2); color: var(--accent-yellow); border: 1px solid rgba(255,215,0,0.4); }
.badge-solo { background: rgba(255,107,0,0.2); color: var(--accent-orange); border: 1px solid rgba(255,107,0,0.3); }
.badge-squad { background: rgba(0,229,255,0.15); color: var(--accent-neon); border: 1px solid rgba(0,229,255,0.3); }

.tournament-info { padding: 16px; }
.tournament-title { font-size: 1rem; font-weight: 700; margin-bottom: 10px; line-height: 1.3; }
.tournament-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.meta-item { display: flex; align-items: center; gap: 5px; font-size: 0.8rem; color: var(--text-secondary); }
.meta-icon { font-size: 0.9rem; }
.slots-bar { background: var(--border); border-radius: 4px; height: 6px; margin-bottom: 6px; overflow: hidden; }
.slots-fill { height: 100%; border-radius: 4px; background: var(--gradient-orange); transition: width 0.3s; }
.slots-text { font-size: 0.75rem; color: var(--text-muted); }
.tournament-actions { padding: 14px 16px 16px; display: flex; gap: 8px; border-top: 1px solid var(--border); }

/* === HERO === */
.hero {
  min-height: 90vh; display: flex; align-items: center;
  background: var(--gradient-hero);
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ff6b00' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,107,0,0.1); border: 1px solid rgba(255,107,0,0.3);
  padding: 6px 14px; border-radius: 20px;
  font-size: 0.8rem; font-weight: 600; color: var(--accent-orange);
  margin-bottom: 24px;
}
.hero-badge span { animation: pulse 2s infinite; }
.hero h1 { margin-bottom: 20px; }
.hero p { font-size: 1.15rem; margin-bottom: 36px; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 60px; }
.hero-stat .num { font-size: 2rem; font-weight: 800; color: var(--accent-orange); }
.hero-stat .lbl { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* === GRID === */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* === SECTION HEADER === */
.section-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.section-title { font-size: 1.6rem; font-weight: 700; }
.section-subtitle { color: var(--text-secondary); margin-top: 6px; font-size: 0.95rem; }

/* === HOW IT WORKS === */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
.step-card {
  text-align: center; padding: 32px 20px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); position: relative;
}
.step-num {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--gradient-orange);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800;
  margin: 0 auto 16px;
}
.step-icon { font-size: 2.5rem; margin-bottom: 12px; }
.step-title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.step-desc { font-size: 0.85rem; }

/* === FORMS === */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--text-secondary); }
.form-control {
  width: 100%; padding: 12px 16px;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary);
  font-size: 0.95rem; transition: border-color 0.2s;
  outline: none; font-family: inherit;
}
.form-control:focus { border-color: var(--accent-orange); }
.form-control::placeholder { color: var(--text-muted); }
.form-control:disabled { opacity: 0.6; cursor: not-allowed; }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 5px; }
.form-error { font-size: 0.78rem; color: var(--accent-red); margin-top: 5px; }
.input-group { display: flex; }
.input-group .form-control { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; white-space: nowrap; }

/* === OTP INPUTS === */
.otp-inputs { display: flex; gap: 10px; justify-content: center; }
.otp-input {
  width: 52px; height: 56px; text-align: center;
  font-size: 1.4rem; font-weight: 700;
  background: var(--bg-secondary); border: 2px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text-primary);
  outline: none; transition: border-color 0.2s;
}
.otp-input:focus { border-color: var(--accent-orange); }
.otp-input.filled { border-color: var(--accent-orange); }

/* === TABLE === */
.table-container { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
thead { background: var(--bg-secondary); }
th { padding: 12px 16px; text-align: left; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); white-space: nowrap; }
td { padding: 14px 16px; border-top: 1px solid var(--border); font-size: 0.9rem; vertical-align: middle; }
tr:hover td { background: rgba(255,255,255,0.02); }

/* === TABS === */
.tabs { display: flex; gap: 2px; background: var(--bg-secondary); padding: 4px; border-radius: var(--radius); margin-bottom: 24px; flex-wrap: wrap; }
.tab-btn {
  flex: 1; min-width: 80px; padding: 8px 16px;
  border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 600;
  color: var(--text-muted); cursor: pointer; border: none;
  background: transparent; transition: all 0.2s; text-align: center;
}
.tab-btn.active { background: var(--bg-card); color: var(--text-primary); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* === STATUS BADGES === */
.status-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600;
}
.status-pending { background: rgba(255,215,0,0.15); color: var(--accent-yellow); }
.status-approved { background: rgba(0,230,118,0.15); color: var(--accent-green); }
.status-rejected { background: rgba(255,34,68,0.15); color: var(--accent-red); }
.status-confirmed { background: rgba(0,229,255,0.15); color: var(--accent-neon); }
.status-open { background: rgba(0,230,118,0.15); color: var(--accent-green); }
.status-closed { background: rgba(144,144,168,0.15); color: var(--text-secondary); }
.status-in-progress { background: rgba(255,107,0,0.15); color: var(--accent-orange); }
.status-resolved { background: rgba(0,229,255,0.15); color: var(--accent-neon); }

/* === TOAST === */
#toast-container {
  position: fixed; bottom: 20px; right: 20px;
  z-index: 9999; display: flex; flex-direction: column; gap: 10px;
}
.toast {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  min-width: 280px; max-width: 400px;
  animation: slideIn 0.3s ease;
  font-size: 0.9rem;
}
.toast-success { border-left: 3px solid var(--accent-green); }
.toast-error { border-left: 3px solid var(--accent-red); }
.toast-info { border-left: 3px solid var(--accent-neon); }
.toast-warning { border-left: 3px solid var(--accent-yellow); }
@keyframes slideIn { from { opacity:0; transform: translateX(20px); } to { opacity:1; transform:none; } }
@keyframes slideOut { from { opacity:1; } to { opacity:0; transform: translateX(20px); } }

/* === MODAL === */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px); z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); width: 100%; max-width: 520px;
  max-height: 90vh; overflow-y: auto;
  animation: modalIn 0.3s ease;
}
@keyframes modalIn { from { opacity:0; transform: scale(0.95) translateY(10px); } to { opacity:1; transform:none; } }
.modal-header {
  padding: 20px 24px 0;
  display: flex; justify-content: space-between; align-items: center;
}
.modal-body { padding: 20px 24px; }
.modal-footer { padding: 0 24px 20px; display: flex; gap: 10px; justify-content: flex-end; }
.modal-close {
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
  background: var(--bg-secondary); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  color: var(--text-muted); transition: all 0.2s;
}
.modal-close:hover { color: var(--text-primary); }

/* === SKELETON === */
.skeleton { background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius-sm); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* === STATS/WIDGETS === */
.stat-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
  display: flex; align-items: center; gap: 16px;
  transition: all 0.2s;
}
.stat-card:hover { border-color: var(--border-accent); }
.stat-icon {
  width: 52px; height: 52px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
}
.stat-icon-orange { background: rgba(255,107,0,0.15); }
.stat-icon-green { background: rgba(0,230,118,0.15); }
.stat-icon-blue { background: rgba(0,229,255,0.15); }
.stat-icon-yellow { background: rgba(255,215,0,0.15); }
.stat-icon-red { background: rgba(255,34,68,0.15); }
.stat-value { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.stat-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 4px; }
.stat-change { font-size: 0.8rem; margin-top: 4px; }
.stat-change.up { color: var(--accent-green); }
.stat-change.down { color: var(--accent-red); }

/* === SEARCH & FILTER === */
.search-bar {
  position: relative;
}
.search-bar .search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 1rem; color: var(--text-muted); pointer-events: none; }
.search-bar .form-control { padding-left: 42px; }
.filter-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

/* === EMPTY STATE === */
.empty-state {
  text-align: center; padding: 60px 20px;
}
.empty-icon { font-size: 4rem; margin-bottom: 16px; }
.empty-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.empty-desc { color: var(--text-muted); margin-bottom: 24px; font-size: 0.9rem; }

/* === PROGRESS BAR === */
.progress-bar { background: var(--border); border-radius: 4px; height: 8px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 4px; background: var(--gradient-orange); transition: width 0.5s ease; }

/* === LEADERBOARD === */
.rank-1 .rank-num { color: var(--accent-yellow); }
.rank-2 .rank-num { color: #c0c0c0; }
.rank-3 .rank-num { color: #cd7f32; }
.rank-num { font-size: 1.1rem; font-weight: 800; width: 30px; }

/* === PRIZE BADGE === */
.prize-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: 20px;
  background: rgba(255,215,0,0.1); border: 1px solid rgba(255,215,0,0.3);
  color: var(--accent-yellow); font-weight: 700; font-size: 0.9rem;
}

/* === FILE UPLOAD === */
.file-upload {
  border: 2px dashed var(--border-accent); border-radius: var(--radius);
  padding: 32px; text-align: center; cursor: pointer; transition: all 0.2s;
}
.file-upload:hover { border-color: var(--accent-orange); background: rgba(255,107,0,0.05); }
.file-upload input { display: none; }
.file-upload-icon { font-size: 2.5rem; margin-bottom: 12px; }
.file-preview { margin-top: 12px; }
.file-preview img { max-width: 200px; border-radius: var(--radius-sm); border: 1px solid var(--border); }

/* === ADMIN SIDEBAR === */
.admin-layout { display: flex; min-height: 100vh; padding-top: var(--header-h); }
.sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--bg-secondary); border-right: 1px solid var(--border);
  padding: 20px 12px;
  position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow-y: auto;
}
.sidebar-section { margin-bottom: 24px; }
.sidebar-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); padding: 0 12px; margin-bottom: 8px; }
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--text-secondary); cursor: pointer;
  font-size: 0.9rem; transition: all 0.2s;
  margin-bottom: 2px;
}
.sidebar-link:hover, .sidebar-link.active { background: var(--bg-card-hover); color: var(--text-primary); }
.sidebar-link.active { color: var(--accent-orange); }
.sidebar-icon { width: 20px; text-align: center; }
.admin-main { flex: 1; padding: 32px; overflow: auto; }

/* === TICKET === */
.ticket-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px; margin-bottom: 12px;
  cursor: pointer; transition: all 0.2s;
}
.ticket-card:hover { border-color: var(--border-accent); }
.ticket-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.ticket-subject { font-weight: 600; font-size: 0.95rem; }
.ticket-meta { font-size: 0.8rem; color: var(--text-muted); }
.message-bubble {
  padding: 12px 16px; border-radius: var(--radius); margin-bottom: 12px;
  max-width: 85%;
}
.message-user { background: rgba(255,107,0,0.1); border: 1px solid rgba(255,107,0,0.2); margin-left: auto; }
.message-admin { background: var(--bg-secondary); border: 1px solid var(--border); }
.message-sender { font-size: 0.75rem; font-weight: 600; margin-bottom: 4px; color: var(--text-muted); }
.message-text { font-size: 0.9rem; }
.message-time { font-size: 0.72rem; color: var(--text-muted); margin-top: 6px; text-align: right; }

/* === TEAM MEMBER === */
.team-member {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border);
}
.team-member:last-child { border-bottom: none; }
.member-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gradient-orange);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; color: white; flex-shrink: 0;
}
.member-name { font-weight: 600; font-size: 0.9rem; }
.member-uid { font-size: 0.78rem; color: var(--text-muted); }
.captain-badge {
  font-size: 0.7rem; padding: 2px 8px; border-radius: 10px;
  background: rgba(255,215,0,0.15); color: var(--accent-yellow);
  border: 1px solid rgba(255,215,0,0.3); font-weight: 600;
}

/* === PAYMENT CARD === */
.payment-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px; margin-bottom: 12px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.payment-thumb { width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; border: 1px solid var(--border); flex-shrink: 0; }

/* === FOOTER === */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: auto;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: 0.85rem; margin-top: 12px; line-height: 1.7; }
.footer-col h5 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 8px; cursor: pointer; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent-orange); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: 0.82rem; }

/* === ANIMATIONS === */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.fade-in { animation: fadeIn 0.4s ease; }

/* === PAGE LOADER === */
#page-loader {
  position: fixed; inset: 0; background: var(--bg-primary);
  display: flex; align-items: center; justify-content: center;
  z-index: 9998; transition: opacity 0.3s;
}
.spinner {
  width: 40px; height: 40px; border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--accent-orange);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  nav { display: none; }
  .hamburger { display: flex; }
  .hero { min-height: 70vh; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .sidebar { display: none; }
  .admin-main { padding: 20px 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .filter-row { flex-direction: column; }
  .modal { max-width: 100%; margin: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; max-height: 95vh; }
  .modal-overlay { align-items: flex-end; padding: 0; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .otp-inputs { gap: 6px; }
  .otp-input { width: 44px; height: 50px; font-size: 1.2rem; }
}

/* === MISC UTILS === */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.text-center { text-align: center; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.w-full { width: 100%; }
.hidden { display: none !important; }
.divider { height: 1px; background: var(--border); margin: 20px 0; }
.text-sm { font-size: 0.85rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-orange { color: var(--accent-orange); }
.text-green { color: var(--accent-green); }
.text-red { color: var(--accent-red); }
.text-yellow { color: var(--accent-yellow); }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.relative { position: relative; }
.inline-flex { display: inline-flex; align-items: center; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 10px; border-radius: 20px; font-size: 0.75rem; font-weight: 600;
  background: var(--bg-secondary); border: 1px solid var(--border); color: var(--text-secondary);
}
.room-box {
  background: rgba(255,107,0,0.07); border: 1px solid rgba(255,107,0,0.2);
  border-radius: var(--radius); padding: 16px 20px;
}
.room-value { font-size: 1.2rem; font-weight: 800; color: var(--accent-orange); letter-spacing: 2px; }

/* Admin Mobile Nav */
.admin-mobile-tabs {
  display: none; overflow-x: auto; gap: 4px;
  padding: 12px 16px; background: var(--bg-secondary); border-bottom: 1px solid var(--border);
}
@media (max-width: 768px) {
  .admin-mobile-tabs { display: flex; }
  .admin-mobile-tab {
    flex-shrink: 0; padding: 8px 16px; border-radius: var(--radius-sm);
    font-size: 0.8rem; cursor: pointer; background: var(--bg-card);
    border: 1px solid var(--border); color: var(--text-secondary);
    white-space: nowrap;
  }
  .admin-mobile-tab.active { background: var(--gradient-orange); color: white; border-color: transparent; }
}

/* ===== Left sidebar drawer ===== */
.drawer{position:fixed;top:0;left:0;bottom:0;width:290px;max-width:84vw;background:linear-gradient(180deg,#12121c,#0a0a0f);border-right:1px solid var(--border);z-index:3000;transform:translateX(-100%);transition:transform .32s cubic-bezier(.5,0,.2,1);display:flex;flex-direction:column;box-shadow:8px 0 40px rgba(0,0,0,.5)}
.drawer.open{transform:translateX(0)}
.drawer-head{display:flex;align-items:center;justify-content:space-between;padding:18px 20px;border-bottom:1px solid var(--border)}
.drawer-x{background:none;border:none;color:var(--text-secondary);font-size:1.1rem;cursor:pointer;padding:6px 10px;border-radius:8px}
.drawer-x:hover{background:var(--bg-card-hover);color:#fff}
.drawer-nav{padding:14px 12px;overflow-y:auto;flex:1}
.drawer-nav a{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:10px;color:var(--text-secondary);cursor:pointer;font-weight:500;transition:.18s;font-size:.95rem}
.drawer-nav a:hover{background:var(--bg-card-hover);color:#fff;transform:translateX(3px)}
.drawer-nav a.active{background:rgba(255,107,0,.15);color:var(--accent-orange);border:1px solid rgba(255,107,0,.3)}
.drawer-nav .dn-label{font-size:.7rem;letter-spacing:.12em;text-transform:uppercase;color:var(--text-muted);padding:16px 14px 6px;font-weight:700}
.drawer-overlay{position:fixed;inset:0;background:rgba(0,0,0,.6);backdrop-filter:blur(3px);z-index:2999;opacity:0;visibility:hidden;transition:.3s}
.drawer-overlay.open{opacity:1;visibility:visible}
.hamburger{display:flex !important;margin-right:4px}
.header-inner{gap:14px}
@media(min-width:880px){#main-nav{display:flex}}
