@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@400;500;600;700;800&display=swap');

/* ===================================
   VantaClient - Professional Design System 2026
   =================================== */

:root {
  /* Core Colors */
  --accent: #0078F9;
  --accent-rgb: 0, 120, 249;
  --accent-secondary: #2aa8ff;
  --accent-warm: #8cc7ff;
  
  /* Theme Surfaces (Dark Default) */
  --bg-primary: #0B0D10;
  --bg-secondary: #13151A;
  --bg-tertiary: #1A1D24;
  --text-primary: #EDEFF2;
  --text-secondary: #9AA3AD;
  --border: rgba(255, 255, 255, 0.08);
  --card-bg: rgba(255, 255, 255, 0.04);
  --glass-bg: rgba(11, 13, 16, 0.15);
  --glass-border: rgba(255, 255, 255, 0.06);

  /* Shared Tokens */
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --max-width: 1400px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-xl: 48px;
  --space-section: 160px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --duration: 0.4s;
  
  --shadow-accent: 0 16px 48px rgba(var(--accent-rgb), 0.2);
}

body[data-theme="light"] {
  --accent: #006ae0;
  --accent-rgb: 0, 106, 224;
  --accent-secondary: #2893ff;
  --accent-warm: #5eaefc;
  --bg-primary: #f1f5fb;
  --bg-secondary: #ffffff;
  --bg-tertiary: #e8eef6;
  --text-primary: #111827;
  --text-secondary: #5d6878;
  --border: rgba(17, 24, 39, 0.12);
  --card-bg: rgba(255, 255, 255, 0.82);
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(17, 24, 39, 0.11);
}

body[data-theme="light"] .bg-gradient-overlay {
  background:
    radial-gradient(circle at 10% 10%, rgba(var(--accent-rgb), 0.12), transparent 42%),
    radial-gradient(circle at 90% 90%, rgba(var(--accent-rgb), 0.1), transparent 42%);
}

body[data-theme="light"] .grid-overlay {
  opacity: 0.18;
}

body[data-theme="light"] .nav {
  box-shadow: 0 14px 30px rgba(29, 44, 67, 0.12);
}

/* ===================================
   Base & Reset
   =================================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6, .nav-wordmark, .section-title {
  font-family: var(--font-heading);
}

.bg-gradient-overlay {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: 
    radial-gradient(circle at 10% 10%, rgba(var(--accent-rgb), 0.08), transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(var(--accent-rgb), 0.08), transparent 40%);
}

.grid-overlay {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px; opacity: 0.1;
}

/* ===================================
   Navigation (Ultra-Transparency)
   =================================== */
.nav {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 48px); max-width: var(--max-width);
  z-index: 1000; padding: 12px 24px;
  background: var(--glass-bg); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border); border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
}
.nav.scrolled { top: 0; width: 100%; max-width: none; border-radius: 0; border-top: none; }
.nav-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; text-decoration: none; }
.logo-image { width: 32px; height: 32px; }
.nav-wordmark { font-weight: 800; font-size: 20px; color: var(--text-primary); }

.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a, .nav-links button {
  font-weight: 700; color: var(--text-secondary); position: relative; padding: 8px 0;
  background: none; border: none; cursor: pointer; font-size: 14px; text-decoration: none;
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-links a:hover, .nav-links a.active, .nav-links button:hover, .nav-links button.active { color: var(--text-primary); }
.nav-links a::after, .nav-links button::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--accent); transition: width 0.3s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after, .nav-links button:hover::after, .nav-links button.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.nav-vcoins {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 100px; font-weight: 800; font-size: 13px;
}
.nav-vcoins img { width: 16px; height: 16px; image-rendering: pixelated; }

.nav-user { 
  display: flex; align-items: center; gap: 8px; cursor: pointer; 
  padding: 4px 10px 4px 4px; border-radius: 12px; 
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border);
  transition: transform 0.28s var(--ease), border-color 0.28s var(--ease), background 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.nav-user:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--accent-rgb), 0.4);
  background: rgba(var(--accent-rgb), 0.1);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.24);
}
.nav-avatar { width: 28px; height: 28px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }
#nav-username { font-weight: 700; font-size: 13px; color: var(--text-primary); }
.nav-actions { position: relative; }
.btn-signout.hidden-by-menu { display: none; }

.account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 54px;
  width: 210px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
  display: block;
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.24s var(--ease), transform 0.24s var(--ease), visibility 0.24s var(--ease);
}
.account-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.account-dropdown button {
  width: 100%;
  border: 1px solid transparent;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  color: var(--text-primary);
  border-radius: 11px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform 0.24s var(--ease), border-color 0.24s var(--ease), background 0.24s var(--ease), color 0.24s var(--ease);
}
.account-dropdown button:hover {
  transform: translateY(-1px);
  background: rgba(var(--accent-rgb), 0.14);
  border-color: rgba(var(--accent-rgb), 0.34);
}
.account-dropdown button.account-danger {
  color: #ff6363;
}

.settings-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(var(--accent-rgb), 0.18), transparent 42%),
    rgba(4, 8, 16, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: clamp(16px, 2vw, 24px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s var(--ease), visibility 0.32s var(--ease);
}
.settings-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.settings-panel {
  width: min(1080px, 100%);
  max-height: 90vh;
  background:
    radial-gradient(circle at 85% 10%, rgba(var(--accent-rgb), 0.13), transparent 45%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 28px;
  position: relative;
  display: grid;
  grid-template-columns: 270px 1fr;
  overflow: hidden;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.52);
  transform: translateY(18px) scale(0.985);
  transition: transform 0.36s var(--ease);
}
.settings-overlay.open .settings-panel {
  transform: translateY(0) scale(1);
}
.settings-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, transparent 20%, rgba(255, 255, 255, 0.04), transparent 70%);
  pointer-events: none;
  opacity: 0.5;
}
.settings-sidebar {
  background:
    radial-gradient(circle at 0% 0%, rgba(var(--accent-rgb), 0.16), transparent 55%),
    linear-gradient(180deg, #0a1019 0%, #0c1420 100%);
  border-right: 1px solid var(--border);
  padding: 20px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.settings-title-wrap {
  display: grid;
  gap: 6px;
}
.settings-kicker {
  display: inline-flex;
  width: fit-content;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #b8d9ff;
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(var(--accent-rgb), 0.14);
}
.settings-title {
  font-size: 22px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 10px;
}
.settings-subtitle {
  color: var(--text-secondary);
  font-size: 12px;
  line-height: 1.5;
}
.settings-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.settings-nav button {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  color: var(--text-primary);
  border-radius: 13px;
  padding: 11px 12px;
  text-align: left;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  position: relative;
  transition: transform 0.24s var(--ease), border-color 0.24s var(--ease), background 0.24s var(--ease), box-shadow 0.24s var(--ease);
}
.settings-nav button i {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  color: #cfe2f8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.settings-nav button span {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.settings-nav button span strong {
  font-size: 13px;
  font-weight: 800;
}
.settings-nav button span small {
  font-size: 11px;
  color: var(--text-secondary);
}
.settings-nav button:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.settings-nav button.active {
  color: #fff;
  border-color: rgba(var(--accent-rgb), 0.58);
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.24), rgba(var(--accent-rgb), 0.12));
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.settings-nav button.active i {
  background: rgba(var(--accent-rgb), 0.3);
  color: #fff;
}
.settings-nav button.active span small {
  color: rgba(255, 255, 255, 0.85);
}
.settings-sidebar-foot {
  margin-top: auto;
  font-size: 11px;
  color: #a9c0da;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 9px 10px;
}
.settings-content {
  padding: 26px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.settings-content-header {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  background: linear-gradient(150deg, rgba(var(--accent-rgb), 0.12), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.settings-content-kicker {
  color: #b5d7ff;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 900;
  margin-bottom: 6px;
}
.settings-content-header h3 {
  font-size: clamp(20px, 2.4vw, 24px);
  line-height: 1.1;
  margin-bottom: 4px;
}
.settings-content-header span {
  font-size: 13px;
  color: #b9c2cf;
}
.settings-tab { display: none; }
.settings-tab.active {
  display: grid;
  gap: 14px;
  animation: settingsTabIn 0.32s var(--ease);
}
@keyframes settingsTabIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.settings-group {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--accent-rgb), 0.12), transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.24s var(--ease), transform 0.24s var(--ease), background 0.24s var(--ease);
}
.settings-group:hover {
  border-color: rgba(var(--accent-rgb), 0.38);
  transform: translateY(-1px);
}
.settings-group h4 {
  font-size: 16px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.settings-group h4 i { color: var(--accent); }
.settings-group p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.5;
}
.settings-label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #a7b8c9;
}
.settings-input,
.settings-select,
.form-input,
.form-select,
.form-textarea,
.ui-input,
.ui-select,
.ui-textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(8, 12, 20, 0.6);
  color: var(--text-primary);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  margin-bottom: 12px;
  transition: all 0.28s var(--ease);
  font-family: inherit;
}
.settings-input::placeholder,
.form-input::placeholder,
.form-textarea::placeholder,
.ui-input::placeholder,
.ui-textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.85;
}
.settings-input:hover,
.settings-select:hover,
.form-input:hover,
.form-select:hover,
.form-textarea:hover,
.ui-input:hover,
.ui-select:hover,
.ui-textarea:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  background: rgba(12, 18, 28, 0.75);
}
.settings-input:focus,
.settings-select:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus,
.ui-input:focus,
.ui-select:focus,
.ui-textarea:focus {
  outline: none;
  border-color: rgba(var(--accent-rgb), 0.82);
  background: rgba(14, 22, 34, 0.88);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.16);
}
.settings-select,
.form-select,
.ui-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239AA3AD' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.settings-select::-ms-expand,
.form-select::-ms-expand,
.ui-select::-ms-expand {
  display: none;
}
.settings-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.settings-btn {
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 10px 16px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  transition: transform 0.22s var(--ease), box-shadow 0.24s var(--ease), filter 0.24s var(--ease), border-color 0.24s var(--ease), background 0.24s var(--ease);
}
.settings-btn:hover {
  transform: translateY(-1px);
}
.settings-btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
  color: #fff;
  box-shadow: 0 10px 22px rgba(var(--accent-rgb), 0.35);
}
.settings-btn-primary:hover {
  box-shadow: 0 16px 30px rgba(var(--accent-rgb), 0.42);
  filter: brightness(1.05);
}
.settings-btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border-color: var(--border);
}
.settings-btn-secondary:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.12);
}
.settings-toggle-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.22s var(--ease), background 0.22s var(--ease), transform 0.22s var(--ease);
}
.settings-toggle-row:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
  background: rgba(var(--accent-rgb), 0.1);
  transform: translateY(-1px);
}
.settings-toggle-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.settings-toggle-copy strong {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 13px;
}
.settings-toggle-copy small {
  color: var(--text-secondary);
  font-size: 11px;
  line-height: 1.35;
}
.settings-toggle-row input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
  position: relative;
  transition: all 0.25s var(--ease);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
  margin-left: auto;
  margin-top: 1px;
  flex-shrink: 0;
}
.settings-toggle-row input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #cfd7e2;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease);
}
.settings-toggle-row input[type="checkbox"]:checked {
  background: rgba(var(--accent-rgb), 0.28);
  border-color: rgba(var(--accent-rgb), 0.7);
}
.settings-toggle-row input[type="checkbox"]:checked::after {
  transform: translateX(18px);
  background: #fff;
}
.settings-toggle-row input[type="checkbox"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.2);
}
.settings-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(7, 10, 16, 0.7);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.25s var(--ease);
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.settings-close:hover {
  background: rgba(255, 75, 75, 0.12);
  border-color: rgba(255, 75, 75, 0.35);
  color: #ff8080;
}

.settings-security-flow {
  position: relative;
}
.settings-security-launch {
  width: fit-content;
  min-width: 180px;
}
.settings-security-panel {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  padding: 14px;
}
.settings-security-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.settings-security-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  background: rgba(6, 10, 16, 0.75);
  transition: all 0.22s var(--ease);
}
.settings-security-step span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  font-size: 11px;
}
.settings-security-step.active {
  color: #fff;
  border-color: rgba(var(--accent-rgb), 0.5);
  background: rgba(var(--accent-rgb), 0.18);
}
.settings-security-step.done {
  color: #d7e8ff;
  border-color: rgba(var(--accent-rgb), 0.3);
  background: rgba(var(--accent-rgb), 0.12);
}
.settings-security-step.done span {
  background: var(--accent);
  color: #fff;
}
.settings-stage {
  display: none;
}
.settings-stage.active {
  display: block;
  animation: settingsTabIn 0.28s var(--ease);
}
.settings-stage-lead {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.settings-inline-note {
  font-size: 12px;
  color: #a5cdfd;
  margin-top: 8px;
  display: none;
  border: 1px dashed rgba(var(--accent-rgb), 0.45);
  border-radius: 10px;
  padding: 7px 9px;
  background: rgba(var(--accent-rgb), 0.11);
}
.settings-inline-note.show {
  display: block;
}
.settings-reset-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-secondary);
  margin: 2px 0 12px;
}

body[data-theme="light"] .settings-overlay {
  background:
    radial-gradient(circle at 20% 10%, rgba(var(--accent-rgb), 0.16), transparent 45%),
    rgba(241, 245, 251, 0.86);
}

body[data-theme="light"] .settings-panel {
  box-shadow: 0 30px 70px rgba(19, 34, 53, 0.2);
}

body[data-theme="light"] .settings-sidebar {
  background:
    radial-gradient(circle at 0% 0%, rgba(var(--accent-rgb), 0.18), transparent 55%),
    linear-gradient(180deg, #f6faff 0%, #edf4fd 100%);
}

body[data-theme="light"] .settings-kicker {
  color: #0f4d9c;
  background: rgba(var(--accent-rgb), 0.15);
}

body[data-theme="light"] .settings-subtitle,
body[data-theme="light"] .settings-content-header span,
body[data-theme="light"] .settings-toggle-copy small {
  color: #5d6878;
}

body[data-theme="light"] .settings-sidebar-foot {
  color: #355071;
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(17, 24, 39, 0.12);
}

body[data-theme="light"] .settings-nav button {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.7));
}

body[data-theme="light"] .settings-nav button i {
  background: rgba(var(--accent-rgb), 0.14);
  color: var(--accent);
}

body[data-theme="light"] .settings-content-header {
  background: linear-gradient(150deg, rgba(var(--accent-rgb), 0.14), rgba(255, 255, 255, 0.74));
}

body[data-theme="light"] .settings-group {
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--accent-rgb), 0.11), transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.72));
}

body[data-theme="light"] .settings-label {
  color: #4c5b70;
}

body[data-theme="light"] .settings-input,
body[data-theme="light"] .settings-select,
body[data-theme="light"] .form-input,
body[data-theme="light"] .form-select,
body[data-theme="light"] .form-textarea,
body[data-theme="light"] .ui-input,
body[data-theme="light"] .ui-select,
body[data-theme="light"] .ui-textarea {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(17, 24, 39, 0.14);
}

body[data-theme="light"] .settings-input:hover,
body[data-theme="light"] .settings-select:hover,
body[data-theme="light"] .form-input:hover,
body[data-theme="light"] .form-select:hover,
body[data-theme="light"] .form-textarea:hover,
body[data-theme="light"] .ui-input:hover,
body[data-theme="light"] .ui-select:hover,
body[data-theme="light"] .ui-textarea:hover {
  background: #ffffff;
}

body[data-theme="light"] .settings-toggle-row {
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(17, 24, 39, 0.12);
}

body[data-theme="light"] .settings-toggle-row input[type="checkbox"] {
  border-color: rgba(17, 24, 39, 0.2);
  background: rgba(17, 24, 39, 0.08);
}

body[data-theme="light"] .settings-close {
  background: rgba(255, 255, 255, 0.88);
}

body[data-theme="light"] .settings-security-step {
  background: rgba(255, 255, 255, 0.76);
}

@media (max-width: 900px) {
  .settings-panel {
    grid-template-columns: 1fr;
    max-height: 92vh;
  }
  .settings-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 16px;
  }
  .settings-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .settings-nav button {
    min-height: 64px;
  }
  .settings-content {
    padding: 18px;
  }
  .settings-security-steps {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .settings-overlay {
    padding: 10px;
  }
  .settings-panel {
    border-radius: 20px;
  }
  .settings-content-header {
    padding: 12px 12px;
  }
  .settings-nav {
    grid-template-columns: 1fr;
  }
  .settings-reset-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .settings-btn {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .settings-overlay,
  .settings-panel,
  .settings-tab.active,
  .settings-stage.active,
  .settings-nav button,
  .settings-group,
  .settings-btn,
  .settings-toggle-row {
    transition: none !important;
    animation: none !important;
  }
}

.theme-toggle, .nav-cart-btn {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03)); border: 1px solid var(--border);
  color: var(--text-primary); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease); font-size: 16px; text-decoration: none;
}
.theme-toggle:hover, .nav-cart-btn:hover { 
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary)); color: white; border-color: rgba(var(--accent-rgb), 0.8); 
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 20px rgba(var(--accent-rgb), 0.34);
}

.nav-cart-btn { position: relative; }
#cart-count {
  position: absolute; top: -5px; right: -5px;
  background: var(--accent); color: white; font-size: 10px; font-weight: 900;
  min-width: 18px; height: 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg-secondary);
}

/* ===================================
   Buttons
   =================================== */
.button {
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  gap: 12px !important; padding: 12px 24px !important; border-radius: 12px !important;
  font-weight: 800 !important; font-size: 14px !important; text-decoration: none !important;
  transition: transform 0.34s var(--ease), box-shadow 0.34s var(--ease), filter 0.34s var(--ease), border-color 0.34s var(--ease), background 0.34s var(--ease) !important; cursor: pointer !important;
  position: relative !important; z-index: 1 !important; border: 1px solid transparent !important;
  color: #fff !important; font-family: inherit !important;
}

.button-primary { 
  background: linear-gradient(135deg, var(--accent), var(--accent-secondary)) !important; 
  box-shadow: 0 12px 30px rgba(var(--accent-rgb), 0.24) !important;
}
.button-primary:hover { transform: translateY(-4px) !important; box-shadow: 0 18px 44px rgba(var(--accent-rgb), 0.42) !important; filter: brightness(1.04) !important; }

.button-secondary { 
  background: rgba(255, 255, 255, 0.05) !important; 
  color: var(--text-primary) !important; 
  border: 1px solid var(--border) !important;
  backdrop-filter: blur(10px) !important;
}
.button-secondary:hover { background: rgba(var(--accent-rgb), 0.14) !important; border-color: rgba(var(--accent-rgb), 0.6) !important; transform: translateY(-4px) !important; }

.button-nav { padding: 8px 16px !important; font-size: 13px !important; height: 36px !important; }

.btn-signout {
    background: rgba(255, 75, 75, 0.1);
    color: #ff4b4b;
    border: 1px solid rgba(255, 75, 75, 0.2);
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-signout:hover {
    background: #ff4b4b;
    color: white;
    border-color: #ff4b4b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 75, 75, 0.3);
}

/* ===================================
   Hero Section
   =================================== */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 200px; padding-bottom: 100px; position: relative; z-index: 1; }
.hero .container { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 80px; align-items: center; }
.hero-tag { display: inline-block; padding: 8px 16px; background: rgba(var(--accent-rgb), 0.1); color: var(--accent); border-radius: 100px; font-weight: 700; font-size: 14px; margin-bottom: 24px; text-transform: uppercase; }
.hero-lines h1 { font-size: clamp(56px, 10vw, 110px); line-height: 1; font-weight: 900; }
.hero-line-accent { background: linear-gradient(110deg, var(--accent), var(--accent-warm)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-subtext { margin-top: 32px; max-width: 600px; color: var(--text-secondary); font-size: 18px; }
.hero-cta { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 48px; }
.hero-video-wrapper { border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 40px 100px rgba(0,0,0,0.5); border: 1px solid var(--border); }

/* ===================================
   Cards & Bento
   =================================== */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--space-section) 0; position: relative; z-index: 1; }
.section-title { font-size: clamp(40px, 6vw, 72px); margin-bottom: 24px; text-align: center; }
.section-subtitle { text-align: center; max-width: 700px; margin: 0 auto 60px; color: var(--text-secondary); }

.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.bento-card {
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 40px; display: flex; flex-direction: column; justify-content: center;
  transition: all 0.5s var(--ease); position: relative; overflow: hidden; text-align: center;
}
.bento-card:hover { 
  transform: translateY(-12px); 
  border-color: rgba(var(--accent-rgb), 0.5); 
  background: var(--bg-tertiary); 
  box-shadow: 0 32px 64px rgba(0,0,0,0.4), 0 0 20px rgba(var(--accent-rgb), 0.1); 
}

.bento-card::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.05), transparent 70%);
  opacity: 0; transition: opacity 0.5s var(--ease); pointer-events: none;
}
.bento-card:hover::after { opacity: 1; }

.bento-card.large { grid-column: span 2; grid-row: span 2; text-align: left; justify-content: flex-end; }
.bento-card.medium { grid-column: span 2; text-align: left; justify-content: flex-end; }
.bento-card.tall { grid-row: span 2; text-align: left; justify-content: flex-end; }

.card-icon {
  width: 56px; height: 56px; background: rgba(var(--accent-rgb), 0.1); border-radius: 16px;
  display: flex !important; align-items: center; justify-content: center; color: var(--accent);
  font-size: 24px; margin: 0 auto auto; border: 1px solid rgba(var(--accent-rgb), 0.1);
  transition: all 0.4s;
}
.bento-card.large .card-icon, .bento-card.medium .card-icon, .bento-card.tall .card-icon { margin-left: 0; }
.bento-card:hover .card-icon { background: var(--accent); color: white; transform: scale(1.1) rotate(5deg); box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.4); }

.stat-number { display: block; font-size: 48px; font-weight: 900; color: var(--text-primary); margin: 16px 0 8px; }
.stat-label { font-size: 14px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.1em; }

/* Modules Styling */
.modules-filter { display: flex; justify-content: center; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn { 
  padding: 10px 24px; border-radius: 100px; border: 1px solid var(--border); 
  background: var(--bg-secondary); color: var(--text-secondary); 
  font-weight: 700; cursor: pointer; transition: all 0.3s var(--ease);
}
.filter-btn:hover { border-color: var(--accent); color: var(--text-primary); background: var(--bg-tertiary); }
.filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 0 20px rgba(var(--accent-rgb), 0.3); }

.modules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; margin-top: 48px; }
.module-card {
  background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 24px;
  padding: 32px; transition: all 0.4s var(--ease); position: relative; overflow: hidden;
}
.module-card:hover { 
  transform: translateY(-10px); 
  border-color: rgba(var(--accent-rgb), 0.5); 
  background: var(--bg-tertiary); 
  box-shadow: 0 24px 48px rgba(0,0,0,0.3), 0 0 20px rgba(var(--accent-rgb), 0.1); 
}
.module-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-secondary), var(--accent));
  background-size: 200% auto;
  opacity: 0; transition: opacity 0.4s;
  animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

.module-card:hover::before { opacity: 1; }
.module-tag { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; color: var(--accent); text-transform: uppercase; margin-bottom: 16px; }

/* ===================================
   Download Section
   =================================== */
.download-card {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  position: relative; overflow: hidden;
}
@media (max-width: 768px) { .download-card { flex-direction: column; text-align: center; } }

/* ===================================
   FAQ
   =================================== */
.faq-list { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.faq-trigger {
  width: 100%; padding: 24px 32px; display: flex; justify-content: space-between; align-items: center;
  background: none; border: none; cursor: pointer; color: var(--text-primary);
  font-size: 18px; font-weight: 700; text-align: left; font-family: inherit;
}
.faq-icon { transition: transform 0.4s var(--ease); color: var(--accent); font-size: 14px; }
.faq-trigger[aria-expanded="true"] .faq-icon { transform: rotate(180deg); }
.faq-content { max-height: 0; overflow: hidden; transition: all 0.4s var(--ease); opacity: 0; padding: 0 32px; }
.faq-trigger[aria-expanded="true"] + .faq-content { max-height: 300px; opacity: 1; padding-bottom: 32px; }

/* ===================================
   Icons Mapping
   =================================== */
[class^="icon-"], [class*=" icon-"] {
  font-family: "Font Awesome 6 Free" !important; font-weight: 900 !important; font-style: normal;
  display: inline-block; line-height: 1; -webkit-font-smoothing: antialiased;
}
.icon-sun::before { content: "\f185"; }
.icon-moon::before { content: "\f186"; }
.icon-rocket::before { content: "\f135"; }
.icon-star::before { content: "\f005"; }
.icon-lightning::before { content: "\f0e7"; }
.icon-cog::before { content: "\f013"; }
.icon-image::before { content: "\f03e"; }
.icon-paint-format::before { content: "\f1fc"; }
.icon-crosshair::before { content: "\f05b"; }
.icon-meter::before { content: "\f64e"; }
.icon-eye::before { content: "\f06e"; }
.icon-grid::before { content: "\f00a"; }
.icon-list::before { content: "\f03a"; }
.icon-download::before { content: "\f019"; }
.icon-chevron-down::before { content: "\f078"; }
.icon-bubble::before { content: "\f075"; }
.icon-youtube::before { content: "\f167"; font-family: "Font Awesome 6 Brands" !important; }
.icon-twitter::before { content: "\f099"; font-family: "Font Awesome 6 Brands" !important; }
.icon-instagram::before { content: "\f16d"; font-family: "Font Awesome 6 Brands" !important; }
.icon-tiktok::before { content: "\e07b"; font-family: "Font Awesome 6 Brands" !important; }
.icon-discord::before { content: "\f392"; font-family: "Font Awesome 6 Brands" !important; }
.icon-paper-plane::before { content: "\f1d8"; }
.icon-checkmark::before { content: "\f00c"; }
.icon-heart::before { content: "\f004"; }
.icon-users::before { content: "\f0c0"; }
.icon-shield::before { content: "\f3ed"; }
.icon-paypal::before { content: "\f1ed"; font-family: "Font Awesome 6 Brands" !important; }
.icon-credit-card::before { content: "\f09d"; }
.icon-gift::before { content: "\f06b"; }
.icon-cross::before { content: "\f00d"; }
.icon-cart::before { content: "\f07a"; }
.icon-user::before { content: "\f007"; }
.icon-windows8::before { content: "\f17a"; font-family: "Font Awesome 6 Brands" !important; }
.icon-home::before { content: "\f015"; }
.icon-store::before { content: "\f54e"; }
.icon-shirt::before { content: "\f553"; }
.icon-life-ring::before { content: "\f1cd"; }
.icon-gear::before { content: "\f013"; }
.icon-right-from-bracket::before { content: "\f2f5"; }
.icon-envelope::before { content: "\f0e0"; }
.icon-lock::before { content: "\f023"; }
.icon-sliders::before { content: "\f1de"; }
.icon-palette::before { content: "\f53f"; }
.icon-bell::before { content: "\f0f3"; }
.icon-user-shield::before { content: "\f505"; }
.icon-eye-slash::before { content: "\f070"; }
.icon-search::before { content: "\f002"; }
.icon-coin-dollar::before { content: "\f51e"; }
.icon-diamond::before { content: "\f3a5"; }
.icon-crown::before { content: "\f521"; }
.icon-notification::before { content: "\f071"; }
.icon-pencil::before { content: "\f303"; }

/* ===================================
   Toast Notifications (Modern Glass)
   =================================== */
#toast-container {
  position: fixed; bottom: 32px; right: 32px;
  z-index: 9999; display: flex; flex-direction: column; gap: 12px;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  min-width: 300px; padding: 16px 24px;
  background: rgba(19, 21, 26, 0.8);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px; color: var(--text-primary);
  font-weight: 600; font-size: 15px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  transform: translateX(120%);
  transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.toast.toast-visible { transform: translateX(0); }
.toast i { 
  font-size: 18px; color: var(--accent); 
  width: 32px; height: 32px; background: rgba(var(--accent-rgb), 0.1);
  display: flex; align-items: center; justify-content: center; border-radius: 8px;
}
.toast-error i { color: #ff4b4b; background: rgba(255, 75, 75, 0.1); }
.toast-error { border-color: rgba(255, 75, 75, 0.2); }

/* Animations */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.8s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
#cursor-blob { position: fixed; width: 600px; height: 600px; background: radial-gradient(circle, rgba(var(--accent-rgb), 0.05) 0%, transparent 70%); border-radius: 50%; pointer-events: none; z-index: -1; transform: translate(-50%, -50%); transition: transform 0.1s linear; }

/* Footer */
.footer {
  padding: 100px 0 40px;
  border-top: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(6, 12, 22, 0.96), rgba(5, 10, 19, 0.98)),
    var(--bg-secondary);
  position: relative;
  z-index: 1;
}
.footer-main { display: grid; grid-template-columns: minmax(260px, 2fr) repeat(4, minmax(120px, 1fr)); gap: 48px; margin-bottom: 44px; align-items: start; }
.footer-brand p { color: #aab7c8; font-size: 16px; line-height: 1.7; max-width: 320px; }
.footer-links h5 { font-size: 18px; margin-bottom: 20px; color: var(--text-primary); }
.footer-links a { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; color: #93a4b9; font-weight: 700; text-decoration: none; transition: color 0.3s; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.08); color: #7f93aa; font-size: 13px; }

@media (max-width: 968px) {
  .hero { padding-top: 120px; text-align: center; }
  .hero .container { grid-template-columns: 1fr; gap: 40px; }
  .hero-subtext, .hero-cta { margin-left: auto; margin-right: auto; justify-content: center; }
  
  .nav { 
    top: 12px; width: calc(100% - 24px); padding: 8px 16px; 
    flex-wrap: wrap; justify-content: center; gap: 12px;
  }
  .nav-links { display: none; } /* Hide links on very small screens or simplify */
  .nav-actions { width: 100%; justify-content: center; }

  .bento-grid { grid-template-columns: 1fr !important; grid-auto-rows: auto !important; }
  .bento-card.large, .bento-card.medium, .bento-card.tall { grid-column: span 1 !important; grid-row: span 1 !important; }
  
  .footer-main { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .footer-links a { justify-content: center; }
  .footer-brand { display: flex; flex-direction: column; align-items: center; }
  .footer-brand p { max-width: 480px; }
}

@media (max-width: 480px) {
  .nav-wordmark { font-size: 18px; }
  .logo-image { width: 32px; height: 32px; }
  .nav-actions { gap: 8px; }
  .button-nav { padding: 6px 12px !important; font-size: 12px !important; }
  .nav-vcoins { padding: 4px 10px; font-size: 12px; }
  .nav-username { display: none; }
}

/* ===================================
   Home Page Refresh (March 2026)
   =================================== */

.home-page {
  --home-glow: rgba(var(--accent-rgb), 0.28);
}

.home-page .bg-gradient-overlay {
  background:
    radial-gradient(circle at 16% 18%, rgba(var(--accent-rgb), 0.18), transparent 34%),
    radial-gradient(circle at 78% 22%, rgba(var(--accent-rgb), 0.14), transparent 30%),
    linear-gradient(90deg, rgba(1, 9, 22, 0.96) 0%, rgba(2, 10, 26, 0.9) 50%, rgba(2, 10, 24, 0.96) 100%);
}

.home-page .grid-overlay {
  background-image: repeating-linear-gradient(
    90deg,
    rgba(var(--accent-rgb), 0.16) 0,
    rgba(var(--accent-rgb), 0.16) 1px,
    transparent 1px,
    transparent 72px
  );
  background-size: auto;
  opacity: 0.18;
}

.home-page .hero {
  min-height: 100vh;
  padding-top: 150px;
  padding-bottom: 72px;
  overflow: hidden;
}

.home-page .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.24), transparent 20%, transparent 80%, rgba(0, 0, 0, 0.3)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.16), transparent 20%, transparent 78%, rgba(0, 0, 0, 0.22));
  pointer-events: none;
  z-index: 0;
}

.home-page .hero > .container {
  position: relative;
  z-index: 1;
}

.home-page .hero .container {
  grid-template-columns: minmax(0, 1fr) minmax(500px, 0.92fr);
  gap: clamp(38px, 5vw, 78px);
}

.home-page .hero-content {
  max-width: 720px;
}

.home-page .hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(var(--accent-rgb), 0.38);
  background: rgba(var(--accent-rgb), 0.12);
  color: #d7ecff;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.home-page .hero-lines h1 {
  font-size: clamp(48px, 8.2vw, 92px);
  line-height: 0.86;
  letter-spacing: -0.045em;
}

.home-page .hero-lines h1 > span {
  display: block;
}

.home-page .hero-subtext {
  margin-top: 18px;
  max-width: 680px;
  font-size: clamp(15px, 1.2vw, 17px);
  color: #a9b3bf;
}

.hero-line-primary {
  color: #0d88ff;
}

.hero-line-accent-soft {
  display: block;
  color: #81bcff;
}

.home-page .hero-cta {
  margin-top: 22px;
  gap: 14px;
}

.hero-highlights {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  font-weight: 700;
  font-size: 12px;
  color: var(--text-secondary);
}

.hero-pill i {
  color: var(--accent);
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.hero-visual-shell {
  position: relative;
  width: min(100%, 620px);
  border: 1px solid var(--border);
  border-radius: 34px;
  padding: 18px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012)),
    rgba(5, 8, 14, 0.8);
  box-shadow: 0 34px 100px rgba(0, 0, 0, 0.52);
  overflow: hidden;
  transition: transform 0.6s var(--ease), box-shadow 0.5s var(--ease);
  transform-style: preserve-3d;
  perspective: 1200px;
  isolation: isolate;
}

.hero-visual-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 440px;
  height: 440px;
  right: -80px;
  top: 45%;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.34) 0%, rgba(var(--accent-rgb), 0) 72%);
  pointer-events: none;
  filter: blur(10px);
}

.home-page .hero-video-wrapper {
  aspect-ratio: 1560 / 851;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: #070b12;
}

.home-page .hero-video-wrapper img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.02);
}

.hero-floating-card {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(10, 14, 22, 0.92);
  backdrop-filter: blur(14px);
  padding: 12px 14px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.hero-floating-card i {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(var(--accent-rgb), 0.2);
  color: #4aa8ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-floating-card strong {
  display: block;
  font-size: 18px;
  line-height: 1.1;
}

.hero-floating-card span {
  display: block;
  font-size: 12px;
  color: #9ca8b7;
}

.hero-floating-card.card-a {
  top: 16px;
  right: 16px;
  animation: heroFloatA 6.8s ease-in-out infinite;
}

.hero-floating-card.card-b {
  left: 18px;
  bottom: 18px;
  animation: heroFloatB 7.6s ease-in-out infinite;
}

@keyframes heroFloatA {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes heroFloatB {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(9px);
  }
}

.metrics-section {
  padding-top: 70px;
}

.home-page .section {
  padding: clamp(90px, 10vw, 150px) 0;
}

.home-page .section-title {
  letter-spacing: -0.035em;
}

.home-page .section-subtitle {
  max-width: 760px;
  font-size: clamp(15px, 1.2vw, 18px);
}

.home-page .bento-card,
.home-page .module-card,
.home-page .faq-item,
.home-page .download-card {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
}

.home-page .bento-card:hover,
.home-page .module-card:hover {
  transform: translateY(-10px) scale(1.01);
}

.home-page .module-card {
  border-radius: 20px;
}

.home-page .module-card p,
.home-page .bento-card p {
  color: var(--text-secondary);
}

.home-page .download-card {
  padding: clamp(30px, 4vw, 56px);
  border-radius: 28px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.33);
}

.home-page .download-info h3 {
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: 12px;
}

.home-page .download-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 700;
}

#latestVersion {
  color: #d9ecff;
  font-weight: 800;
}

.download-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.home-page .faq-item {
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.home-page .faq-item:hover {
  border-color: rgba(var(--accent-rgb), 0.35);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
}

/* Stagger utility used by JS */
[data-stagger] > .reveal {
  transition-delay: var(--reveal-delay, 0ms);
}

/* Light theme refinements */
body[data-theme="light"].home-page .hero-visual-shell,
body[data-theme="light"].home-page .hero-floating-card {
  background: rgba(255, 255, 255, 0.85);
}

body[data-theme="light"].home-page .hero-pill {
  background: rgba(255, 255, 255, 0.75);
}

body[data-theme="light"] .footer {
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(239, 245, 252, 0.98)),
    var(--bg-secondary);
}

body[data-theme="light"] .footer-brand p,
body[data-theme="light"] .footer-links a,
body[data-theme="light"] .footer-bottom {
  color: #5a6b80;
}

/* Responsive */
@media (max-width: 1200px) {
  .home-page .hero {
    padding-top: 142px;
  }

  .home-page .hero .container {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.9fr);
  }

  .hero-floating-card {
    display: none;
  }
}

@media (max-width: 968px) {
  .home-page .hero {
    padding-top: 130px;
    padding-bottom: 64px;
  }

  .home-page .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .hero-visual {
    justify-content: center;
  }

  .home-page .hero-subtext,
  .home-page .hero-cta,
  .home-page .hero-highlights {
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
  }

  .hero-visual-shell {
    max-width: 680px;
    margin: 0 auto;
  }

  .download-actions {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .home-page .hero-lines h1 {
    font-size: clamp(40px, 15vw, 58px);
  }

  .home-page .grid-overlay {
    opacity: 0.1;
  }

  .hero-pill {
    font-size: 11px;
  }

  .hero-visual-shell {
    border-radius: 24px;
    padding: 12px;
  }

  .home-page .hero-video-wrapper {
    border-radius: 18px;
  }

  .home-page .download-card {
    border-radius: 20px;
  }
}
