/* ==============================================================================
   KARIEV.UZ — GALACTIC PORTAL ARCHITECTURE (DEEP SPACE COSMOS THEME)
   ============================================================================== */

:root {
  --space-void: #02050e;
  --space-surface: rgba(8, 14, 30, 0.65);
  --space-surface-hover: rgba(15, 25, 52, 0.82);
  --space-border: rgba(56, 189, 248, 0.18);
  --space-border-hover: rgba(56, 189, 248, 0.55);
  
  --photon-cyan: #38bdf8;
  --photon-blue: #3b82f6;
  --photon-indigo: #6366f1;
  --photon-purple: #a855f7;
  --photon-amber: #f59e0b;
  --photon-emerald: #10b981;
  
  --text-pure: #ffffff;
  --text-starlight: #f1f5f9;
  --text-nebula: #94a3b8;
  --text-deep: #64748b;
}

/* 1. Permanent Galaxy Canvas Layer */
.galaxy-canvas-layer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 15%, #081638 0%, #030818 50%, #02050e 100%) no-repeat fixed;
}

/* Subtle Spatial Vignette Overlay */
.cosmic-vignette {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 40%, rgba(2, 5, 14, 0.65) 100%);
}

/* 2. Top Minimalist Cosmic HUD (Replacing bulky navbar) */
.cosmic-hud {
  width: 100%;
  max-width: 1240px;
  margin: 16px auto 0;
  padding: 10px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(8, 14, 30, 0.55);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--space-border);
  border-radius: 99px;
  position: sticky;
  top: 14px;
  z-index: 100;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 189, 248, 0.12);
  transition: all 0.3s ease;
}

.hud-brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  position: relative;
  padding: 4px 6px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hud-brand-link:hover {
  transform: translateY(-1px) scale(1.03);
}

.hud-brand-name {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.4px;
  line-height: 1;
  display: inline-flex;
  align-items: baseline;
  user-select: none;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.8));
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hud-brand-name .brand-stem {
  background: linear-gradient(135deg, #ffffff 25%, #f1f5f9 65%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
  text-shadow: 0 0 24px rgba(255, 255, 255, 0.25);
}

.hud-brand-name .hud-suffix {
  font-weight: 950;
  background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 50%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-left: 2px;
  filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.85));
  position: relative;
}

/* Subtle Cosmic Sparkle Accent */
.hud-brand-name .hud-suffix::before {
  content: '';
  position: absolute;
  top: -2px;
  right: -5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8, 0 0 16px #38bdf8;
  opacity: 0.8;
  animation: cosmicSparkle 3s infinite ease-in-out;
}

@keyframes cosmicSparkle {
  0%, 100% { opacity: 0.35; transform: scale(0.75); }
  50% { opacity: 1; transform: scale(1.35); }
}

.hud-brand-link:hover .hud-brand-name {
  filter: drop-shadow(0 0 24px rgba(56, 189, 248, 0.65)) drop-shadow(0 2px 10px rgba(0, 0, 0, 0.9));
}

/* HUD Action Controls */
.hud-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hud-intro-btn {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 99px;
  height: 34px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.hud-intro-btn:hover {
  background: rgba(56, 189, 248, 0.22);
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}

.hud-admin-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-nebula);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.hud-admin-btn:hover {
  color: #fff;
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.15);
  transform: scale(1.06);
}

/* 3. Central Galactic Main Container */
.galactic-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px 80px;
  max-width: 1240px;
  margin: 0 auto;
  width: 100%;
}

/* 4. The Supermassive Core Centerpiece */
.galaxy-core-hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 56px;
  position: relative;
}

.galaxy-singularity-chamber {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  cursor: pointer;
}

/* Rotating Accretion Disk / Event Horizon */
.accretion-disk {
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(56, 189, 248, 0.45), rgba(99, 102, 241, 0.3), rgba(168, 85, 247, 0.4), rgba(56, 189, 248, 0.45));
  filter: blur(18px);
  animation: accretionSpin 18s linear infinite;
  opacity: 0.75;
}

@keyframes accretionSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.planetary-ring-outer {
  position: absolute;
  width: 220px;
  height: 70px;
  border: 1.5px dashed rgba(56, 189, 248, 0.35);
  border-radius: 50%;
  transform: rotate(-25deg);
  pointer-events: none;
  animation: ringTiltFloat 6s ease-in-out infinite alternate;
}

@keyframes ringTiltFloat {
  0% { transform: rotate(-25deg) translateY(0); }
  100% { transform: rotate(-22deg) translateY(-5px); }
}

/* Centerpiece Emblem Badge */
.singularity-badge {
  position: relative;
  z-index: 5;
  width: 110px;
  height: 110px;
  border-radius: 32px;
  background: linear-gradient(145deg, rgba(16, 26, 52, 0.9), rgba(4, 8, 20, 0.98));
  border: 1.5px solid rgba(56, 189, 248, 0.45);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.7), 0 0 50px rgba(56, 189, 248, 0.3), inset 0 1px 2px rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}

.singularity-badge img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(56, 189, 248, 0.6));
  transition: transform 0.4s ease;
}

.galaxy-singularity-chamber:hover .singularity-badge {
  transform: scale(1.08) translateY(-6px);
  border-color: rgba(56, 189, 248, 0.85);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 75px rgba(56, 189, 248, 0.6);
}

.galaxy-singularity-chamber:hover .singularity-badge img {
  transform: scale(1.08);
}

/* Galaxy Status Pill */
.galaxy-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 99px;
  color: var(--photon-cyan);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.15);
}

.galaxy-title {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(34px, 5.5vw, 62px);
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -1.2px;
  margin-bottom: 18px;
}

.galaxy-title .cosmic-gradient-span {
  background: linear-gradient(135deg, #ffffff 0%, #38bdf8 45%, #818cf8 80%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 30px rgba(56, 189, 248, 0.35));
}

.galaxy-subtitle {
  color: var(--text-nebula);
  font-size: clamp(15px, 2vw, 18px);
  max-width: 680px;
  margin: 0 auto 34px;
  line-height: 1.7;
}

/* Fast Action Navigation Pill Hub */
.galaxy-quick-dock {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.dock-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 16px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dock-btn-primary {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.45);
}

.dock-btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 15px 35px rgba(37, 99, 235, 0.65);
}

.dock-btn-glass {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-starlight);
  backdrop-filter: blur(16px);
}

.dock-btn-glass:hover {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.4);
  color: #fff;
  transform: translateY(-2px);
}

/* 5. Telemetry Strip */
.galaxy-telemetry-ribbon {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
  margin-bottom: 56px;
  padding: 22px 28px;
  background: rgba(8, 14, 30, 0.6);
  border: 1px solid var(--space-border);
  border-radius: 24px;
  backdrop-filter: blur(24px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.telemetry-node {
  text-align: center;
  position: relative;
}

.telemetry-node:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.07);
}

.telemetry-val {
  font-family: 'Outfit', sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.telemetry-val span {
  font-size: 16px;
  color: var(--photon-cyan);
}

.telemetry-lbl {
  font-size: 12.5px;
  color: var(--text-nebula);
  font-weight: 500;
  margin-top: 4px;
}

/* 6. Orbital Constellation Modules Grid (The Linked Center Hub) */
.constellation-header {
  text-align: center;
  margin-bottom: 34px;
}

.constellation-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.6px;
  margin-bottom: 8px;
}

.constellation-header p {
  color: var(--text-nebula);
  font-size: 15px;
}

.constellation-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 980px;
  margin: 0 auto 60px;
  width: 100%;
}

/* Cosmic Pod Card */
.cosmic-pod-card {
  position: relative;
  background: rgba(8, 14, 30, 0.7);
  border: 1px solid var(--space-border);
  border-radius: 26px;
  padding: 32px 26px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(28px);
  overflow: hidden;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.cosmic-pod-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--pod-accent, var(--photon-cyan)), transparent);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.cosmic-pod-card:hover {
  transform: translateY(-6px);
  border-color: var(--pod-border-hover, rgba(56, 189, 248, 0.6));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 35px var(--pod-glow, rgba(56, 189, 248, 0.25));
  background: rgba(14, 22, 46, 0.85);
}

.cosmic-pod-card:hover::before {
  opacity: 1;
}

.pod-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 22px;
}

.pod-icon-chamber {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  transition: all 0.35s ease;
}

.cosmic-pod-card:hover .pod-icon-chamber {
  transform: scale(1.1) rotate(4deg);
  background: var(--pod-accent, var(--photon-cyan));
  box-shadow: 0 0 20px var(--pod-accent, var(--photon-cyan));
}

.pod-sector-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--pod-accent, var(--photon-cyan));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cosmic-pod-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}

.cosmic-pod-card p {
  color: var(--text-nebula);
  font-size: 14.5px;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 24px;
}

.pod-tag-cloud {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.pod-tag-pill {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-deep);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-weight: 600;
}

.pod-launch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 13px 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.3s ease;
}

.cosmic-pod-card:hover .pod-launch-btn {
  background: var(--pod-accent, var(--photon-cyan));
  border-color: transparent;
  box-shadow: 0 6px 20px var(--pod-glow, rgba(56, 189, 248, 0.4));
}

.pod-launch-btn svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.cosmic-pod-card:hover .pod-launch-btn svg {
  transform: translateX(4px);
}

/* 7. Galactic Footer */
.galaxy-footer {
  width: 100%;
  padding: 40px 24px 34px;
  background: rgba(2, 5, 14, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: auto;
}

.galaxy-footer-container {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

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

.footer-nav-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-nav-links a {
  color: var(--text-nebula);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

/* Responsive */
@media (max-width: 1024px) {
  .constellation-grid { grid-template-columns: repeat(2, 1fr); }
  .galaxy-telemetry-ribbon { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .hud-telemetry { display: none; }
}

@media (max-width: 768px) {
  .cosmic-hud {
    margin: 12px auto 0;
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    padding: 8px 16px;
    position: sticky;
    top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .hud-brand-link {
    margin: 0 auto;
    justify-content: center;
  }
  .hud-brand-name {
    font-size: 24px;
    letter-spacing: -0.3px;
  }
  .hud-actions {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
  }

  .galactic-main { padding: 24px 16px 50px; }
  .constellation-grid { grid-template-columns: 1fr; gap: 16px; }
  .galaxy-telemetry-ribbon { grid-template-columns: repeat(2, 1fr); padding: 18px 16px; }
  .telemetry-node:not(:last-child)::after { display: none; }
  .galaxy-title { font-size: 32px; line-height: 1.25; }
  
  .galaxy-footer {
    padding: 36px 16px 110px; /* Safe space to prevent floating chat trigger overlap */
  }
  .galaxy-footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 22px;
  }
  .footer-cosmic-brand {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
  .footer-nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    width: 100%;
  }
  .footer-nav-links a {
    padding: 7px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    font-size: 13px;
    transition: all 0.2s ease;
  }
  .footer-nav-links a:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.35);
  }
  .footer-copyright {
    text-align: center;
    padding: 0 10px;
    font-size: 12px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.4);
  }
}

/* ==============================================================================
   COSMIC STUDENT IDENTITY & GATEKEEPER SYSTEM
   ============================================================================== */

/* 1. HUD Student Badge (Top Header) */
.hud-student-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.18), inset 0 0 12px rgba(56, 189, 248, 0.08);
  border-radius: 99px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: hudPillGlow 4s infinite alternate ease-in-out;
}

@keyframes hudPillGlow {
  0% { border-color: rgba(56, 189, 248, 0.35); box-shadow: 0 0 15px rgba(56, 189, 248, 0.12); }
  100% { border-color: rgba(56, 189, 248, 0.65); box-shadow: 0 0 25px rgba(56, 189, 248, 0.28); }
}

.hud-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981, 0 0 14px #10b981;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 0.6; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.25); }
}

.hud-pill-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #94a3b8;
  text-transform: uppercase;
}

.hud-pill-id {
  font-family: 'Outfit', monospace;
  font-size: 13.5px;
  font-weight: 800;
  color: #38bdf8;
  letter-spacing: 0.5px;
}

.hud-pill-name {
  font-size: 12.5px;
  font-weight: 700;
  color: #f1f5f9;
  padding-left: 4px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.hud-pill-switch {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
  margin-left: 2px;
}

.hud-pill-switch:hover {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.5);
  color: #38bdf8;
  transform: rotate(90deg);
}

/* 2. Hero Student Verification Chamber (Prominent Hero Card) */
.galaxy-student-chamber {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 22px auto 8px;
  text-align: left;
}

.gsc-glow-aura {
  position: absolute;
  inset: -1px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.35), rgba(16, 185, 129, 0.2), rgba(99, 102, 241, 0.35));
  filter: blur(14px);
  opacity: 0.6;
  z-index: 0;
  pointer-events: none;
}

.gsc-card {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, rgba(10, 18, 38, 0.88) 0%, rgba(5, 10, 24, 0.94) 100%);
  border: 1px solid rgba(56, 189, 248, 0.32);
  border-radius: 20px;
  padding: 16px 22px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.gsc-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.gsc-avatar {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(16, 185, 129, 0.2));
  border: 1px solid rgba(56, 189, 248, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.gsc-avatar-pulse {
  position: absolute;
  inset: -3px;
  border-radius: 18px;
  border: 1px solid rgba(56, 189, 248, 0.5);
  animation: avatarPulse 2.5s infinite ease-out;
}

@keyframes avatarPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  100% { transform: scale(1.2); opacity: 0; }
}

.gsc-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.gsc-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gsc-status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: #34d399;
  text-transform: uppercase;
}

.gsc-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.gsc-phone {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

.gsc-name {
  font-family: 'Outfit', sans-serif;
  font-size: 19px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}

.gsc-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.gsc-id-box {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 14px;
  padding: 8px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.gsc-id-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #94a3b8;
  text-transform: uppercase;
}

.gsc-id-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gsc-id-val {
  font-family: 'Outfit', monospace;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.8px;
  color: #38bdf8;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}

.gsc-copy-btn {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 8px;
  padding: 3px 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #38bdf8;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gsc-copy-btn:hover {
  background: rgba(56, 189, 248, 0.25);
  border-color: rgba(56, 189, 248, 0.6);
  transform: translateY(-1px);
}

.gsc-switch-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gsc-switch-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

/* 3. Gatekeeper Modal (Blocking Screen When No ID Provided) */
body.gatekeeper-locked {
  overflow: hidden !important;
}

body.gatekeeper-locked .galactic-main,
body.gatekeeper-locked .galaxy-footer {
  filter: blur(10px);
  pointer-events: none;
  user-select: none;
}

.gatekeeper-overlay {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.gatekeeper-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 35%, rgba(12, 22, 50, 0.94) 0%, rgba(2, 5, 14, 0.98) 100%);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
}

.gatekeeper-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  background: linear-gradient(145deg, rgba(12, 20, 42, 0.95) 0%, rgba(6, 11, 26, 0.98) 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), 0 0 50px rgba(56, 189, 248, 0.18);
  border-radius: 26px;
  padding: 34px 28px 26px;
  text-align: center;
  box-sizing: border-box;
  animation: gatekeeperEntrance 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes gatekeeperEntrance {
  from { opacity: 0; transform: scale(0.92) translateY(18px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.gatekeeper-glow-ring {
  position: absolute;
  inset: 0;
  border-radius: 26px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.4), transparent 60%) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.gatekeeper-emblem-wrap {
  position: relative;
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gatekeeper-emblem-aura {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.4), transparent 70%);
  animation: emblemAuraPulse 3s infinite alternate ease-in-out;
}

@keyframes emblemAuraPulse {
  0% { transform: scale(0.85); opacity: 0.5; }
  100% { transform: scale(1.25); opacity: 0.9; }
}

.gatekeeper-emblem-icon {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(99, 102, 241, 0.25));
  border: 1px solid rgba(56, 189, 248, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.3);
}

.gatekeeper-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  border-radius: 99px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #fb7185;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.gatekeeper-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f43f5e;
  box-shadow: 0 0 8px #f43f5e;
  animation: pulseDot 1.6s infinite ease-in-out;
}

.gatekeeper-title {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}

.gatekeeper-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: #94a3b8;
  margin-bottom: 22px;
}

.gatekeeper-desc b {
  color: #38bdf8;
  font-weight: 700;
}

/* Telegram Bot CTA Card */
.gatekeeper-bot-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 18px;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18) 0%, rgba(37, 99, 235, 0.22) 100%);
  border: 1px solid rgba(56, 189, 248, 0.45);
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 20px rgba(56, 189, 248, 0.15);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin-bottom: 20px;
}

.gatekeeper-bot-card:hover {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.28) 0%, rgba(37, 99, 235, 0.35) 100%);
  border-color: rgba(56, 189, 248, 0.75);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 30px rgba(56, 189, 248, 0.3);
  transform: translateY(-2px);
}

.gbc-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #0284c7;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.4);
}

.gbc-text {
  flex: 1;
  text-align: left;
}

.gbc-title {
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.gbc-sub {
  font-size: 11.5px;
  color: #7dd3fc;
  font-weight: 600;
  margin-top: 1px;
}

.gbc-arrow {
  color: #38bdf8;
  display: flex;
  align-items: center;
  transition: transform 0.25s ease;
}

.gatekeeper-bot-card:hover .gbc-arrow {
  transform: translateX(4px);
}

.gatekeeper-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
}

.gatekeeper-divider::before,
.gatekeeper-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.gatekeeper-divider span {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Form */
.gatekeeper-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gatekeeper-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: rgba(5, 10, 24, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 16px;
  padding: 4px 6px 4px 14px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
  transition: all 0.25s ease;
}

.gatekeeper-input-wrapper:focus-within {
  border-color: #38bdf8;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3), inset 0 2px 6px rgba(0, 0, 0, 0.6);
}

.giw-icon {
  font-size: 18px;
  margin-right: 8px;
  opacity: 0.85;
}

.gatekeeper-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  padding: 10px 4px;
}

.gatekeeper-input::placeholder {
  color: #475569;
  font-weight: 500;
  font-size: 13.5px;
}

.gatekeeper-submit-btn {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  border: none;
  border-radius: 12px;
  padding: 10px 18px;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.35);
}

.gatekeeper-submit-btn:hover {
  background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
}

.gatekeeper-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.gatekeeper-alert {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.5;
  text-align: left;
}

.gatekeeper-alert.error {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fecdd3;
}

.gatekeeper-alert.success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #a7f3d0;
}

.shake {
  animation: shakeAnim 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shakeAnim {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

.gatekeeper-footer-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.gatekeeper-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
  text-decoration: none;
  transition: color 0.2s ease;
}

.gatekeeper-admin-link:hover {
  color: #94a3b8;
}

/* Responsive adjustment for Mobile */
@media (max-width: 768px) {
  .cosmic-hud {
    margin: 8px 12px 0;
    padding: 6px 14px;
  }
  .hud-brand-name {
    font-size: 20px;
  }
  .hud-student-pill {
    padding: 3px 8px;
    gap: 5px;
  }
  .hud-pill-tag {
    font-size: 10px;
  }
  .hud-pill-id {
    font-size: 12px;
    font-weight: 800;
  }
  .hud-pill-name {
    display: none;
  }
  .hud-admin-btn {
    width: 32px;
    height: 32px;
  }
  .galactic-main {
    padding: 8px 14px 36px;
  }
  .galaxy-core-hero {
    margin-bottom: 20px;
    padding-top: 6px;
  }
  .galaxy-singularity-chamber {
    width: 76px;
    height: 76px;
    margin: 0 auto 10px;
  }
  .singularity-badge {
    width: 52px;
    height: 52px;
    border-radius: 16px;
  }
  .singularity-badge img {
    width: 34px;
    height: 34px;
  }
  .planetary-ring-outer {
    width: 96px;
    height: 96px;
  }
  .accretion-disk {
    inset: -14px;
  }
  .galaxy-status-pill {
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    letter-spacing: 0.4px;
    margin-bottom: 10px;
  }
  .galaxy-title {
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
  }
  .galaxy-subtitle {
    font-size: 12px;
    line-height: 1.5;
    margin: 0 auto 16px;
    padding: 0 4px;
    color: #94a3b8;
  }
  .galaxy-student-chamber {
    margin: 0 auto 20px;
    max-width: 440px;
  }
  .gsc-card {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 14px;
    border-radius: 18px;
    gap: 10px;
  }
  .gsc-left {
    gap: 10px;
    align-items: center;
  }
  .gsc-avatar {
    width: 38px;
    height: 38px;
    font-size: 18px;
    border-radius: 12px;
  }
  .gsc-name {
    font-size: 15px;
    font-weight: 800;
  }
  .gsc-right {
    justify-content: space-between;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .constellation-header {
    margin-bottom: 14px;
  }
  .constellation-header h2 {
    font-size: 18px;
    margin-bottom: 4px;
  }
  .constellation-header p {
    font-size: 11.5px;
  }
  .constellation-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .cosmic-pod-card {
    padding: 16px 14px;
    border-radius: 18px;
  }
  .pod-head {
    margin-bottom: 10px;
  }
  .pod-icon-chamber {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  .cosmic-pod-card h3 {
    font-size: 16.5px;
    margin-bottom: 5px;
  }
  .cosmic-pod-card p {
    font-size: 12px;
    line-height: 1.45;
    margin-bottom: 12px;
  }
  .pod-tag-cloud {
    gap: 5px;
    margin-bottom: 14px;
  }
  .pod-tag-pill {
    font-size: 10px;
    padding: 3px 7px;
  }
  .pod-launch-btn {
    padding: 10px 14px;
    font-size: 12.5px;
    border-radius: 12px;
  }
  .gatekeeper-card {
    padding: 24px 18px 18px;
    border-radius: 22px;
  }
  .gatekeeper-title {
    font-size: 19px;
  }
  .gatekeeper-desc {
    font-size: 12px;
  }
}



