:root {
  --bg: #0c0c10;
  --ink: #e9e6f2;
  --muted: #a7a2b6;
  --card: #1a1a22;
  --accent: #8e4dff;
  --accent-2: #6d36d6;
  --accent-soft: rgba(142, 77, 255, 0.12);
  --accent-soft-weak: rgba(142, 77, 255, 0.08);
  --accent-shadow: rgba(109, 54, 214, 0.35);
  --accent-glow: rgba(142, 77, 255, 0.35);
  --bg-glow-1: rgba(142, 77, 255, 0.18);
  --bg-glow-2: rgba(109, 54, 214, 0.22);
  --bg-glow-3: rgba(61, 16, 123, 0.28);
  --bg-pattern: none;
  --bg-image: none;
  --bg-solid: #0b0b0f;
  --border: #2a2435;
  --ring: rgba(142, 77, 255, 0.35);
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --mono: "JetBrains Mono", "Fira Code", monospace;
  --sans: "Sora", "Space Grotesk", sans-serif;
  --ui-blur: 10px;
  --surface-alpha: 1;
  --topbar-alpha: 0.72;
  --settings-selected: rgba(142, 77, 255, 0.35);
  --settings-selected-border: rgba(142, 77, 255, 0.6);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  position: relative;
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    var(--bg-image) center / cover no-repeat fixed,
    var(--bg-pattern),
    radial-gradient(900px 500px at 10% 10%, var(--bg-glow-1), transparent 60%),
    radial-gradient(700px 420px at 90% 0%, var(--bg-glow-2), transparent 55%),
    radial-gradient(900px 500px at 40% 100%, var(--bg-glow-3), transparent 60%),
    var(--bg-solid);
  min-height: 100vh;
}

.loading-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.loading {
  position: relative;
  text-align: center;
  background: linear-gradient(180deg, #1c1b24 0%, #171720 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 48px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.loading-orb {
  position: absolute;
  inset: -60% auto auto -30%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none;
}

.loading-content h1 {
  margin: 6px 0 10px;
  font-size: 2.4rem;
}

.login-form {
  margin-top: 18px;
}

.login-error {
  min-height: 20px;
  margin-top: 8px;
  color: #ff9aa2;
  font-size: 0.9rem;
}

.spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--accent);
  margin: 16px auto 0;
  animation: spin 1s linear infinite;
}

.skip-link {
  display: inline-block;
  margin-top: 18px;
  color: #cbb6ff;
  text-decoration: none;
  font-weight: 600;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(var(--ui-blur));
  background: rgba(10, 10, 14, var(--topbar-alpha));
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #d9c9ff;
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid #2f2940;
  background: rgba(18, 18, 26, 0.7);
}

.theme-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.theme-input {
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.theme-input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.theme-input::-webkit-color-swatch {
  border: 1px solid #2f2940;
  border-radius: 50%;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.15s ease, border 0.15s ease, background 0.15s ease;
}

.nav-link:hover {
  color: #e6daff;
  border-color: #31253f;
  background: var(--accent-soft-weak);
}

.nav-cta {
  color: #f0eaff;
  border-color: #3a2d55;
  background: var(--accent-soft);
}

.page {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

.header h1,
.header h2 {
  margin: 0 0 6px;
  font-size: 2.2rem;
  letter-spacing: -0.02em;
  color: #d7c6ff;
}

.header p {
  margin: 0 0 24px;
  color: var(--muted);
}

.card {
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(28, 27, 36, var(--surface-alpha)) 0%,
    rgba(23, 23, 32, var(--surface-alpha)) 100%
  );
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
  overflow: hidden;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding: 36px;
}

.hero-content h1 {
  font-size: 2.8rem;
  margin: 8px 0 12px;
  color: #f0eaff;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: #bda7ff;
  margin: 0;
}

.lead {
  color: var(--muted);
  max-width: 520px;
  margin: 0 0 22px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-glow {
  position: absolute;
  inset: -40% auto auto -10%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--accent-glow), transparent 70%);
  pointer-events: none;
}

.home-info h2 {
  margin-top: 0;
}

.muted {
  color: var(--muted);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-size: 0.9rem;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0.01em;
}

input {
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 1rem;
  outline: none;
  background: #111118;
  color: var(--ink);
  transition: border 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

input::placeholder {
  color: #7f7a90;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--ring);
  background: #141421;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

button,
.btn {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.1s ease, box-shadow 0.15s ease, filter 0.15s ease;
  box-shadow: 0 8px 18px var(--accent-shadow);
}

button:hover,
.btn:hover {
  filter: brightness(1.05);
}

button:active,
.btn:active {
  transform: scale(0.98);
}

button.ghost,
.btn.ghost {
  background: transparent;
  color: #cbb6ff;
  border: 1px solid #3a2d55;
  box-shadow: none;
}

.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.results-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.export-wrap {
  position: relative;
}

.export-toggle {
  border-radius: 10px;
  padding: 7px 12px;
}

.export-toggle:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.export-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 120px;
  border: 1px solid rgba(82, 133, 210, 0.32);
  border-radius: 10px;
  background: rgba(5, 15, 36, 0.95);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
  padding: 6px;
  display: grid;
  gap: 4px;
  z-index: 20;
}

.export-menu button {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  color: #d7e9ff;
  border-radius: 8px;
  padding: 7px 9px;
  font-weight: 600;
}

.export-menu button:hover {
  background: rgba(26, 166, 255, 0.2);
  border-color: rgba(94, 187, 255, 0.35);
}

.status {
  font-size: 0.85rem;
  color: var(--muted);
}

.results-list {
  display: grid;
  gap: 10px;
}

.result {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: #14131b;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.result-topline {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 2px;
}

.result-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.result-export-wrap {
  position: relative;
}

.result-menu-toggle {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 10px;
  box-shadow: none;
  font-size: 1.25rem;
  line-height: 1;
}

.result-export-menu {
  position: absolute;
  left: 0;
  right: auto;
  top: calc(100% + 6px);
  min-width: 112px;
  border: 1px solid rgba(82, 133, 210, 0.32);
  border-radius: 10px;
  background: rgba(5, 15, 36, 0.95);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.45);
  padding: 6px;
  display: grid;
  gap: 4px;
  z-index: 20;
}

.result-export-menu[hidden] {
  display: none;
}

.result-export-menu button {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  box-shadow: none;
  color: #d7e9ff;
  border-radius: 8px;
  padding: 7px 9px;
  font-weight: 600;
}

.result-export-menu button:hover {
  background: rgba(26, 166, 255, 0.2);
  border-color: rgba(94, 187, 255, 0.35);
}

.card.results {
  overflow: visible;
}

.result h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: #e2d7ff;
}

.result-summary {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.result-section {
  background: rgba(8, 8, 12, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 10px 12px;
}

.result-section-title {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: #bfa8ff;
  margin-bottom: 8px;
  font-weight: 600;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 12px;
}

.result-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) minmax(0, 1.1fr);
  gap: 8px;
  align-items: center;
}

.result-label {
  color: var(--muted);
  font-size: 0.85rem;
}

.result-value {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: #f2ecff;
  word-break: break-word;
}

.copy-btn {
  background: rgba(142, 77, 255, 0.18);
  color: #e9dbff;
  border: 1px solid rgba(142, 77, 255, 0.45);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.1s ease, background 0.15s ease, border 0.15s ease;
  box-shadow: none;
}

.copy-btn:hover {
  background: rgba(142, 77, 255, 0.28);
}

.tree-btn {
  background: rgba(24, 131, 255, 0.2);
  color: #d8ebff;
  border: 1px solid rgba(88, 171, 255, 0.5);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: none;
}

.tree-btn:hover {
  background: rgba(24, 131, 255, 0.32);
}

.copy-btn.copied {
  background: rgba(68, 199, 142, 0.25);
  border-color: rgba(68, 199, 142, 0.55);
}

.empty {
  color: var(--muted);
  text-align: center;
  padding: 20px 0;
}

.result-tree {
  margin-top: 8px;
  border: 1px solid rgba(80, 148, 232, 0.3);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(6, 20, 46, 0.78), rgba(6, 16, 36, 0.72));
  padding: 10px 12px;
}

.result-tree[hidden] {
  display: none;
}

.result-tree-title {
  font-weight: 700;
  color: #d7ebff;
  margin-bottom: 8px;
}

.result-tree-address {
  font-family: var(--mono);
  font-size: 0.84rem;
  color: #a8c5e9;
  margin-bottom: 8px;
}

.result-tree-empty {
  color: #9fb6d4;
  font-size: 0.88rem;
}

.result-tree-list {
  display: grid;
  gap: 8px;
}

.result-tree-item {
  border-left: 2px solid rgba(93, 164, 255, 0.42);
  padding-left: 10px;
  display: grid;
  gap: 3px;
}

.result-tree-item strong {
  color: #e8f3ff;
  font-size: 0.92rem;
}

.result-tree-item span {
  color: #a8bfdc;
  font-size: 0.82rem;
}

.result-tree-item.is-root {
  border-left-color: rgba(84, 224, 157, 0.7);
}

.settings-page {
  max-width: 1200px;
}

.settings-grid {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 16px;
}

.settings-column {
  display: grid;
  gap: 16px;
}

.settings-block h3 {
  margin: 0 0 12px;
}

.account-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 12px 0 18px;
}

.account-stat-card {
  position: relative;
  border: 1px solid rgba(99, 166, 255, 0.34);
  border-radius: 16px;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(79, 196, 255, 0.14), transparent 55%),
    linear-gradient(180deg, rgba(10, 20, 52, 0.94), rgba(7, 13, 35, 0.94));
  padding: 14px 14px 13px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 98px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 14px 24px rgba(0, 10, 35, 0.34);
  overflow: hidden;
}

.account-stat-card::after {
  content: "";
  position: absolute;
  inset: auto -16px -30px auto;
  width: 130px;
  height: 80px;
  background: radial-gradient(ellipse at center, rgba(52, 196, 255, 0.16), transparent 70%);
  pointer-events: none;
}

.account-stat-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(9, 22, 61, 0.95);
  border: 1px solid rgba(103, 184, 255, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  font-size: 1rem;
  letter-spacing: 0;
  font-weight: 600;
  color: #d7eeff;
}

.account-stat-content {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.account-stat-content strong {
  font-size: 2rem;
  line-height: 0.95;
  color: #f7fcff;
  text-shadow: 0 8px 18px rgba(0, 165, 255, 0.22);
}

.account-stat-content span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a4bddf;
}

#usernameForm,
#passwordForm {
  border: 1px solid rgba(84, 147, 220, 0.24);
  background: linear-gradient(180deg, rgba(7, 14, 36, 0.78), rgba(6, 11, 30, 0.72));
  border-radius: 14px;
  padding: 14px;
}

#usernameForm {
  margin-bottom: 12px;
}

#accountStatus {
  margin: 0 0 8px;
  color: #9ab0ce;
  font-size: 0.92rem;
}

.admin-mode-row {
  margin: 0 0 12px;
}

#adminModeBtn {
  border-radius: 11px;
  padding: 9px 14px;
}

.profile-picture-card {
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(87, 133, 207, 0.26);
  background: linear-gradient(180deg, rgba(8, 24, 58, 0.62), rgba(6, 20, 46, 0.56));
}

.profile-picture-preview-wrap {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(95, 166, 248, 0.42);
  background: rgba(5, 12, 28, 0.9);
  flex: 0 0 72px;
}

.profile-picture-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.profile-picture-preview.is-visible {
  display: block;
}

.profile-picture-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #cddfff;
  font-weight: 700;
}

.profile-picture-fallback.is-hidden {
  display: none;
}

.profile-picture-actions {
  display: grid;
  gap: 8px;
}

.profile-picture-actions .ghost {
  width: fit-content;
}

.admin-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.admin-mini {
  border-radius: 9px;
  padding: 6px 10px;
  font-size: 0.78rem;
  box-shadow: none;
}

.admin-actions a.admin-mini {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-mini.danger {
  background: linear-gradient(180deg, #ff4d6d, #d92348);
}

.admin-mini.danger-soft {
  background: linear-gradient(180deg, #ff6f6f, #ff3f3f);
}

.admin-mini.warn {
  background: linear-gradient(180deg, #ffb347, #ff8a00);
}

.admin-mini.success {
  background: linear-gradient(180deg, #43d67f, #18a957);
}

.admin-mini.info {
  background: linear-gradient(180deg, #4aa7ff, #1c71f2);
}

/* Keep admin action colors even with global themed button rules */
.admin-actions .admin-mini.danger {
  background: linear-gradient(180deg, #ff4d6d, #d92348) !important;
  border-color: rgba(255, 178, 193, 0.25) !important;
}

.admin-actions .admin-mini.danger-soft {
  background: linear-gradient(180deg, #ff6f6f, #ff3f3f) !important;
  border-color: rgba(255, 202, 202, 0.25) !important;
}

.admin-actions .admin-mini.warn {
  background: linear-gradient(180deg, #ffb347, #ff8a00) !important;
  border-color: rgba(255, 224, 177, 0.28) !important;
}

.admin-actions .admin-mini.success {
  background: linear-gradient(180deg, #43d67f, #18a957) !important;
  border-color: rgba(196, 255, 216, 0.25) !important;
}

.admin-actions .admin-mini.info {
  background: linear-gradient(180deg, #4aa7ff, #1c71f2) !important;
  border-color: rgba(180, 220, 255, 0.28) !important;
}

.swatch-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.swatch-btn {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  height: 44px;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.swatch-btn:hover {
  transform: translateY(-1px);
}

.swatch-btn.is-active {
  box-shadow: 0 0 0 3px var(--settings-selected);
  border-color: var(--settings-selected-border);
}

.theme-custom-color {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.theme-custom-color input {
  height: 42px;
  padding: 2px 4px;
}

.color-studio {
  margin-top: 2px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(14, 14, 21, 0.9), rgba(10, 10, 16, 0.85));
  padding: 12px;
  display: grid;
  gap: 10px;
}

.color-studio-compact {
  gap: 8px;
}

.color-studio-preview {
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--accent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 24px rgba(0, 0, 0, 0.35);
}

.color-studio-sliders {
  display: grid;
  gap: 8px;
}

.color-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.color-row span {
  font-size: 0.84rem;
  color: var(--muted);
}

.color-row input[type="range"] {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  appearance: none;
  -webkit-appearance: none;
  padding: 0;
  border: none;
}

.color-studio .color-row:nth-child(1) input[type="range"] {
  background: linear-gradient(90deg,
    #ff4d4d 0%,
    #ffd24d 16%,
    #57ff5f 32%,
    #4dfff2 48%,
    #4d6dff 64%,
    #c04dff 82%,
    #ff4da6 100%);
}

.color-studio .color-row:nth-child(2) input[type="range"] {
  background: linear-gradient(90deg, #707070 0%, #f5f5f5 100%);
}

.color-studio .color-row:nth-child(3) input[type="range"] {
  background: linear-gradient(90deg, #000 0%, #fff 100%);
}

.color-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.color-row input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.color-studio-hex {
  width: 100%;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 8, 13, 0.9);
  color: #eee5ff;
  font-family: var(--mono);
  text-transform: lowercase;
}

.theme-image-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.file-picker-btn {
  width: 100%;
  border-radius: 12px;
  border: 1px dashed var(--settings-selected-border);
  background: rgba(14, 14, 22, 0.85);
  color: #eee5ff;
  padding: 12px 14px;
  font-weight: 600;
  box-shadow: none;
}

.file-picker-btn:hover {
  background: rgba(20, 20, 30, 0.9);
  border-color: var(--accent);
}

.theme-image-row .ghost {
  border-radius: 12px;
  padding: 8px 12px;
  white-space: nowrap;
}

.bg-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.bg-btn {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(10, 10, 14, 0.55);
  color: var(--ink);
  padding: 0;
  cursor: pointer;
}

.bg-sample {
  height: 54px;
}

.bg-btn span {
  display: block;
  padding: 8px 10px;
  font-size: 0.88rem;
  color: var(--muted);
}

.bg-btn.is-active {
  border-color: var(--settings-selected-border);
  box-shadow: 0 0 0 3px var(--settings-selected);
}

.settings-preview {
  min-height: 520px;
  background: linear-gradient(180deg, rgba(18, 18, 26, 0.66), rgba(12, 12, 18, 0.58));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 14px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.preview-row,
.preview-panel {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(11, 11, 16, 0.65);
}

.preview-row {
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  justify-content: space-between;
}

.preview-dots {
  display: flex;
  gap: 8px;
}

.preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.preview-dot.is-accent {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
}

.preview-button {
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 0.85rem;
}

.preview-panel {
  height: 74px;
}

.settings-sliders {
  margin-top: 8px;
  display: grid;
  gap: 10px;
}

.slider-row {
  display: grid;
  gap: 6px;
}

.slider-head {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.86rem;
}

.theme-actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
}

.theme-actions button {
  flex: 1 1 0;
}

@media (max-width: 760px) {
  .topbar-inner { flex-direction: column; align-items: flex-start; }
  .hero { padding: 28px; }
  .hero-content h1 { font-size: 2.2rem; }
  .loading { padding: 32px; }
  .settings-grid { grid-template-columns: 1fr; }
  .settings-preview { min-height: 360px; }
  .account-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .page { padding: 24px 16px 60px; }
  .card { padding: 18px; }
  .account-stats-grid { grid-template-columns: 1fr; }
}

/* ===== 2026-02 Visual refresh: blue grid dashboard look ===== */
:root {
  --bg: #050a1f;
  --ink: #eef5ff;
  --muted: #95a7c7;
  --card: rgba(10, 23, 56, 0.62);
  --accent: #1aa6ff;
  --accent-2: #00d2ff;
  --accent-soft: rgba(26, 166, 255, 0.18);
  --accent-soft-weak: rgba(26, 166, 255, 0.1);
  --accent-shadow: rgba(0, 120, 255, 0.32);
  --accent-glow: rgba(15, 183, 255, 0.32);
  --bg-glow-1: rgba(0, 104, 255, 0.22);
  --bg-glow-2: rgba(0, 198, 255, 0.2);
  --bg-glow-3: rgba(4, 32, 112, 0.45);
  --bg-solid: #04091c;
  --border: rgba(86, 138, 214, 0.24);
  --ring: rgba(0, 194, 255, 0.38);
  --shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
  --radius: 18px;
  --topbar-alpha: 0.8;
  --settings-selected: rgba(0, 180, 255, 0.22);
  --settings-selected-border: rgba(52, 190, 255, 0.6);
  --grid-shift-x: 0px;
  --grid-shift-y: 0px;
  --mouse-x: 50%;
  --mouse-y: 50%;
}

body {
  background:
    radial-gradient(1200px 700px at 5% 5%, var(--bg-glow-1), transparent 62%),
    radial-gradient(900px 640px at 95% -10%, var(--bg-glow-2), transparent 58%),
    radial-gradient(960px 620px at 50% 110%, var(--bg-glow-3), transparent 60%),
    linear-gradient(180deg, #050a1f 0%, #040817 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: -42px;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(40, 95, 194, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 95, 194, 0.12) 1px, transparent 1px);
  background-size: 36px 36px;
  background-position: calc(var(--grid-shift-x) * -1) calc(var(--grid-shift-y) * -1);
  mask-image: radial-gradient(circle at 50% 35%, #000 28%, transparent 95%);
  transition: background-position 120ms linear;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(
      260px 260px at var(--mouse-x) var(--mouse-y),
      rgba(20, 180, 255, 0.16),
      rgba(20, 180, 255, 0.06) 45%,
      transparent 75%
    );
}

.topbar {
  background: rgba(3, 10, 34, var(--topbar-alpha));
  border-bottom: 1px solid rgba(74, 129, 214, 0.32);
}

.brand {
  color: #f4f9ff;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-link {
  color: #a6bcdf;
  border: 1px solid transparent;
  border-radius: 10px;
}

.nav-link:hover {
  color: #f2f8ff;
  border-color: rgba(77, 151, 245, 0.32);
  background: rgba(19, 53, 121, 0.35);
}

.nav-cta {
  color: #f5fcff;
  border-color: rgba(36, 171, 255, 0.5);
  background: linear-gradient(90deg, #1b63ff 0%, #09c8ff 100%);
}

.card,
.loading,
.result,
.result-section,
.settings-preview,
.preview-row,
.preview-panel {
  background: linear-gradient(180deg, rgba(10, 25, 60, 0.72) 0%, rgba(8, 18, 43, 0.72) 100%);
  border: 1px solid rgba(80, 133, 219, 0.28);
  box-shadow: inset 0 0 0 1px rgba(163, 214, 255, 0.03), var(--shadow);
  backdrop-filter: blur(10px);
}

.header h1,
.header h2,
.hero-content h1,
.loading-content h1 {
  color: #f2f8ff;
}

.kicker,
.result-section-title {
  color: #86cfff;
}

.lead,
.muted,
.header p,
.status,
label,
.result-label,
.empty,
.theme-label,
.bg-btn span,
.slider-head,
.color-row span {
  color: #93a8c8;
}

input:not([type="range"]),
.color-studio-hex,
.bg-btn,
.file-picker-btn,
.theme-control {
  background: rgba(5, 14, 35, 0.84);
  border-color: rgba(82, 133, 210, 0.34);
  color: #e8f2ff;
}

input::placeholder {
  color: #6e85ac;
}

input:focus,
.color-studio-hex:focus {
  border-color: #1eb9ff;
  box-shadow: 0 0 0 3px rgba(0, 194, 255, 0.2), 0 0 26px rgba(0, 153, 255, 0.2);
  background: rgba(7, 20, 45, 0.94);
}

button:not(.swatch-btn):not(.bg-btn):not(.file-picker-btn),
.btn,
.preview-button {
  background: linear-gradient(90deg, #1b63ff 0%, #09c8ff 100%);
  border: 1px solid rgba(173, 228, 255, 0.16);
  border-radius: 10px;
  box-shadow: 0 14px 28px rgba(0, 121, 255, 0.24);
}

button.ghost,
.btn.ghost,
.theme-image-row .ghost {
  background: rgba(5, 15, 36, 0.86);
  color: #b9d8ff;
  border: 1px solid rgba(87, 145, 229, 0.45);
}

.copy-btn {
  background: rgba(11, 94, 180, 0.38);
  border-color: rgba(76, 174, 255, 0.48);
  color: #d9eeff;
}

.copy-btn:hover {
  background: rgba(13, 116, 220, 0.45);
}

.hero-glow,
.loading-orb {
  background: radial-gradient(circle, rgba(0, 176, 255, 0.3), transparent 70%);
}

@media (max-width: 760px) {
  .nav {
    flex-wrap: wrap;
  }

  .nav-link,
  .nav-cta,
  button,
  .btn {
    border-radius: 10px;
  }
}


/* ===== Dynamic search UI ===== */
.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(82, 133, 210, 0.3);
  background: rgba(6, 20, 48, 0.68);
}

.status--loading {
  color: #8ad6ff;
  border-color: rgba(44, 176, 255, 0.45);
  box-shadow: 0 0 0 0 rgba(44, 176, 255, 0.36);
  animation: statusPulse 1.4s ease-out infinite;
}

.status--idle {
  color: #d5e8ff;
  border-color: rgba(82, 133, 210, 0.42);
  background: rgba(6, 20, 48, 0.82);
}

.status--success {
  color: #9bfecf;
  border-color: rgba(70, 225, 162, 0.45);
}

.status--error,
.status--blocked {
  color: #ffb7b7;
  border-color: rgba(255, 99, 132, 0.45);
}

.status--empty {
  color: #c8d8ee;
  border-color: rgba(132, 164, 209, 0.4);
}

@keyframes statusPulse {
  0% { box-shadow: 0 0 0 0 rgba(44, 176, 255, 0.36); }
  100% { box-shadow: 0 0 0 12px rgba(44, 176, 255, 0); }
}

.result {
  opacity: 0;
  transform: translateY(8px);
  animation: resultIn 0.36s ease forwards;
}

@keyframes resultIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 10px;
}

.result-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 4px 10px;
  color: #cae8ff;
  border: 1px solid rgba(77, 157, 248, 0.35);
  background: rgba(14, 54, 124, 0.45);
}

/* ===== Home upgrades ===== */
.brand-wrap {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.online-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #67f0b0;
  font-size: 0.86rem;
  font-weight: 600;
  border: 1px solid rgba(65, 215, 149, 0.36);
  background: rgba(8, 72, 46, 0.35);
}

.online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ee98f;
  box-shadow: 0 0 0 0 rgba(46, 233, 143, 0.55);
  animation: onlinePulse 1.7s infinite;
}

.topbar-account {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(121, 94, 220, 0.35);
  background: linear-gradient(180deg, rgba(21, 16, 48, 0.86), rgba(13, 11, 32, 0.9));
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.28);
}

.topbar-account-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #e9dcff;
  border: 1px solid rgba(162, 128, 255, 0.55);
  background: radial-gradient(circle at 28% 28%, #8f67ff, #5a2dca 72%);
}

.topbar-account-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.topbar-account-info {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.topbar-account-info strong {
  color: #f1ebff;
  font-size: 0.9rem;
  font-weight: 700;
}

.topbar-account-info small {
  color: #9f97c0;
  font-size: 0.72rem;
}

.topbar-logout-btn {
  min-width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 120, 120, 0.35);
  background: linear-gradient(180deg, rgba(70, 24, 36, 0.9), rgba(55, 18, 26, 0.92));
  color: #ffb4b4;
  font-size: 1rem;
  line-height: 1;
  padding: 0;
  box-shadow: none;
}

.topbar-logout-btn:hover {
  filter: brightness(1.08);
}

@keyframes onlinePulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 233, 143, 0.55); }
  100% { box-shadow: 0 0 0 9px rgba(46, 233, 143, 0); }
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.feature-card {
  min-height: 250px;
  border-radius: 18px;
  border: 1px solid rgba(91, 145, 224, 0.28);
  background: linear-gradient(180deg, rgba(10, 22, 50, 0.74), rgba(7, 16, 38, 0.72));
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
  padding: 24px;
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  font-size: 1.5rem;
  color: #9c77ff;
  background: linear-gradient(180deg, rgba(78, 33, 180, 0.45), rgba(64, 22, 150, 0.25));
  border: 1px solid rgba(129, 97, 232, 0.35);
  box-shadow: 0 10px 22px rgba(121, 65, 255, 0.24);
}

.feature-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 0 8px rgba(156, 119, 255, 0.35));
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.9rem;
  color: #f3f7ff;
}

.feature-card h4 {
  margin: 0 0 10px;
  font-size: 1.06rem;
  color: #dfe9ff;
}

.feature-card p {
  margin: 0;
  color: #98afd4;
  line-height: 1.55;
}

.scroll-top-btn {
  position: fixed;
  right: 26px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  border: 1px solid rgba(145, 158, 255, 0.42);
  background: linear-gradient(135deg, #1d63ff 0%, #0fc7ff 100%);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 28px rgba(17, 130, 255, 0.45);
  opacity: 0;
  transform: translateY(14px) scale(0.94);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, filter 0.2s ease;
  z-index: 30;
}

.scroll-top-btn.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.scroll-top-btn:hover {
  filter: brightness(1.08);
}

@media (max-width: 980px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .scroll-top-btn {
    right: 14px;
    bottom: 14px;
  }

  .online-badge {
    font-size: 0.78rem;
    padding: 5px 10px;
  }

  .topbar-account {
    width: 100%;
    justify-content: space-between;
  }
}

/* ===== Nouveautes timeline ===== */
.news-page {
  max-width: 1120px;
}

.news-hero {
  text-align: center;
  padding: 46px 24px;
}

.news-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #f3f7ff;
}

.news-hero p {
  margin: 0;
  color: #9db0d0;
  font-size: 1.05rem;
}

.news-hero .news-help {
  margin-top: 14px;
  font-size: 0.92rem;
  color: #7f96bc;
}

.news-hero code {
  background: rgba(15, 34, 78, 0.8);
  border: 1px solid rgba(79, 129, 214, 0.35);
  color: #cfe5ff;
  border-radius: 8px;
  padding: 2px 7px;
}

.news-timeline-card {
  padding: 30px 18px 12px;
}

.news-timeline {
  position: relative;
  padding-left: 72px;
  display: grid;
  gap: 22px;
}

.news-timeline::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, rgba(140, 102, 255, 0.6), rgba(58, 152, 255, 0.18));
}

.news-item {
  position: relative;
}

.news-item::before {
  content: "";
  position: absolute;
  left: -53px;
  top: 6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #bda4ff, #7845ff 72%);
  box-shadow: 0 0 18px rgba(118, 73, 255, 0.55);
}

.news-date {
  color: #9d79ff;
  font-weight: 700;
  margin: 0 0 10px;
}

.news-card {
  border-radius: 14px;
  border: 1px solid rgba(104, 132, 204, 0.28);
  background: linear-gradient(180deg, rgba(11, 22, 52, 0.72), rgba(8, 16, 39, 0.72));
  padding: 20px;
}

.news-card h3 {
  margin: 0 0 8px;
  color: #eaf1ff;
  font-size: 1.6rem;
}

.news-card p {
  margin: 0;
  color: #9caece;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .news-timeline {
    padding-left: 48px;
  }

  .news-timeline::before {
    left: 16px;
  }

  .news-item::before {
    left: -39px;
  }
}


/* ===== Home redesign: OSINT dark hero ===== */
.home-page {
  --home-bg-1: #02050d;
  --home-bg-2: #040912;
  --home-line: rgba(104, 139, 201, 0.12);
  --home-pill: rgba(12, 16, 26, 0.86);
  --home-pill-border: rgba(77, 108, 163, 0.4);
  --home-blue: #2b6dff;
  --home-blue-soft: rgba(43, 109, 255, 0.3);
  background:
    radial-gradient(1200px 620px at 50% -10%, rgba(20, 44, 96, 0.35), transparent 62%),
    linear-gradient(180deg, var(--home-bg-1) 0%, var(--home-bg-2) 100%);
}

.home-page::before {
  background-image: repeating-radial-gradient(
    circle at 50% -22%,
    transparent 0 20px,
    var(--home-line) 20px 22px
  );
  background-size: 110% 100%;
  background-position: center top;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.95) 70%, transparent 100%);
}

.home-page::after {
  background: radial-gradient(500px 260px at 50% 28%, rgba(48, 100, 235, 0.1), transparent 68%);
}

.home-page .topbar {
  border-bottom: none;
  background: transparent;
  backdrop-filter: none;
  position: sticky;
  top: 14px;
}

.home-page .topbar-inner {
  max-width: 980px;
  justify-content: center;
}

.home-page .topbar-shell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--home-pill-border);
  background: var(--home-pill);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.home-page .brand {
  display: none;
}

.home-page .brand-wrap,
.home-page .online-badge {
  display: none;
}

.home-page .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f5f8ff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  text-decoration: none;
  flex: 0 0 auto;
}

.home-page .brand-mark img {
  width: 21px;
  height: 21px;
  object-fit: contain;
}

.home-page .nav-home {
  gap: 2px;
}

.home-page .nav-link {
  border-radius: 10px;
  border: 1px solid transparent;
  color: #b3bdd0;
  padding: 8px 12px;
  font-weight: 500;
  font-size: 0.95rem;
}

.home-page .nav-link:hover {
  color: #f4f8ff;
  border-color: rgba(120, 146, 194, 0.38);
  background: rgba(17, 26, 44, 0.8);
}

.home-page .nav-cta {
  color: #f5f9ff;
  border-color: rgba(110, 140, 194, 0.45);
  background: rgba(17, 26, 44, 0.8);
}

.home-page .topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
}

.home-page .profile-chip {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  color: #c9ebff;
  background: linear-gradient(180deg, rgba(7, 55, 88, 0.9), rgba(7, 36, 70, 0.92));
  border: 1px solid rgba(85, 182, 255, 0.66);
  box-shadow: 0 0 0 2px rgba(30, 95, 255, 0.24);
  font-weight: 700;
}

.home-page .topbar-account {
  margin-left: 4px;
  border-radius: 999px;
  border: 1px solid rgba(77, 108, 163, 0.42);
  background: rgba(6, 14, 28, 0.9);
  padding: 4px 6px;
}

.page-home {
  max-width: 1080px;
  padding-top: 68px;
}

.hero-home {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.hero-home .hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(109, 131, 170, 0.42);
  background: rgba(9, 13, 22, 0.82);
  color: #e5ebf7;
  font-size: 0.84rem;
  font-weight: 600;
}

.hero-home h1 {
  margin: 18px 0 14px;
  color: #f5f8ff;
  font-size: clamp(2.15rem, 5.8vw, 4.35rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-home .lead {
  max-width: 640px;
  margin: 0 auto;
  color: #bbc6da;
  font-size: 1.05rem;
}

.hero-home .hero-actions {
  justify-content: center;
  margin-top: 26px;
}

.home-page .hero-actions .btn {
  min-width: 152px;
  border-radius: 12px;
  padding: 11px 20px;
}

.home-page .hero-actions .btn:not(.ghost) {
  background: linear-gradient(180deg, #2f73ff 0%, #235ce5 100%);
  box-shadow: 0 14px 30px rgba(31, 95, 240, 0.4);
}

.home-page .hero-actions .btn.ghost {
  background: transparent;
  border: none;
  color: #ebf0fc;
  box-shadow: none;
}

.home-showcase {
  margin: 56px auto 30px;
  max-width: 940px;
}

.showcase-panel {
  position: relative;
  min-height: 340px;
  border-radius: 22px;
  border: 1px solid rgba(87, 116, 168, 0.38);
  background:
    radial-gradient(320px 220px at 26% 58%, rgba(42, 99, 229, 0.3), transparent 76%),
    radial-gradient(380px 240px at 75% 48%, rgba(20, 64, 160, 0.38), transparent 72%),
    linear-gradient(180deg, rgba(7, 12, 22, 0.93) 0%, rgba(5, 9, 17, 0.95) 100%);
  overflow: hidden;
  box-shadow: 0 26px 45px rgba(0, 0, 0, 0.5);
}

.showcase-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(83, 109, 157, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 109, 157, 0.16) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.25;
}

.showcase-table {
  position: absolute;
  left: 24%;
  top: 12%;
  width: 46%;
  border-radius: 14px;
  border: 1px solid rgba(90, 120, 172, 0.45);
  background: rgba(4, 8, 16, 0.72);
  backdrop-filter: blur(8px);
}

.showcase-table div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(90, 120, 172, 0.24);
}

.showcase-table div:last-child {
  border-bottom: none;
}

.showcase-table span {
  color: #8fa3ca;
  font-size: 0.86rem;
}

.showcase-table strong {
  color: #e5eeff;
  font-size: 0.9rem;
  font-weight: 600;
}

.showcase-float {
  position: absolute;
  right: 12%;
  bottom: 12%;
  width: 250px;
  padding: 16px;
  border-radius: 14px;
  border: 1px solid rgba(96, 130, 191, 0.48);
  background: rgba(5, 12, 24, 0.9);
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.5);
}

.showcase-float p {
  margin: 0 0 8px;
  color: #90a3c6;
  font-size: 0.84rem;
}

.showcase-float strong {
  color: #eef3ff;
  font-size: 0.94rem;
}

.confidence-bar {
  margin: 12px 0 8px;
  width: 100%;
  height: 7px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(129, 156, 196, 0.24);
}

.confidence-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2d77ff, #32d3ff);
}

.showcase-float small {
  color: #7ae3a4;
  font-weight: 700;
  font-size: 0.8rem;
}

.home-page .feature-grid,
.home-page .home-info {
  margin-top: 28px;
}

@media (max-width: 900px) {
  .home-page .topbar-shell {
    width: 100%;
    justify-content: space-between;
  }

  .home-page .nav-home {
    flex-wrap: wrap;
    justify-content: center;
  }

  .showcase-table {
    left: 6%;
    width: 62%;
  }

  .showcase-float {
    right: 5%;
    width: 220px;
  }
}

@media (max-width: 700px) {
  .page-home {
    padding-top: 36px;
  }

  .home-page .topbar {
    top: 8px;
  }

  .home-page .topbar-inner {
    padding: 10px 14px;
  }

  .home-page .nav-home {
    display: none;
  }

  .home-page .topbar-account-info {
    display: none;
  }

  .hero-home h1 {
    font-size: clamp(2rem, 9vw, 2.8rem);
  }

  .hero-home .lead {
    font-size: 0.98rem;
  }

  .showcase-panel {
    min-height: 300px;
  }

  .showcase-table {
    left: 6%;
    top: 9%;
    width: 88%;
  }

  .showcase-float {
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    bottom: 8%;
    width: min(260px, calc(100% - 24px));
  }
}

/* ===== Shared surface theme across pages ===== */
.site-surface {
  background:
    radial-gradient(1200px 620px at 50% -10%, rgba(20, 44, 96, 0.35), transparent 62%),
    linear-gradient(180deg, #02050d 0%, #040912 100%);
}

.site-surface::before {
  background-image: repeating-radial-gradient(
    circle at 50% -22%,
    transparent 0 20px,
    rgba(104, 139, 201, 0.12) 20px 22px
  );
  background-size: 110% 100%;
  background-position: center top;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.95) 70%, transparent 100%);
}

.site-surface::after {
  background: radial-gradient(500px 260px at 50% 28%, rgba(48, 100, 235, 0.1), transparent 68%);
}

.site-surface:not(.home-page) .topbar {
  border-bottom: none;
  background: transparent;
  backdrop-filter: none;
  top: 14px;
}

.site-surface:not(.home-page) .topbar-inner {
  max-width: 980px;
  margin: 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(77, 108, 163, 0.4);
  background: rgba(12, 16, 26, 0.86);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-surface:not(.home-page) .nav-link {
  border-radius: 10px;
}

.site-surface:not(.home-page) .nav-link:hover {
  background: rgba(17, 26, 44, 0.8);
}

/* ===== Pricing page ===== */
.pricing-layout {
  max-width: 1120px;
  padding-top: 56px;
}

.pricing-hero {
  text-align: left;
  margin-bottom: 18px;
}

.pricing-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: #f5f8ff;
  letter-spacing: -0.02em;
  display: inline-block;
  border-bottom: 1px solid rgba(101, 127, 179, 0.46);
  padding-bottom: 8px;
}

.pricing-hero p {
  margin: 0;
  color: #b7c5df;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.pricing-card.featured {
  border-color: rgba(85, 182, 255, 0.66);
  box-shadow: 0 0 0 1px rgba(30, 95, 255, 0.24), var(--shadow);
}

.pricing-tier {
  margin: 0;
  color: #8cc8ff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 700;
}

.pricing-card h2 {
  margin: 8px 0;
  font-size: 2rem;
  color: #f5f8ff;
}

.pricing-list {
  margin: 10px 0 18px;
  padding-left: 18px;
  line-height: 1.6;
  flex: 1 1 auto;
}

.pricing-card .btn {
  width: 100%;
}

@media (max-width: 960px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .site-surface:not(.home-page) .topbar {
    top: 8px;
  }

  .site-surface:not(.home-page) .topbar-inner {
    border-radius: 16px;
  }

  .pricing-layout {
    padding-top: 34px;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Global home-like navbar on all site pages ===== */
.site-surface .topbar {
  border-bottom: none;
  background: transparent;
  backdrop-filter: none;
  position: sticky;
  top: 14px;
}

.site-surface .topbar-inner {
  max-width: 980px;
  justify-content: center;
}

.site-surface .topbar-shell {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(77, 108, 163, 0.4);
  background: rgba(12, 16, 26, 0.86);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-surface .brand {
  display: none;
}

.site-surface .brand-wrap,
.site-surface .online-badge {
  display: none;
}

.site-surface .brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f5f8ff;
  border: 1px solid rgba(255, 255, 255, 0.6);
  text-decoration: none;
  flex: 0 0 auto;
}

.site-surface .brand-mark img {
  width: 21px;
  height: 21px;
  object-fit: contain;
}

.site-surface .nav-home {
  gap: 2px;
}

.site-surface .nav-link {
  border-radius: 10px;
  border: 1px solid transparent;
  color: #b3bdd0;
  padding: 8px 12px;
  font-weight: 500;
  font-size: 0.95rem;
}

.site-surface .nav-link:hover {
  color: #f4f8ff;
  border-color: rgba(120, 146, 194, 0.38);
  background: rgba(17, 26, 44, 0.8);
}

.site-surface .nav-cta {
  color: #f5f9ff;
  border-color: rgba(110, 140, 194, 0.45);
  background: rgba(17, 26, 44, 0.8);
}

.site-surface .topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
}

.site-surface .profile-chip {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  color: #c9ebff;
  background: linear-gradient(180deg, rgba(7, 55, 88, 0.9), rgba(7, 36, 70, 0.92));
  border: 1px solid rgba(85, 182, 255, 0.66);
  box-shadow: 0 0 0 2px rgba(30, 95, 255, 0.24);
  font-weight: 700;
}

.site-surface .topbar-account {
  margin-left: 4px;
  border-radius: 999px;
  border: 1px solid rgba(77, 108, 163, 0.42);
  background: rgba(6, 14, 28, 0.9);
  padding: 4px 6px;
}

@media (max-width: 900px) {
  .site-surface .topbar-shell {
    width: 100%;
    justify-content: space-between;
  }

  .site-surface .nav-home {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 700px) {
  .site-surface .topbar {
    top: 8px;
  }

  .site-surface .topbar-inner {
    padding: 10px 14px;
  }

  .site-surface .nav-home {
    display: none;
  }

  .site-surface .topbar-account-info {
    display: none;
  }
}
