/* ============================================================
   Nano Theme — Design System v2 (Premium)
   Dark mode · aurora mesh · gradient-border glass · fluid type
   Loaded after Tailwind CDN. Class names are preserved from v1
   so every existing page upgrades automatically.
   ============================================================ */

:root {
  /* Backgrounds */
  --bg-primary:   #05070F;
  --bg-secondary: #0B0F22;
  --bg-gradient:  #16112E;

  /* Accents */
  --purple:     #7C5CFF;
  --purple-2:   #9D6CFF;
  --blue:       #4F8DFF;
  --light-blue: #63B3FF;

  /* Text */
  --text-heading:   #FFFFFF;
  --text-paragraph: #AEB7CE;
  --text-muted:     #7A839B;
  --text-label:     #C9D2E8;

  /* Cards / surfaces */
  --card-bg:     rgba(255, 255, 255, 0.045);
  --card-border: rgba(255, 255, 255, 0.09);
  --card-shadow: rgba(0, 0, 0, 0.45);

  /* Gradients */
  --grad-heading: linear-gradient(100deg, #C4B5FD 0%, #9D6CFF 40%, #4F8DFF 100%);
  --grad-button:  linear-gradient(135deg, #8B6BFF, #4F8DFF);
  --grad-page:    radial-gradient(1200px 700px at 15% -10%, rgba(124,92,255,0.20), transparent 60%),
                  radial-gradient(1000px 600px at 100% 0%, rgba(79,141,255,0.16), transparent 55%),
                  linear-gradient(180deg, #05070F 0%, #080B18 60%, #05070F 100%);

  --section-space: 130px;
  --ring: 0 0 0 3px rgba(124, 92, 255, 0.28);
  --font-display: "Sora", "Google Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { scroll-behavior: smooth; }
html { scroll-padding-top: 90px; }

html, body {
  background: var(--bg-primary);
  color: var(--text-paragraph);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  color-scheme: dark; /* native dropdowns, date pickers, scrollbars render dark */
}

body {
  background: var(--grad-page);
  background-attachment: fixed;
  min-height: 100vh;
  position: relative;
}

/* Fine grain overlay — adds a premium, non-flat texture */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }

/* ---------------- Typography ---------------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
h1 { letter-spacing: -0.035em; }
p { color: var(--text-paragraph); }
.text-muted { color: var(--text-muted); }
.text-label { color: var(--text-label); }
.text-para  { color: var(--text-paragraph); }
.font-display { font-family: var(--font-display); }

/* Fluid display sizing for hero-scale headings */
.display-1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.04em; }
.display-2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.03em; }

/* Gradient highlight text */
.gradient-text {
  background: var(--grad-heading);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Eyebrow label */
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.72rem;
  font-weight: 600; color: var(--purple-2);
}

/* ---------------- Section spacing ---------------- */
.section { padding-top: 72px; padding-bottom: 72px; }
@media (min-width: 1024px) {
  .section { padding-top: var(--section-space); padding-bottom: var(--section-space); }
}

/* ---------------- Buttons (pill, premium) ---------------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: 9999px; font-weight: 600; padding: .72rem 1.6rem; font-size: .95rem;
  transition: transform .18s cubic-bezier(.2,.7,.2,1), box-shadow .18s ease, background .18s ease, border-color .18s ease;
  cursor: pointer; white-space: nowrap; border: 1px solid transparent; overflow: hidden;
  letter-spacing: -0.01em;
}
.btn:active { transform: translateY(1px) scale(.99); }

/* Shine sweep */
.btn::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-18deg); transition: left .6s ease;
}
.btn:hover::after { left: 130%; }

.btn-primary {
  background: var(--grad-button); color: #fff;
  box-shadow: 0 10px 30px -8px rgba(124, 92, 255, 0.6), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover { box-shadow: 0 16px 40px -8px rgba(124, 92, 255, 0.75), inset 0 1px 0 rgba(255,255,255,0.3); transform: translateY(-2px); }

.btn-ghost {
  background: rgba(255,255,255,0.05); color: var(--text-label);
  border-color: var(--card-border); backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }

.btn-outline {
  background: transparent; color: var(--text-label);
  border-color: rgba(255,255,255,0.16);
}
.btn-outline:hover { border-color: var(--purple-2); color: #fff; box-shadow: var(--ring); }

.btn-danger {
  background: linear-gradient(135deg, #F43F5E, #E11D48); color: #fff;
  box-shadow: 0 10px 30px -8px rgba(244, 63, 94, 0.6), inset 0 1px 0 rgba(255,255,255,0.22);
}
.btn-danger:hover { box-shadow: 0 16px 40px -8px rgba(244, 63, 94, 0.75); transform: translateY(-2px); }

.btn-sm { padding: .48rem 1.05rem; font-size: .82rem; }
.btn-lg { padding: .95rem 2.1rem; font-size: 1.02rem; }

/* Buttons pinned inside an input pill stay vertically centered and never
   lift on hover (the lift transform would override their centering). */
.btn-pin, .btn-pin:hover, .btn-pin:active { transform: translateY(-50%) !important; }

/* Icon-only circular action button (42x42) */
.btn-icon { width: 42px; height: 42px; padding: 0; border-radius: 9999px; flex-shrink: 0; }
.btn-icon svg { width: 18px; height: 18px; }
.btn-icon::after { content: none; } /* no shine sweep on tiny icon buttons */
/* Spacing between action icons in table cells */
.tbl td .btn-icon + form, .tbl td form.inline { margin-left: .4rem; }

/* ---------------- Scroll-to-top button ---------------- */
#scroll-top {
  position: fixed; bottom: 24px; right: 24px; z-index: 9980;
  width: 46px; height: 46px; border-radius: 9999px;
  background: var(--grad-button); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 32px -8px rgba(124,92,255,.7), inset 0 1px 0 rgba(255,255,255,.25);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.9);
  transition: opacity .25s ease, transform .25s cubic-bezier(.2,.7,.2,1), visibility .25s;
}
#scroll-top.show { opacity: 1; visibility: visible; transform: none; }
#scroll-top:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 18px 40px -8px rgba(124,92,255,.85); }
#scroll-top:active { transform: translateY(0) scale(.96); }
@media (max-width: 640px) { #scroll-top { bottom: 18px; right: 18px; width: 42px; height: 42px; } }

/* ---------------- Flash toasts (auto-dismiss) ---------------- */
#flash-stack {
  position: fixed; top: 84px; right: 18px; z-index: 9990;
  display: flex; flex-direction: column; gap: .6rem;
  width: min(360px, calc(100vw - 36px)); pointer-events: none;
}
.flash-msg {
  pointer-events: auto; display: flex; align-items: center; gap: .7rem;
  padding: .8rem 1rem; border-radius: 1rem; border: 1px solid; font-size: .9rem; font-weight: 500;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 48px -20px rgba(0,0,0,.75);
  animation: flash-in .35s cubic-bezier(.2,.7,.2,1);
}
@keyframes flash-in { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }
.flash-msg.flash-hide { animation: flash-out .35s ease forwards; }
@keyframes flash-out { to { opacity: 0; transform: translateX(36px); } }
.flash-ic {
  width: 1.5rem; height: 1.5rem; border-radius: 9999px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .8rem; background: rgba(255,255,255,.16);
}
.flash-text { flex: 1; }
.flash-close {
  flex-shrink: 0; opacity: .55; font-size: 1.25rem; line-height: 1;
  background: none; border: none; color: inherit; cursor: pointer; padding: 0 .1rem;
}
.flash-close:hover { opacity: 1; }

/* ---------------- Confirm modal ---------------- */
.nano-modal-overlay {
  position: fixed; inset: 0; z-index: 9998; display: flex; align-items: center; justify-content: center;
  padding: 1.25rem; background: rgba(3, 5, 12, 0.66); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .2s ease;
}
.nano-modal-overlay.show { opacity: 1; }
.nano-modal {
  width: 100%; max-width: 400px; padding: 1.75rem; text-align: center;
  transform: translateY(12px) scale(.96); transition: transform .22s cubic-bezier(.2,.7,.2,1);
}
.nano-modal-overlay.show .nano-modal { transform: none; }
.nano-modal .nm-icon {
  width: 3.5rem; height: 3.5rem; border-radius: 1rem; margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(244,63,94,0.14); border: 1px solid rgba(244,63,94,0.3); color: #fb7185;
}
.nano-modal h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.nano-modal p { color: var(--text-paragraph); font-size: .92rem; margin-bottom: 1.5rem; }
.nano-modal .nm-actions { display: flex; gap: .6rem; }
.nano-modal .nm-actions .btn { flex: 1; }

/* ---------------- Cards (gradient-border glass) ---------------- */
.card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.02));
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06) inset, 0 24px 50px -28px var(--card-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
/* Soft gradient ring that appears on hover */
.card-hover { transition: transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s ease, border-color .28s ease; }
.card-hover::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(157,108,255,0.7), rgba(79,141,255,0.5), transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .28s ease; pointer-events: none;
}
.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.1) inset, 0 40px 70px -30px rgba(0,0,0,0.75), 0 0 40px -12px rgba(124,92,255,0.4);
}
.card-hover:hover::before { opacity: 1; }

/* Icon badge with gradient + glow */
.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: 1.05rem;
  background: var(--grad-button); color: #fff; font-size: 1.4rem; font-weight: 700;
  box-shadow: 0 10px 26px -8px rgba(124,92,255,0.6), inset 0 1px 0 rgba(255,255,255,0.35);
}

/* Segmented pill tabs */
.tab-pill {
  padding: .5rem 1.1rem; border-radius: 9999px; font-size: .85rem; font-weight: 600;
  color: var(--text-muted); white-space: nowrap; transition: all .18s ease; cursor: pointer;
  border: none; background: transparent;
}
.tab-pill:hover { color: #fff; }
.tab-pill.tab-active { background: var(--grad-button); color: #fff !important; box-shadow: 0 8px 20px -8px rgba(124,92,255,.6); }

/* Chips / badges */
.chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .26rem .72rem; border-radius: 9999px; font-size: .72rem; font-weight: 600;
  background: rgba(255,255,255,0.06); border: 1px solid var(--card-border); color: var(--text-label);
  backdrop-filter: blur(6px); letter-spacing: .01em;
}
.chip-accent { background: rgba(124,92,255,0.16); border-color: rgba(124,92,255,0.4); color: #cbb8ff; }
.chip-green  { background: rgba(16,185,129,0.15); border-color: rgba(16,185,129,0.35); color: #6ee7b7; }
.chip-blue   { background: rgba(79,141,255,0.15); border-color: rgba(79,141,255,0.35); color: #93c5fd; }

/* Badges overlaid on product/cover images: dark glassy backdrop so text
   stays readable on light or busy images. */
.img-badge { background: rgba(8, 10, 20, 0.72) !important; border-color: rgba(255,255,255,0.16); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.img-badge.is-accent { border-color: rgba(157,108,255,0.55); color: #d6c7ff; }
.img-badge.is-green  { border-color: rgba(16,185,129,0.6); color: #86efac; }

/* Inputs */
.input {
  width: 100%; border-radius: 9999px; padding: .74rem 1.15rem;
  background: rgba(255,255,255,0.045); border: 1px solid var(--card-border);
  color: #fff; outline: none; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
  font-size: .95rem;
}
.input:focus { border-color: var(--purple-2); box-shadow: var(--ring); background: rgba(255,255,255,0.06); }
.input::placeholder { color: var(--text-muted); }
textarea.input, .input-square { border-radius: 1.1rem; }
select.input { border-radius: 9999px; color-scheme: dark; }
/* Dark native dropdown option list (fallback for browsers ignoring color-scheme) */
select option, .input option {
  background: #10142C; color: #fff;
}
select option:checked, .input option:checked { background: #1B1640; }

label.field-label { color: var(--text-label); font-size: .84rem; font-weight: 600; display:block; margin-bottom:.4rem; }

/* Password show/hide toggle (auto-added to every password field by app.js) */
.pw-wrap { position: relative; display: block; }
.pw-input { padding-right: 2.9rem !important; }
.pw-toggle {
  position: absolute; right: .4rem; top: 50%; transform: translateY(-50%);
  width: 2rem; height: 2rem; border-radius: 9999px; border: none; background: transparent;
  color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: color .15s ease, background .15s ease;
}
.pw-toggle:hover { color: #fff; background: rgba(255,255,255,.07); }
.pw-toggle svg { width: 1.15rem; height: 1.15rem; }

/* ---------------- nice-select2 (dark theme) ---------------- */
.nice-select {
  width: 100%; border-radius: 9999px; padding: .74rem 2.4rem .74rem 1.15rem;
  background: rgba(255,255,255,0.045); border: 1px solid var(--card-border);
  color: #fff; font-size: .95rem; line-height: 1.3; height: auto; min-height: 0;
  display: flex; align-items: center; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.nice-select:hover { border-color: rgba(255,255,255,0.2); }
.nice-select.open, .nice-select:focus { border-color: var(--purple-2); box-shadow: var(--ring); background: rgba(255,255,255,0.06); }
.nice-select:after {
  border-bottom: 2px solid var(--text-muted); border-right: 2px solid var(--text-muted);
  width: 7px; height: 7px; right: 1.2rem; margin-top: -5px;
}
.nice-select .list {
  background: #0E1226; border: 1px solid var(--card-border); border-radius: 1rem;
  box-shadow: 0 24px 50px -18px rgba(0,0,0,0.7); backdrop-filter: blur(16px);
  padding: .35rem; margin-top: .5rem; width: 100%;
}
.nice-select .option {
  color: var(--text-label); border-radius: .65rem; padding: .5rem .8rem;
  font-size: .9rem; line-height: 1.4; min-height: 0; list-style: none;
}
.nice-select .option:hover,
.nice-select .option.focus,
.nice-select .option.selected.focus { background: rgba(124,92,255,0.18); color: #fff; }
.nice-select .option.selected { color: #fff; font-weight: 600; }
.nice-select .list::-webkit-scrollbar { width: 8px; }
/* Full-width like the .input it replaces */
.nice-select-wrapper, .nice-select { display: block; }

/* ---------------- Lenis smooth scroll ---------------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* ---------------- Under-development banner ---------------- */
.dev-banner {
  position: relative; overflow: hidden;
  background: linear-gradient(90deg, #7C5CFF, #4F8DFF, #63B3FF, #7C5CFF);
  background-size: 300% 100%;
  animation: devshift 8s linear infinite;
  color: #fff; font-size: .78rem; font-weight: 600; text-align: center;
  padding: .42rem 1rem; letter-spacing: .02em;
}
@keyframes devshift { to { background-position: 300% 0; } }

/* ---------------- Navbar ---------------- */
.navbar {
  background: rgba(7, 9, 20, 0.55);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.navbar.scrolled {
  background: rgba(7, 9, 20, 0.82);
  border-bottom-color: rgba(255,255,255,0.1);
  box-shadow: 0 10px 40px -20px rgba(0,0,0,0.8);
}
.nav-link { position: relative; color: var(--text-label); font-weight: 500; font-size: .93rem; transition: color .18s ease; }
.nav-link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px; border-radius: 2px;
  background: var(--grad-button); transition: right .25s ease;
}
.nav-link:hover, .nav-link.active { color: #fff; }
.nav-link:hover::after, .nav-link.active::after { right: 0; }

/* Dropdown */
.dropdown-menu {
  background: rgba(11, 14, 30, 0.96);
  border: 1px solid var(--card-border);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.7);
  backdrop-filter: blur(18px);
  animation: popin .18s cubic-bezier(.2,.7,.2,1);
}
@keyframes popin { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }

/* Badge (wishlist count) */
.count-badge {
  position: absolute; top: -6px; right: -8px; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 9999px; background: var(--grad-button); color: #fff;
  font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(124,92,255,.7); border: 1.5px solid #05070F;
}

/* ---------------- Aurora blobs & floating shapes ---------------- */
.float-shape { position: absolute; border-radius: 9999px; filter: blur(1px); opacity: .8; animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-22px) rotate(8deg); } }
.blob {
  position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; z-index: 0; pointer-events: none;
  animation: drift 16s ease-in-out infinite;
}
@keyframes drift { 0%,100% { transform: translate(0,0) scale(1); } 33% { transform: translate(30px,-20px) scale(1.08); } 66% { transform: translate(-20px,20px) scale(.96); } }

/* Product image aspect */
.thumb { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.card-hover:hover .thumb { transform: scale(1.05); }

/* Price strikethrough */
.price-old { color: var(--text-muted); text-decoration: line-through; font-weight: 500; }

/* ---------------- Scroll reveal ----------------
   SAFE BY DESIGN: elements are fully visible by default. The entrance
   animation only *plays* when JS adds `.in`; if JS is disabled, an
   observer misfires, or motion is reduced, content simply shows. */
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
/* No fill-mode: the resting state is always the element's default (visible),
   so content can never be stranded hidden. The keyframes only play during
   the brief entrance. */
.js-anim .reveal.in { animation: reveal-in .65s cubic-bezier(.2, .7, .2, 1); }
.js-anim .reveal-d1.in { animation-delay: .07s; }
.js-anim .reveal-d2.in { animation-delay: .14s; }
.js-anim .reveal-d3.in { animation-delay: .21s; }
@media (prefers-reduced-motion: reduce) { .js-anim .reveal.in { animation: none; } }

/* Marquee (trust strip) */
.marquee { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: inline-flex; gap: 3.5rem; align-items: center; white-space: nowrap; animation: marquee 26s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sidebar (account/admin) */
.side-link {
  display: flex; align-items: center; gap: .7rem; padding: .68rem 1rem; border-radius: .9rem;
  color: var(--text-label); font-weight: 500; transition: all .18s ease; position: relative;
}
.side-link:hover { background: rgba(255,255,255,0.05); color: #fff; }
.side-link.active { background: var(--grad-button); color: #fff; box-shadow: 0 12px 26px -10px rgba(124,92,255,0.7); }

/* Tables */
.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); padding: .8rem 1rem; border-bottom: 1px solid var(--card-border); font-weight: 600; }
.tbl td { padding: .9rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.05); color: var(--text-paragraph); font-size: .9rem; }
.tbl tr:hover td { background: rgba(255,255,255,0.025); }

/* Utility */
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--card-border), transparent); }
.link-accent { color: var(--light-blue); transition: color .15s ease; }
.link-accent:hover { color: var(--purple-2); }
.hairline { border-color: var(--card-border) !important; }

/* Prose (blog / legal) */
.prose-dark { color: var(--text-paragraph); line-height: 1.85; font-size: 1.02rem; }
.prose-dark h2 { font-size: 1.6rem; margin: 1.8rem 0 .8rem; }
.prose-dark h3 { font-size: 1.25rem; margin: 1.4rem 0 .6rem; }
.prose-dark p { margin-bottom: 1.1rem; }
.prose-dark ul { list-style: disc; padding-left: 1.4rem; margin-bottom: 1.1rem; }
.prose-dark ol { list-style: decimal; padding-left: 1.4rem; margin-bottom: 1.1rem; }
.prose-dark li { margin-bottom: .4rem; }
.prose-dark a { color: var(--light-blue); text-decoration: underline; text-underline-offset: 3px; }
.prose-dark code { background: rgba(255,255,255,0.08); padding: .12rem .42rem; border-radius: .35rem; font-size: .9em; }
.prose-dark img { border-radius: 1rem; margin: 1.2rem 0; }
.prose-dark blockquote { border-left: 3px solid var(--purple); padding-left: 1.1rem; color: var(--text-muted); font-style: italic; margin: 1.2rem 0; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #7C5CFF, #4F8DFF); border-radius: 9999px; border: 2px solid var(--bg-primary); }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #9D6CFF, #63B3FF); }

/* Selection */
::selection { background: rgba(124,92,255,0.35); color: #fff; }

/* Hide number input spinners */
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Line clamp helpers */
.clamp-1 { display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden; }
.clamp-2 { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.clamp-3 { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
