/* VueVPN — vu.je visual system */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;700&family=Inter:wght@300;400;600;800&display=swap');
:root {
    --bg-dark: #020305;
    --bg-panel: #0a0e17;
    --text-main: #e2e8f0;
    --text-muted: #8b9bb4;
    --accent-1: #8b5cf6;
    --accent-2: #3b82f6;
    --accent-3: #10b981;
    --gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    --glow: 0 0 25px rgba(59, 130, 246, 0.4);
}

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

html {
  overflow-x: clip;
}
html, body {
    width: 100%; max-width: 100%; overflow-x: clip;
    background-color: var(--bg-dark); 
    background-image: radial-gradient(circle at 15% 0%, rgba(139, 92, 246, 0.04), transparent 50%), radial-gradient(circle at 85% 100%, rgba(59, 130, 246, 0.04), transparent 50%);
    background-attachment: fixed;
    color: var(--text-main);
    font-family: 'Inter', sans-serif; line-height: 1.6;
}

.noise-bg { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 9999; opacity: 0.04; background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E'); }
.bg-blob { position: absolute; border-radius: 50%; filter: blur(120px); z-index: -1; opacity: 0.4; animation: floatBlob 20s infinite alternate ease-in-out; pointer-events: none; }
.blob-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: rgba(139, 92, 246, 0.12); }
.blob-2 { top: 40%; right: -10%; width: 40vw; height: 40vw; background: rgba(59, 130, 246, 0.12); animation-delay: -10s; }
.blob-3 { bottom: -10%; left: 20%; width: 60vw; height: 30vw; background: rgba(16, 185, 129, 0.08); }

@keyframes floatBlob { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(50px, 100px) scale(1.1); } }

#scroll-progress { position: fixed; top: 0; left: 0; width: 0%; height: 3px; background: var(--gradient); z-index: 9998; box-shadow: 0 0 10px var(--accent-2); }
#network-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }

.overlay-grid {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 50px 50px; z-index: -1; pointer-events: none;
    mask-image: radial-gradient(circle at center, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 20%, transparent 80%);
}

h1, h2, h3 { font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
.gradient-text { background: var(--gradient); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: inline-block; }
.mono { font-family: 'Fira Code', monospace; color: var(--accent-2); letter-spacing: 1px; }

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 clamp(1.5rem, 6vw, 5rem);
  width: 100%;
  position: relative;
  z-index: 10;
  box-sizing: border-box;
}
nav {
  position: fixed; top: 0; left: 0; width: 100%;
  background: rgba(2, 3, 5, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem clamp(1.5rem, 6vw, 5rem);
  box-sizing: border-box;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.logo svg,
.footer-logo svg {
  height: 35px !important;
  width: 78px !important;
  max-width: 78px;
  display: block;
  flex-shrink: 0;
  overflow: hidden;
  filter: drop-shadow(0 0 10px rgba(139,92,246,0.3));
}
.footer-logo svg {
  height: 30px !important;
  width: 67px !important;
  max-width: 67px;
}
#V path, .U, .E { fill: #ffffff; transition: fill 0.3s ease, filter 0.3s ease; cursor: pointer; }
#V path:hover, .U:hover, .E:hover { fill: #ff007f; filter: drop-shadow(0 0 8px rgba(255, 0, 127, 0.6)); }

.footer-logo { display: flex; justify-content: center; margin-bottom: 1rem; opacity: 0.6; transition: opacity 0.3s ease; }
.footer-logo:hover { opacity: 1; }

.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links a { color: var(--text-main); text-decoration: none; font-weight: 600; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 2px; position: relative; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent-2); }
.menu-toggle { display: none; font-size: 1.5rem; color: var(--text-main); cursor: pointer; z-index: 1001; }

section { padding: 8rem 0; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; position: relative; }

#hero {
  padding-top: 10rem;
  padding-bottom: 4rem;
  min-height: 0;
  justify-content: center;
}
.hero-content { width: 100%; max-width: min(40rem, 100%); }
.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  margin: 1.25rem 0 1.5rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}
.hero-content p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 38rem;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.typewriter-cursor {
  color: var(--accent-3);
  animation: blink 1s step-end infinite;
  font-family: 'Fira Code', monospace;
}
@keyframes blink { 50% { opacity: 0; } }

#capabilities {
  min-height: auto;
  padding: 5rem 0 7rem;
  justify-content: flex-start;
}
#capabilities .card-inner p { color: var(--text-muted); margin: 0; }
#capabilities .tag {
  display: inline-block;
  font-family: 'Fira Code', monospace;
  font-size: 0.7rem;
  color: var(--accent-1);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.btn-group { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 1.2rem 2.5rem; background: rgba(59, 130, 246, 0.1); color: white; text-decoration: none; border: 1px solid var(--accent-2); border-radius: 6px; font-family: 'Fira Code', monospace; font-weight: 600; text-transform: uppercase; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; position: relative; overflow: hidden; }
.btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: var(--gradient); z-index: -1; transition: transform 0.4s ease; }
.btn:hover::before { transform: translateX(100%); }
.btn:hover { border-color: transparent; box-shadow: var(--glow); transform: translateY(-3px); }
.btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,0.2); }
.btn-ghost:hover { border-color: var(--text-main); background: rgba(255,255,255,0.05); transform: translateY(-3px); }

.marquee-container {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  contain: paint;
  background: rgba(10, 14, 23, 0.5);
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding: 2rem 0;
  margin: 0;
  position: relative;
  left: auto;
  right: auto;
  display: block;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.marquee-track {
  display: flex;
  width: max-content;
  max-width: none;
  animation: scrollLeft 28s linear infinite;
  will-change: transform;
}
.marquee-item { display: flex; align-items: center; gap: 15px; padding: 0.5rem 2rem; font-family: 'Fira Code', monospace; font-size: 1.1rem; color: var(--text-muted); border: 1px solid rgba(255,255,255,0.05); border-radius: 100px; margin: 0 1rem; background: rgba(0,0,0,0.3); white-space: nowrap; }
.marquee-item i { color: var(--accent-2); }
@keyframes scrollLeft { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes scrollRight { 0% { transform: translateX(-50%); } 100% { transform: translateX(0); } }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2.5rem; margin-top: 3rem; }

.card { position: relative; padding: 1px; border-radius: 16px; background: rgba(255,255,255,0.05); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5); transition: transform 0.4s ease; }
.card::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: conic-gradient(transparent, transparent, transparent, var(--accent-2)); animation: spin 4s linear infinite; opacity: 0; transition: opacity 0.4s ease; }
.card:hover { transform: translateY(-10px); }
.card:hover::before { opacity: 1; }
.card-inner { background: rgba(10, 14, 23, 0.85); border-radius: 15px; padding: 2.5rem; height: 100%; display: flex; flex-direction: column; z-index: 2; position: relative; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@keyframes spin { 100% { transform: rotate(360deg); } }

.card-inner i { font-size: 2.5rem; color: var(--accent-2); margin-bottom: 1.5rem; }
.card-inner h3 { font-size: 1.5rem; margin-bottom: 1.2rem; }
.card-inner ul { list-style: none; color: var(--text-muted); flex-grow: 1; }
.card-inner ul li { margin-bottom: 0.8rem; display: flex; align-items: flex-start; font-size: 0.95rem; }
.card-inner ul li::before { content: '>'; color: var(--accent-1); margin-right: 0.8rem; font-family: monospace; font-weight: bold; }

/* Radar Automation Card */
#automation-card { background: rgba(7, 10, 18, 0.8); border: 1px solid rgba(255,255,255,0.08); padding: 0; position: relative; backdrop-filter: blur(10px); }
#automation-card::before { display: none; }
.radar-map-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; background-image: url('https://upload.wikimedia.org/wikipedia/commons/8/80/World_map_-_low_resolution.svg'); background-size: cover; background-position: center; background-repeat: no-repeat; opacity: 0.1; filter: invert(1) grayscale(1); transition: opacity 0.5s ease; }
#automation-card:hover .radar-map-container { opacity: 0.2; }
.radar-sweep { position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: conic-gradient(from 0deg, transparent 70%, rgba(59, 130, 246, 0.05) 90%, rgba(59, 130, 246, 0.25) 100%); animation: spin 5s linear infinite; opacity: 0; z-index: 2; transition: opacity 0.5s ease; border-radius: 50%; pointer-events: none; }
#automation-card:hover .radar-sweep { opacity: 1; }
.radar-dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; z-index: 3; opacity: 0; transition: opacity 0.5s ease, top 1s, left 1s; }
#automation-card:hover .radar-dot { opacity: 1; }
.radar-label { position: absolute; font-family: 'Fira Code', monospace; font-size: 0.75rem; font-weight: 600; letter-spacing: 1px; pointer-events: none; text-shadow: 0 0 5px rgba(0,0,0,0.8); white-space: nowrap; }

.dot-me { top: 28%; left: 48%; background: var(--accent-3); box-shadow: 0 0 15px var(--accent-3); }
.dot-me::before { content: ''; position: absolute; top: -8px; left: -8px; width: 22px; height: 22px; border: 1px solid var(--accent-3); border-radius: 50%; animation: radarPing 2s cubic-bezier(0, 0, 0.2, 1) infinite; }
.label-me { top: -20px; left: -5px; color: var(--accent-3); }

.dot-visitor { top: 38%; left: 25%; background: var(--accent-2); box-shadow: 0 0 15px var(--accent-2); }
.dot-visitor::before { content: ''; position: absolute; top: -8px; left: -8px; width: 22px; height: 22px; border: 1px solid var(--accent-2); border-radius: 50%; animation: radarPing 2s cubic-bezier(0, 0, 0.2, 1) infinite; animation-delay: 1s; }
.label-visitor { top: -5px; left: 20px; color: var(--accent-2); }

@keyframes radarPing { 0% { transform: scale(0.5); opacity: 1; } 100% { transform: scale(2.5); opacity: 0; } }

#automation-card .card-inner { background: linear-gradient(to right, rgba(7, 10, 18, 0.95) 30%, rgba(7, 10, 18, 0.5) 100%); z-index: 4; border-radius: 15px; }

.badge-container { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px dashed rgba(255,255,255,0.1); }
.badge { background: rgba(59, 130, 246, 0.1); color: #93c5fd; padding: 0.35rem 0.85rem; border-radius: 6px; font-size: 0.8rem; font-family: 'Fira Code', monospace; border: 1px solid rgba(59, 130, 246, 0.2); }

.section-title { font-size: 2.5rem; margin-bottom: 3rem; display: flex; align-items: center; gap: 1.5rem; font-family: 'Fira Code', monospace; text-transform: uppercase; }
.section-title::before { content: '/>'; color: var(--accent-1); }
.section-title::after { content: ''; height: 1px; flex: 1; background: linear-gradient(90deg, rgba(255,255,255,0.1), transparent); }

/* TERMINAL UI & INTERACTIVE INPUT STYLES */
.terminal-window { background: rgba(5, 7, 10, 0.85); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.8); overflow: hidden; backdrop-filter: blur(10px); transition: border-color 0.3s; }
#interactive-terminal { width: 1000px; height: 700px; max-width: 100%; display: flex; flex-direction: column; margin: 0 auto; }
.terminal-header { background: rgba(255,255,255,0.05); padding: 0.8rem 1rem; display: flex; gap: 8px; border-bottom: 1px solid rgba(255,255,255,0.05); align-items: center; flex-shrink: 0; }
.terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-r { background: #ef4444; } .dot-y { background: #eab308; } .dot-g { background: #22c55e; }
.terminal-title { margin-left: auto; margin-right: auto; font-family: 'Inter', sans-serif; font-size: 0.85rem; color: var(--text-muted); }
.terminal-body { padding: 2rem; font-family: 'Fira Code', monospace; flex: 1; display: flex; flex-direction: column; overflow: hidden; }

/* Interactive CLI Specifics */
.cli-body { cursor: text; flex: 1; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(59, 130, 246, 0.3) transparent; position: relative; min-height: 0; }
.cli-body::-webkit-scrollbar { width: 6px; }
.cli-body::-webkit-scrollbar-track { background: transparent; }
.cli-body::-webkit-scrollbar-thumb { background: rgba(59, 130, 246, 0.3); border-radius: 3px; }
.cli-body::-webkit-scrollbar-thumb:hover { background: rgba(59, 130, 246, 0.5); }
#cli-input { position: absolute; opacity: 0; pointer-events: auto; width: 1px; height: 1px; left: 0; top: 0; z-index: 10; }
#cli-input:focus { outline: none; }
.cli-out-line { margin-bottom: 0.5rem; line-height: 1.6; color: var(--text-main); word-break: break-word; }
.cli-out-line pre { margin: 0.5rem 0; white-space: pre-wrap; font-family: 'Fira Code', monospace; }
.cli-command-line { color: var(--accent-3); margin-bottom: 0.5rem; font-weight: 500; }
#cli-input-line { display: none; align-items: center; flex-wrap: wrap; margin-top: 0.5rem; position: relative; opacity: 0; transition: opacity 0.3s ease; flex-shrink: 0; padding-top: 0.5rem; border-top: 1px solid rgba(255,255,255,0.05); }
#cli-input-line.active { opacity: 1; }
#cli-input-line.active { border-top-color: rgba(255,255,255,0.1); }
#cli-display { color: var(--text-main); font-family: 'Fira Code', monospace; }
.cli-cursor { color: var(--accent-3); font-weight: bold; margin-left: 2px; }

/* Comments Section Styling */
#comments-display { min-height: 100px; max-height: 600px; overflow-y: auto; padding: 1.5rem; }
#comments-display::-webkit-scrollbar { width: 6px; }
#comments-display::-webkit-scrollbar-track { background: transparent; }
#comments-display::-webkit-scrollbar-thumb { background: rgba(59, 130, 246, 0.3); border-radius: 3px; }
#comments-display::-webkit-scrollbar-thumb:hover { background: rgba(59, 130, 246, 0.5); }
.comment-item { position: relative; }
.comment-item::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent-3); border-radius: 8px 0 0 8px; opacity: 0; transition: opacity 0.2s ease; }
.comment-item:hover::before { opacity: 1; }

.timeline-item { padding-left: 2.5rem; margin-bottom: 3rem; border-left: 1px dashed rgba(255,255,255,0.2); position: relative; }
.timeline-indicator { position: absolute; left: -7px; top: 5px; width: 13px; height: 13px; background: var(--bg-dark); border: 2px solid var(--accent-2); border-radius: 50%; }
.timeline-indicator.pulse { animation: pulseGreen 2s infinite; border-color: var(--accent-3); }
@keyframes pulseGreen { 0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); } 70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); } }

.copy-btn { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: var(--text-main); padding: 0.8rem 1.5rem; border-radius: 6px; cursor: pointer; display: flex; align-items: center; gap: 10px; transition: all 0.3s; margin-top: 1.5rem; font-family: 'Fira Code', monospace; }
.copy-btn:hover { background: rgba(59, 130, 246, 0.15); border-color: var(--accent-2); }

footer { text-align: center; padding: 5rem 2rem; border-top: 1px solid rgba(255,255,255,0.05); background: rgba(2, 3, 5, 0.8); position: relative; overflow: hidden; backdrop-filter: blur(10px); }
.social-links { display: flex; justify-content: center; gap: 2rem; margin-bottom: 2rem; position: relative; z-index: 2; }
.social-links a { color: var(--text-muted); font-size: 1.8rem; transition: all 0.3s; }
.social-links a:hover { color: var(--accent-2); transform: translateY(-3px); }

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.typewriter-cursor { animation: blink 1s step-end infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

@media (max-width: 900px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 3rem; }
    .section-title { font-size: 1.8rem; }
    .btn-group { flex-direction: column; width: 100%; }
    .btn { width: 100%; justify-content: center; }
    section { padding: 6rem 0; min-height: auto; }
    .menu-toggle { display: block; }
    .nav-links { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: #05070a; flex-direction: column; justify-content: center; border-left: 1px solid rgba(255,255,255,0.05); transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1); padding: 2rem; gap: 2rem; box-shadow: -20px 0 50px rgba(0,0,0,0.8); }
    .nav-links.active { right: 0; }
    #interactive-terminal { width: 100%; height: 500px; }
}

/* ========== VueVPN app pages (on top of vu.je system) ========== */
body { display: flex; flex-direction: column; min-height: 100vh; }
main.app-main {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 7.5rem 5% 4rem;
  position: relative;
  z-index: 10;
}
main.home-main { max-width: none; padding: 0; width: 100%; }

/* Nav brand row */
.nav-links .user-chip {
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
  color: var(--accent-3);
  letter-spacing: 0;
  text-transform: none;
}
.nav-links .btn {
  padding: 0.55rem 1.1rem;
  font-size: 0.72rem;
}

/* Page chrome */
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.page-head h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin: 0.35rem 0 0.5rem;
}
.page-kicker {
  font-family: 'Fira Code', monospace;
  color: var(--accent-3);
  font-size: 0.85rem;
  letter-spacing: 1px;
}
.page-head p { color: var(--text-muted); max-width: 40rem; }

.btn.sm { padding: 0.55rem 1rem; font-size: 0.72rem; }
.btn.danger {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fecaca;
}
.btn.danger::before { background: linear-gradient(135deg, #7f1d1d, #ef4444); }
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Compact app cards (no spinning border — that breaks forms) */
.panel {
  background: rgba(10, 14, 23, 0.82);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px -12px rgba(0,0,0,0.55);
  margin-bottom: 1.25rem;
  transition: border-color 0.3s, transform 0.3s;
}
.panel:hover { border-color: rgba(59, 130, 246, 0.35); }
.panel h2 {
  font-family: 'Fira Code', monospace;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 1rem;
}
.panel h2::before { content: '/> '; color: var(--accent-1); }
.panel .route-title h2::before,
.device-head h2::before { content: none !important; }

.stat-strip, .stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.85rem;
  margin: 0 0 1.75rem;
}
.stat-chip, .stat-card {
  background: rgba(10, 14, 23, 0.82);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  backdrop-filter: blur(10px);
}
.stat-card.wide { grid-column: 1 / -1; }
.stat-n {
  display: block;
  font-family: 'Fira Code', monospace;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-main);
}
.stat-n.big { font-size: 1.85rem; margin: 0.2rem 0; }
.stat-l {
  display: block;
  font-family: 'Fira Code', monospace;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.accent-ok { color: var(--accent-3); }
.online-dot::before {
  content: "";
  display: inline-block;
  width: 0.5rem; height: 0.5rem;
  border-radius: 50%;
  background: var(--accent-3);
  margin-right: 0.35rem;
  box-shadow: 0 0 8px var(--accent-3);
  vertical-align: middle;
}

/* Forms */
.form { display: flex; flex-direction: column; gap: 1rem; }
.form.inline { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
label {
  display: flex; flex-direction: column; gap: 0.4rem;
  font-size: 0.78rem; color: var(--text-muted);
  font-family: 'Fira Code', monospace;
}
label.check {
  flex-direction: row; align-items: center; gap: 0.55rem;
  font-family: Inter, sans-serif; padding-bottom: 0.4rem;
}
input[type="text"], input[type="password"], input[type="url"],
input[type="number"], input:not([type]), select, textarea {
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(2, 3, 5, 0.7);
  color: var(--text-main);
  font: inherit;
  font-family: Inter, sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
input[type="number"] { width: 9rem; }
.error, .ok {
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  margin-bottom: 1.1rem;
  font-size: 0.95rem;
}
.error {
  background: rgba(127, 29, 29, 0.4);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fecaca;
}
.ok {
  background: rgba(6, 78, 59, 0.35);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #bbf7d0;
}
.muted { color: var(--text-muted); }
.mono { font-family: 'Fira Code', monospace; color: var(--accent-2); font-size: 0.9rem; letter-spacing: 0.5px; }

/* Devices */
.device-list { display: flex; flex-direction: column; gap: 1rem; }
.device-head { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; }
.device-head h2 { margin: 0; font-size: 1.25rem; text-transform: none; letter-spacing: -0.02em; font-family: Inter, sans-serif; }
.device-head h2::before { content: none; }
.pill {
  font-family: 'Fira Code', monospace;
  font-size: 0.72rem;
  background: rgba(2,3,5,0.7);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  color: var(--text-muted);
}
.ok-pill { color: var(--accent-3); border-color: rgba(16,185,129,0.35); }
.device-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 1rem 0; }
.inline-form { display: inline; margin: 0; }
.qr { max-width: 220px; background: #fff; padding: 0.5rem; border-radius: 8px; margin-top: 0.75rem; }
details summary {
  cursor: pointer; color: var(--text-muted);
  font-family: 'Fira Code', monospace; font-size: 0.85rem;
}

.device-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.85rem 1rem;
  margin: 1rem 0;
}
.status-dot {
  display: inline-block; width: 0.65rem; height: 0.65rem;
  border-radius: 50%; margin-right: 0.4rem; vertical-align: middle;
}
.status-dot.on { background: var(--accent-3); box-shadow: 0 0 0 3px rgba(16,185,129,0.2); }
.status-dot.off { background: #64748b; }
.bar-wrap {
  display: flex; height: 8px; border-radius: 999px; overflow: hidden;
  background: rgba(2,3,5,0.7); border: 1px solid rgba(255,255,255,0.08);
}
.bar-rx { background: var(--accent-2); }
.bar-tx { background: var(--accent-3); }
.bar-empty { width: 100%; background: rgba(255,255,255,0.06); }
.bar-legend { font-size: 0.85rem; margin: 0.5rem 0 0; }
.swatch {
  display: inline-block; width: 0.65rem; height: 0.65rem;
  border-radius: 2px; vertical-align: middle; margin-right: 0.2rem;
}
.swatch.rx { background: var(--accent-2); }
.swatch.tx { background: var(--accent-3); }

/* Auth terminal */
.auth-wrap { max-width: 480px; margin: 0 auto; }
.terminal-window {
  background: rgba(5, 7, 10, 0.88);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.8);
  overflow: hidden;
  backdrop-filter: blur(12px);
}
.terminal-header {
  background: rgba(255,255,255,0.05);
  padding: 0.8rem 1rem;
  display: flex; gap: 8px; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.terminal-dot { width: 12px; height: 12px; border-radius: 50%; }
.dot-r { background: #ff5f56; }
.dot-y { background: #ffbd2e; }
.dot-g { background: #27c93f; }
.terminal-title {
  margin-left: auto; margin-right: auto;
  font-size: 0.8rem; color: var(--text-muted);
  font-family: Inter, sans-serif;
}
.terminal-body { padding: 1.75rem; }
.terminal-body h1 { font-size: 1.6rem; margin-bottom: 0.35rem; }
.terminal-body .form { margin-top: 1.25rem; }

/* Settings remaps */
.remap-list { display: flex; flex-direction: column; gap: 0.55rem; margin-top: 1rem; }
.remap-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem;
  padding: 0.75rem 0.95rem;
  background: rgba(2,3,5,0.55);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
}
.suggest-block { margin: 1.5rem 0; }
.suggest-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; margin-bottom: 0.75rem;
}
.suggest-head h3 {
  margin: 0; font-size: 0.95rem;
  font-family: 'Fira Code', monospace; text-transform: uppercase;
}
.scan-status { font-family: 'Fira Code', monospace; font-size: 0.8rem; color: var(--text-muted); }

/* Home uses .container + #hero/#capabilities (vu.je structure) */
.app-footer {
  text-align: center;
  padding: 3.5rem 2rem 4rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  position: relative;
  z-index: 10;
}
.app-footer .footer-logo { display: flex; justify-content: center; margin-bottom: 1.25rem; opacity: 0.55; }
.app-footer .footer-logo:hover { opacity: 1; }
.app-footer .footer-logo svg {
  height: 28px !important;
  width: 62px !important;
  max-width: 62px;
}
.app-footer p {
  font-family: 'Fira Code', monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Override vu.je section full-viewport for app pages */
.app-main > section {
  min-height: 0;
  padding: 0;
  display: block;
  justify-content: flex-start;
}

/* Admin */
.admin-nav-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.route-form { display: flex; flex-direction: column; gap: 1rem; }
.route-title { display: flex; align-items: flex-start; gap: 0.85rem; margin-bottom: 0.85rem; }
.route-emoji { font-size: 1.6rem; }
.route-toggle { margin-left: auto; }
.route-actions { margin-top: 0.75rem; }
.admin-save .tip { margin-top: 0.75rem; font-size: 0.9rem; }
.admin-save code {
  background: rgba(2,3,5,0.7);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-family: 'Fira Code', monospace;
  font-size: 0.85em;
}

/* Kill vu.je card spin on panels that used .card class historically */
.panel.card::before, .stat-card.card::before, .device.card::before { display: none !important; }
.panel.card, .stat-card.card, .device.card {
  background: rgba(10, 14, 23, 0.82);
  padding: 1.5rem 1.75rem;
  transform: none;
}
.device.card:hover { transform: translateY(-4px); border-color: rgba(59,130,246,0.35); }

/* —— Base rhythm (all sizes) —— */
.form.inline { gap: 1rem 1.25rem; }
.device-list { gap: 1.25rem; }
.device-actions { gap: 0.65rem; margin: 1.15rem 0 0.35rem; }
.page-head { margin-bottom: 2.5rem; gap: 1.5rem; }
.page-head p { margin-top: 0.35rem; line-height: 1.65; }
.panel { padding: 1.75rem 2rem; margin-bottom: 1.5rem; }
.panel + .panel { margin-top: 0.25rem; }
.stat-strip, .stat-grid { gap: 1rem; margin-bottom: 2rem; }
.hero-content { max-width: 720px; }
.hero-content .btn-group { margin-top: 0.5rem; }
.auth-wrap { padding-top: 0.5rem; }
.remap-list { gap: 0.75rem; }
.suggest-block { margin: 2rem 0 0.5rem; }
.app-footer { padding: 3.5rem 2rem 4rem; }
.app-footer .footer-logo { margin-bottom: 1.25rem; }

/* —— Large screens: more air —— */
@media (min-width: 900px) {
  nav { padding: 1.15rem clamp(2rem, 6vw, 5rem); }
  .nav-links { gap: 2rem; }
  /* undo vu.je off-canvas nav for desktop/tablet landscape */
  .nav-links {
    position: static !important;
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    flex-direction: row !important;
    justify-content: flex-end !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    right: auto !important;
  }
  .menu-toggle { display: none !important; }

  main.app-main {
    max-width: 1180px;
    padding: 8.5rem clamp(2rem, 5vw, 3.5rem) 5rem;
  }

  .page-head { margin-bottom: 3rem; }
  .page-head h1 { margin: 0.5rem 0 0.75rem; }
  .panel {
    padding: 2rem 2.25rem;
    margin-bottom: 1.75rem;
  }
  .stat-strip, .stat-grid {
    gap: 1.15rem;
    margin-bottom: 2.5rem;
  }
  .stat-chip, .stat-card { padding: 1.25rem 1.4rem; }
  .device-list { gap: 1.5rem; }
  .device-stats { gap: 1rem 1.5rem; margin: 1.25rem 0 1.35rem; }
  .form { gap: 1.15rem; }
  .form.inline { gap: 1.15rem 1.5rem; }
  .terminal-body { padding: 2.25rem !important; }
  .auth-wrap { max-width: 520px; }
  .route-form { gap: 1.35rem; }
  .admin-nav-actions { gap: 0.75rem; }

  .btn-group { gap: 1.25rem; }
  .marquee-container { margin-top: 5rem; padding: 2.25rem 0; }
  #hero { padding-top: 11rem; }
  .hero-content h1 { margin: 1.35rem 0 1.6rem; }
  .hero-content p { margin-bottom: 3rem; }
  #capabilities { padding: 5.5rem 0 7.5rem; }
  #capabilities .section-title { font-size: 2.25rem; margin-bottom: 1rem; }
  .grid-3 { gap: 2.25rem; margin-top: 2.75rem; }
  .card-inner { padding: 2.35rem; }
}

@media (min-width: 1280px) {
  main.app-main {
    max-width: 1240px;
    padding-top: 9rem;
    padding-bottom: 5.5rem;
  }
  .container { padding: 0 clamp(2rem, 6vw, 5rem); }
  #hero { padding-top: 12rem; }
  .page-head { margin-bottom: 3.25rem; }
  .panel { padding: 2.15rem 2.5rem; margin-bottom: 2rem; }
  .stat-strip, .stat-grid { gap: 1.25rem; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block !important; }
  .nav-links {
    display: none;
    position: absolute !important;
    top: 100%; left: 0; right: 0;
    width: 100% !important;
    height: auto !important;
    flex-direction: column !important;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 5% 1.5rem !important;
    background: rgba(2, 3, 5, 0.96) !important;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    box-shadow: none !important;
  }
  .nav-links.open,
  .nav-links.active { display: flex !important; right: 0 !important; }
  .page-head { flex-direction: column; margin-bottom: 1.75rem; }
  .container { padding: 0 1.25rem; }
  #hero { padding-top: 7.5rem; min-height: auto; }
  .hero-content h1 { font-size: clamp(2.4rem, 11vw, 3.2rem); margin: 1rem 0 1.15rem; }
  .hero-content p { margin-bottom: 2rem; font-size: 1.05rem; }
  #capabilities { padding: 3rem 0 4rem; }
  .panel { padding: 1.25rem 1.35rem; margin-bottom: 1.1rem; }
  main.app-main { padding: 6.5rem 1.25rem 3rem; }
  .form.inline { gap: 0.85rem; }
  .grid-3 { gap: 1.15rem; }
}

.sub-input {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.sub-input input { width: 10rem; }
.sub-row {
  flex-direction: column;
  align-items: stretch !important;
  gap: 0.85rem !important;
}
.sub-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
}
.sub-edit { margin: 0 !important; }

/* Friendly settings helpers */
.lead-plain {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  max-width: 42rem;
  line-height: 1.65;
}
.howto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
  margin: 0 0 1.35rem;
}
.howto-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.9rem 1rem;
  background: rgba(2, 3, 5, 0.45);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.howto-card strong { display: block; margin-bottom: 0.2rem; font-size: 0.95rem; }
.howto-card p { margin: 0; font-size: 0.85rem; color: var(--text-muted); line-height: 1.45; }
.howto-num {
  flex-shrink: 0;
  width: 1.75rem; height: 1.75rem;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.35);
  color: var(--accent-2);
  font-family: 'Fira Code', monospace;
  font-size: 0.85rem;
  font-weight: 700;
}
.example-box {
  margin: 0 0 1.35rem;
  padding: 1rem 1.15rem;
  border-radius: 12px;
  border: 1px dashed rgba(59, 130, 246, 0.35);
  background: rgba(59, 130, 246, 0.06);
}
.example-box p { margin: 0; line-height: 1.55; }
.example-label {
  display: inline-block;
  font-family: 'Fira Code', monospace;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-2);
  margin-bottom: 0.45rem;
}
.field-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-family: Inter, sans-serif;
}
.create-sub-form { gap: 1rem; margin-top: 0.25rem; }
.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.section-label {
  margin: 1.75rem 0 0.85rem;
  font-size: 0.95rem;
  font-family: 'Fira Code', monospace;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.address-list { display: flex; flex-direction: column; gap: 0.85rem; }
.address-card {
  padding: 1rem 1.15rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(2, 3, 5, 0.45);
}
.address-title { margin: 0.45rem 0 0.35rem; font-size: 1.05rem; }
.address-how { margin: 0 0 0.5rem; color: var(--text-muted); font-size: 0.92rem; line-height: 1.5; }
.address-edit { margin-top: 0.75rem; }
.address-edit summary {
  cursor: pointer;
  color: var(--accent-2);
  font-size: 0.9rem;
  list-style: none;
}
.address-edit summary::-webkit-details-marker { display: none; }
.address-edit[open] summary { margin-bottom: 0.75rem; }
.btn-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.small { font-size: 0.85rem; }
.panel.plain-head h2::before { content: none; }
