/* ==========================================================================
   UP HACKATHON RIVALS - MAIN DESIGN SYSTEM
   Theme: Black, Stark White, Orange Accent (#FF5E14 / #FF7A00)
   Modern, Sharp, Futuristic, Highly Readable & Responsive
   ========================================================================== */

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

:root {
  /* Core Colors - Light Mode (Default) */
  --bg-primary: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F1F5F9;
  --bg-elevated: #E2E8F0;
  --bg-card-gradient: linear-gradient(135deg, #FFFFFF, #F8FAFC);

  /* Accent & Brand Colors */
  --brand-orange: #FF5E14;
  --brand-orange-hover: #E04E0B;
  --brand-orange-glow: rgba(255, 94, 20, 0.18);
  --brand-orange-subtle: rgba(255, 94, 20, 0.08);

  /* Typography Colors */
  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-dim: #94A3B8;

  /* Status Colors */
  --status-success: #059669;
  --status-success-bg: rgba(5, 150, 105, 0.12);
  --status-warning: #D97706;
  --status-warning-bg: rgba(217, 119, 6, 0.12);
  --status-danger: #DC2626;
  --status-danger-bg: rgba(220, 38, 38, 0.12);
  --status-info: #2563EB;
  --status-info-bg: rgba(37, 99, 235, 0.12);

  /* Borders & Dividers */
  --border-subtle: #E2E8F0;
  --border-focus: #FF5E14;
  --border-card: #E2E8F0;

  /* Form & Component Backgrounds */
  --input-bg: #FFFFFF;
  --header-bg: rgba(255, 255, 255, 0.96);
  --footer-bg: #0F172A;
  --card-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  --modal-overlay-bg: rgba(15, 23, 42, 0.55);
  color-scheme: light;

  /* Layout */
  --max-width: 1360px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
}

[data-theme="dark"] {
  /* Core Colors - Dark Mode */
  --bg-primary: #080A0E;
  --bg-surface: #0F131A;
  --bg-card: #151A24;
  --bg-card-hover: #1C2230;
  --bg-elevated: #222A3A;
  --bg-card-gradient: linear-gradient(135deg, #161B24, #0F131A);

  /* Accent & Brand Colors */
  --brand-orange: #FF5E14;
  --brand-orange-hover: #FF7A00;
  --brand-orange-glow: rgba(255, 94, 20, 0.25);
  --brand-orange-subtle: rgba(255, 94, 20, 0.12);

  /* Typography Colors */
  --text-primary: #FFFFFF;
  --text-secondary: #CBD5E1;
  --text-muted: #8E9BAE;
  --text-dim: #64748B;

  /* Status Colors */
  --status-success: #10B981;
  --status-success-bg: rgba(16, 185, 129, 0.15);
  --status-warning: #F59E0B;
  --status-warning-bg: rgba(245, 158, 11, 0.15);
  --status-danger: #EF4444;
  --status-danger-bg: rgba(239, 68, 68, 0.15);
  --status-info: #3B82F6;
  --status-info-bg: rgba(59, 130, 246, 0.15);

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: #FF5E14;
  --border-card: #1F2737;

  /* Form & Component Backgrounds */
  --input-bg: #0B0E14;
  --header-bg: rgba(8, 10, 14, 0.96);
  --footer-bg: #05070A;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  --modal-overlay-bg: rgba(0, 0, 0, 0.75);
  color-scheme: dark;
}

[data-theme="light"] {
  /* Core Colors - Light Mode */
  --bg-primary: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F1F5F9;
  --bg-elevated: #E2E8F0;
  --bg-card-gradient: linear-gradient(135deg, #FFFFFF, #F8FAFC);

  /* Accent & Brand Colors */
  --brand-orange: #FF5E14;
  --brand-orange-hover: #E04E0B;
  --brand-orange-glow: rgba(255, 94, 20, 0.18);
  --brand-orange-subtle: rgba(255, 94, 20, 0.08);

  /* Typography Colors */
  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-dim: #94A3B8;

  /* Status Colors */
  --status-success: #059669;
  --status-success-bg: rgba(5, 150, 105, 0.12);
  --status-warning: #D97706;
  --status-warning-bg: rgba(217, 119, 6, 0.12);
  --status-danger: #DC2626;
  --status-danger-bg: rgba(220, 38, 38, 0.12);
  --status-info: #2563EB;
  --status-info-bg: rgba(37, 99, 235, 0.12);

  /* Borders & Dividers */
  --border-subtle: #E2E8F0;
  --border-focus: #FF5E14;
  --border-card: #E2E8F0;

  /* Form & Component Backgrounds */
  --input-bg: #FFFFFF;
  --header-bg: rgba(255, 255, 255, 0.96);
  --footer-bg: #0F172A;
  --card-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  --modal-overlay-bg: rgba(15, 23, 42, 0.55);
  color-scheme: light;
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 { font-size: 2.75rem; }
h2 { font-size: 2.15rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background-color var(--transition-normal), border-color var(--transition-normal);
  width: 100%;
}

[data-theme="light"] .site-header {
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}

.site-header .container {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 100%;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 70px;
  gap: 0.5rem;
  position: relative;
}

/* Brand Identity */
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-logo-img {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-subtle);
  flex-shrink: 0;
}

.brand-text-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: 0.4px;
  display: block;
  white-space: nowrap;
  line-height: 1.15;
}

.brand-name span {
  color: var(--brand-orange);
  margin-left: 2px;
}

/* Small Club Label strictly in header */
.club-sub-label {
  font-size: 0.64rem;
  font-weight: 700;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  line-height: 1;
  margin-top: 2px;
  white-space: nowrap;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.nav-link {
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 5px 7px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background-color: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .nav-link:hover {
  background-color: rgba(15, 23, 42, 0.06);
}

.nav-link.active {
  color: var(--brand-orange);
  font-weight: 600;
}

/* Right Nav Actions & User Account Dropdown */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  white-space: nowrap;
}

.user-menu-dropdown {
  position: relative;
  display: inline-block;
}

.user-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 5px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  user-select: none;
}

.user-menu-trigger:hover,
.user-menu-dropdown.open .user-menu-trigger {
  border-color: var(--brand-orange);
  background-color: var(--bg-card-hover);
  box-shadow: 0 4px 14px var(--brand-orange-glow);
}

.user-avatar-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.95rem;
  font-weight: 800;
  flex-shrink: 0;
}

img.user-avatar-circle,
.user-avatar-img {
  object-fit: cover;
  border: 1.5px solid var(--brand-orange);
  box-shadow: 0 2px 8px rgba(255, 94, 20, 0.35);
}

.user-avatar-logged {
  background: linear-gradient(135deg, #FF7A00, #FF5E14);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(255, 94, 20, 0.35);
}

.user-avatar-guest {
  background-color: var(--brand-orange-subtle);
  color: var(--brand-orange);
  border: 1px solid rgba(255, 94, 20, 0.25);
}

.user-name-label {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-chevron {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.user-menu-dropdown.open .user-chevron {
  transform: rotate(180deg);
}

.user-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 250px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.75rem 0;
  z-index: 1100;
  display: none;
  animation: userDropdownFadeIn 0.2s ease forwards;
}

.user-menu-dropdown.open .user-dropdown-menu {
  display: block;
}

@keyframes userDropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.user-dropdown-header {
  padding: 0.5rem 1rem 0.75rem 1rem;
}

.user-dropdown-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-dropdown-email {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
}

.user-dropdown-divider {
  height: 1px;
  background-color: var(--border-subtle);
  margin: 0.4rem 0;
}

.user-dropdown-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.55rem 1rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  transition: all var(--transition-fast);
}

.user-dropdown-item:hover {
  background-color: var(--bg-card-hover);
  color: var(--brand-orange);
  padding-left: 1.2rem;
}

.user-dropdown-highlight {
  color: var(--brand-orange) !important;
  font-weight: 700;
}

.user-dropdown-logout {
  color: var(--status-danger) !important;
  font-weight: 600;
}

.user-dropdown-logout:hover {
  background-color: var(--status-danger-bg);
  color: #DC2626 !important;
}

.user-dropdown-icon {
  font-size: 1rem;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.nav-actions .btn {
  padding: 0.35rem 0.75rem;
  font-size: 0.82rem;
  white-space: nowrap;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  color: var(--text-primary);
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  padding: 0;
  user-select: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.theme-toggle-btn:hover {
  border-color: var(--brand-orange);
  background-color: var(--bg-card-hover);
  transform: scale(1.08);
  box-shadow: 0 0 10px var(--brand-orange-glow);
}

.theme-toggle-btn:active {
  transform: scale(0.95);
}

/* Dark Theme icon behavior: show moon icon */
[data-theme="dark"] .theme-toggle-btn .icon-moon {
  display: inline-block;
}
[data-theme="dark"] .theme-toggle-btn .icon-sun {
  display: none;
}

/* Light Theme icon behavior: show sun icon */
[data-theme="light"] .theme-toggle-btn .icon-moon {
  display: none;
}
[data-theme="light"] .theme-toggle-btn .icon-sun {
  display: inline-block;
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 7px 11px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 1.25rem;
}


/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.65rem 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-hover));
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px var(--brand-orange-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-orange-hover), #FF9000);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px var(--brand-orange-glow);
}

.btn-secondary {
  background-color: var(--bg-card);
  border-color: var(--border-card);
  color: var(--text-primary) !important;
}

.btn-secondary:hover {
  background-color: var(--bg-card-hover);
  border-color: var(--brand-orange);
  color: #FFFFFF !important;
}

.btn-outline {
  background-color: transparent;
  border-color: var(--brand-orange);
  color: var(--brand-orange) !important;
}

.btn-outline:hover {
  background-color: var(--brand-orange);
  color: #FFFFFF !important;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 0.85rem 1.85rem;
  font-size: 1.05rem;
}

.btn-danger {
  background-color: var(--status-danger);
  color: #FFFFFF !important;
}

.btn-danger:hover {
  background-color: #DC2626;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-success { background: var(--status-success-bg); color: var(--status-success); border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-warning { background: var(--status-warning-bg); color: var(--status-warning); border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-danger { background: var(--status-danger-bg); color: var(--status-danger); border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-info { background: var(--status-info-bg); color: var(--status-info); border: 1px solid rgba(59, 130, 246, 0.3); }
.badge-orange { background: var(--brand-orange-subtle); color: var(--brand-orange); border: 1px solid rgba(255, 94, 20, 0.3); }
.badge-secondary { background: rgba(255, 255, 255, 0.08); color: var(--text-muted); border: 1px solid var(--border-subtle); }

/* ==========================================================================
   CARDS & GRIDS
   ========================================================================== */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: transform var(--transition-normal), border-color var(--transition-normal), background-color var(--transition-normal);
  position: relative;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.card-gradient {
  background: var(--bg-card-gradient) !important;
}

.box-highlight {
  background-color: var(--input-bg);
  border: 1px dashed var(--brand-orange);
}

.card:hover {
  border-color: rgba(255, 94, 20, 0.4);
  transform: translateY(-2px);
}

.card-banner {
  width: calc(100% + 3rem);
  margin: -1.5rem -1.5rem 1.25rem -1.5rem;
  height: 180px;
  object-fit: cover;
  border-bottom: 1px solid var(--border-card);
}

/* ==========================================================================
   FLASH MESSAGES & ALERTS
   ========================================================================== */
.flash-container {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.flash-container:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid transparent;
}

.alert-success { background: var(--status-success-bg); color: #34D399; border-color: rgba(16, 185, 129, 0.3); }
.alert-warning { background: var(--status-warning-bg); color: #FBBF24; border-color: rgba(245, 158, 11, 0.3); }
.alert-danger { background: var(--status-danger-bg); color: #F87171; border-color: rgba(239, 68, 68, 0.3); }
.alert-info { background: var(--status-info-bg); color: #60A5FA; border-color: rgba(59, 130, 246, 0.3); }

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.form-control, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  background-color: var(--input-bg);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.form-control:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 2px var(--brand-orange-subtle);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-hint {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
}

/* ==========================================================================
   HOME SECTIONS & HERO (Full-Bleed Hackathon Arena Reference Design)
   ========================================================================== */
.hero-section {
  padding: 8rem 0 6.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
  min-height: 640px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #06080C;
}

.hero-bg-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.hero-bg-image {
  position: absolute;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  opacity: 0.95;
  filter: saturate(1.2) contrast(1.15) brightness(0.92);
  animation: heroKenBurns 28s ease-in-out infinite alternate;
  will-change: transform;
}

[data-theme="dark"] .hero-bg-image {
  opacity: 0.92;
  filter: saturate(1.25) contrast(1.18) brightness(0.88);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 35%, rgba(255, 94, 20, 0.08) 0%, transparent 60%),
              linear-gradient(180deg, rgba(6, 8, 12, 0.40) 0%, rgba(6, 8, 12, 0.25) 40%, rgba(6, 8, 12, 0.85) 100%);
  transition: background var(--transition-normal);
}

[data-theme="dark"] .hero-bg-overlay {
  background: radial-gradient(circle at 50% 30%, rgba(255, 94, 20, 0.15) 0%, transparent 55%),
              linear-gradient(180deg, rgba(6, 8, 12, 0.45) 0%, rgba(6, 8, 12, 0.30) 40%, rgba(6, 8, 12, 0.92) 100%);
}

.hero-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.35;
  animation: heroOrbFloat 14s ease-in-out infinite alternate;
}

.hero-glow-1 {
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(255, 94, 20, 0.35) 0%, transparent 70%);
  top: -100px;
  left: 25%;
}

.hero-glow-2 {
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(255, 122, 0, 0.25) 0%, transparent 70%);
  bottom: -60px;
  right: 25%;
  animation-delay: -7s;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
  animation: heroContentFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-tagline-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 20px;
  background: rgba(255, 94, 20, 0.22);
  border: 1px solid rgba(255, 94, 20, 0.55);
  border-radius: var(--radius-full);
  color: #FFA066;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(255, 94, 20, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.hero-tagline-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 94, 20, 0.5);
}

.hero-title {
  font-size: clamp(2.5rem, 5.8vw, 4.4rem);
  font-weight: 900;
  color: #FFFFFF !important;
  margin-bottom: 0.5rem;
  letter-spacing: -0.035em;
  line-height: 1.12;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.85);
}

.hero-title span {
  color: #FF7A00;
  background: linear-gradient(135deg, #FFA066, #FF5E14);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 14px rgba(255, 94, 20, 0.5));
}

.hero-slogan {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.25rem, 2.6vw, 1.75rem);
  font-weight: 700;
  color: #FF8F3D;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
}

.hero-desc {
  font-size: clamp(1.05rem, 1.9vw, 1.25rem);
  color: #E2E8F0 !important;
  max-width: 760px;
  margin: 0 auto 2.5rem auto;
  line-height: 1.65;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.hero-cta-group .btn-primary {
  box-shadow: 0 4px 20px rgba(255, 94, 20, 0.4);
}

.hero-cta-group .btn-outline {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-cta-group .btn-outline:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: #FFFFFF;
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25);
}

.hero-cta-group .btn-secondary {
  background: #FFFFFF;
  color: #0F172A !important;
  border: 1px solid #FFFFFF;
  font-weight: 700;
  box-shadow: 0 4px 22px rgba(255, 255, 255, 0.25);
  backdrop-filter: none;
}

.hero-cta-group .btn-secondary:hover {
  background: #F1F5F9;
  border-color: #FFFFFF;
  color: var(--brand-orange) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.4);
}

/* Hero Corner Floating Theme Toggle */
.hero-corner-theme-toggle {
  position: absolute;
  bottom: 2rem;
  right: 2.5rem;
  z-index: 10;
}

.hero-theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  width: auto;
  height: auto;
  border-radius: var(--radius-full);
  background-color: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #FFFFFF !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  transition: all var(--transition-fast);
  user-select: none;
}

.hero-theme-toggle-btn:hover {
  background-color: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255, 94, 20, 0.5);
}

.hero-theme-label-text {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .hero-corner-theme-toggle {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    bottom: auto;
    right: auto;
    margin: 0;
    z-index: 10;
  }
  .hero-theme-toggle-btn {
    padding: 6px 14px;
    font-size: 0.82rem;
    gap: 6px;
  }
  .hero-theme-label-text {
    font-size: 0.75rem;
  }
}

/* Animations */
@keyframes heroKenBurns {
  0% {
    transform: scale(1) translate(0, 0);
  }
  50% {
    transform: scale(1.07) translate(-1.2%, -1%);
  }
  100% {
    transform: scale(1.12) translate(1%, -0.8%);
  }
}

@keyframes heroOrbFloat {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(25px, 18px) scale(1.1);
  }
  100% {
    transform: translate(-20px, -12px) scale(0.95);
  }
}

@keyframes heroContentFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Statistics Section */
.stats-section {
  padding: 3.5rem 0;
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.stat-box {
  text-align: center;
  padding: 1rem;
}

.stat-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--brand-orange);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Section Header */
.section {
  padding: 5rem 0;
}

.section-header {
  margin-bottom: 3rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

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

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background-color: var(--footer-bg);
  border-top: 1px solid var(--border-subtle);
  padding: 4rem 0 2rem 0;
}

[data-theme="light"] .site-footer .footer-brand-title {
  color: #FFFFFF;
}

[data-theme="light"] .site-footer .footer-heading {
  color: #FFFFFF;
}

[data-theme="light"] .site-footer .footer-links a {
  color: #94A3B8;
}

[data-theme="light"] .site-footer .footer-links a:hover {
  color: var(--brand-orange);
}

[data-theme="light"] .site-footer .footer-bottom {
  color: #64748B;
  border-top-color: rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand-title {
  font-size: 1.4rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.footer-brand-tagline {
  color: var(--brand-orange);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.footer-heading {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--brand-orange);
}

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

.footer-right-actions {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.footer-links-inline {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-theme-toggle-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-theme-toggle-wrapper .theme-toggle-btn {
  width: 36px;
  height: 36px;
  font-size: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-color: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

[data-theme="light"] .footer-theme-toggle-wrapper .theme-toggle-btn {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.footer-theme-toggle-wrapper .theme-toggle-btn:hover {
  background-color: var(--brand-orange);
  border-color: var(--brand-orange);
  transform: scale(1.1);
  box-shadow: 0 0 12px var(--brand-orange-glow);
}

/* ==========================================================================
   RESPONSIVENESS & MOBILE SYSTEM
   ========================================================================== */
@media (max-width: 1180px) {
  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    order: 3;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    color: var(--text-primary);
    font-size: 1.35rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    margin-left: 0.35rem;
  }
  
  .mobile-nav-toggle:hover,
  .mobile-nav-toggle[aria-expanded="true"] {
    border-color: var(--brand-orange);
    color: var(--brand-orange);
    background: var(--brand-orange-subtle);
  }

  .nav-actions {
    order: 2;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .nav-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: calc(100vh - 70px);
    background-color: var(--bg-surface);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 2px solid var(--brand-orange);
    flex-direction: column;
    padding: 1.5rem 1.25rem 3rem 1.25rem;
    gap: 0.45rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
    z-index: 1050;
    overflow-y: auto;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .nav-menu.open {
    display: flex;
    animation: mobileMenuSlide 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  @keyframes mobileMenuSlide {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .nav-menu .nav-link {
    font-size: 1rem;
    font-weight: 600;
    padding: 0.8rem 1rem;
    width: 100%;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
  }

  .nav-menu .nav-link:hover,
  .nav-menu .nav-link.active {
    background-color: var(--brand-orange-subtle);
    color: var(--brand-orange);
    border-color: rgba(255, 94, 20, 0.3);
  }

  .navbar {
    min-height: 64px;
    padding: 0.5rem 0;
  }
}

@media (max-width: 992px) {
  .hero-title { font-size: 2.6rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .site-header .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .brand-name {
    font-size: 1.02rem;
  }
  .brand-logo-img {
    width: 34px;
    height: 34px;
  }
  .club-sub-label {
    font-size: 0.58rem;
  }
  .user-menu-trigger {
    padding: 4px 8px 4px 4px;
    gap: 6px;
  }
  .user-name-label {
    max-width: 75px;
    font-size: 0.82rem;
  }
  .user-dropdown-menu {
    width: 240px;
    max-width: calc(100vw - 1.5rem);
  }
  .hero-section {
    padding: 5rem 1rem 3.5rem 1rem;
    min-height: auto;
    text-align: center;
  }
  .hero-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto;
  }
  .hero-tagline-badge {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
  }
  .hero-title { 
    text-align: center;
    width: 100%;
    font-size: clamp(2rem, 8vw, 2.75rem); 
    line-height: 1.15;
  }
  .hero-slogan { 
    text-align: center;
    width: 100%;
    font-size: 1.15rem; 
  }
  .hero-desc { 
    text-align: center;
    width: 100%;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.95rem; 
    line-height: 1.55; 
    margin-bottom: 1.75rem;
  }
  .hero-cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    gap: 0.75rem;
  }
  .hero-cta-group .btn {
    width: 100%;
    padding: 0.75rem 1.25rem;
    text-align: center;
  }
  .hero-corner-theme-toggle {
    position: absolute;
    top: 1rem;
    left: 1rem;
    bottom: auto;
    right: auto;
    margin: 0;
    z-index: 10;
  }
  .section {
    padding: 3.5rem 0;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
  }
  .section-title {
    font-size: 1.65rem;
  }
  .section-subtitle {
    font-size: 0.9rem;
  }
  .grid-2, .grid-3, .grid-4 { 
    grid-template-columns: 1fr; 
    gap: 1.25rem; 
  }
  .card {
    padding: 1.25rem;
  }
  .footer-grid { 
    grid-template-columns: 1fr; 
    gap: 2rem; 
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  .table-responsive {
    width: 100%;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.5rem;
  }
  .data-table {
    min-width: 560px;
  }
}

@media (max-width: 480px) {
  .site-header .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  .nav-brand {
    gap: 6px;
  }
  .brand-name {
    font-size: 0.92rem;
  }
  .club-sub-label {
    display: none;
  }
  .user-name-label {
    max-width: 60px;
    font-size: 0.78rem;
  }
  .hero-section {
    padding: 4.5rem 0.75rem 3rem 0.75rem;
    text-align: center;
  }
  .hero-corner-theme-toggle {
    top: 0.75rem;
    left: 0.75rem;
  }
  .hero-theme-toggle-btn {
    padding: 5px 11px;
    font-size: 0.75rem;
    gap: 5px;
  }
  .hero-theme-label-text {
    font-size: 0.7rem;
  }
  .hero-title {
    font-size: 1.95rem;
    text-align: center;
  }
  .hero-tagline-badge {
    font-size: 0.7rem;
    padding: 4px 10px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-slogan {
    text-align: center;
  }
  .hero-desc {
    text-align: center;
  }
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .form-control, .form-select {
    font-size: 16px; /* Prevents auto-zoom on mobile browsers */
  }
}

@media (max-width: 360px) {
  .user-name-label {
    display: none;
  }
  .brand-name {
    font-size: 0.86rem;
  }
}

/* ==========================================================================
   ENTRY WELCOME AUTH MODAL (Pop-up Portal)
   ========================================================================== */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(6, 8, 12, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.auth-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 470px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem 1.75rem 2rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55), 0 0 30px var(--brand-orange-glow);
  transform: scale(0.92) translateY(16px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-modal-overlay.active .auth-modal-dialog {
  transform: scale(1) translateY(0);
}

.auth-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.auth-modal-close:hover {
  color: var(--brand-orange);
  transform: scale(1.15);
}

.auth-modal-brand {
  text-align: center;
  margin-bottom: 1.25rem;
}

.auth-modal-logo {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-subtle);
  margin-bottom: 0.5rem;
}

.auth-modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.auth-modal-title span {
  color: var(--brand-orange);
}

.auth-modal-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.auth-modal-tabs {
  display: flex;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: 1.25rem;
  gap: 4px;
}

.auth-modal-tab-btn {
  flex: 1;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

.auth-modal-tab-btn:hover {
  color: var(--text-primary);
}

.auth-modal-tab-btn.active {
  background-color: var(--brand-orange);
  color: #FFFFFF !important;
  box-shadow: 0 2px 10px rgba(255, 94, 20, 0.4);
}

.auth-modal-tab-panel {
  display: none;
}

.auth-modal-tab-panel.active {
  display: block;
  animation: authPanelFade 0.25s ease both;
}

@keyframes authPanelFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-modal-footer {
  text-align: center;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.auth-modal-guest-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.auth-modal-guest-btn:hover {
  color: var(--brand-orange);
  text-decoration: underline;
}

@media (max-width: 540px) {
  .auth-modal-dialog {
    padding: 1.5rem 1.15rem 1.25rem 1.15rem;
    max-height: 94vh;
  }
  .auth-modal-tabs {
    flex-direction: row;
    border-radius: var(--radius-full);
    gap: 4px;
    padding: 3px;
  }
  .auth-modal-tab-btn {
    padding: 7px 8px;
    font-size: 0.8rem;
    border-radius: var(--radius-full);
  }
}

/* ==========================================================================
   LIVE ACTIVITIES SPOTLIGHT MODAL (Current Hackathons, Challenges & Events)
   ========================================================================== */
.live-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(6, 8, 12, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.live-modal-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.live-modal-dialog {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem 1.5rem 1.75rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 35px var(--brand-orange-glow);
  transform: scale(0.92) translateY(18px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.live-modal-overlay.active .live-modal-dialog {
  transform: scale(1) translateY(0);
}

.live-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), transform var(--transition-fast);
  z-index: 10;
}

.live-modal-close:hover {
  color: var(--brand-orange);
  transform: scale(1.15);
}

.live-modal-header {
  text-align: center;
  margin-bottom: 1.15rem;
  padding-right: 1.5rem;
  padding-left: 1.5rem;
}

.live-modal-badge-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
}

.live-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  background: rgba(255, 94, 20, 0.14);
  border: 1px solid rgba(255, 94, 20, 0.4);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--brand-orange);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #22C55E;
  box-shadow: 0 0 8px #22C55E;
  animation: pulseDotAnim 1.5s infinite;
}

@keyframes pulseDotAnim {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.5;
  }
}

.live-club-pill {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-surface);
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
}

.live-modal-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.38rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin: 0 0 0.25rem 0;
}

.live-modal-title span {
  color: var(--brand-orange);
}

.live-modal-subtitle {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
  max-width: 480px;
  margin: 0 auto;
}

.live-modal-tabs {
  display: flex;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 4px;
  margin-bottom: 1rem;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.live-modal-tabs::-webkit-scrollbar {
  display: none;
}

.live-tab-btn {
  flex: 1;
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 12px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.live-tab-btn:hover {
  color: var(--text-primary);
}

.live-tab-btn.active {
  background-color: var(--brand-orange);
  color: #FFFFFF !important;
  box-shadow: 0 2px 10px rgba(255, 94, 20, 0.4);
}

.live-tab-count {
  font-size: 0.68rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.28);
  padding: 1px 6px;
  border-radius: 999px;
  line-height: 1.3;
}

.live-modal-body {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: 46vh;
}

.live-modal-body::-webkit-scrollbar {
  width: 6px;
}

.live-modal-body::-webkit-scrollbar-track {
  background: transparent;
}

.live-modal-body::-webkit-scrollbar-thumb {
  background: var(--border-subtle);
  border-radius: 999px;
}

.live-modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--brand-orange);
}

.live-activity-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.live-activity-card:hover {
  border-color: rgba(255, 94, 20, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.live-activity-card.hidden {
  display: none !important;
}

.live-card-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}

.activity-type-badge {
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  font-size: 0.68rem;
  letter-spacing: 0.4px;
}

.badge-hackathon {
  background: rgba(255, 94, 20, 0.15);
  color: var(--brand-orange);
  border: 1px solid rgba(255, 94, 20, 0.35);
}

.badge-challenge {
  background: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.badge-event {
  background: rgba(168, 85, 247, 0.15);
  color: #C084FC;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.activity-mode-badge {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.68rem;
}

.activity-status-badge {
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
}

.status-active {
  background: rgba(34, 197, 94, 0.15);
  color: #4ADE80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-upcoming {
  background: rgba(234, 179, 8, 0.15);
  color: #FACC15;
  border: 1px solid rgba(234, 179, 8, 0.3);
}

.status-completed {
  background: rgba(148, 163, 184, 0.15);
  color: #94A3B8;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.live-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

.live-card-theme {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-orange);
}

.live-card-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 0;
}

.live-card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  margin-top: 2px;
}

[data-theme="light"] .live-card-meta {
  background: rgba(0, 0, 0, 0.03);
}

.live-meta-item {
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
  gap: 1px;
}

.live-meta-label {
  color: var(--text-dim);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.live-meta-val {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.8rem;
}

.highlight-val {
  color: #F59E0B;
  font-weight: 700;
}

.live-card-action {
  margin-top: 4px;
}

.btn-card-action {
  display: inline-block;
  width: 100%;
  text-align: center;
  background: rgba(255, 94, 20, 0.1);
  color: var(--brand-orange);
  border: 1px solid rgba(255, 94, 20, 0.3);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-card-action:hover {
  background: var(--brand-orange);
  color: #FFFFFF;
  border-color: var(--brand-orange);
}

.live-activity-empty {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--bg-surface);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
}

.live-modal-footer {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  text-align: center;
}

.live-modal-cta {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.live-modal-skip-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition-fast);
}

.live-modal-skip-btn:hover {
  color: var(--brand-orange);
  text-decoration: underline;
}

@media (max-width: 580px) {
  .live-modal-dialog {
    padding: 1.35rem 1rem 1rem 1rem;
    max-height: 92vh;
  }
  .live-modal-header {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    margin-bottom: 0.85rem;
  }
  .live-modal-title {
    font-size: 1.18rem;
  }
  .live-modal-tabs {
    padding: 3px;
    gap: 3px;
  }
  .live-tab-btn {
    padding: 6px 8px;
    font-size: 0.75rem;
  }
  .live-card-meta {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
}

/* ==========================================================================
   GLOBAL GENERIC MODAL STYLES (.modal & .modal-overlay)
   ========================================================================== */
.modal,
.modal-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(6, 8, 12, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: none !important;
  align-items: center;
  justify-content: center;
  z-index: 2100;
  padding: 1.5rem;
  box-sizing: border-box;
}

.modal.open,
.modal-overlay.open {
  display: flex !important;
}

.modal-content,
.modal-box {
  background-color: var(--bg-card, #131722);
  border: 1px solid var(--border-card, rgba(255, 255, 255, 0.08));
  border-radius: var(--radius-lg, 12px);
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.25rem 2rem;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.75);
  animation: modalScaleIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) both;
  color: var(--text-primary);
  text-align: left;
}

[data-theme="light"] .modal-content,
[data-theme="light"] .modal-box {
  background-color: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 25px 60px rgba(15, 23, 42, 0.15);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
}

.modal-header h2,
.modal-header h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all var(--transition-fast, 0.2s);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close-btn:hover {
  color: var(--brand-orange, #FF5E14);
  background: rgba(255, 94, 20, 0.1);
}

.modal-body {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
  margin-top: 1.5rem;
}


