/* ==========================================================================
   LUI PLUGINS STUDIO — RESOLUME ARENA FFGL SUITE
   DARK LUXURY CYBER DESIGN SYSTEM (STANDARDIZED WITH TOOLS HUB)
   60-30-10 Color Harmony: Obsidian Black (#07090e) + Electric Cyan (#00f0ff)
   Strict 2-Font System: Plus Jakarta Sans + JetBrains Mono
   ========================================================================== */

:root {
  --bg-base: #07090e;
  --bg-surface: #0e1422;
  --bg-card: rgba(14, 20, 34, 0.88);
  --bg-card-hover: rgba(20, 28, 48, 0.96);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(0, 240, 255, 0.45);

  --cyan-primary: #00f0ff;
  --cyan-hover: #38bdf8;
  --cyan-glow: rgba(0, 240, 255, 0.25);
  --emerald-utility: #10b981;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-hud: 'Orbitron', sans-serif;
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  background-color: var(--bg-base);
  color: var(--text-main);
  overflow-x: hidden;
  width: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: var(--cyan-primary);
  color: #020617;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Hide scrollbars */
html, body, * {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
::-webkit-scrollbar, *::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

/* Container & Layout */
.max-w-7xl { max-width: 80rem; }
.max-w-2xl { max-width: 42rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }
.w-fit { width: fit-content; }
.w-72 { width: 18rem; }
.w-9 { width: 2.25rem; }
.h-9 { height: 2.25rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-3\.5 { width: 0.875rem; }
.h-3\.5 { height: 0.875rem; }
.h-16 { height: 4rem; }
.min-h-screen { min-height: 100vh; }
.flex-1 { flex: 1 1 0%; }
.shrink-0 { flex-shrink: 0; }

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
.top-0 { top: 0; }
.inset-0 { inset: 0; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-40 { z-index: 40; }
.left-3\.5 { left: 0.875rem; }
.top-1\/2 { top: 50%; }
.-translate-y-1\/2 { transform: translateY(-50%); }
.overflow-hidden { overflow: hidden; }
.pointer-events-none { pointer-events: none; }

/* Spacing */
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; }
.px-2\.5 { padding-left: 0.625rem; padding-right: 0.625rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.pl-10 { padding-left: 2.5rem; }
.pr-4 { padding-right: 1rem; }
.pt-4 { padding-top: 1rem; }
.pt-5 { padding-top: 1.25rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }

.hidden { display: none !important; }
.text-center { text-align: center; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.mb-3 { margin-bottom: 0.75rem; }

.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-3\.5 { gap: 0.875rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Typography */
.font-sans { font-family: var(--font-sans); }
.font-mono { font-family: var(--font-mono); }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-extrabold { font-weight: 800; }
.font-medium { font-weight: 500; }

.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.uppercase { text-transform: uppercase; }

.text-white { color: #ffffff; }
.text-slate-100 { color: #f1f5f9; }
.text-slate-200 { color: #e2e8f0; }
.text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-cyan-300 { color: #67e8f9; }
.text-cyan-400 { color: #00f0ff; }

/* Hero Banner Card */
.hero-banner-card {
  background: linear-gradient(135deg, rgba(14, 20, 34, 0.95) 0%, rgba(10, 14, 26, 0.9) 100%);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--cyan-primary);
}

/* Subtle Clean Headline Accent */
.hero-gradient-text {
  background: linear-gradient(to right, #00f0ff 0%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Borders & Rounded */
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-full { border-radius: 9999px; }
.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }

.border { border: 1px solid var(--border-subtle); }
.border-b { border-bottom: 1px solid var(--border-subtle); }
.border-t { border-top: 1px solid var(--border-subtle); }

.border-slate-800 { border-color: rgba(255, 255, 255, 0.08); }
.border-slate-800\/80 { border-color: rgba(255, 255, 255, 0.06); }
.border-slate-800\/60 { border-color: rgba(255, 255, 255, 0.05); }
.border-slate-700 { border-color: rgba(255, 255, 255, 0.12); }
.border-cyan-500\/20 { border-color: rgba(0, 240, 255, 0.25); }

/* Shadows */
.shadow-xl { box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6); }
.shadow-2xl { box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8); }
.shadow-md { box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.4); }

/* Grid */
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:p-8 { padding: 2rem; }
  .sm\:p-10 { padding: 2.5rem; }
  .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
  .sm\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .sm\:w-64 { width: 16rem; }
  .sm\:w-72 { width: 18rem; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:inline { display: inline; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:items-center { align-items: center; }
  .sm\:gap-8 { gap: 2rem; }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .lg\:text-5xl { font-size: 3rem; line-height: 1.1; }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

/* HUD Navigation Bar — Matched with Main Portfolio */
.hud-nav {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  z-index: 1000;
  background: rgba(7, 9, 14, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-container {
  max-width: 80rem;
  margin: 0 auto;
  height: 100%;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand-logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-wrapper {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.75));
  transition: transform 0.3s ease;
}
.brand-logo-group:hover .brand-img {
  transform: scale(1.08);
}
.brand-title {
  font-family: var(--font-hud, 'Orbitron', sans-serif);
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 1.5px;
  display: block;
  white-space: nowrap;
  background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 45%, #94a3b8 50%, #ffffff 85%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #ffffff;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.45));
  line-height: 1.2;
}
.brand-sub {
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--cyan-primary);
  display: block;
  white-space: nowrap;
  margin-top: 2px;
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-outline-cyan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(0, 240, 255, 0.06);
  border: 1.5px solid var(--cyan-primary);
  color: var(--cyan-primary);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
  padding: 8px 16px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-outline-cyan:hover {
  background: var(--cyan-primary);
  color: #07090e;
  box-shadow: 0 0 20px var(--cyan-glow);
  transform: translateY(-2px);
}

.hidden { display: none; }

/* Subtle Background Ambient Lights */
.ambient-glow-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  transform: translateZ(0);
}
.ambient-glow-orb.orb-indigo {
  width: 500px;
  height: 500px;
  top: -150px;
  left: -150px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.12) 0%, rgba(0, 240, 255, 0.03) 45%, transparent 70%);
}
.ambient-glow-orb.orb-cyan {
  width: 480px;
  height: 480px;
  top: 35%;
  right: -150px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.10) 0%, rgba(0, 240, 255, 0.02) 45%, transparent 70%);
}
.ambient-glow-orb.orb-purple {
  width: 450px;
  height: 450px;
  bottom: -150px;
  left: 20%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.08) 0%, transparent 65%);
}

.ambient-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}

/* Tool Cards — Clickable, Minimalist & Modern Layout */
.tool-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.35rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1.15rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
  transform: translateZ(0);
  cursor: pointer;
}

.tool-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: var(--border-focus);
  box-shadow: 0 16px 36px -10px rgba(0, 240, 255, 0.16);
}

.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.card-arrow-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.tool-card:hover .card-arrow-btn {
  background: var(--cyan-primary);
  border-color: var(--cyan-primary);
  color: #050811;
  transform: translate(2px, -2px);
  box-shadow: 0 0 14px var(--cyan-glow);
}

.tool-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.tool-card:hover .tool-card-title {
  color: var(--cyan-primary);
}

.tool-card-desc {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-muted);
  margin-bottom: 1.15rem;
  min-height: 2.35rem;
}

.card-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.card-format-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.card-format-chips span {
  padding: 2px 7px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.03em;
}

.card-open-link {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--cyan-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: transform 0.2s ease;
}

.tool-card:hover .card-open-link {
  transform: translateX(3px);
}

/* Category Filter Tabs */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-tab {
  padding: 6px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.filter-tab.active {
  background: rgba(0, 240, 255, 0.12);
  border-color: rgba(0, 240, 255, 0.4);
  color: var(--cyan-primary);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.15);
}

/* Tool Icon Badge (Unified Cyan Glow) */
.tool-icon-badge {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.8rem;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.22);
  color: var(--cyan-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.tool-card:hover .tool-icon-badge {
  transform: scale(1.06);
  border-color: rgba(0, 240, 255, 0.45);
  background: rgba(0, 240, 255, 0.14);
}

/* Inputs & Search Bar (Dark Luxury Obsidian) */
input[type="text"],
#toolSearchInput,
#pluginSearchInput {
  background: #0e1422 !important;
  color: #f1f5f9 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  outline: none;
  transition: all 0.2s ease;
}

input[type="text"]:focus,
#toolSearchInput:focus,
#pluginSearchInput:focus {
  background: #121a2c !important;
  border-color: var(--cyan-primary) !important;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.25) !important;
  color: #ffffff !important;
  outline: none;
}

input[type="text"]::placeholder,
#toolSearchInput::placeholder,
#pluginSearchInput::placeholder {
  color: #64748b !important;
}

/* Mobile Performance Guard */
@media (max-width: 768px) {
  .tool-card {
    background: #0b101c !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .hero-banner-card {
    background: #0b101c !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  header.sticky {
    background: rgba(7, 9, 14, 0.96) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .hud-bottom-bar {
    background: #07090e !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

/* ==========================================================================
   UNIFIED HUD BOTTOM BAR
   ========================================================================== */
.hud-bottom-bar {
  width: 100%;
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  border-radius: 16px 16px 0 0;
  background: rgba(10, 14, 24, 0.95);
  padding: 14px 0;
  position: relative;
  z-index: 50;
}
.bottom-bar-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.bottom-bar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--text-muted);
}
.bottom-bar-brand strong {
  color: #ffffff;
  font-family: var(--font-hud);
  font-weight: 700;
  letter-spacing: 0.5px;
}
.brand-divider {
  color: #334155;
}
.brand-suite {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
}
.brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--emerald-utility);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
}

@media (max-width: 860px) {
  .bottom-bar-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
}

/* ==========================================================================
   AUTHENTICATION & USER PROFILE MODALS
   ========================================================================== */
.cyber-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}
.cyber-modal-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.cyber-modal-card {
  width: 100%;
  max-width: 460px;
  background: rgba(14, 20, 34, 0.96);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 240, 255, 0.15);
  overflow: hidden;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.cyber-modal-backdrop.show .cyber-modal-card {
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(7, 9, 14, 0.6);
}
.modal-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.modal-badge-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--cyan-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.modal-headline {
  font-family: var(--font-hud);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.5px;
}
.modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.modal-close-btn:hover {
  background: rgba(255, 51, 102, 0.2);
  color: #ff3366;
}

.modal-body {
  padding: 20px;
}

.auth-notice-box {
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.78rem;
  color: var(--cyan-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  line-height: 1.4;
}

.auth-tab-switch {
  display: flex;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-subtle);
  padding: 3px;
  margin-bottom: 16px;
  gap: 4px;
}
.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-hud);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.auth-tab-btn.active {
  background: rgba(0, 240, 255, 0.2);
  color: #fff;
  border: 1px solid var(--cyan-primary);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.3);
}

.auth-form-pane {
  display: none;
}
.auth-form-pane.active {
  display: block;
}

.form-group {
  margin-bottom: 12px;
  text-align: left;
}
.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 5px;
  font-weight: 600;
}
.cyber-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 9px 12px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  outline: none;
  transition: all 0.2s ease;
}
.cyber-input:focus {
  border-color: var(--cyan-primary);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.35);
}
.cyber-input.is-valid {
  border-color: var(--neon-green) !important;
}
.cyber-input.is-invalid {
  border-color: var(--neon-red) !important;
}

/* Password Visibility Toggle */
.password-input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.password-input-wrapper .cyber-input {
  padding-right: 40px !important;
}

.btn-toggle-password {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
  padding: 0;
}

.btn-toggle-password:hover {
  color: var(--cyan-primary);
  background: rgba(0, 240, 255, 0.12);
}

.btn-toggle-password:focus-visible {
  outline: 1px solid var(--cyan-primary);
  color: var(--cyan-primary);
}

.live-feedback {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 15px;
}
.live-feedback.valid { color: var(--neon-green); }
.live-feedback.invalid { color: #ff8899; }

.btn-submit-auth {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--cyan-primary);
  color: #07090e;
  padding: 10px 18px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.35);
  transition: all 0.2s ease;
  margin-top: 8px;
}
.btn-submit-auth:hover {
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.6);
  transform: translateY(-2px);
}
.btn-submit-auth:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.auth-sub-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
}
.auth-sub-hint a {
  color: var(--cyan-primary);
  text-decoration: none;
  font-weight: 600;
}
.auth-sub-hint a:hover {
  text-decoration: underline;
}

/* User Logged Navbar Pill & Dropdown */
.user-logged-badge {
  display: inline-flex;
  align-items: center;
  position: relative;
  cursor: pointer;
  user-select: none;
}
.user-avatar-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(14, 20, 34, 0.95);
  border: 1px solid rgba(0, 240, 255, 0.35);
  padding: 6px 14px;
  border-radius: 30px;
  transition: all 0.2s ease;
}
.user-avatar-pill:hover,
.user-avatar-pill.active {
  border-color: var(--cyan-primary);
  background: rgba(0, 240, 255, 0.12);
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.3);
}
.user-first-name {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dropdown-caret {
  font-size: 0.65rem;
  color: var(--cyan-primary);
  transition: transform 0.2s ease;
}
.user-avatar-pill.active .dropdown-caret {
  transform: rotate(180deg);
}

/* Dropdown Menu */
.user-dropdown-menu {
  position: fixed;
  top: 76px;
  right: 24px;
  width: 250px;
  background: rgba(14, 20, 34, 0.98);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.8), 0 0 16px rgba(0, 240, 255, 0.15);
  padding: 10px;
  z-index: 10000;
  display: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.user-dropdown-menu.show {
  display: block;
}
.udm-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
}
.udm-avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.15);
  border: 1px solid var(--cyan-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-primary);
  font-size: 1rem;
}
.udm-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.udm-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.udm-email {
  font-size: 0.68rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.udm-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 6px 0;
}
.udm-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  width: 100%;
  transition: all 0.15s ease;
}
.udm-item:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}
.udm-item-logout:hover {
  background: rgba(255, 51, 102, 0.15);
  color: #ff8899;
}

/* Toast Notifications */
.cyber-toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: calc(100vw - 32px);
}
.cyber-toast {
  pointer-events: auto;
  background: rgba(10, 15, 26, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--cyan-primary);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.75), 0 0 16px rgba(0, 240, 255, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
  color: #fff;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 380px;
  opacity: 0;
  transform: translateY(-10px) scale(0.96);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.cyber-toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.cyber-toast.toast-success {
  border-color: var(--neon-green);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.75), 0 0 16px rgba(0, 255, 136, 0.3);
}
.cyber-toast.toast-error {
  border-color: var(--neon-orange);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.75), 0 0 16px rgba(255, 102, 0, 0.3);
}
