:root {
  --bg-deep: #020204;
  --bg-liquid-base: rgba(10, 11, 16, 0.72);
  --bg-liquid-hover: rgba(18, 20, 30, 0.85);
  --bg-liquid-deep: rgba(6, 7, 10, 0.88);
  
  /* Liquid Glass Borders & Sheen */
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-border-hover: rgba(0, 170, 255, 0.45);
  --glass-highlight: inset 0 1px 1px 0 rgba(255, 255, 255, 0.25), inset 0 -1px 2px 0 rgba(0, 153, 255, 0.15);
  --glass-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 153, 255, 0.05);
  --glass-shadow-hover: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 153, 255, 0.2);
  
  --accent: #0099ff;
  --accent-cyan: #00d2ff;
  --accent-glow: rgba(0, 153, 255, 0.45);
  --accent-bright: #38bdf8;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #475569;
  
  --green: #22c55e;
  --red: #ef4444;
  --gold: #f59e0b;
  
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 40px;
  --font-heading: 'Unbounded', sans-serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: -15%;
  left: 15%;
  width: 65vw;
  height: 60vh;
  background: radial-gradient(circle, rgba(0, 160, 255, 0.09) 0%, transparent 65%);
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  bottom: -15%;
  right: 10%;
  width: 55vw;
  height: 55vh;
  background: radial-gradient(circle, rgba(130, 60, 255, 0.06) 0%, transparent 65%);
  filter: blur(110px);
  pointer-events: none;
  z-index: 0;
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #020204;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  border: 2px solid #020204;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* Background Canvas */
#interactive-grid-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

/* Liquid Ambient Refraction Blobs */
.glow-spot {
  position: fixed;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 450px;
  background: radial-gradient(ellipse at center, rgba(0, 153, 255, 0.18) 0%, rgba(0, 80, 255, 0.05) 55%, transparent 75%);
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  animation: liquidPulse 8s ease-in-out infinite alternate;
}

@keyframes liquidPulse {
  0% { transform: translateX(-50%) scale(1); opacity: 0.8; }
  100% { transform: translateX(-48%) scale(1.15); opacity: 1; }
}

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography Helpers */
h1, h2, h3, h4, .brand-name {
  font-family: var(--font-heading);
  letter-spacing: -0.5px;
}

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

.accent-glow {
  color: var(--accent-cyan);
  text-shadow: 0 0 25px rgba(0, 210, 255, 0.55);
}

.text-green { color: var(--green); }
.text-red { color: var(--red); }

/* ========================================================
   LIQUID GLASS HEADER & NAVBAR
   ======================================================== */
.header {
  position: sticky;
  top: 14px;
  z-index: 100;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 20px;
}

.header-inner {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  
  /* Liquid Glass Style */
  background: rgba(12, 14, 22, 0.65);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), 0 15px 35px rgba(0, 0, 0, 0.7);
  border-radius: var(--radius-pill);
  padding: 0 24px;
  transition: var(--transition);
}

.header-inner:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.brand-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(0, 180, 255, 0.75));
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand:hover .brand-logo {
  transform: scale(1.1) rotate(4deg);
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
}

/* Liquid Nav Pill */
.nav {
  display: flex;
  gap: 4px;
  background: rgba(0, 0, 0, 0.45);
  padding: 4px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-link {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(0, 153, 255, 0.3) 0%, rgba(0, 80, 255, 0.2) 100%);
  border: 1px solid var(--border-bright, rgba(0, 180, 255, 0.5));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.3), 0 0 16px rgba(0, 153, 255, 0.3);
}

.admin-nav-btn {
  color: var(--gold) !important;
}
.admin-nav-btn.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.25) 0%, rgba(200, 100, 0, 0.2) 100%) !important;
  border-color: rgba(245, 158, 11, 0.5) !important;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.3) !important;
}

/* User / Guest Auth Pills */
.auth-bar {
  display: flex;
  align-items: center;
}

.guest-actions, .user-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight);
  padding: 5px 14px 5px 6px;
  border-radius: 30px;
  cursor: pointer;
  transition: var(--transition);
}
.user-badge:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 170, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 170, 255, 0.25);
}

.user-avatar-mini {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--accent-cyan);
}

.user-name-mini {
  font-size: 0.88rem;
  font-weight: 600;
}

.role-tag {
  background: rgba(0, 170, 255, 0.18);
  color: var(--accent-cyan);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid rgba(0, 170, 255, 0.3);
}
.role-tag.admin {
  background: rgba(245, 158, 11, 0.18);
  color: var(--gold);
  border-color: rgba(245, 158, 11, 0.4);
}

/* ========================================================
   LIQUID BUTTONS
   ======================================================== */
.btn {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

/* Liquid Accent Button */
.btn-accent {
  background: linear-gradient(135deg, #00b4d8 0%, #0077b6 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 0 25px rgba(0, 180, 255, 0.35);
}
.btn-accent:hover {
  background: linear-gradient(135deg, #00c6eb 0%, #0088cc 100%);
  transform: translateY(-2px);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.6), 0 0 35px rgba(0, 180, 255, 0.55);
}

/* Liquid Dark Button */
.btn-dark {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight);
  backdrop-filter: blur(12px);
}
.btn-dark:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* Hero Accent Large */
.btn-accent-lg {
  background: linear-gradient(135deg, #00b4d8 0%, #0066cc 100%);
  color: #fff;
  padding: 15px 34px;
  font-size: 1.05rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5), 0 8px 30px rgba(0, 153, 255, 0.4);
}
.btn-accent-lg:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: inset 0 1px 3px rgba(255, 255, 255, 0.7), 0 12px 40px rgba(0, 180, 255, 0.65);
}

/* Hero Dark Large */
.btn-dark-lg {
  background: rgba(16, 18, 28, 0.7);
  backdrop-filter: blur(20px);
  color: #fff;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), 0 8px 25px rgba(0, 0, 0, 0.5);
  padding: 15px 34px;
  font-size: 1.05rem;
  border-radius: var(--radius);
}
.btn-dark-lg:hover {
  background: rgba(25, 28, 42, 0.85);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
  box-shadow: var(--glass-highlight), 0 12px 35px rgba(0, 0, 0, 0.7);
}

/* Liquid White Download Button */
.btn-download {
  width: 100%;
  background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 100%);
  color: #07090e;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 16px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(0, 180, 255, 0.25), inset 0 1px 2px #fff;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-download::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent);
  transition: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-download:hover::before {
  left: 100%;
}
.btn-download:hover {
  background: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 16px 45px rgba(0, 210, 255, 0.45), inset 0 1px 2px #fff;
  color: #000;
}

.btn-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight);
  color: var(--text-muted);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.btn-icon:hover {
  color: #fff;
  border-color: var(--accent-cyan);
  background: rgba(0, 170, 255, 0.15);
  box-shadow: 0 0 15px rgba(0, 170, 255, 0.3);
}

.btn-xs {
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight);
}
.btn-xs:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 170, 255, 0.15);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--glass-border);
  color: var(--accent-cyan);
}
.btn-outline:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 170, 255, 0.1);
}

.btn-link {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
}
.btn-link:hover {
  color: #fff;
  text-decoration: underline;
}

/* ========================================================
   MAIN & TAB SYSTEM (100% RELIABLE LIQUID TRANSITION)
   ======================================================== */
.main {
  position: relative;
  z-index: 10;
  padding-top: 35px;
  padding-bottom: 90px;
  min-height: calc(100vh - 160px);
}

.tab-pane {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.tab-pane.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* PANE HEAD */
.pane-head {
  text-align: center;
  margin-bottom: 45px;
}
.pane-head h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.pane-head p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ========================================================
   HERO SECTION (LIQUID GLASS SPLIT LAYOUT)
   ======================================================== */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: center;
  padding: 30px 0 60px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.hero-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 18, 28, 0.7);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight);
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.dot-green {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--green);
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 18px;
}

.hero-desc {
  max-width: 600px;
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 38px;
}

.hero-btns {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
}

.hero-chips-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-chip {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}
.hero-chip:hover {
  border-color: rgba(0, 180, 255, 0.35);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 180, 255, 0.15);
}

.hero-servers-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 34px;
  font-size: 0.82rem;
}
.servers-label {
  color: var(--text-muted);
  font-weight: 500;
  margin-right: 4px;
}
.server-tag {
  background: rgba(0, 180, 255, 0.06);
  border: 1px solid rgba(0, 180, 255, 0.2);
  color: var(--accent-cyan);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  width: 100%;
}

.stat-box {
  background: var(--bg-liquid-base);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), var(--glass-shadow);
  padding: 22px 18px;
  border-radius: var(--radius);
  text-align: center;
  transition: var(--transition);
}
.stat-box:hover {
  background: var(--bg-liquid-hover);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-4px);
  box-shadow: var(--glass-highlight), var(--glass-shadow-hover);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

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

/* ========================================================
   PHYSICS BADGE SCENE (LIQUID 3D SUSPENSION)
   ======================================================== */
.physics-badge-scene {
  position: relative;
  width: 360px;
  height: 480px;
  perspective: 1000px;
  user-select: none;
  touch-action: none;
}

#lanyard-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 360px;
  height: 480px;
  pointer-events: none;
  z-index: 1;
}

.physics-badge {
  position: absolute;
  top: 60px;
  left: 65px;
  width: 230px;
  height: 350px;
  border-radius: 18px;
  
  /* Liquid Obsidian Glass Card */
  background: linear-gradient(155deg, rgba(22, 25, 36, 0.92) 0%, rgba(8, 10, 14, 0.96) 100%);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.35), inset 0 -1px 2px rgba(0, 180, 255, 0.2), 0 30px 70px rgba(0, 0, 0, 0.95), 0 0 40px rgba(0, 153, 255, 0.25);
  transform-style: preserve-3d;
  cursor: grab;
  z-index: 2;
  will-change: transform;
}
.physics-badge:active {
  cursor: grabbing;
}

/* Top Clip & Ring */
.badge-strap-clip {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.badge-metal-ring {
  width: 18px;
  height: 12px;
  border: 3px solid #64748b;
  border-radius: 4px;
  background: #0f172a;
}
.badge-slot {
  width: 36px;
  height: 14px;
  background: linear-gradient(180deg, #334155 0%, #1e293b 100%);
  border-radius: 4px;
  border: 1px solid #475569;
}

.badge-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 18px;
  overflow: hidden;
}

.badge-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.08) 45%, rgba(0, 210, 255, 0.3) 50%, rgba(255, 255, 255, 0.08) 55%, transparent 80%);
  pointer-events: none;
  mix-blend-mode: overlay;
  transition: opacity 0.2s;
}

.badge-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  letter-spacing: 0.5px;
}
.badge-chip {
  color: #f59e0b;
  font-size: 1.15rem;
}

.badge-avatar-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 12px auto;
}
.badge-avatar-glow {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 180, 255, 0.6) 0%, transparent 70%);
}
.badge-avatar-img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 25px rgba(0, 180, 255, 0.6);
  background: #000;
}

.badge-info-block {
  text-align: center;
  margin-bottom: 6px;
}
.badge-user-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
}
.badge-user-sub {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 1px;
}

.badge-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  padding-top: 12px;
}
.badge-code-block {
  display: flex;
  flex-direction: column;
}
.badge-uid {
  font-size: 0.75rem;
  color: #fff;
  font-weight: 600;
}
.badge-ver {
  font-size: 0.65rem;
  color: var(--text-dim);
}
.badge-barcode {
  font-family: monospace;
  font-size: 0.8rem;
  letter-spacing: -1px;
  color: var(--text-muted);
}

.badge-hint {
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.8;
}

/* ========================================================
   GENERIC GLASS CARDS
   ======================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  background: var(--bg-liquid-base);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), var(--glass-shadow);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.card:hover {
  background: var(--bg-liquid-hover);
  border-color: var(--glass-border-hover);
  transform: translateY(-5px);
  box-shadow: var(--glass-highlight), var(--glass-shadow-hover);
}

.card-icon {
  width: 48px;
  height: 48px;
  background: rgba(0, 180, 255, 0.1);
  border: 1px solid rgba(0, 180, 255, 0.3);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 0 15px rgba(0, 180, 255, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.92rem;
  flex-grow: 1;
  margin-bottom: 20px;
}

.card-tag {
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--accent-cyan);
  border-radius: 6px;
}

/* ========================================================
   SHOWCASE BENTO GRID (ULTRA LUXURY LIQUID GLASS)
   ======================================================== */
.showcase-section {
  margin-top: 50px;
  position: relative;
}

.showcase-header {
  text-align: center;
  margin-bottom: 38px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 180, 255, 0.08);
  border: 1px solid rgba(0, 180, 255, 0.35);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 0 18px rgba(0, 180, 255, 0.18);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  margin-bottom: 14px;
}

.showcase-title {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(180deg, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
}

.showcase-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 680px;
  margin: 0 auto;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 36px;
}

@media (max-width: 980px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-card.bento-wide {
    grid-column: span 1 !important;
  }
}

.bento-card {
  background: var(--bg-liquid-base);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), var(--glass-shadow);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.bento-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
}

.bento-card:hover {
  background: var(--bg-liquid-hover);
  border-color: rgba(0, 180, 255, 0.45);
  transform: translateY(-5px);
  box-shadow: var(--glass-highlight), var(--glass-shadow-hover);
}

.bento-card.bento-wide {
  grid-column: span 2;
  position: relative;
}

.bento-card-bg-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(0, 180, 255, 0.22) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.bento-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.bento-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 180, 255, 0.12);
  border: 1px solid rgba(0, 180, 255, 0.3);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 0 18px rgba(0, 180, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.3rem;
}

.bento-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.bento-pill-green {
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.35);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.25);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  color: #4ade80;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bento-h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.bento-p {
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.6;
  margin-bottom: 22px;
  flex-grow: 1;
}

.bento-features-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bento-feat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bento-stat-mini {
  display: flex;
  align-items: baseline;
  gap: 10px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 16px;
}

.mini-val {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

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

/* ========================================================
   SERVER RADAR & LIVE COMPATIBILITY
   ======================================================== */
.radar-card {
  background: var(--bg-liquid-base);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), var(--glass-shadow);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}

.radar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.radar-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

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

.radar-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.35);
  box-shadow: 0 0 14px rgba(34, 197, 94, 0.2);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  color: #4ade80;
}

.servers-radar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 980px) {
  .servers-radar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 580px) {
  .servers-radar-grid {
    grid-template-columns: 1fr;
  }
}

.server-status-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 16px;
  transition: var(--transition);
}

.server-status-box:hover {
  border-color: rgba(0, 180, 255, 0.35);
  background: rgba(0, 180, 255, 0.05);
  transform: translateY(-2px);
}

.s-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.s-name {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
}

.s-ping {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.s-anticheat {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.s-status {
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ========================================================
   CTA BANNER (LIQUID GLASS GLOW)
   ======================================================== */
.cta-banner {
  background: linear-gradient(135deg, rgba(0, 140, 255, 0.14) 0%, rgba(10, 12, 18, 0.85) 100%);
  border: 1px solid rgba(0, 180, 255, 0.4);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.3), 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 180, 255, 0.2);
  border-radius: var(--radius);
  padding: 36px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-content {
  display: flex;
  align-items: center;
  gap: 24px;
}

.cta-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0, 180, 255, 0.25) 0%, rgba(0, 100, 255, 0.15) 100%);
  border: 1px solid rgba(0, 180, 255, 0.5);
  box-shadow: 0 0 25px rgba(0, 180, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.cta-text h3 {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

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

/* ========================================================
   PROFILE QUICK START GUIDE
   ======================================================== */
.profile-guide-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin-bottom: 24px;
}

.guide-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

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

.guide-step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(0, 180, 255, 0.25) 0%, rgba(0, 100, 255, 0.15) 100%);
  border: 1px solid rgba(0, 180, 255, 0.45);
  box-shadow: 0 0 12px rgba(0, 180, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.guide-step h5 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.guide-step p {
  color: var(--text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.guide-step code {
  color: var(--accent-cyan);
  background: rgba(0, 180, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.78rem;
}

/* ========================================================
   PROFILE (LIQUID GLASS DASHBOARD)
   ======================================================== */
.profile-grid {
  display: grid;
  grid-template-columns: 370px 1fr;
  gap: 28px;
  align-items: start;
}

.profile-single-card {
  max-width: 740px;
  margin: 0 auto;
  background: var(--bg-liquid-base);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), var(--glass-shadow);
  border-radius: var(--radius);
  padding: 34px;
}

.profile-card-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 26px;
}

.profile-header-info {
  flex: 1;
}

.profile-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.profile-title-row .profile-username {
  font-size: 1.5rem;
  margin-bottom: 0;
  text-align: left;
}

.profile-tags-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.prof-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.prof-chip strong {
  color: #fff;
}

.launcher-download-box {
  background: linear-gradient(135deg, rgba(0, 160, 255, 0.08) 0%, rgba(0, 0, 0, 0.4) 100%);
  border: 1px solid rgba(0, 160, 255, 0.35);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2), 0 12px 35px rgba(0, 140, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 24px;
  margin-bottom: 24px;
  text-align: center;
}

.launcher-info-header {
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  margin-bottom: 18px;
}

.launcher-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(0, 160, 255, 0.15);
  border: 1px solid rgba(0, 160, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.launcher-meta h4 {
  font-size: 1.2rem;
  color: #fff;
  margin-bottom: 3px;
}

.launcher-meta p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.launcher-meta-sub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 14px;
}

.profile-user-card, .profile-settings-card {
  background: var(--bg-liquid-base);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), var(--glass-shadow);
  border-radius: var(--radius);
  padding: 32px;
}

.avatar-wrap {
  position: relative;
  width: 105px;
  height: 105px;
  margin: 0 auto 18px;
}

.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 25px rgba(0, 180, 255, 0.45);
  background: #000;
}

.avatar-status {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid #090a10;
  box-shadow: 0 0 10px var(--green);
}

.profile-username {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 6px;
}

.role-pill {
  display: block;
  width: fit-content;
  margin: 0 auto 8px;
  background: rgba(0, 180, 255, 0.15);
  border: 1px solid rgba(0, 180, 255, 0.35);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.2);
  color: var(--accent-cyan);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 20px;
}

.prof-uid {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 22px;
}

.prof-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  margin-bottom: 22px;
}

.prof-info-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 26px;
  font-size: 0.92rem;
}

.prof-info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.prof-info-item span:first-child {
  color: var(--text-muted);
}
.prof-info-item code {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.82rem;
  color: #fff;
  font-family: monospace;
}

.download-card {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight);
  border-radius: var(--radius-sm);
  padding: 22px;
  text-align: center;
}
.download-card h4 {
  font-size: 1.15rem;
  margin-bottom: 14px;
}

.file-status-box {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  text-align: left;
}
.file-status-box.pending {
  border-left: 3px solid var(--gold);
}
.file-status-box.ready {
  border-left: 3px solid var(--green);
}
.file-status-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.file-status-box.pending .file-status-icon { color: var(--gold); }
.file-status-box.ready .file-status-icon { color: var(--green); }
.file-status-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
.file-status-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
}
.file-status-meta {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  margin-top: 4px;
}

.btn-download.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #1e2029;
  color: #64748b;
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

.download-subtext {
  display: block;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* Profile Config Settings */
.setting-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight);
  border-radius: var(--radius-sm);
  padding: 22px;
  margin-bottom: 30px;
}

.setting-box-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.setting-box-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.input-action-row {
  display: flex;
  gap: 12px;
}

.input-action-row input {
  flex-grow: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}
.input-action-row input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 180, 255, 0.35);
}

.url-status {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.configs-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.configs-head h3 {
  font-size: 1.15rem;
}

.configs-grid-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cfg-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  transition: var(--transition);
}
.cfg-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
}

.cfg-info h4 {
  font-size: 1rem;
  color: #fff;
  margin-bottom: 3px;
}
.cfg-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.cfg-meta {
  font-size: 0.78rem;
  color: var(--text-dim);
}

/* ========================================================
   ADMIN PANEL (LIQUID GLASS)
   ======================================================== */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

.admin-box {
  background: var(--bg-liquid-base);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), var(--glass-shadow);
  padding: 24px;
  border-radius: var(--radius);
  text-align: center;
}
.admin-val {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.admin-lbl {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.admin-block {
  background: var(--bg-liquid-base);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-highlight), var(--glass-shadow);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 28px;
}

.admin-block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--glass-border);
}
.admin-block-head h3 {
  font-size: 1.25rem;
}

.admin-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.admin-form label {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

.admin-form input, .admin-form select {
  width: 100%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-sm);
  padding: 11px 16px;
  color: #fff;
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition);
}
.admin-form input:focus, .admin-form select:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 180, 255, 0.35);
}

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

/* Liquid Glass Admin Gateway when not logged in */
.admin-gateway-card {
  background: var(--bg-liquid-base);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: var(--glass-highlight), 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(245, 158, 11, 0.2);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 520px;
  margin: 40px auto;
  text-align: center;
}
.admin-gateway-icon {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 16px;
}
.admin-gateway-card h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}
.admin-gateway-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.table th {
  padding: 12px 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  border-bottom: 1px solid var(--glass-border);
}

.table td {
  padding: 14px 16px;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

/* ========================================================
   MODALS (LIQUID FROSTED GLASS)
   ======================================================== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal.show {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: rgba(14, 16, 24, 0.9);
  backdrop-filter: blur(35px) saturate(200%);
  -webkit-backdrop-filter: blur(35px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.35), 0 25px 70px rgba(0, 0, 0, 0.95), 0 0 40px rgba(0, 153, 255, 0.2);
  border-radius: var(--radius);
  width: 90%;
  max-width: 440px;
  padding: 30px;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal.show .modal-content {
  transform: scale(1);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.modal-head h3 {
  font-size: 1.25rem;
}

.modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}
.modal-close:hover {
  color: #fff;
}

.form-field {
  margin-bottom: 18px;
}
.form-field label {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form-field input, .form-field textarea {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  color: #fff;
  font-size: 0.92rem;
  outline: none;
  transition: var(--transition);
}
.form-field input:focus, .form-field textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 180, 255, 0.35);
}

.quick-demo-logins {
  margin: 14px 0 18px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}
.quick-demo-logins span {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 8px;
}
.quick-btns {
  display: flex;
  gap: 8px;
}

.modal-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
}

/* ========================================================
   TOASTS (LIQUID GLASS)
   ======================================================== */
.toast-box {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: all;
  background: rgba(14, 16, 25, 0.9);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--accent-cyan);
  box-shadow: var(--glass-highlight), 0 10px 30px rgba(0, 0, 0, 0.7);
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 0.92rem;
  color: #fff;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast.toast-error {
  border-left-color: var(--red);
}
.toast.toast-success {
  border-left-color: var(--green);
}

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ========================================================
   FOOTER (LIQUID GLASS)
   ======================================================== */
.footer {
  border-top: 1px solid var(--glass-border);
  padding: 28px 0;
  background: rgba(3, 4, 7, 0.85);
  backdrop-filter: blur(20px);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  color: #fff;
  font-size: 0.95rem;
}

.footer-logo {
  width: 22px;
  height: 22px;
}

/* ========================================================
   RESPONSIVE DESIGN
   ======================================================== */
@media (max-width: 992px) {
  .hero-split { grid-template-columns: 1fr; justify-items: center; }
  .hero-left { align-items: center; text-align: center; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .profile-grid { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .admin-form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .header-inner { flex-direction: column; height: auto; padding: 16px; gap: 14px; border-radius: 20px; }
  .nav { width: 100%; justify-content: center; flex-wrap: wrap; }
  .physics-badge-scene { width: 300px; height: 420px; }
  .physics-badge { width: 210px; height: 320px; left: 45px; }
  #lanyard-canvas { width: 300px; height: 420px; }
  .cards-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.2rem; }
  .hero-btns { flex-direction: column; width: 100%; }
  .profile-card-header { flex-direction: column; text-align: center; }
  .profile-title-row { justify-content: center; }
  .profile-tags-row { justify-content: center; }
  .launcher-info-header { flex-direction: column; text-align: center; }
  .footer-inner { flex-direction: column; gap: 10px; text-align: center; }
}
