/* ==========================================================================
   ELECTROREC — UNIVERSITY TECHNICAL CLUB EVENT PORTAL
   Design System & Styling Architecture
   Palette: #020202 (Black), #FFFFFF (White), #EAA943 (Electro Gold)
   ========================================================================== */

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

/* =====================
   CSS VARIABLES
===================== */
:root {
  --black: #020202;
  --black-soft: #0A0A0A;
  --black-card: #111111;
  --black-surface: #171717;

  --white: #FFFFFF;
  --white-soft: #F5F5F5;
  --text-muted: #A7A7A7;
  --text-subtle: #737373;

  --gold: #EAA943;
  --gold-light: #F2C266;
  --gold-dark: #C9892F;
  --gold-glow: rgba(234, 169, 67, 0.12);
  --gold-tint: rgba(234, 169, 67, 0.08);

  --border: #262626;
  --border-subtle: #1C1C1C;
  --border-hover: #3E3E3E;
  --border-gold: rgba(234, 169, 67, 0.5);

  --navbar-bg: rgba(2, 2, 2, 0.85);
  --hero-grid-line: rgba(255, 255, 255, 0.015);
  --modal-overlay: rgba(2, 2, 2, 0.88);
  --input-bg: #0A0A0A;
  --card-media-bg: #070707;
  --badge-bg: rgba(2, 2, 2, 0.85);

  --font-heading: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.6);
  --transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
  color-scheme: light;
  --black: #F8FAFC;
  --black-soft: #EEF2F6;
  --black-card: #FFFFFF;
  --black-surface: #F1F5F9;

  --white: #0F172A;
  --white-soft: #1E293B;
  --text-muted: #475569;
  --text-subtle: #64748B;

  --gold: #C97D16;
  --gold-light: #DF8D1C;
  --gold-dark: #A2610A;
  --gold-glow: rgba(201, 125, 22, 0.18);
  --gold-tint: rgba(201, 125, 22, 0.1);

  --border: #E2E8F0;
  --border-subtle: #EDF2F7;
  --border-hover: #CBD5E1;
  --border-gold: rgba(201, 125, 22, 0.45);

  --navbar-bg: rgba(248, 250, 252, 0.88);
  --hero-grid-line: rgba(15, 23, 42, 0.04);
  --modal-overlay: rgba(15, 23, 42, 0.65);
  --input-bg: #FFFFFF;
  --card-media-bg: #F1F5F9;
  --badge-bg: rgba(255, 255, 255, 0.94);

  --shadow-card: 0 10px 25px -4px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
}

/* =====================
   RESET & GLOBAL
===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

[data-theme="light"] {
  color-scheme: light;
}

body {
  font-family: var(--font-body);
  background-color: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =====================
   TYPOGRAPHY UTILITIES
===================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--white);
}

.text-gold {
  color: var(--gold);
}

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

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-tint);
  border: 1px solid var(--border-gold);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

/* =====================
   NAVBAR
===================== */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--navbar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar .nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.brand-link:hover .brand-logo-img {
  transform: rotate(5deg) scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.24rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
}

.brand-sub {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 32px;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--white-soft);
  transition: color 0.18s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--gold);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--gold);
  transition: width 0.2s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* =====================
   THEME TOGGLE BUTTON
===================== */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--black-card);
  border: 1px solid var(--border);
  color: var(--white-soft);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  padding: 0;
  flex-shrink: 0;
}

.theme-toggle-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
  box-shadow: 0 0 14px var(--gold-glow);
}

.theme-toggle-btn svg {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

/* In dark mode: show sun icon (click to switch to light), hide moon */
:root:not([data-theme="light"]) .theme-toggle-btn .theme-icon-moon {
  display: none;
}
:root:not([data-theme="light"]) .theme-toggle-btn .theme-icon-sun {
  display: block;
}

/* In light mode: show moon icon (click to switch to dark), hide sun */
[data-theme="light"] .theme-toggle-btn .theme-icon-sun {
  display: none;
}
[data-theme="light"] .theme-toggle-btn .theme-icon-moon {
  display: block;
}

/* Nav Admin Portal Button at the top on Navbar */
.btn-nav-admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: rgba(234, 169, 67, 0.08);
  color: var(--gold);
  border: 1px solid rgba(234, 169, 67, 0.35);
  transition: var(--transition);
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.btn-nav-admin:hover {
  background: rgba(234, 169, 67, 0.2);
  border-color: var(--gold);
  color: var(--white);
  box-shadow: 0 0 16px rgba(234, 169, 67, 0.3);
  transform: translateY(-1px);
}

.btn-nav-admin.is-authenticated {
  border-color: rgba(34, 197, 94, 0.6);
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
}

.mobile-only-item {
  display: none;
}

.nav-admin-mobile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold) !important;
  font-weight: 600;
}

/* Nav CTA button */
.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}

.btn-nav-cta:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--white);
  padding: 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* =====================
   HERO SECTION (Centered Minimalist Layout)
===================== */
.hero {
  position: relative;
  padding: 120px 0 90px;
  background:
    radial-gradient(ellipse 65% 50% at 50% 36%, rgba(234, 169, 67, 0.09) 0%, rgba(234, 169, 67, 0) 70%),
    linear-gradient(180deg, var(--black) 0%, var(--black-soft) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

/* Subtle Technical Ambient Grid Backdrop */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 45%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 45%, black 20%, transparent 80%);
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  z-index: 2;
  margin: 0 auto;
  width: 100%;
}

.hero-text-col {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Minimalist Hero Title: "Electrorec" */
.hero-title,
.editorial-title {
  font-family: var(--font-heading);
  font-size: clamp(3.56rem, 8vw, 6.26rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
  font-weight: 600;
  text-transform: none;
  background: linear-gradient(180deg, #FFFFFF 20%, rgba(255, 255, 255, 0.72) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--white);
}

.editorial-word {
  display: inline-block;
  color: var(--white);
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--gold);
  margin-bottom: 20px;
  text-transform: none;
}

.hero-description {
  font-size: clamp(0.84rem, 1.2vw, 0.96rem);
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 36px auto;
  line-height: 1.75;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.hero-scroll-cue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s ease, transform 0.2s ease;
  margin: 0 auto;
  text-decoration: none;
}

.hero-scroll-cue:hover {
  color: var(--gold);
  transform: translateY(2px);
}

.cue-arrow {
  color: var(--gold);
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

.hero-scroll-cue:hover .cue-arrow {
  transform: translateY(3px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background-color: var(--gold);
  color: var(--black);
  box-shadow: 0 4px 16px rgba(234, 169, 67, 0.25);
}

.btn-primary:hover {
  background-color: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(234, 169, 67, 0.35);
}

.btn-secondary {
  background-color: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background-color: var(--black-card);
  border-color: var(--border-hover);
  color: var(--white);
  transform: translateY(-2px);
}

.hero-stats-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 680px;
  margin: 0 auto;
  padding: 20px 24px;
  background: rgba(17, 17, 17, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
}

.stat-num span {
  color: var(--gold);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* =====================
   SECTION SHARED STYLES
===================== */
.section {
  padding: 90px 0;
  position: relative;
}

.section-dark {
  background-color: var(--black-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 48px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  margin-bottom: 12px;
}

.section-desc {
  font-size: 0.98rem;
  color: var(--text-muted);
}

/* =====================
   EVENTS SECTION & EDITORIAL HEADER
===================== */
.section-events {
  padding: 80px 0 90px;
}

.events-editorial-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  gap: 20px;
  flex-wrap: wrap;
}

.events-header-left .section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.section-subtext {
  font-size: 0.96rem;
  color: var(--text-muted);
}

.events-header-right {
  display: flex;
  align-items: center;
}

.events-view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  background: rgba(234, 169, 67, 0.08);
  border: 1px solid rgba(234, 169, 67, 0.3);
  transition: var(--transition);
}

.events-view-all-link:hover {
  background: var(--gold);
  color: var(--black);
  transform: translateX(2px);
}

.events-filters {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--black-card);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover {
  color: var(--white);
  border-color: var(--border-hover);
}

.filter-btn.active {
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
  font-weight: 700;
}

/* Event Grid */
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Event Card */
.event-card {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.event-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7), 0 0 15px rgba(234, 169, 67, 0.08);
}

.card-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--card-media-bg);
  overflow: hidden;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.event-card:hover .card-media img {
  transform: scale(1.04);
}

.card-category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(2, 2, 2, 0.85);
  border: 1px solid var(--border-gold);
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(6px);
}

.card-capacity-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(10, 10, 10, 0.85);
  border: 1px solid var(--border);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

.card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}

.card-meta-list {
  list-style: none;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.card-meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.card-meta-item svg {
  width: 16px;
  height: 16px;
  color: var(--gold);
  flex-shrink: 0;
}

/* Dynamic Registration Status Indicator */
.card-status-box {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
}

.status-indicator.status-open {
  color: #55df8c;
  background: rgba(85, 223, 140, 0.08);
  border-color: rgba(85, 223, 140, 0.25);
}

.status-indicator.status-closed {
  color: #ff5252;
  background: rgba(255, 82, 82, 0.08);
  border-color: rgba(255, 82, 82, 0.25);
}

.status-indicator.status-full {
  color: #eab042;
  background: rgba(234, 176, 66, 0.08);
  border-color: rgba(234, 176, 66, 0.25);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
  box-shadow: 0 0 6px currentColor;
}

/* Capacity progress bar */
.card-capacity-box {
  margin-bottom: 20px;
}

.capacity-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.capacity-bar {
  width: 100%;
  height: 5px;
  background-color: #202020;
  border-radius: var(--radius-full);
  overflow: hidden;
}

.capacity-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold));
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.card-footer {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-card-details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: var(--transition);
  text-align: center;
}

.btn-card-details:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-hover);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-card-register {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-heading);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: none;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-card-register:hover:not(.disabled):not(:disabled) {
  background: var(--gold-light);
  transform: translateY(-1px);
}

.btn-card-register.disabled,
.btn-card-register:disabled {
  background: #262626;
  color: #666666;
  cursor: not-allowed;
  pointer-events: none;
}

/* Empty State / Loading State */
.empty-state, .loading-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: var(--black-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  color: var(--text-muted);
}

.loading-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

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

/* =====================
   ABOUT SECTION
===================== */
.about-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about-content-left h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 20px;
  line-height: 1.15;
}

.about-text {
  font-size: 1.02rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.7;
}

.about-highlights {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.highlight-box {
  background: var(--black-card);
  border: 1px solid var(--border);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
}

.highlight-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--white);
  margin-bottom: 4px;
}

.highlight-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.about-visual-right {
  position: relative;
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.about-visual-right::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(234, 169, 67, 0.2), transparent 70%);
  pointer-events: none;
}

.about-logo-center {
  width: 140px;
  height: 140px;
  margin-bottom: 24px;
}

.about-motto {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--gold);
}

/* =====================
   WHY JOIN US SECTION
===================== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.why-card {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  position: relative;
  transition: var(--transition);
}

.why-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.why-num {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--gold);
  margin-bottom: 18px;
  display: block;
}

.why-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.why-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =====================
   REGISTRATION MODAL
===================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background-color: var(--modal-overlay);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 20px rgba(234, 169, 67, 0.08);
  transform: scale(0.96);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--black-card);
  z-index: 5;
}

.modal-title-wrap h3 {
  font-size: 1.2rem;
  line-height: 1.3;
}

.modal-event-name {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 500;
  margin-top: 3px;
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s ease;
}

.modal-close-btn:hover {
  color: var(--white);
}

.modal-body {
  padding: 24px 26px;
}

/* Form Styles */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white-soft);
  margin-bottom: 6px;
}

.form-label span.req {
  color: var(--gold);
}

.form-input, .form-select {
  width: 100%;
  background-color: var(--input-bg);
  border: 1px solid var(--border);
  color: var(--white);
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  outline: none;
}

.form-input:focus, .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(234, 169, 67, 0.2);
}

.form-input::placeholder {
  color: var(--text-subtle);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-alert {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  margin-bottom: 18px;
  display: none;
}

.form-alert.error {
  display: block;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #F87171;
}

.modal-footer {
  padding: 18px 26px 24px;
  border-top: 1px solid var(--border-subtle);
}

.btn-submit-reg {
  width: 100%;
  background-color: var(--gold);
  color: var(--black);
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 700;
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-submit-reg:hover:not(:disabled) {
  background-color: var(--gold-light);
}

.btn-submit-reg:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Success Confirmation Dialog */
.success-view {
  text-align: center;
  padding: 30px 20px;
}

.success-icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: rgba(234, 169, 67, 0.15);
  border: 2px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.success-title {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.success-sub {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.reg-ticket-card {
  background: var(--black-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: left;
  margin-bottom: 26px;
}

.ticket-header {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.ticket-reg-id {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.ticket-details {
  font-size: 0.88rem;
  color: var(--white-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
}

/* =====================
   FOOTER (RICH MULTI-COLUMN DESIGN)
===================== */
.footer {
  background: linear-gradient(180deg, var(--black-soft) 0%, var(--black) 100%);
  border-top: 1px solid var(--border);
  padding: 72px 0 32px;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
  opacity: 0.35;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.1fr 1.2fr 1.5fr;
  gap: 48px;
  margin-bottom: 56px;
}

.footer-col-brand {
  display: flex;
  flex-direction: column;
}

.footer-brand-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.footer-logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.footer-brand-heading:hover .footer-logo-img {
  transform: rotate(6deg) scale(1.05);
}

.footer-brand-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--white);
  line-height: 1.1;
}

.footer-brand-tag {
  font-size: 0.62rem;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2px;
}

.footer-brand-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 22px;
  max-width: 380px;
}

.footer-social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--black-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  transition: var(--transition);
  text-decoration: none;
}

.social-link:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: var(--gold-tint);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px var(--gold-glow);
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-col-title::after {
  content: '';
  height: 2px;
  width: 16px;
  background: var(--gold);
  border-radius: 2px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links-list a {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: color 0.18s ease, transform 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.footer-links-list a:hover {
  color: var(--white);
  transform: translateX(4px);
}

.footer-links-list a svg {
  color: var(--gold);
  opacity: 0.6;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.footer-links-list a:hover svg {
  opacity: 1;
  transform: translateX(2px);
}

.footer-contact-card {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.7rem;
  color: var(--text-subtle);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-bottom-left div:last-child {
  font-size: 0.65rem !important;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-back-to-top {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--black-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-back-to-top:hover {
  color: var(--gold);
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 2px 10px var(--gold-glow);
}

.footer-admin-link {
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background: var(--gold-tint);
  border: 1px solid var(--border-gold);
  transition: var(--transition);
  text-decoration: none;
}

.footer-admin-link:hover {
  background: rgba(234, 169, 67, 0.2);
  color: var(--white);
  transform: translateY(-1px);
}

/* ==========================================================================
   LIGHT THEME ENHANCEMENTS & COMPONENT REFINEMENTS
   ========================================================================== */
[data-theme="light"] .hero-title,
[data-theme="light"] .editorial-title {
  background: linear-gradient(180deg, #0F172A 20%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #0F172A;
}

[data-theme="light"] .hero::before {
  background-image: 
    linear-gradient(to right, var(--hero-grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hero-grid-line) 1px, transparent 1px);
}

[data-theme="light"] .hero-stats-bar {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .hero-scroll-cue {
  color: var(--text-muted);
}

[data-theme="light"] .hero-scroll-cue:hover {
  color: var(--gold);
}

[data-theme="light"] .card-category-badge {
  background: var(--badge-bg);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .card-capacity-pill {
  background: var(--badge-bg);
  color: var(--white);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .capacity-bar {
  background-color: var(--border);
}

[data-theme="light"] .btn-card-register.disabled,
[data-theme="light"] .btn-card-register:disabled {
  background: #E2E8F0;
  color: #94A3B8;
}

[data-theme="light"] .status-indicator {
  background: rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .highlight-box {
  background: var(--black-surface);
}

[data-theme="light"] .empty-state,
[data-theme="light"] .loading-state {
  background: var(--black-card);
}

/* ==========================================================================
   FAQ SECTION STYLING
   ========================================================================== */

.faq-section {
  padding: 100px 0;
  position: relative;
  background: var(--black);
}

.faq-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px auto;
}

.faq-category-pills {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.faq-cat-pill {
  background: var(--black-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition-fast);
  outline: none;
}

.faq-cat-pill:hover {
  color: var(--white);
  border-color: var(--gold);
  transform: translateY(-1px);
}

.faq-cat-pill.active {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
  box-shadow: 0 4px 14px rgba(234, 169, 67, 0.25);
}

.faq-container {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal), transform var(--transition-fast);
}

.faq-item:hover {
  border-color: rgba(234, 169, 67, 0.4);
}

.faq-item.active {
  border-color: var(--gold);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25), 0 0 15px rgba(234, 169, 67, 0.08);
}

[data-theme="light"] .faq-item.active {
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08), 0 0 15px rgba(201, 125, 22, 0.1);
}

.faq-question-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 26px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  gap: 16px;
  transition: color var(--transition-fast);
}

.faq-question-btn:hover {
  color: var(--gold);
}

.faq-item.active .faq-question-btn {
  color: var(--gold);
}

.faq-icon-wrapper {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--black-surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all var(--transition-normal);
}

.faq-item:hover .faq-icon-wrapper {
  color: var(--gold);
  border-color: var(--gold);
}

.faq-item.active .faq-icon-wrapper {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
  transform: rotate(180deg);
}

.faq-answer-collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-answer-collapse {
  max-height: 500px;
}

.faq-answer-content {
  padding: 0 26px 24px 26px;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.825rem;
  line-height: 1.7;
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
}

.faq-answer-content p {
  margin-bottom: 10px;
}

.faq-answer-content p:last-child {
  margin-bottom: 0;
}

.faq-help-box {
  margin-top: 48px;
  text-align: center;
  padding: 28px;
  background: var(--black-card);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.faq-help-text {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.faq-help-link {
  color: var(--gold);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.faq-help-link:hover {
  color: var(--white);
}

