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

:root {
  /* Core Palette */
  --bg-obsidian: #05070d;
  --bg-deep: #080c17;
  --bg-elevated: rgba(16, 22, 38, 0.90);
  --bg-card: rgba(13, 18, 32, 0.80);
  --bg-glass: rgba(12, 17, 30, 0.82);
  --bg-glass-hover: rgba(18, 25, 44, 0.92);
  --bg-input: rgba(8, 12, 24, 0.88);

  /* Neon Accents */
  --neon-cyan: #00f0ff;
  --neon-cyan-soft: rgba(0, 240, 255, 0.14);
  --neon-cyan-border: rgba(0, 240, 255, 0.36);
  --neon-magenta: #ff1e56;
  --neon-magenta-soft: rgba(255, 30, 86, 0.16);
  --neon-magenta-border: rgba(255, 30, 86, 0.38);

  /* Semantic Accents */
  --color-success: #10b981;
  --color-success-soft: rgba(16, 185, 129, 0.15);
  --color-warning: #f59e0b;
  --color-warning-soft: rgba(245, 158, 11, 0.16);
  --color-danger: #ff3b6b;
  --color-danger-soft: rgba(255, 59, 107, 0.16);
  --color-info: #38bdf8;
  --color-info-soft: rgba(56, 189, 248, 0.15);

  /* Typography & Text */
  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Plus Jakarta Sans', system-ui, sans-serif;

  /* Borders, Blur & Glows */
  --border-glass: rgba(255, 255, 255, 0.10);
  --border-glass-strong: rgba(255, 255, 255, 0.18);
  --blur-glass: blur(18px);
  --glow-cyan: 0 0 25px rgba(0, 240, 255, 0.25);
  --glow-cyan-strong: 0 0 36px rgba(0, 240, 255, 0.42);
  --glow-magenta: 0 0 25px rgba(255, 30, 86, 0.25);
  --shadow-card: 0 18px 45px rgba(0, 0, 0, 0.45);
  --shadow-modal: 0 28px 80px rgba(0, 0, 0, 0.72);

  /* Radii & Spacing */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --radius-pill: 9999px;
  --container-max: 1280px;
  --topbar-height: 76px;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-Index Scale */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 500;
  --z-drawer: 1000;
  --z-modal: 2000;
  --z-toast: 3000;
}

/* ==========================================================================
   Reset & Base Typography
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg-obsidian);
  color: var(--text-main);
  font-family: var(--font-sans);
  scrollbar-color: rgba(0, 240, 255, 0.35) var(--bg-obsidian);
  scrollbar-width: thin;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-obsidian);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(0, 240, 255, 0.08), transparent 36%),
    radial-gradient(circle at 88% 24%, rgba(255, 30, 86, 0.08), transparent 38%),
    radial-gradient(circle at 50% 85%, rgba(0, 240, 255, 0.05), transparent 44%);
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.drawer-open,
body.modal-open {
  overflow: hidden;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.2;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--neon-cyan);
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover {
  color: #7df7ff;
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--neon-cyan);
  outline-offset: 2px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-obsidian);
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.25);
  border-radius: var(--radius-pill);
  border: 2px solid var(--bg-obsidian);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 240, 255, 0.45);
}

/* ==========================================================================
   Layout Utilities
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: 24px;
}

.section {
  position: relative;
  padding-block: 84px;
  z-index: var(--z-base);
}

.section-compact {
  padding-block: 56px;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 12px;
  border-radius: var(--radius-pill);
  background: var(--neon-cyan-soft);
  border: 1px solid var(--neon-cyan-border);
  color: var(--neon-cyan);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 700;
  color: var(--text-main);
}

.section-subtitle {
  margin-top: 8px;
  max-width: 660px;
  color: var(--text-muted);
  font-size: 1rem;
}

.hidden,
[hidden] {
  display: none !important;
}

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

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

.text-cyan {
  color: var(--neon-cyan);
}

.text-magenta {
  color: var(--neon-magenta);
}

/* ==========================================================================
   Minimal Top Navbar (.topbar) & Mobile Drawer
   ========================================================================== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-height);
  z-index: var(--z-sticky);
  display: flex;
  align-items: center;
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border-bottom: 1px solid var(--border-glass);
  transition: var(--transition-base);
}

.topbar.scrolled {
  background: rgba(5, 7, 13, 0.90);
  border-bottom-color: rgba(0, 240, 255, 0.18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand:hover {
  color: var(--text-main);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.22), rgba(255, 30, 86, 0.20));
  border: 1px solid var(--neon-cyan-border);
  box-shadow: var(--glow-cyan);
  flex-shrink: 0;
}

.brand-mark img,
.brand-mark svg {
  width: 20px;
  height: 20px;
}

.brand-dot {
  color: var(--neon-cyan);
}

.nav-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border-radius: var(--radius-pill);
  background: rgba(13, 18, 32, 0.72);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(14px);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  border: 1px solid transparent;
  background: transparent;
  transition: var(--transition-base);
}

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

.nav-link.active {
  color: #031218;
  background: var(--neon-cyan);
  font-weight: 700;
  box-shadow: var(--glow-cyan);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-glass-strong);
  color: var(--text-main);
  font-size: 0.875rem;
  font-weight: 600;
}

.user-avatar-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--neon-cyan), var(--neon-magenta));
  color: #05070d;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
}

/* Mobile Navigation Toggle & Drawer */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-glass-strong);
  color: var(--text-main);
  transition: var(--transition-base);
}

.nav-toggle:hover {
  border-color: var(--neon-cyan-border);
  box-shadow: var(--glow-cyan);
}

.mobile-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: calc(var(--z-drawer) - 1);
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease-smooth), visibility 0.3s var(--ease-smooth);
}

.mobile-drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 86vw);
  z-index: var(--z-drawer);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 20px;
  background: rgba(9, 13, 24, 0.96);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border-right: 1px solid var(--neon-cyan-border);
  box-shadow: 18px 0 48px rgba(0, 0, 0, 0.65);
  transform: translateX(-100%);
  transition: transform 0.32s var(--ease-smooth);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer.open {
  transform: translateX(0);
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-glass);
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-drawer-links .nav-link {
  justify-content: flex-start;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
}

.mobile-drawer-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border-glass);
}

/* ==========================================================================
   Full-Bleed Cinematic Hero Section (.hero-stage)
   ========================================================================== */
.hero-stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: calc(var(--topbar-height) + 48px) 24px 96px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(5, 7, 13, 0.76) 0%, rgba(5, 7, 13, 0.56) 45%, rgba(5, 7, 13, 0.94) 100%),
    url('../img/hero-stage.png') center/cover no-repeat;
}

/* Cyan & Crimson Atmospheric Radial Glows */
.hero-stage::before {
  content: '';
  position: absolute;
  inset: -15%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 34%, rgba(0, 240, 255, 0.22) 0%, transparent 46%),
    radial-gradient(circle at 78% 42%, rgba(255, 30, 86, 0.22) 0%, transparent 48%),
    radial-gradient(circle at 50% 54%, rgba(0, 240, 255, 0.14) 0%, transparent 42%);
}

.hero-stage::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(5, 7, 13, 0.72) 0%, transparent 25%, transparent 75%, rgba(5, 7, 13, 0.72) 100%),
    linear-gradient(180deg, transparent 60%, var(--bg-obsidian) 100%);
}

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

/* Centered Crystal Emblem Glowing Cyan Behind Hero Title */
.hero-emblem {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -56%);
  width: clamp(220px, 34vw, 390px);
  height: clamp(220px, 34vw, 390px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.72;
  filter: drop-shadow(0 0 32px rgba(0, 240, 255, 0.45)) drop-shadow(0 0 68px rgba(255, 30, 86, 0.18));
  animation: heroEmblemFloat 7s ease-in-out infinite;
}

.hero-emblem img,
.hero-emblem svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@keyframes heroEmblemFloat {
  0%, 100% {
    transform: translate(-50%, -56%) scale(1);
    opacity: 0.72;
  }
  50% {
    transform: translate(-50%, -59%) scale(1.03);
    opacity: 0.86;
  }
}

.hero-badge {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  margin-bottom: 18px;
  border-radius: var(--radius-pill);
  background: rgba(13, 18, 32, 0.72);
  border: 1px solid rgba(0, 240, 255, 0.34);
  backdrop-filter: blur(12px);
  color: var(--neon-cyan);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: var(--glow-cyan);
}

.hero-title {
  position: relative;
  z-index: 2;
  font-family: var(--font-display);
  font-size: clamp(3rem, 8.6vw, 6.25rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: var(--text-main);
  text-shadow:
    0 12px 42px rgba(0, 0, 0, 0.75),
    0 0 38px rgba(0, 240, 255, 0.22);
}

.hero-title .accent-dot {
  color: var(--neon-cyan);
  text-shadow: 0 0 28px rgba(0, 240, 255, 0.75);
}

.hero-subtitle {
  position: relative;
  z-index: 2;
  margin-top: 20px;
  max-width: 650px;
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  font-weight: 400;
  color: #e2e8f0;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.75);
}

.hero-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 32px;
}

/* Bottom Hero Bar: Slide Counter (Left) & Contact Links (Right) */
.hero-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-inline: 24px;
  pointer-events: none;
}

.hero-counter,
.hero-contacts {
  pointer-events: auto;
}

.hero-counter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(13, 18, 32, 0.72);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-main);
}

.hero-counter-bar {
  width: 34px;
  height: 2px;
  background: linear-gradient(90deg, var(--neon-cyan), var(--neon-magenta));
  border-radius: var(--radius-pill);
  box-shadow: var(--glow-cyan);
}

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

.hero-contacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.hero-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: rgba(13, 18, 32, 0.72);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  transition: var(--transition-base);
}

.hero-contact-link:hover {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan-border);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

/* ==========================================================================
   Buttons & Pill CTAs
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  min-height: 44px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.93rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: var(--transition-base);
  user-select: none;
}

.btn:active:not(:disabled) {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.52;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-sm {
  padding: 7px 14px;
  min-height: 36px;
  font-size: 0.82rem;
}

.btn-lg {
  padding: 14px 28px;
  min-height: 50px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-neon-cyan {
  background: linear-gradient(135deg, #00f0ff 0%, #00c4db 100%);
  color: #041016;
  border-color: rgba(0, 240, 255, 0.65);
  font-weight: 700;
  box-shadow: var(--glow-cyan);
}

.btn-neon-cyan:hover:not(:disabled) {
  color: #020a0e;
  background: linear-gradient(135deg, #42f5ff 0%, #00e1f7 100%);
  box-shadow: var(--glow-cyan-strong);
  transform: translateY(-2px);
}

.btn-neon-magenta {
  background: linear-gradient(135deg, #ff1e56 0%, #d91448 100%);
  color: #ffffff;
  border-color: rgba(255, 30, 86, 0.65);
  font-weight: 700;
  box-shadow: var(--glow-magenta);
}

.btn-neon-magenta:hover:not(:disabled) {
  color: #ffffff;
  box-shadow: 0 0 34px rgba(255, 30, 86, 0.45);
  transform: translateY(-2px);
}

.btn-glass {
  background: rgba(13, 18, 32, 0.78);
  color: var(--text-main);
  border-color: var(--border-glass-strong);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.btn-glass:hover:not(:disabled) {
  color: var(--neon-cyan);
  background: rgba(18, 25, 44, 0.92);
  border-color: var(--neon-cyan-border);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-glass-strong);
}

.btn-outline:hover:not(:disabled) {
  color: var(--text-main);
  border-color: var(--neon-cyan-border);
  background: rgba(0, 240, 255, 0.08);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}

.btn-ghost:hover:not(:disabled) {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.07);
}

.btn-danger {
  background: var(--color-danger-soft);
  color: #ff8aa5;
  border-color: rgba(255, 59, 107, 0.35);
}

.btn-danger:hover:not(:disabled) {
  background: var(--neon-magenta);
  color: #ffffff;
  border-color: var(--neon-magenta);
  box-shadow: var(--glow-magenta);
}

.btn-primary {
  background: linear-gradient(135deg, #00f0ff 0%, #00c4db 100%);
  color: #041016;
  border-color: rgba(0, 240, 255, 0.65);
  font-weight: 700;
  box-shadow: var(--glow-cyan);
}

.btn-primary:hover:not(:disabled) {
  color: #020a0e;
  background: linear-gradient(135deg, #42f5ff 0%, #00e1f7 100%);
  box-shadow: var(--glow-cyan-strong);
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(148, 163, 184, 0.14);
  color: var(--text-main);
  border-color: rgba(148, 163, 184, 0.32);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(148, 163, 184, 0.24);
  border-color: var(--neon-cyan-border);
  color: #ffffff;
}

.btn-warning {
  background: rgba(245, 158, 11, 0.16);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.48);
}

.btn-warning:hover:not(:disabled) {
  background: rgba(245, 158, 11, 0.32);
  color: #fffbeb;
  border-color: #fbbf24;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.28);
}

.btn-success {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
  border-color: rgba(16, 185, 129, 0.45);
}

.btn-success:hover:not(:disabled) {
  background: rgba(16, 185, 129, 0.3);
  color: #ecfdf5;
  border-color: #34d399;
}

.btn-icon {
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 50%;
}

/* ==========================================================================
   Glassmorphic Panels & Cards
   ========================================================================== */
.glass-panel,
.glass-card,
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  box-shadow: var(--shadow-card);
  transition: var(--transition-base);
}

.glass-card,
.card {
  padding: 22px;
}

.card-interactive:hover,
.event-card:hover,
.media-card:hover {
  border-color: var(--neon-cyan-border);
  background: var(--bg-glass-hover);
  box-shadow: var(--shadow-card), var(--glow-cyan);
  transform: translateY(-4px);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.stat-card {
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  backdrop-filter: var(--blur-glass);
}

.stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.empty-state {
  padding: 44px 24px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: rgba(13, 18, 32, 0.55);
  border: 1px dashed var(--border-glass-strong);
  color: var(--text-muted);
}

/* ==========================================================================
   Inputs, Selects, Textareas & Form Controls
   ========================================================================== */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 16px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
}

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

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="datetime-local"],
input[type="date"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 11px 15px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border-glass-strong);
  color: var(--text-main);
  font-size: 0.94rem;
  transition: var(--transition-base);
}

textarea {
  min-height: 110px;
  resize: vertical;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.form-control::placeholder,
input::placeholder,
textarea::placeholder {
  color: var(--text-dim);
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--neon-cyan);
  background: rgba(10, 16, 32, 0.96);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.16);
}

input[type="file"] {
  padding: 9px 12px;
  color: var(--text-muted);
}

input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 6px 14px;
  border: 1px solid var(--neon-cyan-border);
  border-radius: var(--radius-pill);
  background: var(--neon-cyan-soft);
  color: var(--neon-cyan);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
}

input[type="file"]::file-selector-button:hover {
  background: var(--neon-cyan);
  color: #05070d;
}

.form-error {
  font-size: 0.82rem;
  color: #ff7e9d;
}

/* ==========================================================================
   Badges & Status Pills
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  white-space: nowrap;
}

.badge-cyan {
  background: var(--neon-cyan-soft);
  border-color: var(--neon-cyan-border);
  color: var(--neon-cyan);
}

.badge-magenta {
  background: var(--neon-magenta-soft);
  border-color: var(--neon-magenta-border);
  color: #ff6b8f;
}

.badge-success,
.badge-approved,
.badge-active,
.badge-accepted,
.badge-completed {
  background: var(--color-success-soft);
  border-color: rgba(16, 185, 129, 0.38);
  color: #6ee7b7;
}

.badge-warning,
.badge-pending,
.badge-reviewed {
  background: var(--color-warning-soft);
  border-color: rgba(245, 158, 11, 0.38);
  color: #fcd34d;
}

.badge-danger,
.badge-rejected,
.badge-declined,
.badge-blocked {
  background: var(--color-danger-soft);
  border-color: rgba(255, 59, 107, 0.38);
  color: #ff8aa5;
}

.badge-info {
  background: var(--color-info-soft);
  border-color: rgba(56, 189, 248, 0.38);
  color: #7dd3fc;
}

/* ==========================================================================
   Modals (Centered Desktop -> Bottom Sheet on Mobile < 640px)
   ========================================================================== */
.modal-backdrop,
.modal {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(3, 5, 11, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-smooth), visibility 0.25s var(--ease-smooth);
}

.modal-backdrop.open,
.modal.open,
.modal-backdrop.is-open,
.modal.is-open,
.modal-backdrop.active,
.modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  display: flex;
  flex-direction: column;
  background: rgba(11, 16, 30, 0.94);
  border: 1px solid rgba(0, 240, 255, 0.24);
  border-radius: var(--radius-xl);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  box-shadow: var(--shadow-modal), var(--glow-cyan);
  overflow: hidden;
  transform: translateY(14px) scale(0.98);
  transition: transform 0.28s var(--ease-smooth);
}

.modal-backdrop.open .modal-dialog,
.modal.open .modal-dialog,
.modal-backdrop.is-open .modal-dialog,
.modal.is-open .modal-dialog,
.modal-backdrop.active .modal-dialog,
.modal.active .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-dialog.modal-lg {
  max-width: 800px;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-glass);
  flex-shrink: 0;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  font-size: 1.25rem;
  line-height: 1;
  transition: var(--transition-base);
}

.modal-close:hover {
  color: var(--neon-cyan);
  border-color: var(--neon-cyan-border);
  background: var(--neon-cyan-soft);
}

.modal-body {
  padding: 22px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.modal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border-glass);
  background: rgba(7, 10, 20, 0.55);
  flex-shrink: 0;
}

/* ==========================================================================
   Toast Notifications Container
   ========================================================================== */
.toast-container {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(11, 16, 30, 0.94);
  border: 1px solid var(--border-glass-strong);
  border-left: 4px solid var(--neon-cyan);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  box-shadow: var(--shadow-card);
  color: var(--text-main);
  font-size: 0.9rem;
  animation: toastSlideIn 0.25s var(--ease-smooth);
}

.toast-success {
  border-left-color: var(--color-success);
}

.toast-error {
  border-left-color: var(--neon-magenta);
}

.toast-warning {
  border-left-color: var(--color-warning);
}

.toast-info {
  border-left-color: var(--neon-cyan);
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-glass);
  background: rgba(5, 7, 13, 0.92);
  padding: 40px 0 32px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--neon-cyan);
}

/* ==========================================================================
   Responsive Breakpoints (1200px / 900px / 640px)
   ========================================================================== */
@media (max-width: 1200px) {
  .container,
  .topbar-inner,
  .hero-bottom {
    padding-inline: 20px;
  }
}

@media (max-width: 900px) {
  .nav-pills {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

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

  .hero-bottom {
    position: relative;
    bottom: auto;
    margin-top: 44px;
    padding-inline: 0;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-contacts {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  :root {
    --topbar-height: 68px;
  }

  .section {
    padding-block: 56px;
  }

  .container,
  .topbar-inner {
    padding-inline: 16px;
  }

  .topbar-actions .btn-hide-mobile,
  .topbar-actions .user-pill-name {
    display: none;
  }

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

  .hero-stage {
    padding: calc(var(--topbar-height) + 32px) 16px 40px;
  }

  .hero-emblem {
    width: 210px;
    height: 210px;
  }

  .hero-actions {
    width: 100%;
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  /* Prevent iOS auto-zoom on form input focus */
  .form-control,
  input[type="text"],
  input[type="email"],
  input[type="password"],
  input[type="tel"],
  input[type="number"],
  input[type="search"],
  input[type="datetime-local"],
  input[type="date"],
  select,
  textarea {
    font-size: 16px;
  }

  /* Touch-friendly minimum target size */
  .btn,
  .nav-link,
  .modal-close,
  .hero-contact-link {
    min-height: 44px;
  }

  /* Bottom sheet modal adaptation on mobile */
  .modal-backdrop,
  .modal {
    align-items: flex-end;
    padding: 0;
  }

  .modal-dialog,
  .modal-dialog.modal-lg {
    max-width: 100%;
    max-height: 92dvh;
    border-radius: 20px 20px 0 0;
    border-bottom: none;
    transform: translateY(24px);
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding-inline: 18px;
  }

  .toast-container {
    right: 12px;
    left: 12px;
    bottom: 12px;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-emblem {
    animation: none;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   Multi-Page View Router (Har bir bo'lim = bitta sahifa) & Dedicated Admin
   ========================================================================== */
body.spa-enabled #hero:not(.is-active-page),
body.spa-enabled #main-content > section:not(.is-active-page) {
  display: none !important;
}

body.spa-enabled #main-content > section.is-active-page {
  display: block !important;
  min-height: calc(100dvh - 150px);
  padding-top: calc(var(--topbar-height, 74px) + 34px);
  padding-bottom: 64px;
  animation: pageFadeIn 0.24s ease-out;
}

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

/* Dedicated full-screen Admin page */
body.admin-mode .topbar,
body.admin-mode .site-footer,
body.admin-mode #hero,
body.admin-mode #main-content > section:not(#admin-panel-section) {
  display: none !important;
}

body.admin-mode #main-content > #admin-panel-section.is-active-page {
  padding-top: 0;
  padding-bottom: 0;
  min-height: 100dvh;
}

.user-pill {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-badge-name {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 130px;
}

.user-badge-role {
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(0, 240, 255, 0.14);
  color: var(--neon-cyan, #00f0ff);
  border: 1px solid rgba(0, 240, 255, 0.28);
}

@media (max-width: 1120px) {
  .user-pill {
    display: none;
  }
}
