/* ============================================================
   NEXRA — Digital Intelligence & Goods Platform
   Global design system (purple / black), light + dark themes
   ============================================================ */

:root {
  /* Brand */
  --brand: #8b5cf6;
  --brand-2: #a855f7;
  --brand-3: #7c3aed;
  --brand-glow: rgba(139, 92, 246, 0.45);

  /* Profile picture size. The banner ring (.pfp-ring) is drawn around the
     avatar rather than on it, so it reads these too — keep them here and the
     two can't disagree. */
  --avatar-lg-size: 92px;
  --avatar-lg-radius: 24px;

  /* Dark theme (default) */
  --bg: #07060c;
  --bg-2: #0c0a16;
  --surface: #110e1d;
  --surface-2: #17132a;
  --surface-3: #1e1836;
  --border: rgba(139, 92, 246, 0.16);
  --border-strong: rgba(139, 92, 246, 0.35);
  --text: #f4f2fb;
  --text-dim: #b7b1cc;
  --text-mute: #7d778f;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.8);
  --grid-line: rgba(139, 92, 246, 0.06);

  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --maxw: 1200px;
  --nav-h: 72px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="light"] {
  --bg: #f6f5fb;
  --bg-2: #efeaf9;
  --surface: #ffffff;
  --surface-2: #f7f4fe;
  --surface-3: #efeafc;
  --border: rgba(124, 58, 237, 0.16);
  --border-strong: rgba(124, 58, 237, 0.32);
  --text: #17122a;
  --text-dim: #4a4363;
  --text-mute: #7d7791;
  --shadow: 0 20px 50px -24px rgba(124, 58, 237, 0.35);
  --grid-line: rgba(124, 58, 237, 0.07);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.4s var(--ease), color 0.3s var(--ease);
}

/* Ambient background */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 78% -5%, rgba(139, 92, 246, 0.22), transparent 60%),
    radial-gradient(700px 500px at 10% 8%, rgba(124, 58, 237, 0.14), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg-2));
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 20%, black, transparent 85%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

/* Inline icon wrapper (hydrated from [data-ico]) */
.ico { display: inline-flex; align-items: center; justify-content: center; line-height: 0; vertical-align: -0.14em; }
.ico svg { width: 1.05em; height: 1.05em; display: block; }
.lock-badge svg { width: 30px; height: 30px; }

::selection { background: var(--brand); color: #fff; }

/* Scrollbar */
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--brand-3), var(--brand));
  border-radius: 20px;
  border: 3px solid var(--bg);
}

/* ============ Layout ============ */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
body { overflow-x: hidden; }            /* belt-and-suspenders against horizontal scroll */
section { position: relative; }
.section-pad { padding: 90px 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--brand-2);
  padding: 7px 14px; border-radius: 100px;
  border: 1px solid var(--border-strong);
  background: rgba(139, 92, 246, 0.08);
}

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; font-weight: 800; }
.h-section { font-size: clamp(1.8rem, 4vw, 2.7rem); margin: 18px 0 12px; }
.sub { color: var(--text-dim); font-size: 1.05rem; max-width: 640px; }
.center { text-align: center; }
.center .sub, .sub.center { margin-inline: auto; }
.gradient-text {
  background: linear-gradient(120deg, var(--brand-2), #d8b4fe 60%, var(--brand));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ============ Announcement bar ============ */
.announce-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; font-size: 0.88rem; font-weight: 600; color: #fff;
  background: linear-gradient(90deg, var(--brand-3), var(--brand));
  position: relative; z-index: 999;
}
.announce-bar .ico svg { width: 16px; height: 16px; }
.announce-bar .announce-msg { flex: 1; }
.announce-x { margin-left: auto; width: 26px; height: 26px; border-radius: 7px; border: none; background: rgba(255,255,255,0.18); color: #fff; display: grid; place-items: center; }
.announce-x:hover { background: rgba(255,255,255,0.3); }
.announce-x svg { width: 15px; height: 15px; }

/* ============ Navbar ============ */
.nav {
  position: sticky; top: 0; z-index: 1000;
  height: var(--nav-h);
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s var(--ease);
}
.nav-inner {
  width: 100%; height: 100%;
  display: flex; align-items: center; gap: 14px;
  padding: 0 28px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; flex-shrink: 0; }
.brand .logo {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 10px; color: #fff;
  background: linear-gradient(140deg, var(--brand-2), var(--brand-3));
  box-shadow: 0 8px 22px -6px var(--brand-glow);
}
.brand .logo svg { width: 20px; height: 20px; }
.brand b { color: var(--text); }

.nav-links { display: flex; align-items: center; gap: 1px; margin-left: 14px; flex: 1 1 0; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; flex-shrink: 0;
  text-transform: uppercase; color: var(--text-dim); white-space: nowrap;
  padding: 8px 10px; border-radius: 9px; position: relative;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: var(--brand-2); background: rgba(139, 92, 246, 0.1); }

.nav-right { display: flex; align-items: center; gap: 12px; margin-left: auto; flex-shrink: 0; }
/* collapse the link row into the hamburger before it can overflow; keep logo far-left, profile far-right */
@media (max-width: 1200px) {
  .nav-links { display: none; }
  .mobile-toggle { display: grid; order: 1; }
  .nav-right { order: 2; }
}

.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text-dim);
  transition: all 0.25s var(--ease);
}
.icon-btn:hover { color: var(--brand-2); border-color: var(--border-strong); transform: translateY(-2px); }
.icon-btn svg { width: 18px; height: 18px; }
.cart-btn { position: relative; }
.cart-badge {
  position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 100px; background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
  color: #fff; font-size: 0.68rem; font-weight: 800; display: none; place-items: center;
  border: 2px solid var(--bg);
}

.link-btn { font-size: 0.85rem; font-weight: 600; color: var(--text-dim); padding: 8px 6px; }
.link-btn:hover { color: var(--text); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 0.9rem; font-weight: 700; letter-spacing: 0.01em;
  padding: 12px 22px; border-radius: 12px; border: 1px solid transparent;
  transition: all 0.25s var(--ease); white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
  box-shadow: 0 12px 30px -10px var(--brand-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px var(--brand-glow); filter: brightness(1.08); }
.btn-outline { color: var(--text); background: var(--surface); border-color: var(--border-strong); }
.btn-outline:hover { transform: translateY(-2px); border-color: var(--brand); background: var(--surface-2); }
.btn-ghost { color: var(--text-dim); background: transparent; border-color: var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--border-strong); }
.btn-sm { padding: 9px 15px; font-size: 0.82rem; border-radius: 10px; }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-pill { border-radius: 100px; }

/* Signup nav btn */
.btn-signup {
  color: var(--brand-2); border: 1px solid var(--border-strong);
  padding: 8px 16px; border-radius: 100px; font-size: 0.82rem; font-weight: 700;
  background: rgba(139, 92, 246, 0.06); transition: all 0.25s var(--ease);
}
.btn-signup:hover { background: var(--brand); color: #fff; }

/* ============ Cards ============ */
.card {
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover { transform: translateY(-5px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.card-ico {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(140deg, var(--brand-2), var(--brand-3));
  box-shadow: 0 10px 24px -8px var(--brand-glow); margin-bottom: 16px;
}
.card-ico svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--text-dim); font-size: 0.92rem; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ============ Hero ============ */
.hero { padding: 70px 0 60px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(3rem, 8vw, 6rem); font-weight: 900; letter-spacing: -0.04em; }
.hero .tagline { font-size: clamp(1.1rem, 2.4vw, 1.5rem); color: var(--text-dim); font-weight: 500; margin-top: 6px; }
.hero .lead { color: var(--text-dim); font-size: 1.05rem; margin: 22px 0 30px; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-actions .row2 { display: flex; gap: 14px; flex-basis: 100%; margin-top: 4px; }

.stats { display: flex; gap: 40px; margin-top: 44px; flex-wrap: wrap; }
.stat .num { font-size: 2.1rem; font-weight: 900; color: var(--brand-2); line-height: 1; }
.stat .lbl { font-size: 0.8rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 6px; }

/* Floating feature chips (hero visual) */
.hero-visual { position: relative; height: 440px; }
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-radius: 16px;
  background: linear-gradient(150deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong); box-shadow: var(--shadow);
  font-weight: 700; animation: float 6s ease-in-out infinite;
}
.float-card .fi {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(140deg, var(--brand-2), var(--brand-3));
}
.float-card .fi svg { width: 20px; height: 20px; }
.float-card:nth-child(1) { top: 6%; left: 8%; animation-delay: 0s; }
.float-card:nth-child(2) { top: 40%; left: 0%; animation-delay: 1.4s; }
.float-card:nth-child(3) { top: 34%; right: 2%; animation-delay: 0.7s; }
.float-card:nth-child(4) { top: 66%; right: 12%; animation-delay: 2.1s; }
.hero-orb {
  position: absolute; inset: 12% 20%; border-radius: 50%;
  background: radial-gradient(circle, var(--brand-glow), transparent 68%);
  filter: blur(30px); animation: pulse 5s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes pulse { 0%,100% { opacity: 0.55; transform: scale(1); } 50% { opacity: 0.85; transform: scale(1.06); } }

/* ============ Reveal animation ============ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* ============ Modal ============ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(4, 3, 10, 0.7); backdrop-filter: blur(8px);
  display: grid; place-items: center; padding: 24px;
  opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease);
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  width: 100%; max-width: 440px; position: relative;
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow);
  transform: translateY(20px) scale(0.97); transition: transform 0.35s var(--ease);
}
.modal-overlay.open .modal { transform: none; }
.modal-glow { position: absolute; top: -40px; left: 50%; transform: translateX(-50%); width: 160px; height: 90px; background: var(--brand-glow); filter: blur(50px); z-index: -1; }
.modal-close { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text-dim); display: grid; place-items: center; }
.modal-close:hover { color: var(--text); border-color: var(--border-strong); }
.modal h3 { font-size: 1.5rem; margin-bottom: 8px; }
.modal p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 22px; }
.modal .lock-badge { width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, var(--brand-2), var(--brand-3)); margin-bottom: 18px; box-shadow: 0 14px 30px -8px var(--brand-glow); }
.modal .lock-badge svg { width: 30px; height: 30px; }

/* ============ Forms ============ */
.field { margin-bottom: 16px; text-align: left; }
.field label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-dim); margin-bottom: 7px; }
.input, textarea.input, select.input {
  width: 100%; padding: 13px 15px; font-size: 0.95rem; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 11px; transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}
.input::placeholder { color: var(--text-mute); }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.18); }
textarea.input { resize: vertical; min-height: 120px; }
.input-group { display: flex; gap: 10px; }
.input-group .input { flex: 1; }

.divider { display: flex; align-items: center; gap: 14px; margin: 20px 0; color: var(--text-mute); font-size: 0.8rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.form-foot { text-align: center; font-size: 0.88rem; color: var(--text-dim); margin-top: 18px; }
.form-foot a { color: var(--brand-2); font-weight: 600; }

/* ============ Badges & pills ============ */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 700; padding: 4px 10px; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.05em; }
.badge-premium { color: #fde68a; background: rgba(245, 158, 11, 0.14); border: 1px solid rgba(245, 158, 11, 0.35); }
.badge-free { color: var(--text-dim); background: var(--surface-3); border: 1px solid var(--border); }
.badge-green { color: #6ee7b7; background: rgba(16, 185, 129, 0.14); border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-red { color: #fca5a5; background: rgba(239, 68, 68, 0.13); border: 1px solid rgba(239, 68, 68, 0.3); }
.badge-purple { color: var(--brand-2); background: rgba(139, 92, 246, 0.12); border: 1px solid var(--border-strong); }
.badge-og { color: #fcd34d; background: linear-gradient(120deg, rgba(245,158,11,0.18), rgba(234,88,12,0.14)); border: 1px solid rgba(245,158,11,0.5); }
.badge-ogsup { color: #fff; background: linear-gradient(120deg, #f59e0b, #d946ef); border: 1px solid transparent; box-shadow: 0 4px 14px -4px rgba(217,70,239,0.5); }
.badge-overdrive { color: #fff; background: linear-gradient(120deg, #06b6d4, #7c3aed); border: 1px solid transparent; box-shadow: 0 4px 14px -4px rgba(124,58,237,0.6); }
.badge .ico svg { width: 12px; height: 12px; }

/* Profile banner + identity */
.profile-banner { height: 168px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; position: relative; background-size: cover; background-position: center; }
.uid-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 0.72rem; font-weight: 700; color: var(--text-mute); background: var(--surface-3); border: 1px solid var(--border); padding: 2px 9px; border-radius: 100px; margin-top: 6px; }
.uid-chip b { color: var(--brand-2); }
.banner-edit { height: 120px; border-radius: 12px; background-size: cover; background-position: center; border: 1px solid var(--border); margin-bottom: 10px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; margin: 12px 0; }
.reveal-field { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 0.84rem; }
.reveal-field .rf-val { font-family: monospace; }
.reveal-field button { font-size: 0.74rem; padding: 3px 9px; border-radius: 7px; border: 1px solid var(--border); background: var(--surface); color: var(--brand-2); font-weight: 600; }
.money-stat { font-size: 2rem; font-weight: 900; background: linear-gradient(120deg,#fcd34d,#f59e0b); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ============ Profile menu ============ */
.profile-wrap { position: relative; }
.profile-btn { display: flex; align-items: center; gap: 9px; padding: 5px 12px 5px 5px; border-radius: 100px; border: 1px solid var(--border); background: var(--surface); transition: all 0.2s; }
.profile-btn:hover { border-color: var(--border-strong); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 0.85rem; background: linear-gradient(140deg, var(--brand-2), var(--brand-3)); flex-shrink: 0; overflow: hidden; }
.avatar.has-img { padding: 0; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-lg { width: var(--avatar-lg-size); height: var(--avatar-lg-size); font-size: 2.2rem; border-radius: var(--avatar-lg-radius); }

/* Input with @ prefix */
.input-prefix { display: flex; align-items: center; gap: 4px; padding: 0 14px; }
.input-prefix .pfx { color: var(--text-mute); font-weight: 600; }
.input-prefix input { flex: 1; border: none; background: none; padding: 13px 0; color: var(--text); font-size: 0.95rem; font-family: inherit; outline: none; }

/* Password strength meter */
.pw-meter { height: 6px; border-radius: 100px; background: var(--surface-3); overflow: hidden; margin-top: 8px; }
.pw-meter span { display: block; height: 100%; width: 0; border-radius: 100px; transition: width 0.3s var(--ease), background 0.3s var(--ease); }
.pw-label { font-size: 0.76rem; margin-top: 6px; font-weight: 600; color: var(--text-mute); }
.pw-reqs { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 8px; }
.pw-req { display: flex; align-items: center; gap: 5px; font-size: 0.74rem; color: var(--text-mute); }
.pw-req .ico svg { width: 13px; height: 13px; }
.pw-req.met { color: #6ee7b7; }
.field-hint { font-size: 0.75rem; margin-top: 6px; color: var(--text-mute); }
.field-hint.err { color: #fca5a5; }
.field-hint.ok { color: #6ee7b7; }

/* Avatar uploader */
.avatar-edit { display: flex; align-items: center; gap: 16px; }
.avatar-edit .ae-actions { display: flex; flex-direction: column; gap: 8px; }
.profile-btn .pname { font-size: 0.85rem; font-weight: 600; color: #f4f2fb; }
.profile-menu {
  position: absolute; right: 0; top: calc(100% + 10px); width: 250px;
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong); border-radius: 16px; padding: 8px;
  box-shadow: var(--shadow); opacity: 0; transform: translateY(-8px);
  pointer-events: none; transition: all 0.25s var(--ease);
}
.profile-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.pm-head { padding: 12px; display: flex; gap: 12px; align-items: center; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.pm-head .pm-name { font-weight: 700; font-size: 0.95rem; color: #f4f2fb; }
.pm-head .pm-mail { font-size: 0.76rem; color: var(--text-mute); }
.pm-item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 10px; color: var(--text-dim); font-size: 0.88rem; font-weight: 500; width: 100%; background: none; border: none; text-align: left; }
.pm-item:hover { background: var(--surface-3); color: var(--text); }
.pm-item svg { width: 16px; height: 16px; }
.pm-item.danger:hover { color: #fca5a5; }

/* ============ OSINT / tools ============ */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.tool {
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border); border-radius: 14px; padding: 20px;
  cursor: pointer; transition: all 0.3s var(--ease); position: relative; overflow: hidden;
}
.tool:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.tool .t-ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; color: var(--brand-2); background: rgba(139, 92, 246, 0.12); margin-bottom: 14px; }
.tool .t-ico svg { width: 21px; height: 21px; }
.tool h4 { font-size: 1rem; margin-bottom: 5px; }
.tool p { font-size: 0.83rem; color: var(--text-dim); }
.tool .t-tag { position: absolute; top: 14px; right: 14px; }

/* Search console */
.console {
  background: linear-gradient(160deg, var(--surface), var(--surface-2));
  border: 1px solid var(--border-strong); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow);
}
.console-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.console-head .ch-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, var(--brand-2), var(--brand-3)); }
.console-head h3 { font-size: 1.2rem; }
.console-head p { font-size: 0.85rem; color: var(--text-dim); }
.search-bar { display: flex; gap: 12px; }
.search-bar .input { flex: 1; }
.search-type { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip {
  font-size: 0.8rem; font-weight: 600; padding: 8px 14px; border-radius: 100px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-dim);
  transition: all 0.2s;
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* Results with lock/blur for free users */
.results { margin-top: 24px; display: grid; gap: 12px; }
.result-row {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px;
  border: 1px solid var(--border); border-radius: 13px; background: var(--surface);
  animation: rowin 0.5s var(--ease) backwards;
}
@keyframes rowin { from { opacity: 0; transform: translateY(10px); } }
.result-row .r-src { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--brand-2); font-weight: 800; }
.result-row .r-main { flex: 1; }
.result-row .r-title { font-weight: 700; font-size: 0.95rem; }
.result-row .r-meta { font-size: 0.8rem; color: var(--text-mute); }
.locked .r-title, .locked .r-meta, .locked .r-src { filter: blur(7px); user-select: none; pointer-events: none; }
.locked { position: relative; }
.locked-note { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: #fde68a; }

.result-veil {
  margin-top: 22px; padding: 26px; border-radius: 16px; text-align: center;
  border: 1px dashed var(--border-strong); background: rgba(139, 92, 246, 0.05);
}
.result-veil h4 { font-size: 1.1rem; margin: 10px 0 6px; }
.result-veil p { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 16px; }

.empty-state { text-align: center; padding: 40px 20px; color: var(--text-mute); }
.empty-state svg { width: 42px; height: 42px; margin-bottom: 12px; opacity: 0.5; }

/* ============ OSINT report ============ */
.rpt-head {
  display: flex; align-items: center; gap: 16px; margin: 22px 0 18px; padding: 18px 20px;
  border: 1px solid var(--border-strong); border-radius: 16px;
  background: linear-gradient(150deg, var(--surface-2), var(--surface)); flex-wrap: wrap;
}
.rpt-avatar { width: 60px; height: 60px; border-radius: 15px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--border); }
.rpt-avatar-ph { display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, var(--brand-2), var(--brand-3)); }
.rpt-avatar-ph svg { width: 28px; height: 28px; }
.rpt-head-main { flex: 1; min-width: 200px; }
.rpt-query { font-size: 1.15rem; font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; word-break: break-all; }
.rpt-summary { color: var(--text-dim); font-size: 0.9rem; margin: 4px 0 8px; }
.rpt-sources { display: flex; gap: 6px; flex-wrap: wrap; }
.src-chip { font-size: 0.7rem; font-weight: 700; padding: 3px 9px; border-radius: 100px; color: var(--brand-2); background: rgba(139, 92, 246, 0.1); border: 1px solid var(--border-strong); }
.rpt-actions { display: flex; align-items: center; gap: 10px; }

.rpt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.rpt-section {
  border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px;
  background: var(--surface); border-left: 3px solid var(--border-strong);
  animation: rowin 0.5s var(--ease) backwards;
}
.rpt-section.risk-high { border-left-color: #ef4444; }
.rpt-section.risk-med { border-left-color: #f59e0b; }
.rpt-section.risk-low { border-left-color: #10b981; }
.rpt-sec-head { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text); margin-bottom: 12px; }
.rpt-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.risk-high .rpt-dot { background: #ef4444; } .risk-med .rpt-dot { background: #f59e0b; } .risk-low .rpt-dot { background: #10b981; }
.rpt-risk { margin-left: auto; font-size: 0.62rem; padding: 2px 8px; border-radius: 100px; text-transform: uppercase; font-weight: 800; }
.rpt-risk.risk-high { color: #fca5a5; background: rgba(239, 68, 68, 0.14); }
.rpt-risk.risk-med { color: #fcd34d; background: rgba(245, 158, 11, 0.14); }
.rpt-risk.risk-low { color: #6ee7b7; background: rgba(16, 185, 129, 0.14); }
.rpt-fields { display: grid; gap: 9px; }
.rpt-field { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: start; font-size: 0.87rem; }
.rf-k { color: var(--text-mute); font-weight: 600; }
.rf-v { color: var(--text); word-break: break-word; display: flex; align-items: flex-start; gap: 6px; }
.rf-v a { color: var(--brand-2); }
.rf-copy { flex-shrink: 0; width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-mute); display: grid; place-items: center; }
.rf-copy:hover { color: var(--brand-2); border-color: var(--border-strong); }
.rf-copy svg { width: 12px; height: 12px; }
.rpt-field.locked .rf-k, .rpt-field.locked .rf-v { filter: blur(6px); user-select: none; }

/* Avatar ring on profile banners (fixes overlap).
   The ring is drawn on the wrapper, not the avatar: .avatar has overflow:hidden
   to clip its image, which would cut off a ring of its own.
   It fades out as it rises into the banner — solid against the card below,
   nothing against the artwork above — so the cut-out never looks stamped on.
   --pfp-overlap drives both how far the avatar is pulled up and where the fade
   lands, so the two can't drift apart. */
.pfp-ring {
  --pfp: var(--avatar-lg-size);
  --pfp-radius: var(--avatar-lg-radius);
  --ring: 4px;
  --pfp-overlap: 34px;    /* how far the avatar sits over the banner */
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin: calc(var(--pfp-overlap) * -1) 0 10px;
}
.pfp-ring .avatar { border: none; box-shadow: 0 6px 20px -6px rgba(0, 0, 0, 0.55); }
.pfp-ring::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(var(--pfp) + var(--ring) * 2);
  height: calc(var(--pfp) + var(--ring) * 2);
  transform: translate(-50%, -50%);
  border-radius: calc(var(--pfp-radius) + var(--ring));
  padding: var(--ring);
  /* Dissolves upward: gone at the top where it's deepest in the artwork, full
     strength by the banner's bottom edge, then solid (and invisible) against the
     card below. One long ramp across the whole overlap — a short one reads as a
     hard edge part-way up the banner rather than a fade. */
  background: linear-gradient(
    to bottom,
    transparent 0,
    var(--surface) calc(var(--pfp-overlap) + var(--ring)),
    var(--surface) 100%
  );
  /* keep only the padding band: the full box minus the avatar-sized centre */
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

/* ============ Username checker ============ */
.tabs { display: inline-flex; gap: 6px; padding: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 24px; }
.tab { padding: 10px 20px; border-radius: 10px; font-size: 0.88rem; font-weight: 600; color: var(--text-dim); background: none; border: none; transition: all 0.2s; }
.tab.active { background: linear-gradient(135deg, var(--brand-2), var(--brand-3)); color: #fff; }
.tab:not(.active):hover { color: var(--text); }
.tabpane { display: none; }
.tabpane.active { display: block; animation: fadein 0.4s var(--ease); }
@keyframes fadein { from { opacity: 0; transform: translateY(8px); } }

.platform-toggles { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin: 18px 0; }
.ptoggle {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px;
  border: 1px solid var(--border); border-radius: 11px; background: var(--surface);
  cursor: pointer; transition: all 0.2s; user-select: none;
}
.ptoggle:hover { border-color: var(--border-strong); }
.ptoggle.on { border-color: var(--brand); background: rgba(139, 92, 246, 0.1); }
.ptoggle .p-ico { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-weight: 800; font-size: 0.72rem; color: #fff; }
.ptoggle .p-name { font-size: 0.85rem; font-weight: 600; }
.ptoggle .p-check { margin-left: auto; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--border-strong); display: grid; place-items: center; color: #fff; }
.ptoggle.on .p-check { background: var(--brand); border-color: var(--brand); }
.ptoggle:not(.on) .p-check svg { opacity: 0; }
.ptoggle .p-check svg { width: 12px; height: 12px; }

.toggle-actions { display: flex; gap: 10px; margin-bottom: 18px; }

.uname-results { display: grid; gap: 10px; margin-top: 22px; }
.uname-card { border: 1px solid var(--border); border-radius: 13px; overflow: hidden; background: var(--surface); }
.uname-card .uc-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.uname-card .uc-head .uc-name { font-weight: 800; font-size: 1.02rem; }
.uname-card .uc-head .uc-summary { margin-left: auto; font-size: 0.82rem; color: var(--text-dim); }
.uc-platforms { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; padding: 16px 18px; }
.uc-plat { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 9px; background: var(--bg-2); font-size: 0.85rem; }
.uc-plat .dot { width: 9px; height: 9px; border-radius: 50%; }
.uc-plat .dot.avail { background: #10b981; box-shadow: 0 0 8px #10b981; }
.uc-plat .dot.taken { background: #ef4444; }
.uc-plat .uc-p-name { font-weight: 600; }
.uc-plat .uc-status { margin-left: auto; font-size: 0.74rem; font-weight: 700; }
.uc-plat .uc-status.avail { color: #6ee7b7; }
.uc-plat .uc-status.taken { color: #fca5a5; }

.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,0.25); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ Shop ============ */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.uname-item { text-align: center; padding: 26px 20px; }
.uname-item .u-handle { font-size: 1.35rem; font-weight: 900; letter-spacing: -0.02em; }
.uname-item .u-handle span { color: var(--brand-2); }
.uname-item .u-platform { font-size: 0.78rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.08em; margin: 4px 0 14px; }
.uname-item .u-price { font-size: 1.5rem; font-weight: 900; color: var(--brand-2); margin-bottom: 4px; }
.uname-item .u-rarity { margin-bottom: 16px; }

/* ============ Pricing ============ */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), var(--shadow); }
.price-card .pc-badge { position: absolute; top: 14px; right: 14px; left: auto; transform: none;
  box-shadow: 0 6px 18px -6px rgba(139, 92, 246, 0.55); z-index: 2; }
.price-card .pc-name { font-size: 1.15rem; font-weight: 800; }
.price-card .pc-price { font-size: 2.6rem; font-weight: 900; margin: 12px 0 2px; }
.price-card .pc-price small { font-size: 0.95rem; font-weight: 600; color: var(--text-mute); }
.price-card .pc-desc { font-size: 0.88rem; color: var(--text-dim); margin-bottom: 18px; }
.feat-list { list-style: none; display: grid; gap: 11px; margin: 18px 0 24px; flex: 1; }
.feat-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--text-dim); }
.feat-list li svg { width: 17px; height: 17px; color: var(--brand-2); flex-shrink: 0; margin-top: 2px; }
.feat-list li.off { color: var(--text-mute); opacity: 0.6; }
.feat-list li.off svg { color: var(--text-mute); }

/* ---- Membership expiry countdown (premium.html + profile.html) ---- */
.cd-wrap { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.cd-unit { min-width: 58px; text-align: center; padding: 7px 10px; border-radius: 11px; background: var(--surface); border: 1px solid var(--border); }
.cd-unit b { display: block; font-size: 1.15rem; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.cd-unit small { font-size: 0.66rem; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.05em; }
.cd-soon .cd-unit b { color: #fbbf24; }
.cd-crit .cd-unit b { color: #fca5a5; }

/* ============ Web services ============ */
.svc-card { display: flex; flex-direction: column; }
.svc-card .svc-price { font-size: 1.4rem; font-weight: 900; color: var(--brand-2); margin: 8px 0; }
.svc-card .svc-price small { font-size: 0.8rem; color: var(--text-mute); font-weight: 600; }

/* ============ Guides ============ */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.guide-card { cursor: pointer; }
.guide-card .g-num { font-size: 0.75rem; font-weight: 800; color: var(--brand-2); letter-spacing: 0.1em; }
.guide-card .g-read { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--brand-2); font-weight: 600; margin-top: 12px; }

/* ============ Middleman steps ============ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; }
.step .step-n { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; color: #fff; background: linear-gradient(140deg, var(--brand-2), var(--brand-3)); margin-bottom: 14px; }

.fee-hero { text-align: center; padding: 60px 30px; border-radius: var(--radius-lg); border: 1px solid var(--border-strong); background: linear-gradient(160deg, var(--surface-2), var(--surface)); position: relative; overflow: hidden; }
.fee-hero .big-fee { font-size: clamp(4rem, 14vw, 8rem); font-weight: 900; line-height: 1; }

/* Header panel for signed-in pages (dashboard, users directory). Was copy-pasted
   into two page-local <style> blocks that had already drifted apart; pages layer
   their own padding/layout on top of this shared base. */
.page-panel { position: relative; overflow: hidden; margin-bottom: 22px; border: 1px solid var(--border-strong); background: linear-gradient(140deg, var(--surface-2), var(--surface)); }
.page-panel .orb { position: absolute; top: -75px; right: -55px; width: 250px; height: 250px; border-radius: 50%; background: radial-gradient(circle, var(--brand-glow), transparent 68%); filter: blur(35px); pointer-events: none; }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--border); margin-top: 80px; padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 40px; }
.footer h5 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-mute); margin-bottom: 16px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a { font-size: 0.9rem; color: var(--text-dim); transition: color 0.2s; }
.footer-links a:hover { color: var(--brand-2); }
.footer .f-brand p { color: var(--text-dim); font-size: 0.9rem; margin-top: 14px; max-width: 300px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 26px; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--text-mute); flex-wrap: wrap; gap: 12px; }

/* ============ Toast ============ */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 3000; display: grid; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong); border-radius: 13px; box-shadow: var(--shadow);
  font-size: 0.9rem; font-weight: 600; min-width: 260px;
  animation: toastin 0.4s var(--ease);
}
@keyframes toastin { from { opacity: 0; transform: translateX(30px); } }
.toast .t-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.toast.ok .t-ico { background: #10b981; }
.toast.err .t-ico { background: #ef4444; }
.toast.info .t-ico { background: var(--brand); }

/* ============ Page header ============ */
.page-head { padding: 60px 0 20px; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 900; }
.page-head p { color: var(--text-dim); font-size: 1.08rem; margin-top: 12px; max-width: 620px; }

/* ============ Mobile ============ */
.mobile-toggle { display: none; }
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .mobile-toggle { display: grid; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  /* !important so pages that set an inline grid-template (e.g. pricing 1fr 1fr) still stack */
  .grid-2, .grid-3, .grid-4, .pricing-grid, .steps { grid-template-columns: 1fr !important; }
  .nav-right .pname { display: none; }
  .stats { gap: 26px; }
  .section-pad { padding: 56px 0; }
  /* Auth CTAs live in the drawer on mobile — keep the top bar to logo + theme + menu.
     (The old `.link-btn.login-only` selector never matched, so both buttons overflowed.) */
  .nav-right > .btn { display: none; }
  .nav-inner { padding: 0 16px; gap: 10px; }
  .container { padding: 0 18px; }
  /* Let hero content shrink to the viewport instead of forcing a 450px column. */
  .hero-grid > * { min-width: 0; }
  .eyebrow { max-width: 100%; overflow-wrap: anywhere; font-size: 0.66rem; letter-spacing: 0.1em; }
  h1, h2, h3, .hero h1 { overflow-wrap: break-word; word-break: break-word; }
  .hero { padding: 40px 0 44px; }
  .hero .lead { font-size: 1rem; margin: 18px 0 26px; }
  /* Comfortable tap targets; 16px inputs stop iOS from zooming on focus. */
  .btn { min-height: 46px; }
  .btn-sm { min-height: 40px; }
  .input, input.input, select.input, textarea.input { min-height: 46px; font-size: 16px; }
}
@media (max-width: 560px) {
  /* OSINT console: give the query field the full width, button below it */
  .search-bar { flex-direction: column; }
  .search-bar .btn { width: 100%; justify-content: center; }
  /* Result rows: stack key over value so nothing gets squeezed */
  .rpt-field { grid-template-columns: 1fr; gap: 3px; }
  .rpt-field .rf-k { color: var(--text-mute); font-size: 0.78rem; }
  .rpt-head { flex-wrap: wrap; }
  .rpt-actions { flex-wrap: wrap; width: 100%; }
  /* Notepad export buttons: 2×2 instead of a cramped single row */
  .np-export-group { grid-template-columns: 1fr 1fr; }
  .console { padding: 20px 16px; }
  .modal { padding: 26px 20px; }
}
@media (max-width: 460px) {
  .hero h1 { font-size: clamp(2.3rem, 12vw, 3rem); }
  .hero .tagline { font-size: 1.05rem; }
  .section-pad { padding: 42px 0; }
  /* Stack hero buttons full-width so they're easy to hit. */
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-actions .row2 { flex-direction: column; margin-top: 0; }
  .stats { gap: 20px 26px; }
  .np-fab { right: 16px; bottom: 16px; padding: 12px 15px; font-size: 0.85rem; }
}

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 1500; pointer-events: none; }
.drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(320px, 84vw);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border-left: 1px solid var(--border-strong); padding: 24px;
  transform: translateX(100%); transition: transform 0.35s var(--ease);
  display: flex; flex-direction: column; gap: 6px; overflow-y: auto;
}
.drawer-back { position: absolute; inset: 0; background: rgba(4,3,10,0.6); opacity: 0; transition: opacity 0.3s; }
.drawer.open { pointer-events: auto; }
.drawer.open .drawer-panel { transform: none; }
.drawer.open .drawer-back { opacity: 1; }
.drawer a { padding: 13px 14px; border-radius: 11px; font-weight: 600; color: var(--text-dim); font-size: 0.95rem; }
.drawer a:hover, .drawer a.active { background: var(--surface-3); color: var(--brand-2); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }

/* ============ Investigation Notepad ============ */
.np-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 1400;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 18px 13px 15px; border-radius: 100px; border: none;
  color: #fff; font-weight: 700; font-size: 0.9rem;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
  box-shadow: 0 14px 34px -10px var(--brand-glow);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.np-fab:hover { transform: translateY(-3px); box-shadow: 0 20px 44px -10px var(--brand-glow); }
.np-fab .np-fab-ico { width: 22px; height: 22px; }
.np-fab .np-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 100px;
  background: rgba(255, 255, 255, 0.22); display: grid; place-items: center;
  font-size: 0.78rem; font-weight: 800;
}

.notepad {
  position: fixed; top: 0; right: 0; height: 100%; width: min(440px, 92vw); z-index: 1450;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border-left: 1px solid var(--border-strong);
  box-shadow: -30px 0 60px -30px rgba(0, 0, 0, 0.7);
  transform: translateX(100%); transition: transform 0.4s var(--ease);
}
.notepad.open { transform: none; }
.np-head { display: flex; align-items: center; gap: 12px; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.np-head .np-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, var(--brand-2), var(--brand-3)); flex-shrink: 0; }
.np-head .np-ic svg { width: 22px; height: 22px; }
.np-head h3 { font-size: 1.15rem; }
.np-head p { font-size: 0.8rem; color: var(--text-dim); }
.np-head .np-close { margin-left: auto; }
.np-body { flex: 1; overflow-y: auto; padding: 20px 22px; display: flex; flex-direction: column; gap: 16px; }
.np-body .field { margin-bottom: 0; }
.np-entries { display: grid; gap: 10px; }
.np-entry {
  border: 1px solid var(--border); border-radius: 12px; padding: 13px 14px; background: var(--bg-2);
  position: relative; animation: rowin 0.35s var(--ease) backwards;
}
.np-entry .np-e-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.np-entry .np-e-src { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-weight: 800; font-size: 0.7rem; background: var(--surface-3); color: var(--brand-2); flex-shrink: 0; }
.np-entry .np-e-title { font-weight: 700; font-size: 0.9rem; min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.np-entry .np-e-meta { font-size: 0.78rem; color: var(--text-mute); overflow-wrap: anywhere; word-break: break-word; }
.np-entry .np-e-q { font-size: 0.74rem; color: var(--brand-2); margin-top: 4px; overflow-wrap: anywhere; word-break: break-word; }
.np-entry .np-e-del { position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--border); background: var(--surface); color: var(--text-mute); display: grid; place-items: center; }
.np-entry .np-e-del:hover { color: #fca5a5; border-color: rgba(239, 68, 68, 0.4); }
.np-entry .np-e-del svg { width: 14px; height: 14px; }
.np-empty { text-align: center; color: var(--text-mute); padding: 30px 10px; font-size: 0.88rem; }
.np-empty svg { width: 38px; height: 38px; opacity: 0.5; margin-bottom: 10px; }
.np-foot { padding: 16px 22px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.np-export-group { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.np-export-group .btn { padding-inline: 6px; }
.np-foot-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Add-to-notepad button on result rows */
.add-note {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--brand-2);
  display: grid; place-items: center; transition: all 0.2s var(--ease);
}
.add-note:hover { background: var(--brand); color: #fff; transform: scale(1.08); }
.add-note.added { background: #10b981; border-color: #10b981; color: #fff; }
.add-note svg { width: 17px; height: 17px; }
.results-toolbar { display: flex; align-items: center; gap: 10px; }

/* ============ Global loading screen (app.js showLoader/hideLoader) ============ */
#nx-loader { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center;
  background: var(--bg); transition: opacity 0.4s ease; }
#nx-loader.hide { opacity: 0; pointer-events: none; }
#nx-loader .nxl-spin { width: 46px; height: 46px; border-radius: 50%;
  border: 3px solid rgba(139, 92, 246, 0.2); border-top-color: var(--brand-2);
  animation: nxlspin 0.8s linear infinite; }
@keyframes nxlspin { to { transform: rotate(360deg); } }
