/* ============================================================
   TOOLSPOT — GLOBAL DESIGN SYSTEM
   toolspot.tradesala.net · Deployed via Cloudflare Pages
   ============================================================ */

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

/* ── DESIGN TOKENS (dark mode defaults) ── */
:root {
  /* Brand */
  --red:              #f97316;
  --red2:             #fb923c;
  --red-glow:         rgba(249, 115, 22, 0.35);
  --red-soft:         rgba(249, 115, 22, 0.12);

  /* Glass surfaces */
  --glass-bg:         rgba(255, 255, 255, 0.055);
  --glass-bg-hover:   rgba(255, 255, 255, 0.10);
  --glass-border:     rgba(255, 255, 255, 0.13);
  --glass-border-hover: rgba(255, 255, 255, 0.25);

  /* Text */
  --text:             rgba(255, 255, 255, 0.95);
  --text-2:           rgba(255, 255, 255, 0.55);
  --text-3:           rgba(255, 255, 255, 0.30);

  /* Background */
  --bg:               #06050a;

  color-scheme: dark;
}

/* ── BASE ── */
html { scroll-behavior: smooth; }

body {
  font-family: 'Figtree', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.6s cubic-bezier(0.4, 0, 0.2, 1), color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(249,115,22,0.3); }

/* ── BACKGROUND SCENE ── */
.bg-scene {
  position: fixed; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
  transition: background 0.6s;
}
.orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px);
  animation: float 20s ease-in-out infinite;
}
.orb-1 {
  width: 600px; height: 600px; top: -200px; right: -150px;
  background: radial-gradient(circle, rgba(16,185,129,0.22) 0%, transparent 70%);
  animation-duration: 25s;
}
.orb-2 {
  width: 500px; height: 500px; bottom: -150px; left: -100px;
  background: radial-gradient(circle, rgba(5,150,105,0.18) 0%, transparent 70%);
  animation-duration: 30s; animation-delay: -10s;
}
.orb-3 {
  width: 400px; height: 400px; top: 40%; left: 30%;
  background: radial-gradient(circle, rgba(16,185,129,0.08) 0%, transparent 70%);
  animation-duration: 20s; animation-delay: -5s;
}
.grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}
.noise {
  position: absolute; inset: 0; opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ── ANIMATIONS ── */
@keyframes float {
  0%, 100% { transform: translate(0,0) scale(1); }
  33%       { transform: translate(30px,-40px) scale(1.05); }
  66%       { transform: translate(-20px,30px) scale(0.97); }
}
@keyframes shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}
@keyframes fadeUp {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes badgeShimmer {
  0%       { left: -100%; opacity: 0; }
  20%      { opacity: 1; }
  60%, 100% { left: 160%; opacity: 0; }
}
@keyframes shareShimmer {
  0%, 60%, 100% { left: -75%; opacity: 0; }
  40%           { left: 140%; opacity: 1; }
}

/* ── PAGE WRAPPER ── */
.page { position: relative; z-index: 1; }

/* ── NAV ── */
nav {
  position: sticky; top: 0; z-index: 100;
  padding: 0 40px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(7,7,15,0.7);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  animation: slideDown 0.6s cubic-bezier(0.16,1,0.3,1) both;
  transition: background-color 0.55s, border-color 0.55s;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon {
  width: 34px; height: 34px; border-radius: 14px;
  object-fit: contain; background: white; display: block;
  box-shadow: 0 0 18px rgba(249,115,22,0.35);
}
.logo-text {
  font-family: 'Outfit', sans-serif; font-weight: 700;
  font-size: 16px; letter-spacing: -0.2px; color: var(--text);
}
.logo-text span {
  background: linear-gradient(90deg, var(--red), #ff6b6b, var(--red));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 100px;
  border: 1px solid var(--glass-border); background: var(--glass-bg);
  font-size: 13px; color: var(--text-2); text-decoration: none;
  transition: all 0.2s; backdrop-filter: blur(10px);
}
.nav-pill:hover { border-color: var(--red); color: var(--text); background: var(--red-soft); }

/* ── THEME TOGGLE ── */
.theme-switch {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  cursor: pointer; flex-shrink: 0; user-select: none;
  background: none; border: none; padding: 0; margin: 0;
}
.theme-switch-track {
  position: relative; width: 52px; height: 28px; border-radius: 100px;
  background: linear-gradient(135deg, rgba(15,15,35,0.85), rgba(20,20,50,0.70));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.4);
  transition: background 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.theme-switch-track:hover {
  border-color: rgba(255,255,255,0.28);
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.4), 0 0 10px rgba(249,115,22,0.18);
}
.theme-switch-knob {
  position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #fffbe6, #fde68a 60%, #fbbf24);
  box-shadow: 0 1px 4px rgba(0,0,0,0.35), 0 0 8px rgba(249,115,22,0.55);
  transition: transform 0.38s, background 0.35s, box-shadow 0.35s;
  display: flex; align-items: center; justify-content: center;
  line-height: 1; padding: 0; margin: 0; text-align: center;
}

/* ── HERO ── */
.hero { padding: 100px 40px 80px; text-align: center; position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 18px; border-radius: 100px;
  border: 1px solid rgba(255,153,0,0.35);
  background: rgba(255,153,0,0.07);
  font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  margin-bottom: 28px; backdrop-filter: blur(10px);
  animation: fadeUp 0.7s 0.2s cubic-bezier(0.16,1,0.3,1) both;
}
.hero-badge-text {
  background: linear-gradient(90deg, #FF9933, #ffffff, #138808, #FF9933);
  background-size: 200% auto;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  animation: shimmer 6s linear infinite;
}
.hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(44px, 6.5vw, 72px); font-weight: 800;
  line-height: 1.0; letter-spacing: -2px; margin-bottom: 24px;
  animation: fadeUp 0.7s 0.3s cubic-bezier(0.16,1,0.3,1) both;
}
.hero h1 .line1,
.hero h1 .line2 {
  display: block;
  background: linear-gradient(90deg, #f97316 0%, #10b981 25%, #ffffff 50%, #ef4444 75%, #10b981 90%, #f97316 100%);
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: heroShimmer 14s ease-in-out infinite;
}

body.light .hero h1 .line1,
body.light .hero h1 .line2 {
  background: linear-gradient(90deg, #ea580c 0%, #10b981 25%, #0f172a 50%, #dc2626 75%, #10b981 90%, #ea580c 100%);
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: heroShimmer 14s ease-in-out infinite;
}
.hero-sub {
  font-size: 18px; font-weight: 300; color: var(--text-2);
  max-width: 580px; margin: 0 auto 48px; line-height: 1.75;
  animation: fadeUp 0.7s 0.5s cubic-bezier(0.16,1,0.3,1) both;
}

/* ── STATS ROW ── */
.stats-row {
  display: inline-flex; align-items: center; gap: 0;
  border: 1px solid var(--glass-border); border-radius: 20px;
  overflow: hidden; background: var(--glass-bg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  margin-bottom: 32px;
  transition: all 0.55s;
  animation: fadeUp 0.7s 0.55s cubic-bezier(0.16,1,0.3,1) both;
}
.stat { padding: 20px 36px; text-align: center; border-right: 1px solid var(--glass-border); }
.stat:last-child { border-right: none; }
.stat-n { font-family: 'Outfit', sans-serif; font-size: 26px; font-weight: 800; color: var(--text); }
.stat-l { font-size: 12px; color: var(--text-2); margin-top: 3px; font-weight: 400; letter-spacing: 0.3px; }

/* ── SEARCH ── */
.search-wrap {
  max-width: 520px; margin: 0 auto 32px; position: relative;
  animation: fadeUp 0.7s 0.65s cubic-bezier(0.16,1,0.3,1) both;
}

/* ── FILTERS ── */
.filters {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 8px; padding: 0 40px 56px;
  animation: fadeUp 0.7s 0.65s cubic-bezier(0.16,1,0.3,1) both;
}
.f-btn {
  padding: 9px 20px; border-radius: 100px;
  border: 1px solid var(--glass-border); background: var(--glass-bg);
  color: var(--text-2); font-family: 'Figtree', sans-serif;
  font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.2s;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.f-btn:hover { border-color: var(--glass-border-hover); color: var(--text); background: var(--glass-bg-hover); }
.f-btn.active {
  border-color: rgba(249,115,22,0.6); background: rgba(249,115,22,0.15);
  color: rgba(253,186,116,0.95); box-shadow: 0 0 16px rgba(249,115,22,0.15);
}

/* ╔══════════════════════════════════════════
   ║  TOOL UI/UX ENGINE (Glassmorphism)
   ╚══════════════════════════════════════════ */

/* ─── HEADER ─── */
.tool-header {
  padding: 44px 0 28px;
  animation: fadeUp 0.6s 0.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.tool-header h1 {
  font-family: 'Outfit', sans-serif; font-size: clamp(26px, 4vw, 44px);
  font-weight: 800; letter-spacing: -2px; line-height: 1.05; margin-bottom: 10px;
}
.tool-header h1 span {
  background: linear-gradient(90deg, var(--red), #ff6060);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.tool-header p {
  font-size: 15px; color: var(--text-2); font-weight: 300; line-height: 1.7; max-width: 800px;
}
.breadcrumb { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ─── SEC BANNER (SECURITY/DISCLAIMER) ─── */
.sec-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(52, 211, 153, 0.07);
  border: 1px solid rgba(52, 211, 153, 0.22);
  border-radius: 12px;
  font-size: 12px;
  color: rgba(80, 220, 150, 0.9);
  margin-bottom: 16px;
  animation: fadeUp 0.6s 0.18s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.sec-banner svg {
  flex-shrink: 0;
  opacity: 0.85;
}
.sec-timer {
  margin-left: auto;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 12px;
  color: rgba(80, 220, 150, 0.7);
  flex-shrink: 0;
}

/* ─── FAQ ─── */
.faq-section {
  margin-top: 40px;
  padding-top: 40px;
  border-top: 1px solid var(--glass-border);
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}
.faq-hdr {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
  text-align: center;
}
.faq-hdr span {
  color: var(--red2);
}
.faq-sub {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 22px;
  text-align: center;
}
.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 8px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background-color 0.5s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 16px 20px;
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-q:hover {
  color: var(--red2);
}
.faq-icon {
  font-size: 16px;
  flex-shrink: 0;
  transition: transform .25s;
  color: var(--text-3);
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--red2);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .3s ease;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.75;
  padding: 0 20px;
}
.faq-item.open .faq-a {
  max-height: 500px;
  padding: 0 20px 18px;
}
.faq-a p {
  margin-bottom: 6px;
}
.faq-a strong {
  color: var(--text);
}

/* ─── CUSTOM SELECT DROPDOWNS ─── */
select {
  cursor: pointer;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.3)' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px !important; color-scheme: dark;
}
select option { background: #12121e; color: white; }

/* ─── MAIN GRID ─── */
.tool-layout { display: grid; grid-template-columns: 1fr 700px; gap: 24px; align-items: start; animation: fadeUp 0.6s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both; min-width: 0; }
.tool-left { min-width: 0; }
.tool-right { position: sticky; top: 80px; min-width: 0; }

@media (max-width: 1024px) {
  .tool-layout { grid-template-columns: 1fr; }
  .tool-right { position: relative; top: 0; padding-top: 16px; min-height: 80vh; }
}

/* ─── PANEL (GLASS CARDS) ─── */
.panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  padding: 26px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
}
.panel::before {
  content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  pointer-events: none;
}
.panel-title {
  font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255, 255, 255, 0.4);
  margin-bottom: 20px; display: flex; align-items: center; gap: 14px; width: 100%;
}
.title-line { flex: 1; height: 1px; background: var(--glass-border); }

/* ─── FORM GRIDS & FLEX CONTAINERS ─── */
.form-fields { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; width: 100%; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ─── SMART LABELS ─── */
.fg { display: flex; flex-direction: column; justify-content: flex-start; gap: 8px; width: 100%; }
.fg label {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-3); line-height: 1.2; margin-bottom: 2px;
  width: 100%;
}
.lbl-text { flex: 1; }
.lbl-opt, .lbl-auto {
  flex-shrink: 0; font-size: 10px; font-weight: 600; text-transform: none;
  letter-spacing: 0.5px; border-radius: 4px; padding: 3px 6px; white-space: nowrap; line-height: 1;
}
.lbl-opt { color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); }
.lbl-auto { color: rgba(52, 211, 153, 0.9); background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.25); }
.lbl-auto.manual { color: rgba(255, 200, 80, 0.9); background: rgba(255, 190, 60, 0.12); border-color: rgba(255, 190, 60, 0.25); }

.sec-divider {
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--text-3); display: flex; align-items: center; gap: 10px; margin: 4px 0 2px;
}
.sec-divider::after { content: ''; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.07); }

/* ─── PREMIUM INPUT BOXES (.inp-box) ─── */
.inp-box {
  display: flex; align-items: center;
  background: rgba(0, 0, 0, 0.25); border: 1px solid var(--glass-border);
  border-radius: 12px; transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
  overflow: hidden; width: 100%; position: relative;
}
.inp-box.disabled { opacity: 0.5; background: rgba(0, 0, 0, 0.4); cursor: not-allowed; }
.inp-box:focus-within {
  border-color: rgba(249, 115, 22, 0.5); background-color: rgba(249, 115, 22, 0.06);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.08);
}
.inp-pre { padding-left: 14px; font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 15px; color: var(--text-3); user-select: none; line-height: 1; }
.inp-suf { padding-right: 14px; font-family: 'Figtree', sans-serif; font-weight: 600; font-size: 13px; color: var(--text-3); user-select: none; line-height: 1; }

.inp-box input, .inp-box select, .inp-box textarea {
  flex: 1; min-width: 0; width: 100%; padding: 14px 16px; background-color: transparent; border: none;
  color: var(--text); font-family: 'Outfit', sans-serif; font-size: 15px; font-weight: 600;
  outline: none; line-height: 1.2;
}
.inp-box input::placeholder, .inp-box textarea::placeholder { color: rgba(255, 255, 255, 0.15); font-weight: 400; font-family: 'Figtree', sans-serif; }
.inp-box textarea { font-family: 'Figtree', sans-serif; font-weight: 400; padding: 14px 16px; resize: vertical; }
.inp-box select {
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
}

/* ─── OPTION PILLS ─── */
.opt-row { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-pill {
  display: flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 100px;
  border: 1px solid var(--glass-border); background: rgba(0, 0, 0, 0.18); cursor: pointer;
  transition: all 0.2s; font-size: 13px; color: var(--text-2); user-select: none;
}
.opt-pill:hover { border-color: rgba(255, 255, 255, 0.25); color: var(--text); }
.opt-pill input[type="radio"], .opt-pill input[type="checkbox"] {
  outline: none; cursor: pointer; accent-color: var(--red);
}

/* ── TOOLS SECTION ── */
.tools-section { max-width: 1180px; margin: 0 auto; padding: 0 40px 100px; }
.sec-label {
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-3);
  margin-bottom: 24px; display: flex; align-items: center; gap: 12px;
}
.sec-label::after { content: ''; flex: 1; height: 1px; background: var(--glass-border); transition: background 0.5s; }

/* ── CATEGORY BLOCK ── */
.cat-block { margin-bottom: 64px; }
.cat-block.hidden { display: none; }

/* ── TOOL GRID ── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

/* ── ELITE BUTTONS (.rb-btn) ── */
.rb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 36px;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.rb-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.rb-btn-primary {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.2);
  color: var(--red);
}

.rb-btn-primary:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--red2);
}

.rb-btn-small {
  padding: 8px 20px;
  font-size: 13px;
  border-radius: 10px;
}

.rb-btn-large {
  padding: 18px 44px;
  font-size: 17px;
  border-radius: 14px;
}

.rb-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

/* Light Mode Overrides for Buttons */
body.light .rb-btn {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
  color: #000;
}

body.light .rb-btn-primary {
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(239, 68, 68, 0.15);
  color: var(--red);
}

/* ── GLASS CARD ── */
.card {
  position: relative; overflow: hidden;
  border-radius: 20px; border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  padding: 28px; display: flex; flex-direction: column; gap: 14px;
  text-decoration: none; color: inherit;
  transition: all 0.3s cubic-bezier(0.16,1,0.3,1);
  cursor: pointer;
  animation: cardIn 0.6s cubic-bezier(0.16,1,0.3,1) both;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: opacity 0.3s;
}
.card::after {
  content: ''; position: absolute; inset: 0; border-radius: 20px;
  background: radial-gradient(ellipse at 50% 120%, rgba(249,115,22,0.12) 0%, transparent 60%);
  opacity: 0; transition: opacity 0.3s; pointer-events: none;
}
.card:hover {
  border-color: rgba(249,115,22,0.3); background: var(--glass-bg-hover);
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 30px rgba(249,115,22,0.08);
}
.card:hover::after { opacity: 1; }
.card.coming-soon { opacity: 0.45; }
.card.coming-soon:hover { transform: none; cursor: default; }
.card.hidden { display: none; }

/* Card animation delays */
.card:nth-child(1)    { animation-delay: 0.05s; }
.card:nth-child(2)    { animation-delay: 0.10s; }
.card:nth-child(3)    { animation-delay: 0.15s; }
.card:nth-child(4)    { animation-delay: 0.20s; }
.card:nth-child(5)    { animation-delay: 0.25s; }
.card:nth-child(6)    { animation-delay: 0.30s; }
.card:nth-child(7)    { animation-delay: 0.35s; }
.card:nth-child(8)    { animation-delay: 0.40s; }
.card:nth-child(9)    { animation-delay: 0.45s; }
.card:nth-child(10)   { animation-delay: 0.50s; }
.card:nth-child(11)   { animation-delay: 0.55s; }
.card:nth-child(12)   { animation-delay: 0.60s; }
.card:nth-child(n+13) { animation-delay: 0.65s; }

.card-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
  transition: all 0.3s; flex-shrink: 0;
}
.card:hover .card-icon {
  background: rgba(249,115,22,0.12); border-color: rgba(249,115,22,0.25);
  box-shadow: 0 0 20px rgba(249,115,22,0.15);
}
.card-name {
  font-family: 'Outfit', sans-serif; font-size: 16px; font-weight: 700;
  color: var(--text); letter-spacing: -0.3px; transition: color 0.4s;
}
.card-desc { font-size: 13.5px; color: var(--text-2); line-height: 1.65; flex: 1; font-weight: 300; transition: color 0.4s; }
.card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }

/* ── BADGES ── */
.badge { font-size: 11px; font-weight: 700; padding: 4px 11px; border-radius: 100px; letter-spacing: 0.5px; }
.badge-live {
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: rgba(52, 211, 153, 1);
  position: relative;
  overflow: hidden;
  text-shadow: 0 0 10px rgba(52, 211, 153, 0.4);
}
.badge-live::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 55%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(134, 239, 172, 0.35), transparent);
  animation: badgeShimmer 2.4s ease-in-out infinite;
}
body.light .badge-live {
  background: rgba(5, 150, 105, 0.10);
  border-color: rgba(16, 185, 129, 0.45);
  color: #059669;
  text-shadow: none;
}
.badge-soon {
  background: rgba(255,200,50,0.08); border: 1px solid rgba(255,200,50,0.2);
  color: rgba(255,200,80,0.8);
}

.card-arrow {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(249,115,22,0.15); border: 1px solid rgba(249,115,22,0.2);
  color: var(--red2); font-size: 13px; transition: all 0.25s; opacity: 0;
}
.card:hover .card-arrow { opacity: 1; transform: translateX(3px); }

/* ── SHARE PILL ── */
.share-pill { position: fixed; right: 24px; bottom: 32px; z-index: 200; display: flex; flex-direction: column; align-items: center; gap: 0; }
.share-trigger {
  width: 50px; height: 50px; border-radius: 50%;
  background: linear-gradient(135deg, #fb923c, var(--red), #c2410c);
  box-shadow: 0 4px 22px rgba(249,115,22,0.55); border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: white; transition: all 0.25s; position: relative; z-index: 2; overflow: hidden;
}
.share-trigger::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.28) 0%, transparent 55%); }
.share-trigger::after {
  content: ''; position: absolute; top: -50%; left: -75%; width: 50%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg); animation: shareShimmer 2.8s ease-in-out infinite;
}
.share-trigger:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(249,115,22,0.65); }
.share-trigger svg { position: relative; z-index: 1; }
.share-options {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding-bottom: 12px; opacity: 0; visibility: hidden;
  transform: translateY(16px) scale(0.95);
  transition: opacity 0.3s, transform 0.35s, visibility 0.3s;
  pointer-events: none;
}
.share-pill.open .share-options { opacity: 1; visibility: visible; transform: translateY(0) scale(1); pointer-events: all; }
.share-btn {
  width: 40px; height: 40px; border-radius: 50%; border: none;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: white; transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0; box-shadow: 0 2px 8px rgba(0,0,0,0.22), 0 0 0 1.5px rgba(255,255,255,0.12);
}
.share-btn:hover { transform: scale(1.13); box-shadow: 0 4px 16px rgba(0,0,0,0.30), 0 0 0 1.5px rgba(255,255,255,0.18); }
.share-fb  { background: #1877f2; }
.share-x   { background: #0f0f0f; }
.share-ig  { background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.share-lnk { background: rgba(100,100,120,0.5); border: 1px solid rgba(255,255,255,0.25); backdrop-filter: blur(8px); }
.share-lnk svg { width: 16px; height: 16px; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--glass-border); padding: 40px; text-align: center;
  background: rgba(7,7,15,0.8); backdrop-filter: blur(20px);
  transition: background 0.5s, border-color 0.5s;
}
.footer-logo {
  font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 18px;
  letter-spacing: -0.5px; margin-bottom: 8px;
}
.footer-logo span {
  background: linear-gradient(90deg, var(--red), #ff6b6b, var(--red));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
}
footer a { color: rgba(249,115,22,0.7); text-decoration: none; }
footer a:hover { color: var(--red); }

/* ── COOKIE BANNER ── */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: rgba(10,10,20,0.97); border-top: 1px solid var(--glass-border);
  backdrop-filter: blur(20px); padding: 16px 24px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), background 0.5s, border-color 0.5s;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-inner {
  max-width: 1180px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.cookie-text { font-size: 13px; color: var(--text-2); line-height: 1.6; flex: 1; min-width: 260px; transition: color 0.4s; }
.cookie-text strong { color: var(--text); transition: color 0.4s; }
.cookie-text a { color: var(--red2); text-decoration: underline; text-underline-offset: 2px; margin-left: 6px; }
.cookie-btn {
  padding: 9px 18px; border-radius: 100px;
  font-family: 'Figtree', sans-serif; font-size: 13px; font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.cookie-accept {
  background: linear-gradient(135deg, var(--red), #c05000); border: none; color: white;
  box-shadow: 0 4px 16px rgba(249,115,22,0.25);
}
.cookie-accept:hover { box-shadow: 0 6px 20px rgba(249,115,22,0.4); transform: translateY(-1px); }

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  nav { padding: 0 20px; }
  .hero { padding: 70px 20px 50px; }
  .hero h1 { letter-spacing: -1.5px; }
  .stats-row { flex-wrap: wrap; }
  .stat { padding: 16px 24px; }
  .filters { padding: 0 20px 40px; }
  .tools-section { padding: 0 20px 80px; }
  .grid { grid-template-columns: 1fr; }
}

/* ╔══════════════════════════════════════════
   ║  LIGHT MODE
   ╚══════════════════════════════════════════ */
body.light {
  --glass-bg:           rgba(255, 255, 255, 0.90);
  --glass-bg-hover:     rgba(255, 255, 255, 0.95);
  --glass-border:       rgba(15, 23, 42, 0.12);
  --glass-border-hover: rgba(249, 115, 22, 0.4);
  --text:               #0f172a;
  --text-2:             #334155;
  --text-3:             #64748b;
  --bg:                 #f8fafc;
  --red-soft:           rgba(249, 115, 22, 0.08);
  color-scheme: light !important;
}
body.light .bg-scene { background: var(--bg); opacity: 1; }
body.light .orb-1 { background: radial-gradient(circle, rgba(16,185,129,0.15) 0%, transparent 70%); }
body.light .orb-2 { background: radial-gradient(circle, rgba(5,150,105,0.12) 0%, transparent 70%); }
body.light .orb-3 { background: radial-gradient(circle, rgba(16,185,129,0.06) 0%, transparent 70%); }
body.light .grid-overlay {
  background-image:
    linear-gradient(rgba(15,23,42,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,0.04) 1px, transparent 1px);
}
body.light nav { background: rgba(248,250,252,0.90); border-bottom-color: rgba(15,23,42,0.1); }
body.light .logo-text { color: #0f172a; }
body.light .nav-pill { color: #475569; border-color: rgba(15,23,42,0.15); background: rgba(255,255,255,0.80); }
body.light .nav-pill:hover { color: var(--red); border-color: var(--red); background: rgba(249,115,22,0.06); }
/* Light mode hero headings keep their gradient — no flat color override */
body.light .stats-row { background: rgba(255,255,255,0.95); border-color: rgba(15,23,42,0.12); box-shadow: 0 4px 20px rgba(15,23,42,0.03); }
body.light .stat { border-right-color: rgba(15,23,42,0.12); }
body.light .search-wrap input { background: #fff; border-color: rgba(15,23,42,0.15); color: #0f172a; }
body.light .search-wrap input:focus { border-color: rgba(249,115,22,0.55); background: rgba(249,115,22,0.04); box-shadow: 0 0 0 3px rgba(249,115,22,0.10); }
body.light .f-btn { background: #fff; border-color: rgba(15,23,42,0.15); color: #475569; }
body.light .f-btn:hover { background: rgba(249,115,22,0.04); border-color: rgba(249,115,22,0.4); color: #0f172a; }
body.light .f-btn.active { background: rgba(249,115,22,0.1); border-color: #f97316; color: #ea580c; box-shadow: 0 0 10px rgba(249,115,22,0.1); }
body.light .sec-label::after { background: rgba(15,23,42,0.15); }
body.light .card { background: #fff; border-color: rgba(15,23,42,0.12); box-shadow: 0 2px 8px rgba(15,23,42,0.02); }
body.light .card:hover { border-color: rgba(249,115,22,0.3); background: rgba(255,255,255,0.95); box-shadow: 0 12px 30px rgba(15,23,42,0.08), 0 0 20px rgba(249,115,22,0.05); }
body.light .card::before { background: linear-gradient(90deg, transparent, rgba(15,23,42,0.05), transparent); }
body.light .card-icon { background: rgba(15,23,42,0.03); border-color: rgba(15,23,42,0.08); color: #0f172a; }
body.light .card:hover .card-icon { background: rgba(249,115,22,0.1); border-color: rgba(249,115,22,0.2); }
body.light footer { background: rgba(248,250,252,0.95); border-top-color: rgba(15,23,42,0.1); color: #334155; }
body.light .cookie-banner { background: rgba(255,255,255,0.97); border-top-color: rgba(15,23,42,0.1); }
body.light .cookie-text { color: #334155; }
body.light .cookie-text strong { color: #0f172a; }
body.light .theme-switch-track {
  background: linear-gradient(135deg, rgba(249,115,22,0.14), rgba(200,80,30,0.08));
  border-color: rgba(249,115,22,0.32);
  box-shadow: inset 0 1px 3px rgba(249,115,22,0.10);
}
body.light .theme-switch-track:hover {
  border-color: rgba(249,115,22,0.50);
  box-shadow: inset 0 1px 3px rgba(249,115,22,0.10), 0 0 10px rgba(249,115,22,0.15);
}
body.light .theme-switch-knob {
  transform: translateX(24px);
  background: radial-gradient(circle at 38% 34%, #f8f9ff, #dde3f0 55%, #b8c4d8);
  box-shadow: 0 1px 5px rgba(0,0,0,0.22), 0 0 8px rgba(249,115,22,0.18);
  font-size: 14px !important;
}

/* ─── LIGHT MODE UI STRUCTURAL COMPONENTS ─── */

body.light .panel { background: rgba(255,255,255,0.9); border-color: rgba(15,23,42,0.12); box-shadow: 0 4px 20px rgba(15,23,42,0.03); }
body.light .panel::before { background: linear-gradient(90deg, transparent, rgba(15,23,42,0.05), transparent); }
body.light .panel-title { color: #64748b; }
body.light .title-line { background: rgba(15,23,42,0.1); }
body.light .sec-divider { color: #64748b; }
body.light .sec-divider::after { background: rgba(15,23,42,0.1); }

body.light .fg label { color: #334155; }
body.light .lbl-opt { color: #64748b; background: rgba(15,23,42,0.05); border-color: rgba(15,23,42,0.1); }
body.light .lbl-auto { color: #059669; background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.25); }

body.light .inp-box { background: #ffffff; border-color: rgba(15,23,42,0.15); }
body.light .inp-box.disabled { background: rgba(15,23,42,0.05); }
body.light .inp-box:focus-within { border-color: rgba(249,115,22,0.55); background: rgba(249,115,22,0.04); box-shadow: 0 0 0 3px rgba(249,115,22,0.10); }
body.light .inp-pre, body.light .inp-suf { color: #64748b; }
body.light .inp-box input, body.light .inp-box select, body.light .inp-box textarea { color: #0f172a; }
body.light .inp-box input::placeholder, body.light .inp-box textarea::placeholder { color: rgba(15,23,42,0.3); }

body.light .opt-pill { background: rgba(15,23,42,0.04); border-color: rgba(15,23,42,0.1); color: #475569; }
body.light .opt-pill:hover { border-color: rgba(249,115,22,0.4); background: rgba(249,115,22,0.04); color: #0f172a; }

body.light select {
  color-scheme: light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(15,23,42,0.4)' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}
body.light select option { background: #fff; color: #111; }

body.light .toast {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 100%);
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  color: #000000;
}
body.light .toast::after { background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.1), transparent); }
body.light .toast-icon { background: rgba(0, 0, 0, 0.05); border-color: rgba(0, 0, 0, 0.08); box-shadow: 0 2px 5px rgba(0,0,0,0.05); }

body.light .toast--error { background: linear-gradient(165deg, rgba(255, 230, 230, 0.9) 0%, rgba(255, 240, 240, 0.7) 100%); border-color: rgba(255, 69, 58, 0.3); }
body.light .toast--success { background: linear-gradient(165deg, rgba(230, 255, 230, 0.9) 0%, rgba(240, 255, 240, 0.7) 100%); border-color: rgba(48, 209, 88, 0.3); }
body.light .toast--info { background: linear-gradient(165deg, rgba(230, 240, 255, 0.9) 0%, rgba(240, 245, 255, 0.7) 100%); border-color: rgba(10, 132, 255, 0.3); }

body.light .sec-banner {
  background: rgba(10, 140, 60, 0.07);
  border-color: rgba(10, 140, 60, 0.25);
  color: rgba(10, 130, 55, 0.90);
}
body.light .sec-timer {
  color: rgba(10, 130, 55, 0.85);
}

body.light .faq-item {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
}
body.light .faq-q {
  color: #000;
}
body.light .faq-q:hover {
  color: #c40e0e;
}
body.light .faq-icon {
  color: #777;
}
body.light .faq-a {
  color: #333;
}
body.light .faq-a strong {
  color: #000;
}

/* ─── RESPONSIVE DESIGN (MOBILE) ─── */
@media (max-width: 920px) {
  .tool-layout { grid-template-columns: 1fr; }
  .tool-right { position: static; margin-top: 0; }
  .page { padding: 0 16px 80px; }
  nav.main-nav { padding: 0 20px; }
  .form-grid, .form-grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 16px; }
  .form-row .fg > label { min-height: 0; padding-bottom: 0; align-items: center; }
}

/* ── TOAST NOTIFICATIONS (Pure Glassmorphism) ── */
.toast {
  position: relative;
  min-width: 320px;
  max-width: 480px;
  padding: 16px 20px;
  border-radius: 20px;
  
  /* Pure Glass Background with Light Fall */
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.02) 100%);
  backdrop-filter: blur(40px) saturate(180%) brightness(1.2);
  -webkit-backdrop-filter: blur(40px) saturate(180%) brightness(1.2);
  
  /* High-Definition Borders */
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 
    0 15px 35px rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    
  display: flex;
  align-items: center;
  gap: 15px;
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  pointer-events: auto;
  overflow: hidden;
  
  /* Smooth High-End Animation */
  animation: appleToastIn 0.8s cubic-bezier(0.19, 1, 0.22, 1) both;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Subtle edge highlight at the top */
.toast::after {
  content: '';
  position: absolute;
  top: 0; left: 30px; right: 30px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
}

@keyframes appleToastIn {
  from { opacity: 0; transform: translateY(40px) scale(0.8); filter: blur(15px); }
  to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.toast-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.toast--error {
  border-color: rgba(255, 69, 58, 0.4);
  background: linear-gradient(165deg, rgba(255, 69, 58, 0.15) 0%, rgba(255, 69, 58, 0.05) 100%);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(255, 69, 58, 0.15);
}
.toast--error .toast-icon { 
  background: rgba(255, 69, 58, 0.25); 
  border-color: rgba(255, 69, 58, 0.4); 
}

.toast--success {
  border-color: rgba(48, 209, 88, 0.4);
  background: linear-gradient(165deg, rgba(48, 209, 88, 0.15) 0%, rgba(48, 209, 88, 0.05) 100%);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(48, 209, 88, 0.15);
}
.toast--success .toast-icon { 
  background: rgba(48, 209, 88, 0.25); 
  border-color: rgba(48, 209, 88, 0.4); 
}

.toast--info {
  border-color: rgba(10, 132, 255, 0.4);
  background: linear-gradient(165deg, rgba(10, 132, 255, 0.15) 0%, rgba(10, 132, 255, 0.05) 100%);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 25px rgba(10, 132, 255, 0.15);
}
.toast--info .toast-icon { 
  background: rgba(10, 132, 255, 0.25); 
  border-color: rgba(10, 132, 255, 0.4); 
}

.toast-msg {
  line-height: 1.4;
  flex: 1;
  font-family: 'Figtree', sans-serif;
  font-weight: 500;
  letter-spacing: -0.1px;
}

/* ==========================================
   HOMEPAGE PREMIUM REDESIGN
   Scoped to .home-page to protect other tools
   ========================================== */

/* Heartbeat Rhythm Pulsing Background Orbs for Index Page Alone */
.home-page .orb-1 {
  animation: orbHeartbeat1 3.6s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  will-change: transform, opacity, filter;
}

.home-page .orb-2 {
  animation: orbHeartbeat2 3.6s cubic-bezier(0.215, 0.61, 0.355, 1) 0.4s infinite;
  will-change: transform, opacity, filter;
}

/* Cardiac lub-dub heartbeat sequence: resting -> beat 1 -> rebound -> beat 2 -> pause */
@keyframes orbHeartbeat1 {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.28;
    filter: blur(80px);
  }
  12% {
    /* Lub - First contraction */
    transform: translate(15px, -15px) scale(1.32);
    opacity: 0.68;
    filter: blur(55px);
  }
  24% {
    /* Rebound */
    transform: translate(5px, -5px) scale(1.12);
    opacity: 0.42;
    filter: blur(70px);
  }
  38% {
    /* Dub - Main expansion surge */
    transform: translate(30px, -25px) scale(1.52);
    opacity: 0.85;
    filter: blur(45px);
  }
  65% {
    /* Diastole relaxation */
    transform: translate(0, 0) scale(1.04);
    opacity: 0.35;
    filter: blur(75px);
  }
  100% {
    /* Resting pause */
    transform: translate(0, 0) scale(1);
    opacity: 0.28;
    filter: blur(80px);
  }
}

@keyframes orbHeartbeat2 {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.22;
    filter: blur(85px);
  }
  12% {
    /* Lub */
    transform: translate(-20px, 15px) scale(1.28);
    opacity: 0.62;
    filter: blur(60px);
  }
  24% {
    /* Rebound */
    transform: translate(-8px, 6px) scale(1.1);
    opacity: 0.38;
    filter: blur(75px);
  }
  38% {
    /* Dub */
    transform: translate(-35px, 28px) scale(1.48);
    opacity: 0.8;
    filter: blur(50px);
  }
  65% {
    /* Diastole */
    transform: translate(0, 0) scale(1.03);
    opacity: 0.3;
    filter: blur(80px);
  }
  100% {
    /* Resting pause */
    transform: translate(0, 0) scale(1);
    opacity: 0.22;
    filter: blur(85px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .orb-1,
  .home-page .orb-2 {
    animation: none !important;
  }
}

/* Hero Text Gradient Animation (Dark Mode: White, Green, Orange, Red | Light Mode: Black, Green, Orange, Red) */
body:not(.light) .home-page .hero h1 span.line1,
body:not(.light) .home-page .hero h1 span.line2 {
  background: linear-gradient(90deg, #f97316 0%, #10b981 25%, #ffffff 50%, #ef4444 75%, #10b981 90%, #f97316 100%) !important;
  background-size: 300% auto !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: heroShimmer 14s ease-in-out infinite !important;
}

body.light .home-page .hero h1 span.line1,
body.light .home-page .hero h1 span.line2 {
  background: linear-gradient(90deg, #ea580c 0%, #10b981 25%, #0f172a 50%, #dc2626 75%, #10b981 90%, #ea580c 100%) !important;
  background-size: 300% auto !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  animation: heroShimmer 14s ease-in-out infinite !important;
}

@keyframes heroShimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Category Filter Track and Glider */
.home-page .filters-wrapper {
  position: relative;
  max-width: 800px;
  margin: 0 auto 56px;
  padding: 0 40px;
}
.home-page .filters {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1;
}

body.light.home-page .filters {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.06);
}

.home-page .f-btn {
  position: relative;
  z-index: 2;
  padding: 8px 18px;
  border-radius: 100px;
  border: none;
  background: transparent;
  color: var(--text-2);
  font-family: 'Figtree', sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.home-page .f-btn svg {
  width: 15px;
  height: 15px;
  opacity: 0.75;
  transition: transform 0.3s ease;
}

.home-page .f-btn:hover svg {
  transform: scale(1.15);
}

.home-page .f-btn:hover {
  background: transparent;
  color: var(--text);
  border: none;
}

.home-page .f-btn.active {
  color: #fff !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

body.light.home-page .f-btn.active {
  color: #fff !important;
}

/* Red / Orange active glider segment */
.home-page .f-glider {
  position: absolute;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--red) 0%, #ff5e3a 100%);
  box-shadow: 0 4px 18px rgba(249, 115, 22, 0.35);
  z-index: 1;
  pointer-events: none;
  transition: all 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

body.light.home-page .f-glider {
  background: linear-gradient(135deg, var(--red) 0%, #ff5e3a 100%);
  box-shadow: 0 4px 18px rgba(249, 115, 22, 0.35);
}

/* Interactive Search input & Keycap Indicator */
.home-page .search-wrap {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

body.search-stuck .search-wrap {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 12px 40px;
  background: rgba(7, 7, 15, 0.8);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  z-index: 101;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.light.search-stuck .search-wrap {
  background: rgba(248, 250, 252, 0.90);
  border-bottom-color: rgba(15, 23, 42, 0.1);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

body.search-stuck .search-wrap .inp-box {
  max-width: 600px;
  margin: 0 auto;
}

.home-page .search-wrap-placeholder {
  display: block;
  height: auto;
}

body.search-stuck .search-wrap-placeholder {
  height: 80px;
}

@media (max-width: 640px) {
  body.search-stuck .search-wrap {
    padding: 12px 20px;
  }
}

.home-page .search-wrap input {
  padding-right: 100px; /* space for shuffle & shortcut */
}

.home-page .search-shortcut-hint {
  position: absolute;
  right: 56px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 2px;
  pointer-events: none;
  opacity: 0.45;
  transition: opacity 0.3s, transform 0.3s;
}

.home-page .search-shortcut-hint kbd {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 5px;
  padding: 2px 6px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

body.light.home-page .search-shortcut-hint kbd {
  background: rgba(15, 23, 42, 0.05);
  border-color: rgba(15, 23, 42, 0.1);
  color: #0f172a;
}

.home-page .search-wrap:focus-within .search-shortcut-hint {
  opacity: 0;
  transform: translateY(-50%) scale(0.9);
}

/* "Surprise Me" Shuffle Button */
.home-page .shuffle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

.home-page .shuffle-btn:hover {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.3);
  color: var(--red2);
  transform: translateY(-50%) rotate(18deg) scale(1.08);
}

body.light.home-page .shuffle-btn {
  border-color: rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.03);
}

body.light.home-page .shuffle-btn:hover {
  background: rgba(249, 115, 22, 0.06);
  color: var(--red);
}

/* Quick Search Suggestions */
.home-page .search-suggestions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  animation: fadeUp 0.6s 0.5s cubic-bezier(0.16,1,0.3,1) both;
}

.home-page .suggestion-tag {
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-3);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-page .suggestion-tag:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text);
  transform: translateY(-1px);
}

body.light.home-page .suggestion-tag {
  background: rgba(15, 23, 42, 0.03);
  border-color: rgba(15, 23, 42, 0.06);
}

body.light.home-page .suggestion-tag:hover {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.15);
  color: #0f172a;
}

/* Dynamic Cursor-Tracking Spotlight Glow */
.home-page .card {
  --mouse-x: 50%;
  --mouse-y: 50%;
  background: radial-gradient(circle 250px at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.04), transparent 80%), var(--glass-bg);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.home-page .card:hover {
  border-color: rgba(249, 115, 22, 0.45);
  background: radial-gradient(circle 220px at var(--mouse-x) var(--mouse-y), rgba(249, 115, 22, 0.08), transparent 80%), var(--glass-bg-hover);
}

body.light.home-page .card {
  background: radial-gradient(circle 250px at var(--mouse-x) var(--mouse-y), rgba(15, 23, 42, 0.015), transparent 80%), #ffffff;
}

body.light.home-page .card:hover {
  border-color: rgba(249, 115, 22, 0.45);
  background: radial-gradient(circle 220px at var(--mouse-x) var(--mouse-y), rgba(249, 115, 22, 0.04), transparent 80%), #ffffff;
}

/* Spotlight overlay border element */
.home-page .card::after {
  display: none !important; /* disable old static background */
}

/* Card Icons Animation */
.home-page .card-icon svg {
  width: 22px;
  height: 22px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.home-page .card:hover .card-icon svg {
  transform: scale(1.18) rotate(3deg);
  color: var(--red2);
}

body.light.home-page .card:hover .card-icon svg {
  color: var(--red);
}

/* Recently Visited Panel */
.home-page .recent-panel {
  max-width: 840px;
  margin: 28px auto 0;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: fadeUp 0.6s 0.6s cubic-bezier(0.16,1,0.3,1) both;
}

.home-page .recent-label {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  opacity: 0.85;
}

.home-page .recent-label svg {
  width: 13px;
  height: 13px;
}

.home-page .recent-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.home-page .recent-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 18px;
  border-radius: 100px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-2);
  text-decoration: none;
  font-family: 'Figtree', sans-serif;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.home-page .recent-chip:hover {
  background: var(--glass-bg-hover);
  border-color: rgba(249, 115, 22, 0.45);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

body.light.home-page .recent-chip {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.1);
}

body.light.home-page .recent-chip:hover {
  border-color: rgba(249, 115, 22, 0.45);
}

/* Elegant No Results Panel */
.home-page .no-results-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 40px;
  border-radius: 24px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  max-width: 500px;
  margin: 40px auto;
  gap: 20px;
}

.home-page .no-results-card svg {
  color: var(--text-3);
  opacity: 0.6;
}

.home-page .no-results-title {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.home-page .no-results-desc {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 320px;
}

.home-page .no-results-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--red2);
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
}

.home-page .no-results-link:hover {
  color: var(--red);
}

/* Wave Clip Theme Transition styles */
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.7s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

html.theme-wave-active::view-transition-old(root) {
  animation: none;
  mix-blend-mode: normal;
  z-index: 1;
}

html.theme-wave-active::view-transition-new(root) {
  animation: clipWaveExpand 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  mix-blend-mode: normal;
  z-index: 9999;
}

/* Disable all transitions during theme wave reveal to ensure clean snapshots */
html.theme-wave-active,
html.theme-wave-active *,
html.theme-wave-active *::before,
html.theme-wave-active *::after {
  transition: none !important;
  animation-delay: 0s !important;
  animation-duration: 0s !important;
}

@keyframes clipWaveExpand {
  0% {
    clip-path: circle(0px at var(--wave-origin-x, 50%) var(--wave-origin-y, 50%));
  }
  100% {
    clip-path: circle(150vmax at var(--wave-origin-x, 50%) var(--wave-origin-y, 50%));
  }
}

/* ╔══════════════════════════════════════════
   ║  OPTION A+: WORKSPACE DASHBOARD SIDEBAR
   ╚══════════════════════════════════════════ */

.workspace-layout {
  display: flex;
  min-height: calc(100vh - 64px);
  position: relative;
  width: 100%;
}

.main-stage {
  flex: 1;
  min-width: 0;
  transition: padding 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-sidebar {
  position: sticky;
  top: 64px;
  height: calc(100vh - 64px);
  width: 240px;
  flex-shrink: 0;
  background: var(--glass-bg);
  border-right: 1px solid var(--glass-border);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  display: flex;
  flex-direction: column;
  padding: 16px 10px;
  z-index: 90;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.5s, border-color 0.5s;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Collapsed Rail State (Default on Desktop) */
.app-sidebar.collapsed {
  width: 64px !important;
  min-width: 64px !important;
  max-width: 64px !important;
  padding: 16px 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  box-sizing: border-box !important;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 8px 12px;
  border-bottom: none;
  margin-bottom: 8px;
  white-space: nowrap;
  width: 100%;
  box-sizing: border-box;
}

.app-sidebar.collapsed .sidebar-header {
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  padding: 8px 0 10px !important;
  margin-top: 0 !important;
  margin-bottom: 10px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  border-bottom: none !important;
}

.sidebar-title {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-3);
  opacity: 1;
  transition: opacity 0.25s;
}

.app-sidebar.collapsed .sidebar-title {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

.sidebar-toggle-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s;
  flex-shrink: 0;
  box-sizing: border-box;
}

.sidebar-toggle-btn:hover {
  border-color: var(--red);
  color: var(--red2);
  background: var(--red-soft);
}

.app-sidebar.collapsed .sidebar-toggle-btn {
  margin: 0 auto !important;
  align-self: center !important;
  float: none !important;
}

.app-sidebar.collapsed .sidebar-toggle-btn svg {
  transform: rotate(180deg);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  box-sizing: border-box;
  background: transparent !important;
  border: none !important;
}

.sb-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-2);
  font-family: 'Figtree', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  box-sizing: border-box;
  outline: none;
  box-shadow: none;
}

.sb-item:focus,
.sb-item:focus-visible {
  outline: none;
  box-shadow: none;
}

.sb-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.1);
}

.sb-item.active {
  background: rgba(249, 115, 22, 0.15);
  border-color: rgba(249, 115, 22, 0.35);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 0 16px rgba(249, 115, 22, 0.15);
}
body.light .sb-item.active {
  color: #c2410c;
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 0 12px rgba(249, 115, 22, 0.12);
}
body.light .sb-item:hover {
  background: rgba(249, 115, 22, 0.06);
  color: var(--text);
  border-color: rgba(249, 115, 22, 0.2);
}

.sb-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: currentColor;
}

.app-sidebar.collapsed .sb-icon {
  margin: 0 auto !important;
  align-self: center !important;
  width: 24px !important;
  height: 24px !important;
  flex-shrink: 0 !important;
}

.sb-label {
  opacity: 1;
  transition: opacity 0.25s;
}

.app-sidebar.collapsed .sb-label {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

.sb-count {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-3);
  transition: opacity 0.25s;
}

.app-sidebar.collapsed .sb-count {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

.app-sidebar.collapsed .sidebar-nav {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 0 !important;
}

.app-sidebar.collapsed .sb-item {
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  padding: 0 !important;
  margin: 0 auto !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  align-self: center !important;
  float: none !important;
  gap: 0 !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  border-radius: 12px !important;
  border: 1px solid transparent !important;
}

/* Nav Header Sidebar Toggle Button */
.nav-sidebar-toggle {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  margin-right: 4px;
}

.nav-sidebar-toggle:hover {
  border-color: var(--red);
  color: var(--red2);
  background: var(--red-soft);
}

/* Mobile Sidebar Drawer (<900px) */
@media (max-width: 900px) {
  .app-sidebar {
    position: fixed;
    top: 64px;
    bottom: 0;
    left: 0;
    z-index: 999;
    width: 250px !important;
    transform: translateX(-100%);
    box-shadow: none;
  }
  .app-sidebar.mobile-open {
    transform: translateX(0);
    box-shadow: 20px 0 60px rgba(0,0,0,0.6);
  }
  .sidebar-backdrop {
    position: fixed;
    inset: 64px 0 0 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
  .sidebar-backdrop.active {
    opacity: 1;
    pointer-events: all;
  }
}
