/* 1. Google Fonts @import */
@import url('https://fonts.googleapis.com/css2?family=Kanit:wght@400;500;600&family=Sarabun:wght@300;400;500;600&display=swap');

/* 2. CSS Custom Properties (:root) */
:root {
  /* Colors */
  --bg-main: #0F1117;
  --bg-card: #161822;
  --bg-elevated: #1C1F2E;
  
  --accent: #FF6B2C;
  --accent-rgb: 255, 107, 44;
  
  --text-primary: #F0F0F5;
  --text-secondary: #A0A3B1;
  --text-muted: #5D6070;
  
  --status-success: #34D399;
  --status-warning: #FBBF24;
  --status-danger: #FB7185;
  --status-info: #60A5FA;
  
  /* Typography */
  --font-display: 'Kanit', sans-serif;
  --font-body: 'Sarabun', sans-serif;
  
  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  
  /* Radii */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-3xl: 24px;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.1);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.2), 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.15), 0 1px 3px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.08);
  --shadow-xl: 0 12px 36px rgba(0,0,0,0.2), 0 -10px 40px rgba(0,0,0,0.4);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.2s ease;
  --transition-slow: 0.3s ease;
  --transition-bounce: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  
  /* Z-Index */
  --z-nav: 1000;
  --z-overlay: 9998;
  --z-panel: 9999;
  --z-toast: 10000;
}

/* 3. CSS Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  background-image: radial-gradient(ellipse 90% 600px at 50% 0px, rgba(255, 85, 0, 0.13) 0%, rgba(255, 85, 0, 0.03) 50%, transparent 100%);
  background-repeat: no-repeat;
  background-attachment: scroll;
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-top: 80px;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255,107,44,0.5);
}

/* Selection */
::selection {
  background: rgba(var(--accent-rgb), 0.2);
  color: var(--text-primary);
}

/* 4. Base Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; }
h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  font-family: var(--font-body);
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition-normal);
}

a:hover {
  color: #FF8550;
}

strong { font-weight: 600; }
small { font-size: 0.875rem; color: var(--text-muted); }

/* 5. Layout Utilities */
.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.flex { display: flex; }
.grid { display: grid; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.flex-1 { flex: 1; }

.gap-1 { gap: var(--space-2); }
.gap-2 { gap: var(--space-3); }
.gap-3 { gap: var(--space-4); }
.gap-4 { gap: var(--space-6); }
.gap-5 { gap: var(--space-8); }

.w-full { width: 100%; }
.h-full { height: 100%; }

.mt-1 { margin-top: var(--space-2); }
.mt-2 { margin-top: var(--space-3); }
.mt-3 { margin-top: var(--space-4); }
.mt-4 { margin-top: var(--space-6); }
.mt-5 { margin-top: var(--space-8); }
.mt-6 { margin-top: var(--space-12); }

.mb-1 { margin-bottom: var(--space-2); }
.mb-2 { margin-bottom: var(--space-3); }
.mb-3 { margin-bottom: var(--space-4); }
.mb-4 { margin-bottom: var(--space-6); }
.mb-5 { margin-bottom: var(--space-8); }
.mb-6 { margin-bottom: var(--space-12); }

.p-1 { padding: var(--space-2); }
.p-2 { padding: var(--space-3); }
.p-3 { padding: var(--space-4); }
.p-4 { padding: var(--space-6); }
.p-5 { padding: var(--space-8); }

.px-1 { padding-left: var(--space-2); padding-right: var(--space-2); }
.px-2 { padding-left: var(--space-3); padding-right: var(--space-3); }
.px-3 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-4 { padding-left: var(--space-6); padding-right: var(--space-6); }

.py-1 { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.py-2 { padding-top: var(--space-3); padding-bottom: var(--space-3); }
.py-3 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-4 { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.py-5 { padding-top: var(--space-8); padding-bottom: var(--space-8); }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.text-success { color: var(--status-success); }
.text-danger { color: var(--status-danger); }

.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.hidden { display: none !important; }
.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.align-items-center { align-items: center; }
.flex-column { flex-direction: column; }
.d-grid { display: grid; }
.d-block { display: block; }
.d-inline-block { display: inline-block; }
@media (min-width: 993px) {
  .d-lg-none { display: none !important; }
}

/* 6. Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: rgba(8, 8, 16, 0.7);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  z-index: var(--z-nav);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.navbar-brand {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-accent {
  color: var(--accent);
}

.navbar-nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-icon {
  display: none;
}

.navbar-nav li {
  display: flex;
  align-items: center;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 0;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

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

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

.nav-link.active {
  color: var(--text-primary);
}

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

.nav-logout {
  color: #fb7185 !important;
  font-weight: 600;
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
}
.nav-logout .nav-icon {
  color: #fb7185 !important;
  display: inline-block !important;
  margin-right: 0 !important; /* using gap instead */
}
.nav-logout:hover {
  color: #f43f5e !important;
  background: rgba(244, 63, 94, 0.05);
  border-radius: 8px;
}
.nav-logout::after {
  background: #f43f5e !important;
}

.nav-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.1);
  transition: border-color 0.3s;
}
.nav-avatar:hover {
  border-color: var(--accent);
}

.nav-avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.15); /* Fallback */
  background: rgba(255,85,0,0.15);
  border: 1px solid var(--accent);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  transition: all 0.3s;
}
.nav-avatar-placeholder:hover {
  background: var(--accent);
  color: white;
}

/* Register button in nav */
.navbar-nav .btn.btn-primary {
  font-size: 13px;
  padding: 7px 18px;
  margin-left: 4px;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.4;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: all 0.3s ease-in-out;
  border-radius: 2px;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* 7. Hero Section */
.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 50px 20px 60px;
  overflow: hidden;
  margin-top: 0;
  background: transparent;
}

.hero-bg,
.hero::before {
  display: none;
}

.hero-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  width: 100%;
}

.hero-content {
  text-align: left;
  max-width: 600px;
  margin: 0;
  z-index: 1;
  position: relative;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 280px;
  flex-shrink: 0;
  z-index: 1;
}

.hero-stats .stat-card {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
  transition: all 0.3s ease;
}

.hero-stats .stat-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateX(-5px);
}

.hero-stats .stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.1);
  background: rgba(255,85,0,0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0;
}

.hero-stats .stat-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stats .stat-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1;
  color: var(--text-primary);
  margin: 0;
}

.hero-stats .stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.hero-tag {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  background: rgba(255,85,0,0.1);
  padding: 6px 16px;
  border-radius: var(--radius-full);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.hero-desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
}

/* Mobile-only elements hidden on desktop */
@media (min-width: 993px) {
  .sidebar-mobile-header, .nav-divider, .nav-icon {
    display: none !important;
  }
}

/* 17. Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
  text-decoration: none;
  outline: none;
  line-height: 1.5;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: #ff7f47;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.3);
  color: #fff;
}

.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}

.btn-danger {
  background: var(--status-danger);
  color: #fff;
}
.btn-danger:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 12px rgba(251,113,133,0.3);
}

.btn-success {
  background: var(--status-success);
  color: #fff;
}
.btn-success:hover {
  filter: brightness(1.1);
  box-shadow: 0 4px 12px rgba(52,211,153,0.3);
}

.btn-sm {
  font-size: 12px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  font-size: 16px;
  padding: 14px 32px;
  border-radius: var(--radius-lg);
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}

.btn:disabled, .btn.disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: not-allowed;
}

/* 9. Cards */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border: none;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card-header {
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.card-footer {
  padding: 16px 24px;
  background: rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,0.03);
}

/* 10. Sport Cards */
.sport-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.sport-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: rgba(255, 85, 0, 0.35);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35), 0 0 25px rgba(255, 85, 0, 0.1);
}

.sport-card-icon {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  background: rgba(255, 85, 0, 0.1);
  border: 1px solid rgba(255, 85, 0, 0.25);
  color: var(--accent);
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  transition: transform var(--transition-slow), box-shadow var(--transition-normal);
  box-shadow: 0 8px 20px rgba(255, 85, 0, 0.15);
}

.sport-card-icon svg,
.sport-icon svg,
.stat-icon-wrapper svg {
  width: 1.15em;
  height: 1.15em;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

.sport-card:hover .sport-card-icon {
  transform: scale(1.08);
  box-shadow: 0 10px 25px rgba(255, 85, 0, 0.25);
}

.sport-card-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.2px;
  color: #ffffff;
  margin-bottom: 6px;
  transition: color var(--transition-normal);
}

.sport-card:hover .sport-card-name {
  color: var(--accent);
}

.sport-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sport-card-availability {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 20px;
}

.avail-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  display: inline-block;
}
.avail-dot.available { background: #34d399; box-shadow: 0 0 6px #34d399; }
.avail-dot.low { background: #fbbf24; box-shadow: 0 0 6px #fbbf24; }
.avail-dot.out { background: #fb7185; box-shadow: 0 0 6px #fb7185; }

.avail-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.sport-card-arrow {
  font-size: 16px;
  color: var(--text-muted);
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  transition: all var(--transition-normal);
}
.sport-card:hover .sport-card-arrow {
  background: var(--accent);
  color: #fff;
  transform: translateX(4px);
}

/* 11. Equipment Grid */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

/* 12. Stats Section */
.stats-section {
  padding: 56px 0;
  background: var(--bg-card);
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255,255,255,0.05);
}
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.stat-icon svg {
  width: 24px;
  height: 24px;
}
.stat-number {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 36px;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.stat-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  color: var(--text-muted);
}

/* 13. Steps Section */
.steps-section,
.section:nth-of-type(odd) {
  background: var(--bg-main);
}
.section:nth-of-type(even) {
  background: var(--bg-card);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.section {
  padding: 72px 0;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step-card {
  background: transparent;
  text-align: center;
  padding: 24px 16px;
  position: relative;
}
.step-badge {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(255, 85, 0, 0.3);
}
.step-title {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.step-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* 14. Status Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}
.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  display: inline-block;
}

.badge-success { background: rgba(52,211,153,0.12); color: var(--status-success); }
.badge-success::before { background: var(--status-success); }

.badge-warning { background: rgba(251,191,36,0.12); color: var(--status-warning); }
.badge-warning::before { background: var(--status-warning); }

.badge-danger { background: rgba(251,113,133,0.12); color: var(--status-danger); }
.badge-danger::before { background: var(--status-danger); }

.badge-info { background: rgba(96,165,250,0.12); color: var(--status-info); }
.badge-info::before { background: var(--status-info); }

/* 15. Forms */
.form-group {
  margin-bottom: 20px;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-control, .form-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  transition: all var(--transition-normal);
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
  outline: none;
  background: var(--bg-card);
}
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23A0A3B1' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.form-hint {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.form-error {
  color: var(--danger);
  font-size: 14px;
  margin-top: 6px;
}

/* Hide native password reveal button in Edge/IE */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
  display: none;
}

/* Custom File Upload Dropzone */
.hidden-file-input {
  display: none;
}
.custom-file-upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 2rem 1rem;
  background: rgba(255,255,255,0.02);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}
.custom-file-upload-zone:hover {
  border-color: var(--accent);
  background: rgba(255,85,0,0.05);
}
.upload-icon {
  display: inline-flex;
  padding: 1rem;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
}
.custom-file-upload-zone:hover .upload-icon {
  transform: translateY(-5px);
  background: rgba(255,85,0,0.1);
}
.file-name-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

/* 16. Tables */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th {
  padding: 14px 20px;
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  font-weight: 500;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.table td {
  padding: 14px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.table tbody tr:hover {
  background: rgba(255,255,255,0.02);
}
.table tbody tr:last-child td {
  border-bottom: none;
}

/* 17. Alerts */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.alert-success { background: rgba(52,211,153,0.08); border-left: 3px solid var(--status-success); color: var(--status-success); }
.alert-error { background: rgba(251,113,133,0.08); border-left: 3px solid var(--status-danger); color: var(--status-danger); }
.alert-warning { background: rgba(251,191,36,0.08); border-left: 3px solid var(--status-warning); color: var(--status-warning); }
.alert-info { background: rgba(96,165,250,0.08); border-left: 3px solid var(--status-info); color: var(--status-info); }

/* 18. Toast */
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-lg);
  display: flex;
  gap: 10px;
  font-size: 14px;
  color: var(--text-primary);
  animation: slideInRight 0.3s forwards;
  min-width: 250px;
  border-left: 4px solid var(--accent);
}
.toast.success { border-left-color: var(--status-success); }
.toast.error { border-left-color: var(--status-danger); }
.toast.hiding { animation: slideOutRight 0.3s forwards; }

/* 19. Detail Panel & Overlay */
.sport-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  z-index: var(--z-overlay);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.sport-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.detail-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--bg-card);
  border-top-left-radius: var(--radius-3xl);
  border-top-right-radius: var(--radius-3xl);
  padding: 32px;
  z-index: var(--z-panel);
  transform: translateY(100%);
  transition: transform var(--transition-bounce);
  max-height: 70vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
}
.detail-panel.show {
  transform: translateY(0);
}

.panel-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  color: var(--text-secondary);
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
}
.panel-close:hover {
  background: rgba(255,255,255,0.12);
  color: var(--text-primary);
}

/* 20. Page Header */
.page-header {
  padding-top: 20px;
  padding-bottom: 40px;
}
.page-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.page-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.breadcrumb a {
  color: var(--text-secondary);
}
.breadcrumb a:hover {
  color: var(--accent);
}
.breadcrumb span::before {
  content: '/';
  margin-right: 8px;
  color: var(--text-muted);
}

/* 21. Profile */
.profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}
.avatar {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  border: 2px solid rgba(var(--accent-rgb), 0.3);
  color: var(--text-primary);
}
.profile-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 4px;
}
.profile-meta {
  font-size: 14px;
  color: var(--text-secondary);
}

/* 22. Loan List */
.loan-item {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  transition: all var(--transition-normal);
}
.loan-item:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  background: rgba(22, 24, 34, 0.8);
}
.loan-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.loan-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}
.loan-detail {
  font-size: 13px;
  color: var(--text-muted);
}

/* 23. Admin Layout */
.admin-layout {
  display: flex;
  min-height: 100vh;
}
.admin-sidebar {
  width: 260px;
  background: var(--bg-main);
  border-right: 1px solid rgba(255,255,255,0.06);
  padding: 24px 0;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.admin-content {
  flex: 1;
  padding: 32px;
  overflow-x: hidden;
  background: var(--bg-card);
}
.sidebar-brand {
  padding: 0 24px;
  margin-bottom: 32px;
}
.sidebar-section {
  margin-bottom: 24px;
}
.sidebar-section-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
  padding: 0 24px;
  margin-bottom: 8px;
  font-weight: 600;
}
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 24px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: all 0.15s ease;
  text-decoration: none;
}
.sidebar-link i { font-size: 16px; width: 20px; text-align: center; }
.sidebar-link:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text-primary);
}
.sidebar-link.active {
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.08);
  border-right: 2px solid var(--accent);
}

/* 24. Flash Messages (Floating Toast) */
.flash-message {
  position: fixed;
  top: 96px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: 50px;
  max-width: 90%;
  width: auto;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 10000;
  pointer-events: auto;
  animation: toastSlideDown 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.flash-message::before {
  content: "✓";
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}
.flash-success {
  background: rgba(14, 28, 22, 0.85);
  color: #34d399;
  border: 1px solid rgba(52, 211, 153, 0.35);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(52, 211, 153, 0.2);
}
.flash-success::before {
  background: #34d399;
  color: #080810;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.6);
}

.flash-error, .flash-danger {
  background: rgba(30, 14, 18, 0.85);
  color: #fb7185;
  border: 1px solid rgba(251, 113, 133, 0.35);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(251, 113, 133, 0.2);
}
.flash-error::before, .flash-danger::before {
  content: "!";
  background: #fb7185;
  color: #080810;
  box-shadow: 0 0 8px rgba(251, 113, 133, 0.6);
}

.flash-warning {
  background: rgba(30, 24, 12, 0.85);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.35);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(251, 191, 36, 0.2);
}
.flash-warning::before {
  content: "!";
  background: #fbbf24;
  color: #080810;
  box-shadow: 0 0 8px rgba(251, 191, 36, 0.6);
}

@keyframes toastSlideDown {
  from {
    opacity: 0;
    transform: translate(-50%, -15px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

/* 25. Loader */
.loader {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 3px solid rgba(255,255,255,0.08);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
.loader-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  width: 100%;
}

/* 26. Section Spacing */
.section {
  padding: 72px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 44px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 26px;
  color: var(--text-primary);
  margin-bottom: 0;
}
.section-subtitle {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 480px;
  margin: 8px auto 0;
}

/* Section alternating backgrounds */
.section-alt {
  background: var(--bg-card);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.section-tinted {
  background: rgba(255,107,44,0.03);
  border-top: 1px solid rgba(255,107,44,0.08);
  border-bottom: 1px solid rgba(255,107,44,0.08);
}

/* 27. CTA Section */
.cta-section {
  padding: 80px 0;
  text-align: center;
  position: relative;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(var(--accent-rgb), 0.05) 100%);
  z-index: -1;
  pointer-events: none;
}
.cta-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  margin-bottom: 12px;
}
.cta-desc {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

/* 28. Footer */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(14, 14, 26, 0.6);
  backdrop-filter: blur(10px);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.footer-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}
.footer-links {
  display: flex;
  gap: 24px;
  align-items: center;
}
.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition-normal);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* 29. Responsive */
@media (max-width: 1200px) {
  .container { max-width: 960px; }
}
@media (max-width: 992px) {
  .hero-layout { flex-direction: column; text-align: center; }
  .hero-content { text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-stats { 
    width: 100%; 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 12px; 
    margin-top: 30px;
  }
  .hero-stats .stat-card { 
    flex-direction: column; 
    text-align: center; 
    padding: 16px; 
    gap: 12px; 
  }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  
  .equipment-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-grid { grid-template-columns: 1fr; }
  
  .admin-layout { flex-direction: column; }
  .admin-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 16px 0;
  }
  .sidebar-brand { margin-bottom: 16px; }
  
  .hamburger { display: flex; z-index: 1002; }
  .navbar-nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100vh;
    background: var(--bg-elevated);
    border-left: 1px solid rgba(255,255,255,0.05);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 0 24px 32px;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001;
    align-items: flex-start;
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
    overflow-y: auto;
    gap: 4px;
  }
  .navbar-nav.show { right: 0; }
  .sidebar-mobile-header {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    margin-bottom: 16px;
  }
  .sidebar-mobile-header .navbar-brand {
    font-size: 1.5rem;
  }
  .nav-divider {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.05);
    margin: 16px 0;
    display: block;
  }
  .nav-icon {
    margin-right: 12px;
    opacity: 0.7;
    transition: 0.3s;
    display: inline-block !important;
  }
  .nav-link:hover .nav-icon, .nav-link.active .nav-icon {
    opacity: 1;
    color: var(--accent);
  }
  .navbar-nav li { width: 100%; margin-bottom: 4px; }
  .nav-link { 
    font-size: 16px; 
    padding: 14px 16px; 
    width: 100%; 
    border-radius: 12px;
    display: flex;
    align-items: center;
    color: var(--text-secondary);
  }
  .nav-link::after {
    display: none;
  }
  .nav-link:hover, .nav-link.active {
    background: rgba(255,255,255,0.03);
    color: var(--text-primary);
  }
  .navbar-nav .btn.btn-primary {
    width: 100%;
    text-align: center;
    padding: 14px;
    font-size: 16px;
    margin-left: 0;
    margin-top: 16px;
    display: block;
  }
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
  }
  body.nav-open .mobile-menu-overlay {
    opacity: 1;
    pointer-events: auto;
  }
}
@media (max-width: 768px) {
  .hero-title { font-size: 2.5rem; }
  .stats-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  
  .card-header, .card-body, .card-footer { padding: 20px; }
  
  /* Loans Table Responsive */
  .loans-table thead { display: none; }
  .loans-table tbody tr {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
    padding: 16px;
    border-radius: var(--radius-md);
  }
  .loans-table tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0 !important;
    border: none !important;
    border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    border-radius: 0 !important;
    font-size: 0.95rem;
  }
  .loans-table tbody td:last-child {
    border-bottom: none !important;
  }
  .loans-table tbody td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
  }
  
  /* Active Loan Card Mobile */
  .active-loan-card { padding: 1.5rem !important; }
  .active-loan-card .d-flex.justify-content-between {
    flex-direction: column;
    align-items: stretch !important;
  }
  .active-loan-card .gap-4 {
    flex-direction: column;
    text-align: center;
    gap: 16px !important;
  }
  .active-loan-card .time-info {
    width: 100%;
    text-align: center !important;
    margin-top: 16px;
  }
}
@media (max-width: 576px) {
  .hero-stats { grid-template-columns: 1fr; }
  .equipment-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  
  .profile-header { flex-direction: column; text-align: center; }
  .loan-item { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* 32. Borrow Page Redesign */
.equipment-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-lg);
}
.equipment-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.1);
  background: rgba(255,85,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  box-shadow: 0 0 30px rgba(255,85,0,0.1);
}
.input-readonly {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-family: var(--font-mono);
}
.summary-box {
  background: rgba(255,85,0,0.05);
  border: 1px solid rgba(255,85,0,0.15);
  border-radius: var(--radius-md);
  padding: 16px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-weight: 500;
}
.summary-label {
  color: var(--text-secondary);
}
.summary-value {
  font-size: 1.25rem;
  font-weight: 700;
}
.summary-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* Custom Select Dropdown */
.custom-select-wrapper {
  position: relative;
  user-select: none;
  width: 100%;
}
.custom-select-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}
.custom-select-display:hover {
  border-color: var(--border-hover);
}
.custom-select-display .chevron {
  transition: transform 0.3s ease;
  color: var(--text-secondary);
}
.custom-select-wrapper.open .custom-select-display {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}
.custom-select-wrapper.open .chevron {
  transform: rotate(180deg);
}
.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: auto;
  min-width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 100;
}
.custom-select-wrapper.open .custom-select-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.custom-option {
  padding: 14px 16px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(255,255,255,0.02);
  white-space: nowrap;
}
.custom-option:last-child {
  border-bottom: none;
}
.custom-option:hover {
  background: rgba(255,255,255,0.03);
  color: var(--text-primary);
}
.custom-option.selected {
  background: rgba(var(--accent-rgb), 0.1);
  color: var(--accent);
  font-weight: 500;
}

/* 30. Animations & Reveals (See animations.css for details, included base hooks) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.reveal.visible { opacity: 1; transform: none; }
.stagger-1 { transition-delay: 0.05s; }
.stagger-2 { transition-delay: 0.1s; }
.stagger-3 { transition-delay: 0.15s; }
.stagger-4 { transition-delay: 0.2s; }
.stagger-5 { transition-delay: 0.25s; }
.stagger-6 { transition-delay: 0.3s; }

/* 31. Tilt Card */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* 32. main-content */
.main-content {
  min-height: calc(100vh - 64px);
  padding-top: 64px;
}

/* 33. Auth Pages */
.auth-page-wrapper {
  position: relative;
  min-height: calc(100vh - 80px); /* minus header */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: -80px;
  padding-top: 80px;
}
.auth-page-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 20% 30%, rgba(var(--accent-rgb), 0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 70%, rgba(255, 85, 0, 0.1) 0%, transparent 40%);
  z-index: 1;
}

.auth-card.glass-panel {
  background: rgba(18, 10, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 48px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  margin: 0 auto;
  position: relative;
}

.auth-card.register-card {
  max-width: 600px;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 2.5rem;
  letter-spacing: 1px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.auth-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 24px;
}

/* Floating Labels for Auth */
.form-floating {
  position: relative;
  margin-bottom: 1rem;
}
.form-floating > label {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  padding: 1rem 1.25rem;
  pointer-events: none;
  border: 1px solid transparent;
  transform-origin: 0 0;
  transition: opacity .15s ease-in-out, transform .15s ease-in-out;
  color: var(--text-muted);
}
.form-floating > .auth-input {
  height: calc(3.5rem + 2px);
  line-height: 1.25;
  padding: 1.625rem 1.25rem 0.625rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: var(--text-primary);
  transition: all 0.3s ease;
  width: 100%;
}
.form-floating > .auth-input:focus {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.15);
}
.form-floating > .auth-input::placeholder {
  color: transparent; /* hide placeholder when not focused */
}
.form-floating > .auth-input:focus ~ label,
.form-floating > .auth-input:not(:placeholder-shown) ~ label {
  opacity: .8;
  transform: scale(.85) translateY(-0.6rem) translateX(0.15rem);
  color: var(--accent);
}

.password-wrapper input {
  padding-right: 48px;
}
.btn-toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  z-index: 5;
}
.btn-toggle-password:hover {
  color: var(--text-primary);
}
.auth-links {
  font-size: 14px;
  color: var(--text-secondary);
}
.form-row {
  display: flex;
  gap: 16px;
}
.form-row .form-group.half {
  flex: 1;
}

.btn-glow {
  box-shadow: 0 10px 25px rgba(var(--accent-rgb), 0.4);
  transition: all 0.3s ease;
  border-radius: 12px;
  border: none;
}
.btn-glow:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(var(--accent-rgb), 0.6);
  background-color: var(--accent-hover);
  color: white;
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .auth-card.glass-panel {
    padding: 32px 20px;
  }
}

.register-card {
  max-width: 600px;
}
.w-100 { width: 100% !important; }
.flex-center { 
  display: flex; 
  align-items: center; 
  justify-content: center; 
}
.min-vh-70 { min-height: 70vh; }
.min-vh-100 { min-height: 100vh; }

@media (max-width: 576px) {
  .auth-card {
    padding: 24px 20px;
  }
  .auth-title {
    font-size: 2rem;
  }
}

/* Custom Confirm Modal */
.custom-confirm-overlay {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.75) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.custom-confirm-overlay.show {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
.custom-confirm-box {
  background: #181824 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 20px !important;
  padding: 32px 28px !important;
  width: 90% !important;
  max-width: 420px !important;
  text-align: center !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
  transform: scale(0.9) translateY(15px);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: #ffffff !important;
}
.custom-confirm-overlay.show .custom-confirm-box {
  transform: scale(1) translateY(0) !important;
}
.custom-confirm-icon {
  width: 64px;
  height: 64px;
  background: rgba(255, 85, 0, 0.15) !important;
  color: #ff5500 !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 20px auto !important;
  border: 1px solid rgba(255, 85, 0, 0.3) !important;
}
.custom-confirm-icon svg {
  width: 32px !important;
  height: 32px !important;
}
.custom-confirm-msg {
  font-size: 1.15rem !important;
  color: #ffffff !important;
  margin-bottom: 28px !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
}
.custom-confirm-actions {
  display: flex !important;
  gap: 12px !important;
  justify-content: center !important;
}
.custom-confirm-btn {
  padding: 12px 28px !important;
  border-radius: 12px !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  cursor: pointer !important;
  border: none !important;
  transition: all 0.2s ease !important;
  flex: 1 !important;
}
.custom-confirm-btn-cancel {
  background: rgba(255, 255, 255, 0.08) !important;
  color: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.custom-confirm-btn-cancel:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}
.custom-confirm-btn-ok {
  background: #ff5500 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(255, 85, 0, 0.35) !important;
}
.custom-confirm-btn-ok:hover {
  background: #ff6e26 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(255, 85, 0, 0.45) !important;
}

/* Live Activity Feed */
.feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.feed-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feed-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.feed-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 85, 0, 0.1);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
  border: 1px solid rgba(255, 85, 0, 0.2);
}

.feed-content {
  flex: 1;
  min-width: 0;
}

.feed-user {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-faculty {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--text-muted);
}

.feed-action {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-action strong {
  color: var(--accent);
  font-weight: 600;
}

.feed-time {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.feed-status {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.feed-status::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.feed-status.status-info, .badge.status-info {
  background: rgba(96, 165, 250, 0.12) !important;
  color: #60a5fa !important;
  border: 1px solid rgba(96, 165, 250, 0.25) !important;
}
.feed-status.status-info::before, .badge.status-info::before {
  background: #60a5fa !important;
  box-shadow: 0 0 6px #60a5fa !important;
}

.feed-status.status-success, .badge.status-success {
  background: rgba(52, 211, 153, 0.12) !important;
  color: #34d399 !important;
  border: 1px solid rgba(52, 211, 153, 0.25) !important;
}
.feed-status.status-success::before, .badge.status-success::before {
  background: #34d399 !important;
  box-shadow: 0 0 6px #34d399 !important;
}

.feed-status.status-warning, .badge.status-warning {
  background: rgba(251, 191, 36, 0.12) !important;
  color: #fbbf24 !important;
  border: 1px solid rgba(251, 191, 36, 0.25) !important;
}
.feed-status.status-warning::before, .badge.status-warning::before {
  background: #fbbf24 !important;
  box-shadow: 0 0 6px #fbbf24 !important;
}

.feed-status.status-danger, .badge.status-danger {
  background: rgba(251, 113, 133, 0.12) !important;
  color: #fb7185 !important;
  border: 1px solid rgba(251, 113, 133, 0.25) !important;
}
.feed-status.status-danger::before, .badge.status-danger::before {
  background: #fb7185 !important;
  box-shadow: 0 0 6px #fb7185 !important;
}


