/* ════════════════════════════════════════════
   XNoctra — Modern SaaS Dashboard
   Design: Refined Dark / Premium Intelligence
   ════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=DM+Mono:wght@400;500&display=swap');

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

/* ── Tokens ─────────────────────────────── */
:root {
  --bg:        #0c0d11;
  --bg2:       #111318;
  --bg3:       #16181f;
  --bg4:       #1c1f28;
  --bg5:       #222535;

  --border:    rgba(255,255,255,0.06);
  --border-2:  rgba(255,255,255,0.10);
  --border-a:  rgba(109,93,255,0.30);

  --text:      #e8eaf0;
  --text-2:    #9197aa;
  --text-3:    #5c6070;

  --accent:    #6d5dff;
  --accent-2:  #8b7dff;
  --accent-3:  #4e3fcc;
  --accent-glow: rgba(109,93,255,0.18);

  --green:     #2dd4a1;
  --red:       #f06a6a;
  --yellow:    #f5c842;
  --blue:      #4da6ff;

  --font-head: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;

  --radius:    14px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  --sidebar-w: 220px;
  --header-h:  58px;

  --shadow-card: 0 1px 2px rgba(0,0,0,0.4), 0 4px 16px rgba(0,0,0,0.25);
  --shadow-float: 0 8px 32px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.3);
}

/* ── Base ────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient background */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 70% -10%, rgba(109,93,255,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 45% 40% at 10% 80%,  rgba(45,212,161,0.04) 0%, transparent 55%);
  pointer-events: none; z-index: 0;
}

/* Subtle dot grid */
body::after {
  content: '';
  position: fixed; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none; z-index: 0;
}

/* ── Layout Shell ────────────────────────── */
#app-root { position: relative; z-index: 1; min-height: 100vh; }

/* ── Landing Page ────────────────────────── */
.landing {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Landing Nav */
.l-nav {
  position: sticky; top: 0; z-index: 30;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  background: rgba(12,13,17,0.80);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

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

.brand-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 16px var(--accent-glow);
}

.brand-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.l-nav-actions { display: flex; align-items: center; gap: 10px; }

/* Hero */
.l-hero {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 80px 24px 60px;
  text-align: center;
}

.l-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: rgba(109,93,255,0.1);
  border: 1px solid rgba(109,93,255,0.2);
  border-radius: 99px;
  font-size: 12px; font-weight: 500;
  color: var(--accent-2);
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}

.l-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.l-title .t-grad {
  background: linear-gradient(135deg, #e8eaf0 20%, var(--accent-2) 60%, #2dd4a1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.l-sub {
  font-size: 17px;
  color: var(--text-2);
  max-width: 480px;
  margin: 0 auto 8px;
  font-weight: 300;
  line-height: 1.7;
}

.l-disclaimer {
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 44px;
}

.l-cta {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: 12px;
  margin-bottom: 72px;
}

/* Feature Grid */
.l-features {
  width: 100%;
  max-width: 860px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 640px) { .l-features { grid-template-columns: 1fr 1fr; } }

.feat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: left;
  transition: border-color 0.25s, transform 0.2s, box-shadow 0.25s;
}
.feat-card:hover {
  border-color: var(--border-2);
  transform: translateY(-3px);
  box-shadow: var(--shadow-float);
}

.feat-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 14px;
}

.feat-name {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}

.feat-desc {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.6;
}

/* Stats bar */
.l-stats {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
}

.stats-grid {
  max-width: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat-cell {
  padding: 18px 12px;
  text-align: center;
  background: var(--bg2);
  border-right: 1px solid var(--border);
}
.stat-cell:last-child { border-right: none; }

.stat-val {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.stat-lbl {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}


/* ── Dashboard Shell ─────────────────────── */
.dashboard {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 20;
}

.sidebar-brand {
  height: var(--header-h);
  display: flex; align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
  gap: 9px;
  flex-shrink: 0;
}

.sidebar-section {
  padding: 20px 12px 8px;
  flex: 1;
}

.sidebar-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  padding: 0 8px;
  margin-bottom: 6px;
}

.sidebar-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 500;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  margin-bottom: 2px;
  position: relative;
}
.sidebar-item:hover { background: rgba(255,255,255,0.04); color: var(--text); }
.sidebar-item.active {
  background: rgba(109,93,255,0.12);
  color: var(--accent-2);
}
.sidebar-item.active::before {
  content: '';
  position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 3px; border-radius: 99px;
  background: var(--accent);
}

.sidebar-item-icon {
  width: 28px; height: 28px;
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 14px 12px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.status-pill {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(45,212,161,0.06);
  border: 1px solid rgba(45,212,161,0.12);
}
.status-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot.green { background: var(--green); box-shadow: 0 0 6px rgba(45,212,161,0.5); }
.status-dot.red   { background: var(--red);   box-shadow: 0 0 6px rgba(240,106,106,0.5); }
.status-dot.blue  { background: var(--blue);  box-shadow: 0 0 6px rgba(77,166,255,0.5); }

.status-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--green);
  flex: 1;
}
.status-sub { font-size: 10px; color: var(--text-3); }

/* Main Content */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-x: hidden;
}

/* Dashboard Header */
.dash-header {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  background: rgba(12,13,17,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
  flex-shrink: 0;
}

.dash-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-2);
}
.dash-breadcrumb .sep { color: var(--text-3); }
.dash-breadcrumb .current { color: var(--text); font-weight: 500; }

.dash-header-right {
  display: flex; align-items: center; gap: 10px;
}

/* Main scroll area */
.main-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
}

/* Page heading */
.page-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 6px;
}
.page-sub {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 28px;
}

/* Section label */
.sec-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px;
}
.sec-label::before {
  content: '';
  width: 16px; height: 1.5px;
  background: var(--accent);
  border-radius: 99px;
}

/* ── Cards ───────────────────────────────── */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s, box-shadow 0.25s;
  box-shadow: var(--shadow-card);
}
.card:hover { border-color: var(--border-2); }

.card-click {
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.18s;
}
.card-click:hover {
  border-color: var(--border-a);
  box-shadow: 0 0 0 1px rgba(109,93,255,0.1), var(--shadow-float);
  transform: translateY(-2px);
}
.card-click:active { transform: translateY(0); }

/* Tool selection grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 900px) { .tools-grid { grid-template-columns: repeat(3, 1fr); } }

.tool-card {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 18px;
}

.tool-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.tool-name {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}
.tool-desc {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.6;
}
.tool-arrow {
  margin-left: auto;
  color: var(--text-3);
  flex-shrink: 0;
  transition: color 0.2s, transform 0.2s;
}
.card-click:hover .tool-arrow { color: var(--accent-2); transform: translateX(2px); }

/* ── Forms ───────────────────────────────── */
.form-card { padding: 24px; margin-bottom: 16px; }

.form-header {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.form-icon {
  width: 48px; height: 48px;
  border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.form-title {
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}
.form-subtitle { font-size: 13px; color: var(--text-2); }

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

.form-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-2);
}

.field {
  background: var(--bg3);
  border: 1.5px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 12px 15px;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.field:focus {
  outline: none;
  border-color: rgba(109,93,255,0.5);
  box-shadow: 0 0 0 4px rgba(109,93,255,0.08);
  background: var(--bg4);
}
.field::placeholder { color: var(--text-3); }

.form-hint {
  font-size: 12px;
  color: var(--text-3);
}

/* ── Buttons ─────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-3));
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 22px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(109,93,255,0.3);
  letter-spacing: 0.01em;
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 6px 22px rgba(109,93,255,0.4); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.35; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-ghost:hover { border-color: var(--border-2); color: var(--text); background: rgba(255,255,255,0.03); }
.btn-ghost.sm { font-size: 12px; padding: 6px 12px; }
.btn-ghost:disabled { opacity: 0.4; cursor: not-allowed; }

.btn-back {
  display: inline-flex; align-items: center; gap: 6px;
  background: transparent; border: none;
  color: var(--text-2);
  font-family: var(--font-body);
  font-size: 13px; font-weight: 500;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  margin-bottom: 20px;
}
.btn-back:hover { color: var(--text); background: rgba(255,255,255,0.04); }

/* ── Tips Card ───────────────────────────── */
.tips-card { padding: 20px; }
.tips-heading {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 12px;
}
.tip-item {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 12px;
  color: var(--text-2);
  margin-bottom: 8px;
  line-height: 1.6;
}
.tip-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(109,93,255,0.5);
  flex-shrink: 0;
  margin-top: 6px;
}

/* ── Loading Screen ──────────────────────── */
.loading-screen {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}

.load-icon {
  width: 72px; height: 72px;
  border-radius: 20px;
  background: rgba(109,93,255,0.1);
  border: 1px solid rgba(109,93,255,0.2);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  margin-bottom: 32px;
  animation: pulse-ring 2s ease-in-out infinite;
}
.load-spinner {
  position: absolute; inset: 0;
  border: 2px solid transparent;
  border-top-color: rgba(109,93,255,0.6);
  border-radius: 20px;
  animation: spin 1s linear infinite;
}
.load-title {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.load-msg {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 28px;
  height: 20px;
}
.load-bar-track {
  width: 220px;
  height: 3px;
  background: var(--bg4);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 10px;
}
.load-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.5s ease;
}
.load-pct {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-3);
}

/* ── Skeleton ────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}
.shimmer {
  background: linear-gradient(90deg,
    rgba(255,255,255,0.03) 25%,
    rgba(109,93,255,0.06) 50%,
    rgba(255,255,255,0.03) 75%
  );
  background-size: 1200px 100%;
  animation: shimmer 1.8s infinite;
  border-radius: 6px;
}

.busy-card { padding: 24px; margin-bottom: 16px; }
.busy-header { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.busy-dots { display: flex; gap: 5px; margin-left: auto; }
.busy-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.busy-dot:nth-child(1) { animation: dot 1.4s 0.0s ease-in-out infinite; }
.busy-dot:nth-child(2) { animation: dot 1.4s 0.2s ease-in-out infinite; }
.busy-dot:nth-child(3) { animation: dot 1.4s 0.4s ease-in-out infinite; }

/* ── Result Card ─────────────────────────── */
.result-header {
  padding: 20px 22px;
  background: linear-gradient(135deg, rgba(109,93,255,0.06) 0%, transparent 100%);
  border-bottom: 1px solid var(--border);
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
}
.result-tool-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 2px;
}
.result-query {
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

/* Data Rows */
.dr {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 13px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.12s;
}
.dr:last-child { border-bottom: none; }
.dr:hover { background: rgba(255,255,255,0.02); }
@media (max-width: 560px) { .dr { grid-template-columns: 1fr; gap: 3px; padding: 12px 18px; } }

.dl {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.dv {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  word-break: break-all;
}

/* Stats mini */
.stats-row {
  display: flex; gap: 10px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
}
.stat-mini {
  flex: 1;
  background: var(--bg3);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  padding: 12px 14px;
  text-align: center;
}
.stat-mini-val {
  font-family: var(--font-head);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 2px;
}
.stat-mini-lbl { font-size: 11px; color: var(--text-3); }

/* Platform Items */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 18px 22px;
}

.platform-item {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 12px;
  background: var(--bg3);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 10px;
  transition: border-color 0.2s;
}
.platform-item.found { border-color: rgba(45,212,161,0.2); }
.platform-item.notfound { opacity: 0.4; }

.pf-name { font-size: 13px; font-weight: 500; color: var(--text); }
.pf-status { font-size: 11px; }
.pf-status.found-t { color: var(--green); }
.pf-status.nofound-t { color: var(--text-3); }

/* Geo box */
.geo-box {
  margin: 18px 22px;
  background: var(--bg3);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column; align-items: center;
  gap: 8px;
}
.geo-coords {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-2);
}
.geo-link {
  font-size: 12px;
  color: var(--text-3);
  text-decoration: none;
  display: flex; align-items: center; gap: 5px;
  transition: color 0.2s;
}
.geo-link:hover { color: var(--accent-2); }

/* ── Badges ──────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  text-transform: uppercase;
  flex-shrink: 0;
}
.bg { background: rgba(109,93,255,0.1); color: var(--accent-2); border: 1px solid rgba(109,93,255,0.2); }
.gg { background: rgba(45,212,161,0.1); color: var(--green);    border: 1px solid rgba(45,212,161,0.2); }
.rr { background: rgba(240,106,106,0.1);color: var(--red);      border: 1px solid rgba(240,106,106,0.2); }
.yy { background: rgba(245,200,66,0.08); color: var(--yellow);  border: 1px solid rgba(245,200,66,0.18); }
.ss { background: rgba(255,255,255,0.05); color: var(--text-2); border: 1px solid var(--border); }

/* ── Error ───────────────────────────────── */
.error-card {
  padding: 48px 24px;
  text-align: center;
  border-color: rgba(240,106,106,0.2) !important;
  background: rgba(240,106,106,0.04) !important;
}
.error-icon { font-size: 40px; margin-bottom: 16px; }
.error-title { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.error-msg { font-size: 13px; color: var(--text-2); margin-bottom: 24px; }

/* ── Disclaimer ──────────────────────────── */
.disclaimer {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-top: 14px;
}
.disclaimer p { font-size: 12px; color: var(--text-3); line-height: 1.6; }

/* ── Donation Modal ──────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(5,6,12,0.80);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.modal {
  background: var(--bg2);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 360px;
  overflow: hidden;
  box-shadow: var(--shadow-float);
}
.modal-header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.modal-icon {
  width: 44px; height: 44px;
  border-radius: 13px;
  background: rgba(240,106,106,0.1);
  border: 1px solid rgba(240,106,106,0.15);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}
.modal-title { font-family: var(--font-head); font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.modal-sub { font-size: 13px; color: var(--text-2); }

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

.don-opt {
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  background: var(--bg3);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  text-decoration: none; color: inherit;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.don-opt:hover { border-color: var(--border-a); background: rgba(109,93,255,0.04); transform: translateY(-2px); }
.don-opt-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.don-opt-name { font-size: 14px; font-weight: 600; color: var(--text); }
.don-opt-sub { font-size: 12px; color: var(--text-3); }

/* ── Scrollbar ───────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(109,93,255,0.2); border-radius: 99px; }

/* ── Animations ──────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0);    }
}
@keyframes fade-in {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes scale-in {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes pulse-ring {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.04); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes dot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40%           { transform: scale(1);   opacity: 1;   }
}

.anim-fade-up  { animation: fade-up  0.4s ease both; }
.anim-fade-in  { animation: fade-in  0.3s ease both; }
.anim-scale-in { animation: scale-in 0.3s cubic-bezier(0.34,1.56,0.64,1) both; }

/* ── Responsive ──────────────────────────── */
@media (max-width: 700px) {
  .sidebar { display: none; }
  .main-scroll { padding: 18px 16px; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .tools-grid { grid-template-columns: 1fr; }
}
