* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: #0E1117;
  color: #f5f3ef;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}
h1,h2,h3,h4 { font-family: 'Poppins', sans-serif; }

/* ---------- animated background ---------- */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(ellipse 900px 600px at 15% -10%, rgba(255,107,0,0.16), transparent 60%),
    radial-gradient(ellipse 700px 500px at 110% 10%, rgba(11,93,59,0.35), transparent 60%),
    radial-gradient(ellipse 800px 600px at 50% 120%, rgba(255,107,0,0.08), transparent 60%),
    #0E1117;
}
.bg-aurora {
  position: fixed;
  inset: -10%;
  z-index: -2;
  background:
    radial-gradient(ellipse 640px 420px at 80% 8%, rgba(0,229,255,0.14), transparent 62%),
    radial-gradient(ellipse 560px 480px at 6% 40%, rgba(168,85,247,0.14), transparent 62%),
    radial-gradient(ellipse 620px 500px at 55% 100%, rgba(255,107,0,0.10), transparent 60%);
  filter: blur(10px);
  animation: auroraDrift 22s ease-in-out infinite alternate;
  opacity: 0.9;
  pointer-events: none;
}
@keyframes auroraDrift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  50%  { transform: translate3d(-2%, 2%, 0) scale(1.06); }
  100% { transform: translate3d(2%, -2%, 0) scale(1.02); }
}
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,107,0,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,107,0,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 90%);
}

/* ---------- floating orbs ---------- */
.orb {
  position: fixed;
  z-index: -1;
  border-radius: 9999px;
  filter: blur(60px);
  pointer-events: none;
  opacity: 0.55;
}
.orb-1 { width: 340px; height: 340px; top: -80px; right: 6%; background: radial-gradient(circle, rgba(0,229,255,0.35), transparent 70%); animation: floaty 9s ease-in-out infinite; }
.orb-2 { width: 260px; height: 260px; top: 55%; left: -60px; background: radial-gradient(circle, rgba(168,85,247,0.32), transparent 70%); animation: floaty 11s ease-in-out infinite reverse; }
.orb-3 { width: 300px; height: 300px; bottom: -100px; right: 22%; background: radial-gradient(circle, rgba(255,107,0,0.28), transparent 70%); animation: floaty 8s ease-in-out infinite; }

/* ---------- glass surfaces ---------- */
.glass {
  background: rgba(20, 24, 22, 0.55);
  border: 1px solid rgba(255,107,0,0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 1.1rem;
  box-shadow: 0 8px 32px -12px rgba(0,0,0,0.6);
}
.glass-strong {
  background: rgba(14, 17, 15, 0.8);
  border: 1px solid rgba(255,107,0,0.22);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 1.25rem;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.75);
}

/* gradient-ring: animated conic border wrapper for premium cards */
.gradient-ring {
  position: relative;
  border-radius: 1.25rem;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0,229,255,0.5), rgba(168,85,247,0.5), rgba(255,107,0,0.5));
  background-size: 220% 220%;
  animation: gradientShift 8s ease infinite;
}
.gradient-ring > * { border-radius: inherit; }
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---------- nav ---------- */
.navbar {
  background: rgba(14, 17, 21, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,107,0,0.14);
}
.nav-link {
  padding: 0.5rem 0.95rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(245,243,239,0.65);
  transition: all .15s ease;
  cursor: pointer;
  white-space: nowrap;
}
.nav-link:hover { color: #f5f3ef; background: rgba(255,107,0,0.08); }
.nav-link.active { color: #0E1117; background: linear-gradient(135deg, #ff8a3d, #ff6b00); box-shadow: 0 0 18px rgba(255,107,0,0.45); }

.brand-badge {
  width: 44px; height: 44px; border-radius: 0.85rem;
  background: linear-gradient(145deg, #0B5D3B, #0E1117);
  border: 1px solid rgba(255,107,0,0.4);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 0 20px rgba(255,107,0,0.25);
  overflow: hidden;
}
.brand-badge img { width: 100%; height: 100%; object-fit: contain; }

.brand-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.brand-title .accent { color: #ff6b00; }
.brand-title .green { background: linear-gradient(135deg, #2fae72, #0B5D3B); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- buttons ---------- */
.btn-primary {
  position: relative;
  background: linear-gradient(135deg, #ff8a3d, #ff6b00 55%, #a855f7);
  background-size: 200% 200%;
  color: #1a0900;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.65rem 1.35rem;
  border-radius: 9999px;
  transition: box-shadow .2s ease, transform .1s ease, filter .15s ease, background-position .5s ease;
  white-space: nowrap;
}
.btn-primary:hover { box-shadow: 0 0 30px rgba(255,107,0,0.55), 0 0 46px rgba(168,85,247,0.25); filter: brightness(1.06); background-position: 100% 50%; }
.btn-primary:active { transform: scale(0.98); }

.btn-accent {
  background: linear-gradient(135deg, #2fae72, #0B5D3B);
  color: #eafff2;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.65rem 1.35rem;
  border-radius: 0.8rem;
  transition: box-shadow .2s ease, transform .1s ease, filter .15s ease;
  white-space: nowrap;
}
.btn-accent:hover { box-shadow: 0 0 24px rgba(11,93,59,0.6); filter: brightness(1.12); }
.btn-accent:active { transform: scale(0.98); }

.btn-ghost {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,107,0,0.28);
  color: #f5f3ef;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.55rem 1.05rem;
  border-radius: 9999px;
  transition: all .15s ease;
}
.btn-ghost:hover { background: rgba(255,107,0,0.12); border-color: rgba(255,107,0,0.5); box-shadow: 0 0 20px rgba(0,229,255,0.12); }

.btn-danger {
  background: rgba(255,70,70,0.12);
  border: 1px solid rgba(255,70,70,0.4);
  color: #ff8a8a;
  font-weight: 600;
  font-size: 0.8rem;
  padding: 0.45rem 0.9rem;
  border-radius: 0.65rem;
}
.btn-danger:hover { background: rgba(255,70,70,0.2); }

/* ---------- forms ---------- */
.field-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ff9a52;
  opacity: 0.9;
  margin-bottom: 0.3rem;
}
.field-input {
  width: 100%;
  border: 1.5px solid rgba(255,107,0,0.2);
  border-radius: 0.7rem;
  padding: 0.55rem 0.8rem;
  font-size: 0.9rem;
  background: rgba(255,255,255,0.03);
  color: #f5f3ef;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field-input::placeholder { color: rgba(245,243,239,0.35); }
.field-input:focus { border-color: #ff6b00; box-shadow: 0 0 0 3px rgba(255,107,0,0.15); }

.pill {
  border: 1.5px solid rgba(255,107,0,0.25);
  border-radius: 9999px;
  padding: 0.4rem 0.95rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #f5f3ef;
  background: rgba(255,255,255,0.03);
  transition: all .15s ease;
}
.pill.active { background: linear-gradient(135deg, #ff8a3d, #ff6b00); color: #1a0900; border-color: transparent; box-shadow: 0 0 16px rgba(255,107,0,0.35); }

/* ---------- badges ---------- */
.badge { display: inline-block; padding: 0.18rem 0.65rem; border-radius: 9999px; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.badge-firsttimer { background: rgba(255,107,0,0.15); color: #ff9a52; border: 1px solid rgba(255,107,0,0.3); }
.badge-beginner { background: rgba(255,214,64,0.14); color: #ffd640; border: 1px solid rgba(255,214,64,0.3); }
.badge-improver { background: rgba(47,174,114,0.16); color: #4fd394; border: 1px solid rgba(47,174,114,0.35); }
.badge-intermediate { background: rgba(88,166,255,0.14); color: #79b8ff; border: 1px solid rgba(88,166,255,0.3); }
.badge-advanced { background: rgba(199,120,255,0.14); color: #d19bff; border: 1px solid rgba(199,120,255,0.3); }
.badge-green { background: rgba(47,174,114,0.16); color: #4fd394; border: 1px solid rgba(47,174,114,0.35); }
.badge-amber { background: rgba(255,214,64,0.14); color: #ffd640; border: 1px solid rgba(255,214,64,0.3); }
.badge-red { background: rgba(255,90,90,0.14); color: #ff8a8a; border: 1px solid rgba(255,90,90,0.3); }
.badge-easy { background: rgba(47,174,114,0.16); color: #4fd394; border: 1px solid rgba(47,174,114,0.35); }
.badge-moderate { background: rgba(255,214,64,0.14); color: #ffd640; border: 1px solid rgba(255,214,64,0.3); }
.badge-hard { background: rgba(255,90,90,0.14); color: #ff8a8a; border: 1px solid rgba(255,90,90,0.3); }
.badge-solo { background: rgba(255,107,0,0.16); color: #ff9a52; border: 1px solid rgba(255,107,0,0.35); }

/* ---------- cards ---------- */
.card-hover { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 18px 44px -14px rgba(255,107,0,0.28); border-color: rgba(255,107,0,0.45); }

.avatar {
  width: 46px; height: 46px; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #1a0900; font-size: 0.95rem;
  flex-shrink: 0;
  box-shadow: 0 0 14px rgba(255,107,0,0.3);
}

.stat-card {
  position: relative;
  background: rgba(20,24,22,0.55);
  border: 1px solid rgba(255,107,0,0.16);
  border-radius: 1rem;
  padding: 1.15rem;
  backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -16px rgba(0,229,255,0.25); }
.stat-card .stat-value { font-family: 'Sora', 'Poppins', sans-serif; font-weight: 800; font-size: 1.8rem; background: linear-gradient(135deg, #ff8a3d, #ff6b00 45%, #00e5ff 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-card .stat-label { font-size: 0.72rem; color: rgba(245,243,239,0.55); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- hero / cinematic ---------- */
.hero-cinematic {
  position: relative;
  border-radius: 1.75rem;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(14,17,23,0.35) 0%, rgba(14,17,23,0.55) 55%, #0E1117 100%),
    radial-gradient(ellipse 1300px 750px at 50% 15%, rgba(255,107,0,0.22), transparent 60%),
    radial-gradient(ellipse 900px 600px at 85% 90%, rgba(0,229,255,0.14), transparent 60%),
    radial-gradient(ellipse 700px 600px at 5% 90%, rgba(168,85,247,0.16), transparent 60%),
    linear-gradient(135deg, #0B5D3B 0%, #123024 35%, #0E1117 100%);
  isolation: isolate;
  border: 1px solid rgba(255,255,255,0.06);
}
.hero-cinematic::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.05) 0, transparent 2px),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,0.04) 0, transparent 2px),
    radial-gradient(circle at 45% 80%, rgba(255,255,255,0.05) 0, transparent 2px);
  background-size: 140px 140px;
  opacity: 0.6;
  z-index: -1;
}
.hero-cinematic::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(0,229,255,0.06) 45%, rgba(168,85,247,0.06) 55%, transparent 70%);
  background-size: 250% 250%;
  animation: sheen 7s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}
@keyframes sheen { 0%,100% { background-position: 0% 0%; } 50% { background-position: 100% 100%; } }

.hero-chip {
  position: absolute;
  display: flex; align-items: center; gap: 0.4rem;
  background: rgba(14,17,23,0.65);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
  border-radius: 9999px;
  padding: 0.5rem 0.9rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(245,243,239,0.85);
  box-shadow: 0 12px 30px -12px rgba(0,0,0,0.6);
  animation: floaty 6s ease-in-out infinite;
  white-space: nowrap;
}
.hero-chip.c1 { top: 12%; left: 4%; animation-delay: .2s; }
.hero-chip.c2 { top: 18%; right: 4%; animation-delay: 1.2s; }
.hero-chip.c3 { bottom: 14%; left: 8%; animation-delay: 2s; }
.hero-chip.c4 { bottom: 20%; right: 7%; animation-delay: .8s; }
@media (max-width: 900px) { .hero-chip { display: none; } }

/* ---------- category cards ---------- */
.category-card {
  position: relative;
  border-radius: 1.25rem;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: flex-end;
  padding: 1.25rem;
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, border-color .3s ease;
  cursor: pointer;
  transform-style: preserve-3d;
  perspective: 800px;
}
.category-card:hover { transform: translateY(-6px) scale(1.02) rotateX(2deg); box-shadow: 0 24px 60px -16px rgba(0,0,0,0.65), 0 0 30px -8px rgba(0,229,255,0.18); border-color: rgba(255,255,255,0.18); }
.category-card .cc-overlay {
  position: absolute; inset: 0; z-index: 0;
}
.category-card .cc-content { position: relative; z-index: 1; width: 100%; }
.category-card .cc-emoji {
  font-size: 2.2rem;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5));
}

/* ---------- modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(2,4,4,0.75);
  display: flex; align-items: center; justify-content: center;
  z-index: 100; padding: 1rem;
  backdrop-filter: blur(4px);
}
.modal-card {
  background: rgba(12,14,13,0.94);
  border: 1px solid rgba(255,107,0,0.28);
  border-radius: 1.2rem; padding: 1.6rem;
  width: 100%; max-width: 520px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.8), 0 0 40px -10px rgba(255,107,0,0.15);
  max-height: 90vh; overflow-y: auto;
}

/* ---------- tabs ---------- */
.subtab-btn {
  padding: 0.45rem 0.95rem;
  border-radius: 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(245,243,239,0.6);
  border: 1px solid transparent;
}
.subtab-btn:hover { color: #f5f3ef; }
.subtab-btn.active { background: rgba(255,107,0,0.12); border-color: rgba(255,107,0,0.35); color: #ff9a52; }

/* ---------- notification bell ---------- */
.bell-wrap { position: relative; }
.bell-dot {
  position: absolute; top: -2px; right: -2px;
  width: 10px; height: 10px; border-radius: 9999px;
  background: #ff6b00;
  box-shadow: 0 0 8px rgba(255,107,0,0.8);
  border: 2px solid #0E1117;
}
.notif-panel {
  position: absolute; right: 0; top: calc(100% + 10px);
  width: 320px; max-height: 400px; overflow-y: auto;
  z-index: 60;
}

/* ---------- misc ---------- */
.hero-title {
  font-family: 'Sora', 'Poppins', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.02;
}
.gradient-text {
  background: linear-gradient(135deg, #ff8a3d 0%, #ffd640 35%, #00e5ff 68%, #a855f7 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradientShift 6s ease infinite;
}
.divider-glow {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,107,0,0.5), transparent);
}

/* ---------- auth split shell ---------- */
.auth-shell {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: 1.5rem;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 30px 90px -24px rgba(0,0,0,0.7);
  max-width: 980px;
  width: 100%;
}
@media (min-width: 900px) { .auth-shell { grid-template-columns: 1.05fr 1fr; } }
.auth-visual {
  position: relative;
  padding: 2.75rem 2.25rem;
  min-height: 260px;
  display: flex; flex-direction: column; justify-content: space-between;
  background:
    radial-gradient(ellipse 500px 380px at 20% 0%, rgba(0,229,255,0.20), transparent 60%),
    radial-gradient(ellipse 460px 380px at 90% 90%, rgba(168,85,247,0.22), transparent 60%),
    linear-gradient(160deg, #123024 0%, #0E1117 75%);
  overflow: hidden;
}
.auth-visual::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 25% 35%, rgba(255,255,255,0.06) 0, transparent 2px),
    radial-gradient(circle at 75% 65%, rgba(255,255,255,0.05) 0, transparent 2px);
  background-size: 90px 90px;
  opacity: 0.7;
}
.auth-visual .av-chip {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 9999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.68rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  margin: 0.2rem 0.3rem 0.2rem 0;
}
.auth-form-side {
  background: rgba(12,14,13,0.92);
  padding: 2.5rem 2.25rem;
  display: flex; flex-direction: column; justify-content: center;
}
.auth-input-wrap { position: relative; }
.auth-input-wrap .field-input { padding-left: 2.6rem; }
.auth-input-wrap .ai-icon {
  position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%);
  opacity: 0.55; font-size: 0.95rem; pointer-events: none;
}
.report-card {
  background: #10130f;
  width: 100%;
  max-width: 720px;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(255,107,0,0.25);
  box-shadow: 0 20px 60px -15px rgba(0,0,0,0.6);
}
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  border-radius: 1.1rem;
}

#toast {
  position: fixed; bottom: 1.25rem; left: 50%; transform: translateX(-50%) translateY(20px);
  background: rgba(12,14,13,0.96); color: #f5f3ef; padding: 0.7rem 1.3rem; border-radius: 0.75rem;
  font-size: 0.85rem; font-weight: 600; box-shadow: 0 10px 30px -8px rgba(0,0,0,0.5), 0 0 20px -5px rgba(255,107,0,0.3);
  border: 1px solid rgba(255,107,0,0.3);
  opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 200;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,107,0,0.3); border-radius: 9999px; }

.route-view { animation: fadeUp .35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.float-anim { animation: floaty 4s ease-in-out infinite; }

.event-card-level {
  font-size: 0.7rem; color: rgba(245,243,239,0.55);
}
.progress-bar { height: 6px; border-radius: 9999px; background: rgba(255,255,255,0.08); overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, #ff6b00, #ffd640); border-radius: 9999px; transition: width .3s ease; }

.spinner {
  width: 18px; height: 18px; border-radius: 9999px;
  border: 2px solid rgba(255,107,0,0.25); border-top-color: #ff6b00;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.sticky-register {
  position: sticky; top: 84px;
}
.qr-ticket {
  background: repeating-linear-gradient(45deg, rgba(255,107,0,0.03) 0 10px, transparent 10px 20px), rgba(14,17,15,0.9);
  border: 1.5px dashed rgba(255,107,0,0.4);
  border-radius: 1rem;
}
.masonry { columns: 1; gap: 1rem; }
@media (min-width: 640px) { .masonry { columns: 2; } }
@media (min-width: 1024px) { .masonry { columns: 3; } }
.masonry > div { break-inside: avoid; margin-bottom: 1rem; }
