/* SpoolHound shared CSS — complete site styles */
/* Extracted from elegoo-filament.html — known working */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #282a36; --surface: #313442; --surface2: #363847; --surface3: #3c3f50;
  --border: rgba(255,184,108,0.15); --border-hover: rgba(255,184,108,0.3);
  --accent: #ffb86c; --accent2: #ff79c6;
  --accent-dim: rgba(255,184,108,0.12); --accent-border: rgba(255,184,108,0.4);
  --text: #f8f8f2; --muted: #9a95b0; --dim: #6b6680;
  --green: #50fa7b; --green-dim: rgba(80,250,123,0.12); --green-border: rgba(80,250,123,0.25);
  --red: #ff5555; --red-dim: rgba(255,85,85,0.10); --yellow: #f1fa8c; --cyan: #8be9fd;
  --radius: 6px; --radius-lg: 10px;
  --glow1: rgba(255,184,108,0.10); --glow2: rgba(255,184,108,0.04);
  --font-mono: 'Space Mono', monospace;
  --font-sans: 'DM Sans', sans-serif;
}
[data-theme="light"] {
  --bg: #e8e7e3; --surface: #ffffff; --surface2: #f3f2ee;
  --border: rgba(0,0,0,0.10); --accent-border: rgba(245,110,15,0.30);
  --accent: #F56E0F; --accent2: #c2410c;
  --accent-dim: rgba(245,110,15,0.08);
  --text: #1a1a1a; --muted: #4a4a4a; --dim: #6b7280;
  --glow1: rgba(245,110,15,0.04); --glow2: rgba(0,0,0,0);
  --accent-text: #ffffff;
  --green: #16a34a; --green-dim: rgba(22,163,74,0.10); --green-border: rgba(22,163,74,0.25);
  --red: #dc2626; --red-dim: rgba(220,38,38,0.08);
  --yellow: #a16207; --cyan: #0e7490;
}
[data-theme="blue"] {
  --bg: #151C2C; --surface: #1E2740; --surface2: #243050;
  --border: rgba(55,138,221,0.15); --accent-border: rgba(55,138,221,0.35);
  --accent: #378ADD; --accent2: #60a5fa;
  --accent-dim: rgba(55,138,221,0.10);
  --text: #e2e8f0; --muted: #94a3b8; --dim: #64748b;
  --glow1: rgba(55,138,221,0.10); --glow2: rgba(55,138,221,0.04);
  --accent-text: #ffffff;
  --green: #4ade80; --green-dim: rgba(74,222,128,0.12); --green-border: rgba(74,222,128,0.25);
  --red: #f87171; --red-dim: rgba(248,113,113,0.10);
  --yellow: #fbbf24; --cyan: #67e8f9;
}
[data-theme="ember"] {
  --bg: #1A1510; --surface: #221E18; --surface2: #2A2418;
  --border: rgba(245,110,15,0.14); --accent-border: rgba(245,110,15,0.35);
  --accent: #F56E0F; --accent2: #f59e0b;
  --accent-dim: rgba(245,110,15,0.10);
  --text: #f0ece6; --muted: #a09080; --dim: #6b5e50;
  --glow1: rgba(245,110,15,0.10); --glow2: rgba(245,110,15,0.04);
  --accent-text: #ffffff;
  --green: #4ade80; --green-dim: rgba(74,222,128,0.12); --green-border: rgba(74,222,128,0.25);
  --red: #f87171; --red-dim: rgba(248,113,113,0.10);
  --yellow: #fbbf24; --cyan: #67e8f9;
}
[data-theme="arctic"] {
  --bg: #e4e9ef; --surface: #ffffff; --surface2: #edf2f7;
  --border: rgba(14,116,144,0.14); --accent-border: rgba(14,116,144,0.30);
  --accent: #0e7490; --accent2: #155e75;
  --accent-dim: rgba(14,116,144,0.07);
  --text: #0f172a; --muted: #475569; --dim: #64748b;
  --glow1: rgba(14,116,144,0.04); --glow2: rgba(0,0,0,0);
  --accent-text: #ffffff;
  --green: #059669; --green-dim: rgba(5,150,105,0.10); --green-border: rgba(5,150,105,0.25);
  --red: #dc2626; --red-dim: rgba(220,38,38,0.08);
  --yellow: #a16207; --cyan: #0891b2;
}

/* ---- REGION SELECTOR ---- */
.region-selector { position: relative; }
.region-btn {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 5px 10px; font-size: 11px; color: var(--muted); cursor: pointer;
  font-family: var(--font-mono); display: flex; align-items: center; gap: 5px;
  transition: border-color 0.15s, color 0.15s; white-space: nowrap;
}
.region-btn:hover { border-color: var(--accent-border); color: var(--text); }
.region-btn-flag { font-size: 14px; line-height: 1; }
.region-dropdown {
  display: none; position: absolute; right: 0; top: calc(100% + 6px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  min-width: 160px; z-index: 200; overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}
.region-dropdown.open { display: block; }
.region-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; font-size: 12px; color: var(--muted); cursor: pointer;
  font-family: var(--font-mono); transition: background 0.1s, color 0.1s;
  border: none; background: none; width: 100%; text-align: left;
}
.region-opt:hover { background: var(--surface2); color: var(--text); }
.region-opt.active { color: var(--accent); }
.region-opt-flag { font-size: 16px; line-height: 1; width: 20px; text-align: center; }
.region-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.65); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.region-modal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem; max-width: 400px; width: 100%; box-shadow: 0 16px 48px rgba(0,0,0,0.6); }
.region-modal h2 { font-family: var(--font-mono); font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.region-modal p { font-size: 13px; color: var(--muted); margin-bottom: 1.5rem; line-height: 1.6; }
.region-modal-opts { display: flex; flex-direction: column; gap: 8px; }
.region-modal-opt { display: flex; align-items: center; gap: 12px; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 16px; font-size: 13px; color: var(--muted); cursor: pointer; font-family: var(--font-mono); transition: border-color 0.15s, color 0.15s; text-align: left; width: 100%; }
.region-modal-opt:hover { border-color: var(--accent-border); color: var(--text); }
.region-modal-opt-flag { font-size: 20px; line-height: 1; }

html, body { background: var(--bg); color: var(--text); font-family: var(--font-sans); font-size: 16px; line-height: 1.6; }
body { display: flex; flex-direction: column; min-height: 100vh; }
body::after { content: ''; position: fixed; top: -300px; left: 50%; transform: translateX(-50%); width: 900px; height: 700px; background: radial-gradient(ellipse at center, var(--glow1) 0%, var(--glow2) 40%, transparent 70%); pointer-events: none; z-index: 0; }
body::before { content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none; 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='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 200px 200px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
* { scrollbar-width: thin; scrollbar-color: var(--accent-border) transparent; }

/* ---- NAV ---- */
body > nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.75rem 2rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { width: 32px; height: 32px; image-rendering: pixelated; }
.nav-logo-text { font-family: var(--font-mono); font-weight: 700; font-size: 1rem; color: var(--text); }
.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { font-size: 13px; color: var(--muted); text-decoration: none; font-family: var(--font-mono); transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { background: var(--accent); color: var(--accent-text, #ffffff) !important; border-radius: var(--radius); padding: 8px 20px; font-weight: 700; font-size: 12px !important; }
.nav-cta:hover { opacity: 0.88; }
main { position: relative; flex: 1; isolation: isolate; }

/* ---- HERO ---- */
.page-hero { text-align: left; padding: 5rem 1.5rem 2.5rem; max-width: 1000px; margin: 0 auto; padding-left: calc(180px + 2rem + 1.5rem); }
.page-label { font-size: 11px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent2); margin-bottom: 1rem; display: inline-flex; align-items: center; gap: 10px; opacity: 0.6; }
.page-label::before, .page-label::after { content: ''; display: inline-block; width: 24px; height: 1px; background: var(--accent2); opacity: 0.4; }
.page-title { font-family: var(--font-sans); font-size: clamp(1.8rem, 4.5vw, 2.8rem); font-weight: 700; line-height: 1.15; margin-bottom: 1.25rem; letter-spacing: -0.03em; }
.page-title span { color: var(--accent); }
.page-subtitle { font-size: 1.05rem; color: var(--muted); max-width: 560px; line-height: 1.75; }
.divider { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ---- BRAND SIDEBAR + CONTENT LAYOUT ---- */
.brand-content { display: flex; gap: 2rem; max-width: 1000px; margin: 0 auto; padding: 2rem 1.5rem 5rem; }
.brand-sidebar { position: sticky; top: 70px; align-self: flex-start; width: 180px; flex-shrink: 0; }
.brand-sidebar a { display: block; font-size: 12px; font-family: var(--font-mono); color: var(--dim); text-decoration: none; padding: 4px 10px; border-left: 2px solid transparent; transition: color 0.15s, border-color 0.15s; }
.brand-sidebar a:hover { color: var(--text); text-decoration: none; }
.brand-sidebar a.active { color: var(--accent); border-left-color: var(--accent); }
.brand-sidebar-heading { font-size: 9px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); font-weight: 700; padding: 4px 10px; margin-top: 0.75rem; }
.brand-sidebar-heading:first-child { margin-top: 0; }
.brand-sidebar-toggle { display: none; }
.brand-main section, .brand-main .pick-card, .brand-main [id] { scroll-margin-top: 80px; }
.brand-main { flex: 1; min-width: 0; }
@media (max-width: 768px) {
  .brand-content { flex-direction: column; padding: 1rem 1rem 4rem; gap: 0; }
  .brand-sidebar {
    position: fixed; left: 0; right: 0; z-index: 90; width: 100%;
    display: flex; flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 0; max-height: 44px; overflow: hidden;
    transition: top 0.25s ease, max-height 0.25s ease;
  }
  .brand-sidebar.mob-open { max-height: 500px; overflow-y: auto; }
  .brand-sidebar-toggle {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; cursor: pointer;
    font-size: 12px; font-family: var(--font-mono); color: var(--accent); font-weight: 700;
  }
  .brand-sidebar-toggle::after {
    content: '\25BC'; font-size: 8px; transition: transform 0.2s;
  }
  .brand-sidebar.mob-open .brand-sidebar-toggle::after { transform: rotate(180deg); }
  .brand-sidebar a {
    border-left: none; padding: 8px 14px; font-size: 12px;
    border-bottom: 1px solid var(--border);
  }
  .brand-sidebar a:last-child { border-bottom: none; }
  .brand-sidebar a.active { color: var(--accent); background: var(--accent-dim); border-left: none; }
  .brand-main section, .brand-main .pick-card, .brand-main [id] { scroll-margin-top: 110px; }
  .brand-sidebar-heading { padding: 6px 14px; margin-top: 0; }
}

/* ---- INTRO ---- */
.intro { font-size: 1rem; color: var(--muted); line-height: 1.8; margin-bottom: 2.5rem; }
.intro p + p { margin-top: 0.75rem; }
.intro strong { color: var(--text); }
.source-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1rem; }
.source-tag { font-size: 11px; font-family: var(--font-mono); color: var(--dim); background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); padding: 3px 10px; }

/* ---- INFO GRID ---- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 2.5rem; }
.info-card {
  background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1rem 1.1rem; transition: border-color 0.2s, transform 0.2s;
}
.info-card:hover { border-color: var(--accent-border); transform: translateY(-1px); }
.info-card-label { font-size: 10px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); margin-bottom: 0.4rem; }
.info-card-value { font-size: 0.95rem; color: var(--text); font-weight: 500; line-height: 1.4; }
.info-card-value .accent { color: var(--accent); font-family: var(--font-mono); }
.info-card-wide { grid-column: 1 / -1; }
.references { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.references h3 { font-family: var(--font-sans); font-size: 1rem; font-weight: 700; color: var(--dim); margin-bottom: 1rem; }
.references ol { padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; }
.references li { font-size: 0.85rem; color: var(--muted); line-height: 1.6; }
.references li a { word-break: break-all; }

/* ---- PICK CARD ---- */
.pick-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.75rem 2rem; margin-bottom: 1.25rem;
  transition: border-color 0.2s;
}
.pick-card:hover { border-color: var(--accent-border); }
.pick-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.pick-number { font-family: var(--font-mono); font-size: 11px; color: var(--dim); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.25rem; }
.pick-title { font-family: var(--font-sans); font-size: 1.35rem; font-weight: 700; color: var(--text); line-height: 1.25; }
.pick-price-range {
  font-family: var(--font-mono); font-size: 13px; font-weight: 700;
  color: var(--green); background: var(--green-dim); border: 1px solid var(--green-border);
  border-radius: 100px; padding: 4px 12px; white-space: nowrap; flex-shrink: 0;
}
.pick-body { font-size: 0.95rem; color: var(--muted); line-height: 1.75; margin-bottom: 1.25rem; }
.pick-body p + p { margin-top: 0.5rem; }
.pick-brands { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1.25rem; }
.brand-tag {
  font-size: 11px; font-family: var(--font-mono); font-weight: 700;
  color: var(--accent); background: var(--accent-dim); border: 1px solid var(--accent-border);
  border-radius: 100px; padding: 3px 10px; letter-spacing: 0.03em;
}
.pick-tip {
  font-size: 0.88rem; color: var(--muted); line-height: 1.6;
  padding: 0.6rem 0.9rem; background: var(--accent-dim); border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 1rem;
}
.pick-tip strong { color: var(--text); }
.pick-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--accent-text, #282a36);
  font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  padding: 9px 18px; border-radius: var(--radius); text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
}
.pick-cta:hover { opacity: 0.88; text-decoration: none; transform: translateY(-1px); }
.pick-cta svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---- PRODUCT HIGHLIGHTS ---- */
.pick-products { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-bottom: 1.25rem; }
.pick-product {
  background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.75rem 1rem; transition: border-color 0.15s;
}
.pick-product:hover { border-color: var(--accent-border); }
.pick-product-name { font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 0.25rem; }
.pick-product-detail { font-size: 0.78rem; color: var(--dim); font-family: var(--font-mono); }
.pick-product-price { color: var(--green); font-weight: 700; }
.pick-product-regions { font-size: 10px; color: var(--dim); margin-top: 0.25rem; }

/* ---- METHOD SECTION ---- */
.method-section {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.75rem 2rem; margin-bottom: 2rem;
}
.method-title { font-family: var(--font-sans); font-size: 1.15rem; font-weight: 700; margin-bottom: 1rem; }
.method-body { font-size: 0.95rem; color: var(--muted); line-height: 1.75; }
.method-body p + p { margin-top: 0.5rem; }

/* ---- SECTION HEADING ---- */
.section-heading { font-family: var(--font-sans); font-size: 1.3rem; font-weight: 700; margin-bottom: 1.25rem; }

/* ---- BIG CTA ---- */
.big-cta {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--accent); color: var(--accent-text, #282a36);
  font-family: var(--font-mono); font-size: 14px; font-weight: 700;
  padding: 14px 28px; border-radius: var(--radius-lg); text-decoration: none;
  transition: opacity 0.15s, transform 0.15s; margin-bottom: 2.5rem; text-align: center;
}
.big-cta:hover { opacity: 0.88; text-decoration: none; transform: translateY(-1px); }
.big-cta svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---- FAQ ---- */
.faq-section { margin-bottom: 2.5rem; }
.faq-title { font-family: var(--font-sans); font-size: 1.3rem; font-weight: 700; margin-bottom: 1.25rem; }
.faq-item { border-bottom: 1px solid var(--border); padding: 1rem 0; }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q { font-size: 1rem; font-weight: 600; color: var(--text); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-q::after { content: '+'; font-family: var(--font-mono); font-size: 1.2rem; color: var(--accent); flex-shrink: 0; transition: transform 0.2s; }
.faq-item.open .faq-q::after { content: '-'; }
.faq-a { font-size: 0.92rem; color: var(--muted); line-height: 1.75; max-height: 0; overflow: hidden; transition: max-height 0.3s, padding 0.3s; }
.faq-item.open .faq-a { max-height: 300px; padding-top: 0.75rem; }

/* ---- DISCLOSURE ---- */
.disclosure {
  font-size: 11px; color: var(--dim); line-height: 1.6;
  padding: 1rem 1.25rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); margin-bottom: 2rem;
}
.disclosure strong { color: var(--muted); }

/* ---- FOOTER ---- */
footer { position: relative; z-index: 1; background: var(--surface); border-top: 1px solid var(--border); padding: 1.5rem 1.5rem 1.25rem; }
.footer-inner { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }
.footer-top { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: space-between; margin-bottom: 1.25rem; }
.footer-brand .nav-logo { margin-bottom: 0.75rem; }
.footer-brand p { font-size: 12px; color: var(--dim); max-width: 240px; line-height: 1.7; }
.footer-links h4 { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 0.5rem; }
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.footer-links ul li a { font-size: 13px; color: var(--dim); text-decoration: none; transition: color 0.15s; }
.footer-links ul li a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: space-between; align-items: center; font-size: 11px; color: var(--dim); font-family: var(--font-mono); }
.footer-bottom a { color: var(--dim); text-decoration: underline; }
.footer-theme { position: relative; display: flex; align-items: center; gap: 8px; margin-top: 0.75rem; }
.theme-picker-btn { display: flex; align-items: center; gap: 8px; cursor: pointer; background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius); padding: 5px 12px; font-size: 12px; color: var(--muted); font-family: var(--font-mono); transition: border-color 0.15s, color 0.15s; }
.theme-picker-btn:hover { border-color: var(--accent-border); color: var(--text); }
.theme-picker-btn .tp-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.theme-picker-btn svg { width: 8px; height: 8px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; opacity: 0.5; }
.theme-picker-drop { display: none; position: absolute; bottom: calc(100% + 6px); left: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); min-width: 170px; z-index: 200; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.4); }
.theme-picker-drop.open { display: block; }
.theme-picker-opt { display: flex; align-items: center; gap: 10px; padding: 10px 14px; font-size: 13px; color: var(--muted); cursor: pointer; font-family: var(--font-mono); transition: background 0.1s, color 0.1s; border: none; background: none; width: 100%; text-align: left; }
.theme-picker-opt:hover { background: var(--surface2); color: var(--text); }
.theme-picker-opt.active { color: var(--accent); }
.tp-mode { font-size: 9px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--dim); opacity: 0.7; margin-left: auto; }
.theme-picker-opt .tp-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }

/* ---- HAMBURGER ---- */
.nav-theme-row { display: none; align-items: center; gap: 8px; padding: 0.6rem 0; }
.nav-theme-label { font-size: 11px; color: var(--dim); font-family: var(--font-mono); }
.nav-theme-dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; transition: transform 0.15s, border-color 0.15s; }
.nav-theme-dot:hover { transform: scale(1.2); }
.nav-theme-dot.active { border-color: var(--text); }
.nav-hamburger { display: none; flex-direction: column; justify-content: center; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; margin-left: 0.5rem; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--muted); border-radius: 2px; transition: all 0.2s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  body > nav {
    position: fixed; top: 0; left: 0; right: 0;
    transition: transform 0.25s ease;
  }
  body > nav.nav-hidden { transform: translateY(-100%); }
  .page-hero { text-align: center; padding-left: 1rem; max-width: 700px; }
  .page-subtitle { margin: 0 auto; }
  /* sidebar transition now in main 768px block */
}
@media (max-width: 640px) {
  body > nav { padding: 0.75rem 1rem; }
  .nav-links { display: none; flex-direction: column; align-items: flex-start; gap: 0; position: absolute; top: 100%; left: 0; right: 0; z-index: 99; background: var(--bg); border-bottom: 1px solid var(--border); padding: 0.5rem 1rem 1rem; backdrop-filter: blur(16px); }
  .nav-links.open { display: flex; }
  .nav-links a, .nav-links .nav-guides-wrap { padding: 0.6rem 0; font-size: 14px; width: 100%; border-bottom: 1px solid var(--border); }
  .nav-links a:last-of-type { border-bottom: none; }
  .nav-theme-row { display: flex; }
  .nav-links .nav-cta { margin-top: 0.5rem; width: auto; align-self: flex-start; border-bottom: none; padding: 10px 24px; font-size: 14px; }
  .nav-hamburger { display: flex; }
  .pick-card { padding: 1.25rem; }
  .pick-header { flex-direction: column; }
  .method-section { padding: 1.25rem; }
  .info-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
  .info-grid { grid-template-columns: 1fr; }
}
/* ---- NAV GUIDES DROPDOWN ---- */
.nav-guides-wrap { position: relative; }
.nav-guides-drop {
  display: none; position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1rem; min-width: 540px; z-index: 200;
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  grid-template-columns: 1fr 1fr 1fr; gap: 0.75rem;
}
.nav-guides-drop.open { display: grid; }
.nav-guides-col { display: flex; flex-direction: column; gap: 2px; }
.nav-guides-heading {
  font-size: 9px; font-family: var(--font-mono); text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--dim); font-weight: 700;
  padding: 4px 8px; margin-bottom: 2px;
}
.nav-guides-drop a {
  font-size: 12px; color: var(--muted); text-decoration: none;
  padding: 4px 8px; border-radius: var(--radius); transition: background 0.1s, color 0.1s;
  white-space: nowrap;
}
.nav-guides-drop a:hover { background: var(--surface2); color: var(--text); text-decoration: none; }
.nav-guides-all {
  grid-column: 1 / -1; text-align: center; padding: 8px !important;
  margin-top: 0.5rem; border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 11px !important; font-weight: 700;
  color: var(--accent) !important;
}
@media (max-width: 640px) {
  .nav-guides-drop { display: none !important; }
  .nav-guides-wrap > a svg { display: none; }
  .nav-guides-wrap > a { border-bottom: none !important; padding: 0; }
}

/* Featured deals — card grid */
.featured-deals { margin-top: 2rem; padding: 1.5rem 1.5rem 0; border-top: 2px solid var(--border); max-width: 1000px; margin-left: auto; margin-right: auto; }
.featured-deals-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.featured-deals-title { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; display: flex; align-items: center; gap: 8px; }
.featured-deals-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green, #4ade80); animation: fdpulse 2s infinite; }
@keyframes fdpulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.featured-deals-link { font-family: var(--font-mono); font-size: 11px; color: var(--accent); text-decoration: none; }
.featured-deals-link:hover { text-decoration: underline; }
.fd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 1200px; margin: 0 auto; }
@media (max-width: 768px) { .fd-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .fd-grid { grid-template-columns: 1fr; } }
.fd-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s; display: flex; flex-direction: column; }
.fd-card:hover { border-color: var(--accent-border); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.fd-card-img { width: 100%; aspect-ratio: 4/3; background: var(--surface2); display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid var(--border); position: relative; }
.fd-card-img img { width: 100%; height: 100%; object-fit: cover; }
.fd-card-img .fd-placeholder { color: var(--dim); }
.fd-card-badge { position: absolute; top: 6px; right: 6px; font-size: 10px; font-weight: 700; background: #15803d; color: #fff; border-radius: var(--radius); padding: 2px 7px; font-family: var(--font-mono); }
.fd-card-body { padding: 0.6rem 0.7rem; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.fd-card-material { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.fd-card-name { font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fd-card-meta { font-size: 10px; color: var(--dim); }
.fd-card-price { margin-top: auto; padding-top: 6px; display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.fd-card-ppkg { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--green, #4ade80); }
.fd-card-total { font-size: 10px; color: var(--dim); }
.fd-card-buy { display: block; text-align: center; font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--accent-text, #fff); background: var(--accent); padding: 7px; border-top: 1px solid var(--border); text-decoration: none; transition: opacity 0.15s; }
.fd-card-buy:hover { opacity: 0.85; text-decoration: none; }
.fd-none { font-size: 11px; color: var(--dim); padding: 0.5rem 0; }
