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

:root {
  --bg: #0A0A0F;
  --bg2: #0F0F1A;
  --purple: #6C2BD9;
  --purple-light: #8A45F0;
  --cyan: #00F0FF;
  --violet: #9B59B6;
  --card-bg: rgba(15, 10, 30, 0.85);
  --border: rgba(108, 43, 217, 0.35);
  --border-cyan: rgba(0, 240, 255, 0.25);
  --text: #E8E0FF;
  --text-muted: rgba(200, 185, 255, 0.55);
  --glass: rgba(108, 43, 217, 0.08);
  --glow-purple: 0 0 30px rgba(108, 43, 217, 0.4);
  --glow-cyan: 0 0 20px rgba(0, 240, 255, 0.3);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%, rgba(108,43,217,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(0,240,255,0.1) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 60% 40%, rgba(155,89,182,0.08) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ===== NAV ===== */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.7rem;
  font-weight: 800;
  background: linear-gradient(135deg, #6C2BD9, #00F0FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.4rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all 0.25s ease;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.01em;
}

.btn-discord {
  background: #5865F2;
  color: #fff;
}
.btn-discord:hover {
  background: #4752C4;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.4);
}

.btn-primary {
  background: linear-gradient(135deg, #6C2BD9, #8A45F0);
  color: #fff;
  box-shadow: 0 4px 15px rgba(108, 43, 217, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(108, 43, 217, 0.55);
}

.btn-cyan {
  background: transparent;
  color: var(--cyan);
  border: 1.5px solid var(--cyan);
}
.btn-cyan:hover {
  background: rgba(0, 240, 255, 0.08);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--purple-light);
  color: #fff;
}

.btn-sm { padding: 0.4rem 1rem; font-size: 0.82rem; }
.btn-lg { padding: 0.75rem 2rem; font-size: 1rem; border-radius: 12px; }
.btn-full { width: 100%; justify-content: center; }

/* ===== HERO ===== */
.hero {
  position: relative;
  z-index: 1;
  padding: 160px 2rem 100px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.35rem 1rem;
  font-size: 0.82rem;
  color: var(--cyan);
  margin-bottom: 1.5rem;
  animation: fadeDown 0.6s ease both;
}

.hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.2rem;
  animation: fadeUp 0.7s ease 0.1s both;
}

.gradient-text {
  background: linear-gradient(135deg, #6C2BD9 0%, #00F0FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  animation: fadeUp 0.7s ease 0.2s both;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.7s ease 0.3s both;
}

/* ===== SECTIONS ===== */
.section {
  position: relative;
  z-index: 1;
  padding: 80px 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}
.section-title h2 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.section-title p {
  color: var(--text-muted);
  font-size: 1rem;
}

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

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(108,43,217,0.04) 0%, transparent 60%);
  pointer-events: none;
}
.card:hover {
  border-color: rgba(108, 43, 217, 0.6);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(108, 43, 217, 0.2);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}
.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.card p { color: var(--text-muted); font-size: 0.88rem; }
.card-link {
  color: var(--cyan);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 1rem;
  transition: gap 0.2s;
}
.card-link:hover { gap: 0.6rem; }

/* ===== STAT CARDS ===== */
.stat-card {
  text-align: center;
  padding: 1.5rem;
}
.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #6C2BD9, #00F0FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-card .stat-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

/* ===== AUTH ===== */
.auth-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.auth-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  backdrop-filter: blur(30px);
}

.auth-logo {
  text-align: center;
  margin-bottom: 1.5rem;
}
.auth-logo a {
  font-family: 'Poppins', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #6C2BD9, #00F0FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}
.auth-logo p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-top: 0.3rem;
}

.tabs {
  display: flex;
  background: rgba(0,0,0,0.3);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 1.75rem;
}
.tab-btn {
  flex: 1;
  padding: 0.6rem;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.2s;
  border: none;
  background: none;
  font-family: 'Inter', sans-serif;
}
.tab-btn.active {
  background: linear-gradient(135deg, #6C2BD9, #8A45F0);
  color: #fff;
  box-shadow: 0 2px 12px rgba(108,43,217,0.4);
}

.tab-pane { display: none; }
.tab-pane.active { display: block; }

.form-group { margin-bottom: 1.1rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.45rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  background: rgba(0,0,0,0.4);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  color: var(--text);
  font-size: 0.95rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--purple-light);
  box-shadow: 0 0 0 3px rgba(108, 43, 217, 0.15);
}
.form-group input::placeholder { color: rgba(200, 185, 255, 0.3); }

.alert {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  margin-bottom: 1rem;
  font-weight: 500;
}
.alert-error {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #FCA5A5;
}
.alert-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86EFAC;
}
.alert-info {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: var(--cyan);
}

/* ===== DASHBOARD ===== */
.dashboard-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: rgba(10, 10, 20, 0.95);
  border-right: 1px solid var(--border);
  padding: 1.5rem 1rem;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  width: 240px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  overflow-y: auto;
}

.sidebar-logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #6C2BD9, #00F0FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  display: block;
  margin-bottom: 0.5rem;
}

.sidebar-section {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(200,185,255,0.35);
  text-transform: uppercase;
  padding: 0.75rem 0.75rem 0.25rem;
  margin-top: 0.5rem;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  background: none;
  font-family: 'Inter', sans-serif;
  width: 100%;
  text-align: left;
}
.sidebar-link:hover, .sidebar-link.active {
  background: rgba(108, 43, 217, 0.15);
  color: #fff;
  border: none;
}
.sidebar-link.active { color: var(--cyan); }
.sidebar-link .icon { width: 18px; text-align: center; }

.sidebar-bottom {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.main-content {
  margin-left: 240px;
  padding: 2rem;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.page-header {
  margin-bottom: 2rem;
}
.page-header h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
}
.page-header p { color: var(--text-muted); font-size: 0.9rem; margin-top: 0.3rem; }

/* ===== REWARDS TABLE ===== */
.rewards-section { margin-bottom: 2.5rem; }
.rewards-section h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--cyan);
}

.reward-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(20px);
}
.reward-table th {
  background: rgba(108,43,217,0.12);
  padding: 0.7rem 1rem;
  text-align: left;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.reward-table td {
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  border-bottom: 1px solid rgba(108,43,217,0.1);
  color: var(--text);
}
.reward-table tr:last-child td { border-bottom: none; }
.reward-table tr:hover td { background: rgba(108,43,217,0.06); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-pending {
  background: rgba(234, 179, 8, 0.15);
  color: #FCD34D;
  border: 1px solid rgba(234, 179, 8, 0.3);
}
.badge-delivery {
  background: rgba(0, 240, 255, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(0, 240, 255, 0.25);
}
.badge-expired {
  background: rgba(239, 68, 68, 0.12);
  color: #FCA5A5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.badge-success {
  background: rgba(34, 197, 94, 0.1);
  color: #86EFAC;
  border: 1px solid rgba(34, 197, 94, 0.25);
}
.badge-purple {
  background: rgba(108,43,217,0.15);
  color: #C084FC;
  border: 1px solid rgba(108,43,217,0.3);
}

/* ===== CLAIM SECTION ===== */
.claim-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(20px);
  margin-bottom: 2rem;
}
.claim-box h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.claim-box p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 1.25rem; }

.claim-input-row {
  display: flex;
  gap: 0.75rem;
}
.claim-input-row input {
  flex: 1;
  background: rgba(0,0,0,0.4);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 1rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.claim-input-row input:focus {
  border-color: var(--purple-light);
  box-shadow: 0 0 0 3px rgba(108, 43, 217, 0.15);
}
.claim-input-row input::placeholder {
  color: rgba(200, 185, 255, 0.25);
  text-transform: none;
  letter-spacing: 0;
}

/* ===== DELIVERY PAGE ===== */
.delivery-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.delivery-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  max-width: 580px;
  width: 100%;
  backdrop-filter: blur(30px);
  box-shadow: 0 20px 60px rgba(108, 43, 217, 0.2);
}

.delivery-card h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.delivery-card .reward-name {
  color: var(--cyan);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

/* Truck Animation */
.truck-scene {
  position: relative;
  width: 100%;
  height: 100px;
  margin: 1.5rem 0;
  overflow: hidden;
}

.road {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, var(--border) 10%, var(--border) 90%, transparent 100%);
}
.road-dashes {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(0,240,255,0.3) 0%, rgba(0,240,255,0.3) 20px, transparent 20px, transparent 40px);
  animation: roadMove 0.5s linear infinite;
}

@keyframes roadMove {
  from { transform: translateX(0); }
  to { transform: translateX(-40px); }
}

.truck {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  animation: truckBounce 0.4s ease-in-out infinite alternate;
}

.truck svg {
  filter: drop-shadow(0 0 8px rgba(108,43,217,0.6));
}

@keyframes truckBounce {
  from { transform: translateX(-50%) translateY(0px); }
  to { transform: translateX(-50%) translateY(-3px); }
}

.timer-display {
  margin: 1.5rem 0;
}
.timer-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.timer-value {
  font-family: 'Poppins', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #6C2BD9, #00F0FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}
.timer-subs {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-top: 0.5rem;
}
.timer-sub {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.progress-bar-wrap {
  background: rgba(0,0,0,0.4);
  border-radius: 50px;
  height: 6px;
  overflow: hidden;
  margin: 1rem 0;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #6C2BD9, #00F0FF);
  border-radius: 50px;
  transition: width 1s linear;
}

.code-masked {
  background: rgba(0,0,0,0.4);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  margin: 0.75rem auto;
  display: inline-block;
}

.delivery-expired {
  text-align: center;
}
.delivery-expired h2 {
  color: #FCA5A5;
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}
.delivery-expired p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ===== ADMIN ===== */
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }

.table-container {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  backdrop-filter: blur(20px);
}
.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.table-header h3 { font-size: 0.95rem; font-weight: 700; }

.data-table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th {
  background: rgba(108,43,217,0.1);
  padding: 0.65rem 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(108,43,217,0.08);
  color: var(--text);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(108,43,217,0.05); }

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 0.4rem;
}
.dot-green { background: #22C55E; box-shadow: 0 0 6px #22C55E; }
.dot-red { background: #EF4444; box-shadow: 0 0 6px #EF4444; }
.dot-yellow { background: #EAB308; box-shadow: 0 0 6px #EAB308; }

/* ===== FOOTER ===== */
footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}
footer .footer-logo {
  font-family: 'Poppins', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #6C2BD9, #00F0FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  display: block;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.animate-in {
  animation: fadeUp 0.6s ease both;
}

/* ===== SEARCH ===== */
.search-box {
  position: relative;
}
.search-box input {
  padding-left: 2.5rem !important;
}
.search-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(108,43,217,0.4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(108,43,217,0.7); }

/* ===== DIVIDER ===== */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 2rem 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .dashboard-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .main-content { margin-left: 0; padding: 1rem; }
  .claim-input-row { flex-direction: column; }
  .hero { padding: 120px 1.5rem 60px; }
}

/* ===== LOADING ===== */
.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255,255,255,0.2);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hidden { display: none !important; }

/* admin lock */
.admin-lock {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.admin-lock-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  width: 100%;
  max-width: 380px;
  backdrop-filter: blur(30px);
  text-align: center;
}
.admin-lock-box h2 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.admin-lock-box p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
}

/* inventory grid */
.inv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.75rem; margin-top: 1rem; }
.inv-item {
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
}
.inv-item .inv-count { font-size: 1.5rem; font-weight: 800; color: var(--cyan); }
.inv-item .inv-name { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.2rem; }

/* top nav for dashboard mobile */
.top-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 60px;
  background: rgba(10,10,15,0.95);
  border-bottom: 1px solid var(--border);
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 200;
  backdrop-filter: blur(20px);
}
@media (max-width: 768px) {
  .top-nav { display: flex; }
  .main-content { padding-top: 70px; }
}
