/* ==============================================================================
   JARVIS AI SAAS — PREMIUM CYBERPUNK / GLASSMORPHISM / 3D HOLOGRAM DESIGN SYSTEM
   ============================================================================== */

:root {
  --bg-primary: #05070c;
  --bg-secondary: #090d16;
  --bg-card: rgba(14, 20, 32, 0.75);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --border-glass: rgba(255, 255, 255, 0.09);
  --border-glow: rgba(0, 240, 255, 0.35);

  --accent-cyan: #00f0ff;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-magenta: #ec4899;
  --accent-green: #10b981;
  --accent-yellow: #f59e0b;
  --accent-red: #ef4444;

  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  --shadow-glow: 0 0 35px rgba(0, 240, 255, 0.2);
  --shadow-purple: 0 0 45px rgba(139, 92, 246, 0.25);
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
}

/* ---------------------------------------------------------------- Interactive Canvas Background */
#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

/* ---------------------------------------------------------------- Ambient Glow Orbs (GPU Accelerated, No Heavy Runtime Blurs) */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  transform: translateZ(0);
  will-change: transform;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.15) 0%, rgba(0, 240, 255, 0.03) 45%, transparent 70%);
  top: -100px;
  left: -100px;
}

.orb-2 {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.14) 0%, rgba(139, 92, 246, 0.02) 45%, transparent 70%);
  top: 35%;
  right: -200px;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 65%);
  bottom: -50px;
  left: 20%;
}


.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ---------------------------------------------------------------- Typography & Utilities */
.text-gradient {
  background: linear-gradient(135deg, var(--accent-cyan), #a855f7, var(--accent-magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-center {
  text-align: center;
}

.section-heading {
  margin-bottom: 50px;
}

.sub-heading {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 2.5px;
  color: var(--accent-cyan);
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 12px;
  text-shadow: 0 0 12px rgba(0, 240, 255, 0.4);
}

.section-title {
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto;
}

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #05070c;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 240, 255, 0.45);
}

.btn-glow {
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-glow);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
}

.btn-outline:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.btn-admin {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-admin:hover {
  background: rgba(239, 68, 68, 0.25);
}

.full-width {
  width: 100%;
}

/* ---------------------------------------------------------------- Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 7, 12, 0.85);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-glass);
  padding: 16px 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.logo-avatar-mini {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid var(--accent-cyan);
  overflow: hidden;
  box-shadow: 0 0 15px var(--accent-cyan);
}

.logo-avatar-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-text {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: 1px;
}

.badge-ai {
  font-size: 0.7rem;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: #000;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 800;
}

.nav {
  display: flex;
  gap: 28px;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.header-actions {
  display: flex;
  gap: 12px;
}

/* ---------------------------------------------------------------- Hero Grid & Humanoid Avatar */
.hero-section {
  padding: 70px 0 50px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 240, 255, 0.08);
  border: 1px solid rgba(0, 240, 255, 0.25);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  margin-bottom: 24px;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: pulse 1.5s infinite;
}

.hero-title {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.2px;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.18rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 34px;
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-metrics {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 16px 28px;
  border-radius: var(--radius-md);
  width: fit-content;
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-val {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.metric-lbl {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
}

.metric-divider {
  width: 1px;
  height: 32px;
  background: var(--border-glass);
}

/* ---------------------------------------------------------------- Hologram Humanoid Visual Component */
.hero-visual {
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.hologram-card-container {
  position: relative;
  width: 100%;
  max-width: 440px;
}

.hologram-card {
  position: relative;
  background: radial-gradient(circle at top, rgba(0, 240, 255, 0.15), rgba(13, 17, 26, 0.9) 70%);
  border: 1px solid rgba(0, 240, 255, 0.4);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-glow), var(--shadow-purple);
  overflow: hidden;
  backdrop-filter: blur(20px);
  transition: transform 0.2s ease-out;
}

.hologram-scanline {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  box-shadow: 0 0 15px var(--accent-cyan);
  animation: scan 4s infinite linear;
  z-index: 5;
  pointer-events: none;
}

.hologram-hud-top {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.avatar-image-wrapper {
  position: relative;
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.avatar-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
  transition: transform 0.5s ease;
}

.avatar-img:hover {
  transform: scale(1.03);
}

.avatar-glow-ring {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 35px rgba(0, 240, 255, 0.3);
  pointer-events: none;
}

.hologram-hud-bottom {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ai-status-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
}

.waveform-bar {
  width: 3px;
  height: 14px;
  background: var(--accent-cyan);
  border-radius: 2px;
  animation: wave 1.2s infinite ease-in-out;
}
.waveform-bar:nth-child(2) { animation-delay: 0.2s; height: 20px; }
.waveform-bar:nth-child(3) { animation-delay: 0.4s; height: 12px; }
.waveform-bar:nth-child(4) { animation-delay: 0.6s; height: 18px; }
.waveform-bar:nth-child(5) { animation-delay: 0.8s; height: 10px; }

.waveform-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  margin-left: 8px;
  font-weight: 700;
}

.face-id-badge {
  font-size: 0.75rem;
  color: var(--accent-green);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ---------------------------------------------------------------- Terminal Block */
.terminal-container-block {
  margin-top: 50px;
}

.terminal-wrapper {
  max-width: 900px;
  margin: 0 auto;
  background: #090e17;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7), var(--shadow-glow);
  text-align: left;
  overflow: hidden;
}

.terminal-header {
  background: #121824;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-glass);
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.terminal-status {
  font-size: 0.75rem;
  color: var(--accent-green);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-live {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
}

.terminal-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.term-line.prompt { color: #f3f4f6; }
.term-line.jarvis { color: #38bdf8; line-height: 1.6; }
.term-line.system { color: #4ade80; font-size: 0.85rem; }
.cyan { color: var(--accent-cyan); font-weight: 700; }
.green { color: var(--accent-green); }
.dim { color: var(--text-dim); }

/* ---------------------------------------------------------------- Features */
.features-section {
  padding: 100px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 26px;
}

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 34px;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  font-size: 2.4rem;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ---------------------------------------------------------------- Versions */
.versions-section {
  padding: 90px 0;
  background: rgba(13, 17, 26, 0.6);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.versions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
}

.version-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 42px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.version-card.highlighted {
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow);
}

.version-tag {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
}

.version-tag.hot {
  background: rgba(0, 240, 255, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.version-title {
  font-size: 1.55rem;
  margin-bottom: 14px;
}

.version-desc {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 24px;
}

.version-list {
  list-style: none;
  margin-bottom: 34px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.version-list li {
  color: #e5e7eb;
  font-size: 0.95rem;
}

/* ---------------------------------------------------------------- Pricing */
.pricing-section {
  padding: 110px 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.plan-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 38px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.plan-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
}

.plan-card.popular {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 45px rgba(0, 240, 255, 0.25);
  background: linear-gradient(180deg, rgba(0, 240, 255, 0.08), var(--bg-card) 60%);
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #05070c;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 5px 16px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.plan-name {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.plan-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
  min-height: 44px;
}

.plan-price-box {
  margin-bottom: 28px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.plan-price {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
}

.plan-period {
  color: var(--text-dim);
  font-size: 0.9rem;
}

.plan-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 34px;
  flex-grow: 1;
}

.plan-features li {
  font-size: 0.93rem;
  color: #d1d5db;
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-features li::before {
  content: "✓";
  color: var(--accent-cyan);
  font-weight: 800;
}

/* ---------------------------------------------------------------- Web Chat */
.webchat-section {
  padding: 90px 0;
  background: rgba(13, 17, 26, 0.5);
}

.chat-wrapper {
  max-width: 880px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), var(--shadow-glow);
}

.chat-header {
  padding: 18px 26px;
  background: rgba(18, 24, 38, 0.9);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-agent-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.agent-avatar-mini {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--accent-cyan);
  overflow: hidden;
  box-shadow: 0 0 15px var(--accent-cyan);
}

.agent-avatar-mini img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agent-name {
  font-weight: 800;
  font-size: 1.05rem;
}

.agent-status {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.input-inline {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  width: 240px;
}

.chat-messages {
  height: 400px;
  overflow-y: auto;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.message-bubble {
  max-width: 82%;
  padding: 15px 20px;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.jarvis-bubble {
  align-self: flex-start;
  background: rgba(0, 240, 255, 0.09);
  border: 1px solid rgba(0, 240, 255, 0.25);
  color: #e0f2fe;
  border-bottom-left-radius: 4px;
}

.user-bubble {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #05070c;
  font-weight: 600;
  border-bottom-right-radius: 4px;
}

.chat-input-wrapper {
  padding: 18px 26px;
  background: rgba(18, 24, 38, 0.95);
  border-top: 1px solid var(--border-glass);
  display: flex;
  gap: 12px;
}

.chat-input-wrapper input {
  flex-grow: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: #fff;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 0.98rem;
}

.chat-input-wrapper input:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

/* ---------------------------------------------------------------- Terminal Guide */
.terminal-guide-section {
  padding: 100px 0;
}

.guide-steps {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.step-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 26px 32px;
  position: relative;
}

.step-num {
  position: absolute;
  top: 24px;
  left: -20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #05070c;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--accent-cyan);
}

.step-title {
  font-size: 1.15rem;
  margin-bottom: 12px;
  margin-left: 16px;
}

.code-copy-box {
  background: #080c14;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-left: 16px;
}

.code-copy-box code {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  font-size: 0.92rem;
}

.btn-copy {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  color: #fff;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.82rem;
  transition: var(--transition);
}

.btn-copy:hover {
  background: var(--accent-cyan);
  color: #05070c;
}

.step-note {
  margin-top: 10px;
  margin-left: 16px;
  font-size: 0.88rem;
  color: var(--text-dim);
}

/* ---------------------------------------------------------------- Modals */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

.modal-content {
  position: relative;
  background: #0c111c;
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 540px;
  padding: 34px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.85), var(--shadow-glow);
  z-index: 10;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-large {
  max-width: 850px;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.3rem;
  cursor: pointer;
}

.modal-close:hover { color: #fff; }

.modal-header {
  margin-bottom: 24px;
  text-align: center;
}

.modal-title {
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.modal-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card-details-box {
  background: #070a12;
  border: 1px solid rgba(0, 240, 255, 0.25);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
}

.card-label { color: var(--text-muted); }

.card-value-copy {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-copy-sm {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--accent-cyan);
  padding: 3px 9px;
  font-size: 0.78rem;
  border-radius: 4px;
  cursor: pointer;
}

.highlight-price {
  color: var(--accent-cyan);
  font-weight: 800;
  font-size: 1.15rem;
}

.badge-order {
  background: rgba(255, 255, 255, 0.1);
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.form-group input, .form-select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
}

.form-group input:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

.payment-success {
  text-align: center;
  padding: 20px 0;
}

.success-icon {
  font-size: 3.2rem;
  margin-bottom: 14px;
}

.license-key-box {
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--accent-cyan);
  background: #070a12;
  border: 2px dashed var(--accent-cyan);
  padding: 16px;
  border-radius: var(--radius-md);
  margin: 18px 0;
  letter-spacing: 2px;
}

.success-instructions {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 24px;
}

/* Admin Tabs & Table */
.admin-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: #080c14;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label { font-size: 0.78rem; color: var(--text-muted); }
.stat-val { font-size: 1.25rem; font-weight: 800; color: var(--accent-cyan); }

.admin-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 20px;
}

.tab-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  padding: 8px 18px;
  cursor: pointer;
  font-weight: 600;
  border-bottom: 2px solid transparent;
}

.tab-btn.active {
  color: var(--accent-cyan);
  border-bottom-color: var(--accent-cyan);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.admin-table th, .admin-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-glass);
}

.admin-table th { color: var(--text-muted); }

/* ---------------------------------------------------------------- Footer */
.footer {
  padding: 50px 0;
  border-top: 1px solid var(--border-glass);
  background: var(--bg-primary);
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-top: 6px;
}

.footer-links {
  display: flex;
  gap: 24px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover { color: var(--accent-cyan); }

/* ---------------------------------------------------------------- Animations */
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.1); opacity: 1; }
}

@keyframes scan {
  0% { top: 0; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

@keyframes wave {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1.3); }
}

/* ---------------------------------------------------------------- Google Auth & User Header */
.btn-google-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-google-nav:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(18, 24, 38, 0.85);
  border: 1px solid var(--border-glass);
  padding: 6px 14px 6px 6px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.3s ease;
}

.user-profile-badge:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.25);
}

.user-avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--accent-cyan);
}

.user-name-txt {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
}

.user-plan-pill {
  font-size: 0.72rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: #000;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

/* ---------------------------------------------------------------- Download Tabs Hub */
.downloads-section {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(9, 14, 23, 0.8) 100%);
}

.download-tabs-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.download-tab-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 24px;
}

.download-tab-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(18, 24, 38, 0.7);
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.download-tab-btn:hover {
  color: #fff;
  border-color: var(--accent-cyan);
}

.download-tab-btn.active {
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(168, 85, 247, 0.15));
  border-color: var(--accent-cyan);
  color: #fff;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.download-tab-content {
  display: none;
}

.download-tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

.install-card {
  background: #090e17;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.install-card-header {
  margin-bottom: 16px;
}

.platform-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 10px;
}

.win-badge {
  background: rgba(0, 164, 239, 0.15);
  color: #00a4ef;
  border: 1px solid rgba(0, 164, 239, 0.4);
}

.mac-badge {
  background: rgba(168, 85, 247, 0.15);
  color: #a855f7;
  border: 1px solid rgba(168, 85, 247, 0.4);
}

.web-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.install-card-desc {
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.install-flow-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 24px 0;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #121824;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent-cyan);
  color: #f3f4f6;
  font-size: 0.92rem;
}

.step-badge {
  background: var(--accent-cyan);
  color: #000;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.8rem;
}

.direct-download-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-glass);
  color: var(--text-dim);
  font-size: 0.88rem;
}

.btn-outline-sm {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-sm:hover {
  border-color: var(--accent-cyan);
  color: #fff;
}

.browser-launch-cta {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

/* ---------------------------------------------------------------- Auth & Cabinet Modals */
.auth-modal-box {
  max-width: 440px;
}

.auth-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--border-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 16px;
}

.glow-cyan {
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.google-btn-wrapper {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.auth-divider {
  text-align: center;
  margin: 20px 0;
  position: relative;
}

.auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-glass);
}

.auth-divider span {
  position: relative;
  background: #0f1523;
  padding: 0 12px;
  color: var(--text-dim);
  font-size: 0.82rem;
}

.user-cab-header-flex {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cabinet-avatar-lg {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid var(--accent-cyan);
}

.cabinet-section-card {
  background: #121824;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
}

.cabinet-section-card h4 {
  margin-bottom: 14px;
  font-size: 1rem;
  color: #fff;
}

.active-lic-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.lic-tag {
  background: var(--accent-purple);
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

.lic-code-val {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--accent-cyan);
  font-weight: 800;
}

.lic-exp-info {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.cabinet-cmd-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cab-cmd-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
}

.cab-cmd-item code {
  background: #090e17;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.cabinet-actions {
  display: flex;
  justify-content: flex-end;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ef4444;
  padding: 8px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-danger:hover {
  background: #ef4444;
  color: #fff;
}

/* ---------------------------------------------------------------- Claude Code CLI Device Approval */
.cli-code-display {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #000;
  background: var(--accent-cyan);
  padding: 10px 20px;
  border-radius: var(--radius-md);
  display: inline-block;
  margin: 16px 0;
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.5);
}

.cli-confirm-txt {
  color: #f3f4f6;
  margin-bottom: 20px;
  line-height: 1.6;
}

.cli-user-status-pill {
  background: #121824;
  padding: 10px;
  border-radius: var(--radius-sm);
  margin-bottom: 24px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-cta-group { justify-content: center; }
  .hero-metrics { margin: 0 auto; }
  .hologram-card-container { margin: 0 auto; }
  .pricing-grid { grid-template-columns: 1fr; }
  .download-tab-buttons { flex-direction: column; }
  .direct-download-row { flex-direction: column; gap: 12px; }
  .hero-title { font-size: 2.7rem; }
  .nav { display: none; }
}

