/* ==========================================================================
   BunnyFlow Pro Suite - Design System & Window App Stylesheet
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-desktop: #08090d;
  --bg-window: #0b0d13;
  --bg-sidebar: #090a0f;
  --bg-hero: #0e111a;
  --bg-hero-glow: radial-gradient(circle at 80% 30%, rgba(37, 99, 235, 0.12) 0%, rgba(16, 185, 129, 0.04) 40%, transparent 70%);
  --bg-card: #11141e;
  --bg-card-hover: #151926;
  --bg-card-active: #131722;
  
  /* Borders */
  --border-window: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-card: rgba(255, 255, 255, 0.08);
  --border-card-hover: rgba(255, 255, 255, 0.14);
  --border-active-accent: #10b981;

  /* Accents & Neon */
  --accent-mint: #34d399;
  --accent-emerald: #10b981;
  --accent-cyan: #38bdf8;
  --accent-coral: #ef4444;
  --accent-coral-bg: rgba(239, 68, 68, 0.16);
  --accent-coral-border: rgba(239, 68, 68, 0.35);
  --pill-running-bg: #6ee7b7;
  --pill-running-text: #064e3b;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Text Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-dark: #0f172a;

  /* Shadows & Elevation */
  --shadow-window: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --shadow-glow-mint: 0 0 15px rgba(16, 185, 129, 0.25);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.4);

  /* Dimensions */
  --titlebar-height: 38px;
  --sidebar-width: 76px;
  --radius-window: 12px;
  --radius-card: 14px;
}

/* CSS Reset & Defaults */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body.desktop-body {
  font-family: var(--font-sans);
  background-color: var(--bg-desktop);
  color: var(--text-main);
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background-image: 
    radial-gradient(at 10% 10%, rgba(99, 102, 241, 0.06) 0px, transparent 50%),
    radial-gradient(at 90% 90%, rgba(16, 185, 129, 0.05) 0px, transparent 50%);
  user-select: none;
  -webkit-font-smoothing: antialiased;
}

/* Window Shell Container */
.window-shell {
  width: 100%;
  max-width: 1200px;
  height: 100%;
  max-height: 840px;
  background: var(--bg-window);
  border: 1px solid var(--border-window);
  border-radius: var(--radius-window);
  box-shadow: var(--shadow-window);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: max-width 0.3s cubic-bezier(0.16, 1, 0.3, 1), max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-radius 0.3s ease;
}

.window-shell.is-maximized {
  max-width: 100vw;
  max-height: 100vh;
  border-radius: 0;
  border: none;
}

/* Custom Windows Titlebar */
.window-titlebar {
  height: var(--titlebar-height);
  background: var(--bg-window);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: 14px;
  -webkit-app-region: drag;
  z-index: 50;
}

.titlebar-drag-region {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-grow: 1;
  height: 100%;
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-brand-logo,
.bunny-logo-badge {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  overflow: hidden;
  filter: drop-shadow(0 0 8px rgba(52, 211, 153, 0.5));
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 5px;
}

.bunny-svg {
  width: 100%;
  height: 100%;
}

.app-name {
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: #ffffff;
}

.pro-suite-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--accent-mint);
  border: 1px solid var(--accent-emerald);
  padding: 1.5px 6.5px;
  border-radius: 4px;
  letter-spacing: 0.6px;
  background: rgba(16, 185, 129, 0.08);
}

/* Windows Controls */
.window-controls {
  display: flex;
  align-items: center;
  height: 100%;
  -webkit-app-region: no-drag !important;
  position: relative;
  z-index: 9999;
}

.win-btn {
  background: transparent;
  border: none;
  outline: none;
  color: #94a3b8;
  height: 100%;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  -webkit-app-region: no-drag !important;
  user-select: none;
}

.win-btn svg,
.win-btn path,
.win-btn rect {
  pointer-events: none !important;
  -webkit-app-region: no-drag !important;
}

.win-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.win-btn.win-close:hover {
  background: #e81123 !important;
  color: #ffffff !important;
}

/* App Layout */
.app-layout {
  display: flex;
  flex: 1;
  height: calc(100% - var(--titlebar-height));
  overflow: hidden;
}

/* Left Sidebar Dock */
.sidebar-dock {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  flex-shrink: 0;
}

.sidebar-top, .sidebar-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.dock-item {
  background: transparent;
  border: none;
  outline: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  padding: 6px;
  width: 58px;
  transition: transform 0.2s ease, opacity 0.2s ease;
  position: relative;
}

.dock-icon-wrapper {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dock-item:hover .dock-icon-wrapper {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.dock-label {
  font-size: 10px;
  font-weight: 500;
  color: #64748b;
  letter-spacing: 0.2px;
  transition: color 0.2s ease;
}

/* Active Dock Item (matches screenshot Workspace green outline) */
.dock-item.active .dock-icon-wrapper {
  border: 1px solid var(--accent-emerald);
  color: var(--accent-mint);
  background: rgba(16, 185, 129, 0.08);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.2);
}

.dock-item.active .dock-label {
  color: var(--accent-mint);
  font-weight: 600;
}

/* Settings Dock Item */
.settings-dock-item {
  margin-top: auto;
}

.settings-avatar-wrap {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  margin-bottom: 2px;
  transition: all 0.2s ease;
}

.settings-dock-item:hover .settings-avatar-wrap {
  box-shadow: 0 0 10px rgba(168, 85, 247, 0.4);
  transform: scale(1.05);
}

.mini-bunny-icon {
  width: 22px;
  height: 22px;
}

.heavy-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: #064e3b;
  background: var(--accent-mint);
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
  margin-top: 1px;
}

/* Main Content View */
.main-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 24px 28px 24px;
  scroll-behavior: smooth;
}

/* Custom Scrollbar */
.main-content::-webkit-scrollbar {
  width: 6px;
}
.main-content::-webkit-scrollbar-track {
  background: transparent;
}
.main-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
.main-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Breadcrumb Navigation */
.top-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 0 2px;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.crumb-muted {
  color: #64748b;
  font-weight: 400;
}

.crumb-separator {
  color: #334155;
  font-size: 12px;
}

.crumb-active {
  color: #ffffff;
  font-weight: 600;
}

.top-right-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-tag {
  color: #64748b;
  font-weight: 500;
}

.meta-slash {
  color: #334155;
}

.meta-tag.highlight {
  color: #94a3b8;
}

/* Hero Featured Card */
.hero-card {
  background: var(--bg-hero);
  background-image: var(--bg-hero-glow);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-card);
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
  position: relative;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 34px 22px 34px;
  gap: 24px;
}

.hero-content {
  flex: 1;
  max-width: 520px;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-mint);
  letter-spacing: 1px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.kicker-dash {
  opacity: 0.8;
}

.hero-title {
  font-size: 38px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: #ffffff;
  margin-bottom: 14px;
}

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

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
}

.btn-session-stop {
  background: var(--accent-coral-bg);
  border: 1px solid var(--accent-coral-border);
  color: #f87171;
  font-weight: 600;
}

.btn-session-stop:hover {
  background: rgba(239, 68, 68, 0.24);
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.2);
  transform: translateY(-1px);
}

.btn-session-start {
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--accent-mint);
  font-weight: 600;
}

.btn-session-start:hover {
  background: rgba(16, 185, 129, 0.25);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.2);
  transform: translateY(-1px);
}

.btn-icon {
  font-size: 10px;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent-mint);
  border: 1px solid var(--accent-mint);
  color: #064e3b;
  font-weight: 600;
}

.btn-primary:hover {
  background: #6ee7b7;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.3);
}

/* Radar Graphic Visual HUD */
.hero-graphic {
  position: relative;
  width: 250px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.radar-hud-container {
  position: relative;
  width: 190px;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.ring-outer {
  width: 180px;
  height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.ring-middle {
  width: 140px;
  height: 140px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  animation: radarRotate 25s linear infinite;
}

.ring-inner {
  width: 96px;
  height: 96px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.radar-axis {
  position: absolute;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.04);
}

.axis-horizontal {
  width: 190px;
  height: 1px;
}

.axis-vertical {
  height: 190px;
  width: 1px;
}

/* Rotating Tracker Dot with Emerald Pulse */
.orbital-tracer {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  animation: radarOrbit 8s linear infinite;
  pointer-events: none;
}

.orbital-dot {
  position: absolute;
  bottom: 14px;
  right: 22px;
  width: 8px;
  height: 8px;
  background-color: var(--accent-mint);
  border-radius: 50%;
  box-shadow: 0 0 10px 3px rgba(16, 185, 129, 0.8);
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes radarOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes radarRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

@keyframes dotPulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* Center AI Glass Squircle Tile */
.radar-center-tile {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(14, 18, 27, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px -4px rgba(0, 0, 0, 0.7), 0 0 20px rgba(0, 0, 0, 0.5);
  z-index: 5;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.radar-center-tile:hover {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.25);
}

.hidden-logo {
  display: none !important;
}

.radar-endpoint-label {
  position: absolute;
  bottom: -4px;
  right: -10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.8px;
  color: #64748b;
  pointer-events: none;
}

/* Hero Footer 3-Column Strip */
.hero-footer-bar {
  border-top: 1px solid var(--border-subtle);
  background: rgba(11, 14, 21, 0.6);
  padding: 14px 34px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.8px;
  color: #64748b;
  font-weight: 500;
}

.meta-value {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #f1f5f9;
}

.check-icon {
  color: var(--accent-mint);
  font-size: 12px;
  font-weight: 700;
}

.lock-icon {
  font-size: 11px;
}

.meta-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.07);
}

/* AI Platforms Suite Section */
.suite-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2px;
}

.section-title {
  font-size: 15px;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.2px;
}

.section-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #64748b;
  letter-spacing: 0.5px;
}

/* Platform Cards Grid */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.platforms-grid.single-platform {
  grid-template-columns: minmax(320px, 560px);
}

.platform-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
}

.platform-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.platform-card.active-card {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.08);
}

.card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.platform-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.platform-avatar.google-badge {
  background: rgba(255, 255, 255, 0.05);
}

.platform-avatar.openai-badge {
  background: rgba(16, 163, 127, 0.1);
  border-color: rgba(16, 163, 127, 0.25);
}

.platform-avatar.xai-badge {
  background: rgba(255, 255, 255, 0.06);
}

.platform-avatar.meta-badge {
  background: rgba(0, 129, 251, 0.12);
  border-color: rgba(0, 129, 251, 0.3);
}

.platform-meta {
  flex: 1;
}

.platform-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.2;
}

.platform-category {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
}

/* Status Badges */
.status-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  letter-spacing: 0.3px;
}

.status-badge.status-ready {
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-mint);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-badge.status-syncing {
  background: rgba(148, 163, 184, 0.1);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.15);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
}

.status-dot.pulse {
  animation: dotBlink 1.5s infinite;
}

@keyframes dotBlink {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.platform-desc {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.45;
  margin-bottom: 14px;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.platform-url {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #64748b;
}

.card-btn-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pill-btn {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 6px;
  padding: 4px 11px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.pill-running {
  background: var(--pill-running-bg);
  color: var(--pill-running-text);
}

.pill-running:hover {
  background: #a7f3d0;
  box-shadow: 0 0 10px rgba(110, 231, 183, 0.4);
}

.pill-syncing {
  background: var(--pill-running-bg);
  color: var(--pill-running-text);
  position: relative;
  overflow: hidden;
}

.pill-syncing::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  100% { left: 100%; }
}

.pill-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
}

.pill-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

/* Modals */
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-dialog {
  width: 90%;
  max-width: 480px;
  background: #111420;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-backdrop.is-open .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.modal-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-mint);
  letter-spacing: 0.8px;
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 2px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 14px;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s ease;
}

.modal-close-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.step-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-mint);
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(16, 185, 129, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h4 {
  font-size: 13.5px;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 4px;
}

.step-content p {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.45;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: rgba(0, 0, 0, 0.2);
}

/* Settings Row & Switch */
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.setting-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #f8fafc;
}

.setting-desc {
  font-size: 11.5px;
  color: #94a3b8;
  margin-top: 2px;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #334155;
  transition: 0.25s;
  border-radius: 22px;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.25s;
  border-radius: 50%;
}

input:checked + .toggle-slider {
  background-color: var(--accent-emerald);
}

input:checked + .toggle-slider:before {
  transform: translateX(18px);
}

/* Toast Container */
.toast-container {
  position: absolute;
  bottom: 20px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 200;
  pointer-events: none;
}

.toast {
  background: #181d2a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 16px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font-size: 12.5px;
  color: #f1f5f9;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: toastSlideIn 0.25s ease forwards;
}

/* ==========================================================================
   Vault Modal, Credentials Inputs & Live 2FA Display
   ========================================================================== */
.modal-vault {
  max-width: 580px;
}

.vault-body {
  max-height: 70vh;
  overflow-y: auto;
  gap: 20px;
  padding: 22px;
}

.vault-form {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  padding: 16px;
}

.form-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.label-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 1px 6px;
  border-radius: 3px;
}

.input-wrapper {
  display: flex;
  align-items: center;
  background: #090b10;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-wrapper:focus-within {
  border-color: var(--accent-mint);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.15);
}

.input-icon {
  color: #64748b;
  font-size: 13px;
  margin-right: 8px;
}

.form-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 12.5px;
  padding: 8px 0;
}

.form-input.mono-input {
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

.btn-toggle-eye {
  background: transparent;
  border: none;
  cursor: pointer;
  color: #64748b;
  font-size: 13px;
  padding: 4px;
}

.btn-toggle-eye:hover {
  color: #e2e8f0;
}

.form-hint {
  font-size: 10px;
  color: #64748b;
}

.form-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
}

.btn-save-vault {
  width: 100%;
}

/* Vault Saved Accounts List */
.vault-saved-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vault-saved-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vault-saved-title {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.vault-live-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-mint);
}

.vault-accounts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.account-vault-card {
  background: #0d1017;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s ease;
}

.account-vault-card.active-account {
  border-color: rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.04), #0d1017);
}

.account-vault-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.account-identity {
  display: flex;
  flex-direction: column;
}

.account-email {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.account-label-tag {
  font-size: 11px;
  color: #64748b;
}

.account-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-sm {
  padding: 3px 8px;
  font-size: 11px;
  border-radius: 4px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}

.btn-sm:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.btn-danger {
  color: #f87171;
  border-color: rgba(239, 68, 68, 0.25);
}

.btn-danger:hover {
  background: rgba(239, 68, 68, 0.15);
}

/* Live 2FA Code Box */
.totp-box {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.totp-digits-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.totp-code {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--accent-mint);
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.totp-timer-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
}

.btn-copy-code {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--accent-mint);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-copy-code:hover {
  background: rgba(16, 185, 129, 0.25);
}

/* ==========================================================================
   User App Login Gate & License Status Badges
   ========================================================================== */
.modal-login {
  max-width: 480px;
  width: 92%;
  background: #0d101a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), 0 0 40px rgba(16, 185, 129, 0.06);
  padding: 28px 32px 32px 32px;
  position: relative;
  overflow: hidden;
}

.login-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.btn-login-back {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-login-back:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.login-brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.login-brand-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 5px;
  filter: drop-shadow(0 0 6px rgba(52, 211, 153, 0.45));
}

.login-brand-text {
  font-size: 14.5px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.login-heading {
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.4px;
  margin-bottom: 6px;
}

.login-subtext {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 18px;
}

.login-req-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #34d399;
  font-size: 12px;
  margin-bottom: 20px;
}

.login-req-icon {
  flex-shrink: 0;
  color: #34d399;
}

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

.login-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-field-label {
  font-size: 12px;
  font-weight: 500;
  color: #94a3b8;
}

.login-input-field {
  background: #111422;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  height: 44px;
  transition: all 0.2s ease;
}

.login-input-field:focus-within {
  border-color: #34d399;
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.15);
  background: #131726;
}

.login-input-ico {
  color: #64748b;
  display: flex;
  align-items: center;
  margin-right: 10px;
}

.login-raw-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 13px;
  font-family: inherit;
}

.login-raw-input::placeholder {
  color: #475569;
}

.login-options-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-top: -2px;
  margin-bottom: 4px;
}

.login-remember-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #94a3b8;
  cursor: pointer;
  user-select: none;
}

.login-checkbox {
  accent-color: #34d399;
  width: 15px;
  height: 15px;
  border-radius: 4px;
  cursor: pointer;
}

.btn-submit-unlock {
  width: 100%;
  background: #6ee7b7;
  color: #064e3b;
  border: none;
  border-radius: 9px;
  padding: 13px 20px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(110, 231, 183, 0.25);
  transition: all 0.2s ease;
  margin-top: 4px;
}

.btn-submit-unlock:hover {
  background: #34d399;
  box-shadow: 0 6px 24px rgba(52, 211, 153, 0.4);
  transform: translateY(-1px);
}

.login-alert-box {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.3);
  color: #f87171;
  font-size: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  margin-bottom: 16px;
  line-height: 1.4;
}

/* User License Pill in Top Bar */
.user-license-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: #f1f5f9;
}

.user-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-mint);
  box-shadow: 0 0 8px var(--accent-mint);
}

.days-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-mint);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 1px 6px;
  border-radius: 10px;
}

.days-pill.expired {
  background: rgba(244, 63, 94, 0.15);
  color: #f87171;
  border-color: rgba(244, 63, 94, 0.3);
}

/* Session Quick-Assistant HUD */
.session-quick-hud {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hud-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hud-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-mint);
  letter-spacing: 0.6px;
}

.hud-timer {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #94a3b8;
}

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

.btn-copy-chip {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
}

.btn-copy-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-copy-chip.highlight {
  background: rgba(16, 185, 129, 0.18);
  border-color: rgba(16, 185, 129, 0.35);
  color: var(--accent-mint);
}

.btn-copy-chip.highlight:hover {
  background: rgba(16, 185, 129, 0.28);
}

.empty-accounts-notice {
  text-align: center;
  padding: 16px;
  color: #64748b;
  font-size: 12px;
}

/* ==========================================================================
   Welcome to PakFlow Modal (Software Launch Splash)
   ========================================================================== */
.modal-welcome {
  max-width: 530px;
  width: 92%;
  background: #0d101a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.85), 0 0 40px rgba(16, 185, 129, 0.06);
  padding: 34px 32px 24px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.welcome-ecosystem-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(16, 185, 129, 0.09);
  border: 1px solid rgba(16, 185, 129, 0.28);
  padding: 5px 14px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.9px;
  color: #34d399;
  margin-bottom: 20px;
}

.welcome-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}

.welcome-logo-badge {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  border: 1px solid rgba(52, 211, 153, 0.35);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.85), 0 0 28px rgba(16, 185, 129, 0.3);
  padding: 5px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.welcome-logo-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.95), 0 0 38px rgba(52, 211, 153, 0.45);
}

.welcome-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
}

.login-logo-badge {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #000000;
  border: 1px solid rgba(52, 211, 153, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 14px rgba(16, 185, 129, 0.25);
  padding: 3px;
  flex-shrink: 0;
}

.login-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.welcome-bunny-svg {
  width: 100%;
  height: 100%;
}

.welcome-title {
  font-size: 23px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.3px;
  margin-bottom: 10px;
  text-align: center;
}

.welcome-desc {
  font-size: 12.5px;
  color: #94a3b8;
  line-height: 1.55;
  text-align: center;
  max-width: 440px;
  margin-bottom: 22px;
}

.welcome-features-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.welcome-feature-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 13px 16px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  transition: all 0.2s ease;
}

.welcome-feature-card:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.welcome-feature-icon {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.welcome-feature-icon.icon-lightning {
  color: #f59e0b;
}

.welcome-feature-icon.icon-shield {
  color: #38bdf8;
}

.welcome-feature-icon.icon-diamond {
  color: #2dd4bf;
}

.welcome-feature-text h4 {
  font-size: 13.5px;
  font-weight: 600;
  color: #f8fafc;
  margin-bottom: 3px;
}

.welcome-feature-text p {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.45;
}

.btn-welcome-continue {
  width: 100%;
  background: #6ee7b7;
  color: #064e3b;
  border: none;
  border-radius: 9px;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 18px rgba(110, 231, 183, 0.25);
  transition: all 0.2s ease;
}

.btn-welcome-continue:hover {
  background: #34d399;
  box-shadow: 0 6px 24px rgba(52, 211, 153, 0.4);
  transform: translateY(-1px);
}

.btn-welcome-continue .btn-arrow {
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.welcome-footer-info {
  margin-top: 14px;
  font-size: 11px;
  color: #64748b;
  text-align: center;
  letter-spacing: 0.2px;
}

@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .platforms-grid {
    grid-template-columns: 1fr;
  }
  .hero-graphic {
    align-self: center;
    margin-top: 10px;
  }
}
