/* ============================================================
   Cutfold — Notion Templates
   Liquid glass + soft gradient edition
   ============================================================ */
:root {
  --bg: #fbfbfc;
  --ink: #0b0b0b;
  --ink-2: #4a4a4a;
  --muted: #8a8a8a;
  --line: rgba(0,0,0,.07);
  --line-2: rgba(0,0,0,.12);
  --surface: rgba(0,0,0,.045);
  --surface-2: rgba(0,0,0,.08);
  --radius: 14px;
  --radius-sm: 8px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* glass */
  --glass-bg: rgba(255,255,255,.55);
  --glass-bg-strong: rgba(255,255,255,.72);
  --glass-border: rgba(0,0,0,.07);
  --glass-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 1px 2px rgba(0,0,0,.04);

  /* card tones (gradients) */
  --tone-gray:   linear-gradient(170deg, #f7f7f8 0%, #e9e9ec 100%);
  --tone-dark:   radial-gradient(110% 80% at 15% 0%, #34353c 0%, #17171a 55%, #0c0c0d 100%);
  --tone-sand:   linear-gradient(160deg, #f8f4ec 0%, #eee4d3 100%);
  --tone-mint:   linear-gradient(160deg, #ecf5f0 0%, #d6e8de 100%);
  --tone-sky:    linear-gradient(160deg, #edf1f9 0%, #d5dff0 100%);
  --tone-rose:   linear-gradient(160deg, #faf0ee 0%, #efd9d3 100%);
  --tone-lilac:  linear-gradient(160deg, #f2eefa 0%, #ded5f1 100%);
  --tone-aurora: linear-gradient(135deg, #fde4ee 0%, #e4ddfb 38%, #d3e8fb 72%, #def7ee 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
  position: relative;
}
/* Ambient gradient blobs behind everything — this is what the glass refracts */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(45% 35% at 8% 0%,   rgba(255, 190, 215, .22), transparent 70%),
    radial-gradient(40% 35% at 95% 8%,  rgba(180, 200, 255, .22), transparent 70%),
    radial-gradient(45% 40% at 60% 100%, rgba(190, 245, 220, .2), transparent 70%),
    radial-gradient(30% 30% at 30% 60%, rgba(230, 215, 255, .18), transparent 70%);
  filter: blur(70px);
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.strong { font-weight: 600; }

/* ---------- Lucide icons ---------- */
.lucide, [data-lucide] { width: 1em; height: 1em; display: inline-block; vertical-align: -.15em; flex: none; }
.icon-btn .lucide { width: 14px; height: 14px; }
.sponsor-icon .lucide { width: 15px; height: 15px; color: #fff; }
.list-icon .lucide { width: 16px; height: 16px; }
.list-icon.tone-dark .lucide { color: #fff; }
.arrow .lucide { width: 14px; height: 14px; }
.save .lucide { width: 12px; height: 12px; }
.save.on .lucide, .round-btn.on .lucide { fill: currentColor; }
.btn .lucide { width: 14px; height: 14px; }
.widget-foot .lucide { width: 14px; height: 14px; }
.m-emoji .lucide { width: 100%; height: 100%; color: var(--m-ink); }
.detail-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--tone-gray); border: 1px solid var(--line); margin-bottom: 12px; }
.detail-icon .lucide { width: 22px; height: 22px; }

/* ---------- Glass primitive ---------- */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(1.7);
  backdrop-filter: blur(18px) saturate(1.7);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 999px; padding: 8px 14px; font-weight: 500; font-size: 13px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(.97); }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 12px 20px; font-size: 14px; }
.btn-dark {
  background: linear-gradient(180deg, #2a2a2e, #0b0b0b); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 1px 2px rgba(0,0,0,.12);
}
.btn-dark:hover { background: linear-gradient(180deg, #38383d, #161618); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #f0f0f0; }
.btn-glass {
  background: var(--glass-bg-strong); color: var(--ink);
  -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6);
  border-color: var(--glass-border); box-shadow: var(--glass-shadow);
}
.btn-glass:hover { background: rgba(255,255,255,.9); }
.btn-outline { background: rgba(255,255,255,.6); border-color: var(--line-2); }
.btn-outline:hover { border-color: #bdbdbd; }
.btn-ghost { background: var(--surface); }
.btn-ghost:hover { background: var(--surface-2); }

/* ---------- Shell (3 kolom) ---------- */
.shell {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 250px;
  min-height: 100vh;
}
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  padding: 14px 12px; scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { display: none; }
.sidebar-left { display: flex; flex-direction: column; }
.sidebar-right { padding-top: 84px; }

/* ---------- Left sidebar ---------- */
.sidebar-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; }
.logo {
  width: 26px; height: 26px; border-radius: 7px; color: #fff;
  background: linear-gradient(180deg, #2a2a2e, #0b0b0b);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
}

.nav-group { margin-bottom: 26px; }
.nav-label { color: var(--muted); font-size: 12px; margin-bottom: 8px; }
.nav-link { display: flex; align-items: center; gap: 6px; padding: 3px 0; color: var(--ink-2); }
.nav-link:hover { color: var(--ink); }
.nav-link.active { color: var(--ink); font-weight: 500; }
.nav-link .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); display: none; }
.nav-link.active .dot { display: block; }

.sidebar-bottom { margin-top: auto; padding-top: 30px; }
.featured-card { display: block; border-radius: 12px; padding: 10px 12px; margin-bottom: 22px; transition: background .15s; }
.featured-card:hover { background: rgba(255,255,255,.85); }
.sponsor { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.sponsor-icon {
  width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(180deg, #2a2a2e, #0b0b0b);
  display: grid; place-items: center; font-size: 15px;
}
.sponsor-name { font-weight: 500; }
.sponsor-tag { color: var(--muted); font-size: 12px; }


.footer { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: 4px; }
.footer-links { display: flex; gap: 10px; }
.footer-links a:hover { color: var(--ink); }

/* ---------- Main ---------- */
.main { padding: 14px 14px 60px; }
.main-header { display: flex; align-items: center; justify-content: space-between; min-height: 26px; }
.title-row { display: flex; align-items: baseline; gap: 10px; }
h1 { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.subtitle { color: var(--muted); }
.header-actions { display: flex; gap: 6px; }
.icon-btn {
  width: 26px; height: 26px; border-radius: 7px; color: #fff;
  background: linear-gradient(180deg, #2a2a2e, #0b0b0b);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
  display: grid; place-items: center;
}
.icon-btn:hover { background: #262626; }
.icon-btn-plus { background: var(--glass-bg-strong); color: var(--muted); border: 1px solid var(--glass-border); font-size: 16px; box-shadow: var(--glass-shadow); }
.icon-btn-plus:hover { background: #fff; color: var(--ink); }

/* Sticky filter bar: transparan di atas, jadi toolbar kaca saat di-scroll */
.filters {
  position: sticky; top: 8px; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 14px 0 12px; padding: 6px; border-radius: 999px;
  border: 1px solid transparent;
  transition: background .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.filters.stuck {
  background: rgba(255,255,255,.62);
  -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
  border-color: var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 2px rgba(0,0,0,.04), 0 6px 16px -10px rgba(0,0,0,.12);
}
.pills { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.pills::-webkit-scrollbar { display: none; }
.pill {
  flex: none; border-radius: 999px; padding: 6px 12px; font-size: 12.5px; cursor: pointer;
  color: var(--ink-2); background: rgba(255,255,255,.75); border: 1px solid rgba(0,0,0,.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
  transition: background .15s, color .15s, transform .15s, border-color .15s;
}
.pill:hover { background: #fff; color: var(--ink); border-color: rgba(0,0,0,.12); }
.pill.active {
  background: linear-gradient(180deg, #2a2a2e, #0b0b0b); color: #fff; border-color: transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
}
/* Custom dropdown (sort) */
.dropdown { position: relative; flex: none; }
.dropdown-btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 1px solid rgba(0,0,0,.06); background: rgba(255,255,255,.75); color: var(--ink);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
  border-radius: 999px; padding: 6px 10px 6px 12px; font-size: 12.5px;
  transition: background .15s, border-color .15s;
}
.dropdown-btn:hover, .dropdown.open .dropdown-btn { background: #fff; border-color: rgba(0,0,0,.12); }
.dropdown-btn .lucide { width: 13px; height: 13px; color: var(--muted); transition: transform .15s; }
.dropdown.open .dropdown-btn .lucide { transform: rotate(180deg); }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 180px; z-index: 20;
  padding: 5px; border-radius: 12px;
  background: rgba(255,255,255,.78);
  -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 2px rgba(0,0,0,.05), 0 10px 24px -12px rgba(0,0,0,.18);
  animation: dd .14s ease;
}
@keyframes dd { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.dropdown-menu[hidden] { display: none; }
.dropdown-menu li {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px 7px 8px; border-radius: 8px;
  font-size: 12.5px; color: var(--ink-2); cursor: pointer; white-space: nowrap;
}
.dropdown-menu li:hover { background: rgba(0,0,0,.05); color: var(--ink); }
.dropdown-menu li .lucide { width: 13px; height: 13px; visibility: hidden; }
.dropdown-menu li[aria-selected="true"] { color: var(--ink); font-weight: 500; }
.dropdown-menu li[aria-selected="true"] .lucide { visibility: visible; }

/* ---------- Grid & cards ---------- */
.grid { columns: 2; column-gap: 12px; }
@media (min-width: 1200px) { .grid { columns: 3; } }
.card { display: block; break-inside: avoid; margin-bottom: 22px; }
.card-frame {
  position: relative; border-radius: var(--radius); background: var(--tone-gray);
  border: 1px solid var(--line); overflow: hidden; container-type: inline-size;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  transition: box-shadow .25s ease, transform .25s ease;
}
.card:hover .card-frame { box-shadow: 0 10px 24px -16px rgba(0,0,0,.22), 0 1px 2px rgba(0,0,0,.04); transform: translateY(-2px); }
/* glossy highlight on the frame */
.card-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.35), transparent 40%);
  mix-blend-mode: soft-light;
}
/* With a real screenshot the card height follows the image, so the gap is identical
   on all four sides. The CSS mock fallback still needs a fixed ratio. */
.card-visual { display: grid; place-items: center; padding: 7%; }
.card-visual:has(.mock) { aspect-ratio: var(--ratio, 4/3); }
.card-visual img {
  display: block; width: 100%; max-width: 620px; height: auto; border-radius: 10px;
  border: 1px solid rgba(0,0,0,.07);
  box-shadow: 0 12px 28px -18px rgba(0,0,0,.35), 0 1px 2px rgba(0,0,0,.06);
  transition: transform .3s ease;
}
.card:hover .card-visual img { transform: translateY(-3px); }
/* frame variants: window peeking from the bottom / right, like a real screenshot crop */
.card-visual.frame-bottom { align-items: end; padding: 13% 8% 0; }
.card-visual.frame-bottom .mock, .card-visual.frame-bottom img { border-radius: 10px 10px 0 0; transform: translateY(6%); }
.card:hover .card-visual.frame-bottom .mock, .card:hover .card-visual.frame-bottom img { transform: translateY(1%); }

.card-visual.frame-right { justify-items: end; padding: 9% 0 9% 13%; }
.card-visual.frame-right .mock, .card-visual.frame-right img { border-radius: 10px 0 0 10px; transform: translateX(8%); }
.card:hover .card-visual.frame-right .mock, .card:hover .card-visual.frame-right img { transform: translateX(3%); }


.tone-gray   { background: var(--tone-gray); }
.tone-dark   { background: var(--tone-dark); border-color: rgba(0,0,0,.6) !important; }
.tone-sand   { background: var(--tone-sand); }
.tone-mint   { background: var(--tone-mint); }
.tone-sky    { background: var(--tone-sky); }
.tone-rose   { background: var(--tone-rose); }
.tone-lilac  { background: var(--tone-lilac); }
.tone-aurora { background: var(--tone-aurora); }

/* chips on cards: liquid glass */
.price, .arrow, .save { position: absolute; z-index: 2; }
.price, .arrow, .save {
  background: rgba(255,255,255,.55); color: var(--ink);
  -webkit-backdrop-filter: blur(14px) saturate(1.8); backdrop-filter: blur(14px) saturate(1.8);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 1px 3px -1px rgba(0,0,0,.15);
}
.tone-dark .price, .tone-dark .arrow, .tone-dark .save {
  background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25);
}
.price { left: 10px; bottom: 10px; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 500; }
.price.free { background: linear-gradient(180deg, #2a2a2e, #0b0b0b); color: #fff; border-color: transparent; }
.arrow {
  right: 10px; bottom: 10px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: 13px; transition: transform .2s;
}
.card:hover .arrow { transform: translate(1px, -1px) scale(1.05); }
.save {
  top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; opacity: 0; transition: opacity .15s;
}
.card:hover .save { opacity: 1; }

.card-meta { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 2px 0; gap: 8px; }
.card-name { font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-cat { color: var(--muted); font-size: 12px; }
.empty { padding: 40px 0; text-align: center; }

/* Promo card (like the "Sponsor" card on recent.design) */
.promo .card-frame { padding: 18px; min-height: 230px; display: flex; flex-direction: column; gap: 10px; }
.promo-tag {
  align-self: flex-start; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 500;
  background: rgba(255,255,255,.55); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.promo h3 {
  font-size: clamp(20px, 8cqw, 30px); font-weight: 700; letter-spacing: -.03em; line-height: 1.08; margin-top: auto;
}
.promo h3 em {
  font-style: normal;
  background: linear-gradient(90deg, #8b5cf6, #ec4899 50%, #0ea5e9); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.promo p { color: var(--ink-2); }
.promo .btn { align-self: flex-start; margin-top: 6px; }

/* ---------- Mini Notion window (mock) ---------- */
.mock {
  --m-bg: #fff; --m-ink: #0b0b0b; --m-line: #e8e8e8; --m-soft: #f1f1f1; --m-accent: #0b0b0b; --m-chrome: #f6f6f7;
  width: 100%; max-width: 420px; background: var(--m-bg); border-radius: 10px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 12px 28px -18px rgba(0,0,0,.28), 0 1px 2px rgba(0,0,0,.05);
  transition: transform .3s ease;
  border: 1px solid rgba(0,0,0,.06);
}
.card:hover .mock { transform: translateY(-3px); }
.tone-dark .mock { --m-bg: #1c1c1f; --m-ink: #f2f2f2; --m-line: #33343a; --m-soft: #2a2b30; --m-accent: #f2f2f2; --m-chrome: #232428; border-color: rgba(255,255,255,.08); box-shadow: 0 16px 36px -20px rgba(0,0,0,.7); }
.m-chrome { height: 6cqw; max-height: 22px; min-height: 12px; background: var(--m-chrome); border-bottom: 1px solid var(--m-line); display: flex; align-items: center; gap: 4px; padding: 0 8px; }
.m-chrome i { width: 6px; height: 6px; border-radius: 50%; background: #fe5f57; }
.m-chrome i:nth-child(2) { background: #febc2e; }
.m-chrome i:nth-child(3) { background: #28c840; }
.m-page { padding: 8%; display: flex; flex-direction: column; gap: 8%; }
.mock i, .mock b { display: block; }
.m-head { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 6%; row-gap: 5%; align-items: center; }
.m-emoji { grid-row: 1 / 3; width: clamp(12px, 6cqw, 26px); height: clamp(12px, 6cqw, 26px); display: grid; place-items: center; }
.m-title { height: 6px; width: 60%; border-radius: 3px; background: var(--m-ink); }
.m-sub { height: 4px; width: 35%; border-radius: 2px; background: var(--m-line); }

.m-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6%; }
.m-col { display: flex; flex-direction: column; gap: 6px; }
.m-colhead { height: 4px; width: 55%; border-radius: 2px; background: var(--m-accent); }
.m-card { height: 12px; border-radius: 3px; background: var(--m-soft); border: 1px solid var(--m-line); }

.m-table { display: flex; flex-direction: column; }
.m-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 6px; padding: 5px 0; border-bottom: 1px solid var(--m-line); }
.m-row i { height: 4px; border-radius: 2px; background: var(--m-soft); }
.m-row i:first-child { background: var(--m-line); }
.m-row-head i { background: var(--m-ink) !important; opacity: .5; }
.m-row:last-child { border-bottom: 0; }

.m-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.m-cal i { aspect-ratio: 1; border-radius: 3px; background: var(--m-soft); border: 1px solid var(--m-line); }
.m-cal i.on { background: var(--m-accent); border-color: var(--m-accent); }

.m-list { display: flex; flex-direction: column; gap: 7px; }
.m-item { display: flex; align-items: center; gap: 8px; }
.m-item b { width: 8px; height: 8px; border-radius: 2px; border: 1.5px solid var(--m-ink); flex: none; }
.m-item b.checked { background: var(--m-ink); }
.m-item i { height: 4px; width: 100%; border-radius: 2px; background: var(--m-soft); }
.m-item:nth-child(2) i { width: 70%; } .m-item:nth-child(4) i { width: 85%; } .m-item:nth-child(6) i { width: 55%; }

.m-dash { display: grid; grid-template-columns: 1fr 1fr; gap: 6%; }
.m-tile { border: 1px solid var(--m-line); border-radius: 5px; padding: 8%; display: flex; flex-direction: column; gap: 5px; }
.m-tile-wide { grid-column: 1 / 3; flex-direction: row; align-items: flex-end; gap: 6%; height: 52px; padding: 8px 10px; }
.m-num { height: 8px; width: 50%; border-radius: 3px; background: var(--m-ink); }
.m-lbl { height: 4px; width: 70%; border-radius: 2px; background: var(--m-soft); }
.m-bar { flex: 1; border-radius: 2px 2px 0 0; background: var(--m-accent); opacity: .85; }

.m-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 6%; }
.m-gitem { display: flex; flex-direction: column; gap: 5px; }
.m-gimg { aspect-ratio: 4/3; border-radius: 4px; background: linear-gradient(135deg, var(--m-soft), var(--m-line)); }
.m-gitem:nth-child(1) .m-gimg { background: linear-gradient(135deg, #fde2e4, #f6c7cf); }
.m-gitem:nth-child(2) .m-gimg { background: linear-gradient(135deg, #dbeafe, #c7d7f5); }
.m-gitem:nth-child(3) .m-gimg { background: linear-gradient(135deg, #dcfce7, #c3e9d0); }
.m-gitem:nth-child(4) .m-gimg { background: linear-gradient(135deg, #ede9fe, #d8cef5); }
.m-gtxt { height: 4px; width: 60%; border-radius: 2px; background: var(--m-line); }

/* ---------- Right sidebar widgets ---------- */
.widget { border-radius: var(--radius); padding: 10px 12px 6px; margin-bottom: 10px; }
.widget-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.chip { background: rgba(255,255,255,.75); border: 1px solid var(--glass-border); border-radius: 999px; padding: 4px 10px; font-size: 12px; color: var(--ink-2); box-shadow: inset 0 1px 0 #fff; }
.chip:hover { color: var(--ink); }
.list li a { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.list li a:hover .list-title { text-decoration: underline; text-underline-offset: 2px; }
.list-icon {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  font-size: 16px; flex: none; border: 1px solid rgba(0,0,0,.05);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.list-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.list-sub { color: var(--muted); font-size: 12px; }
.list-title { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-price { color: var(--muted); font-size: 12px; }
.widget-foot { display: flex; justify-content: space-between; color: var(--muted); padding: 10px 0 6px; border-top: 1px solid var(--line); margin-top: 4px; }
.widget-foot:hover { color: var(--ink); }

/* Aurora dark card */
.card-dark {
  position: relative; overflow: hidden; color: #fff; border-radius: var(--radius); padding: 16px 14px; margin-bottom: 10px;
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(139, 92, 246, .45), transparent 60%),
    radial-gradient(70% 60% at 0% 100%, rgba(236, 72, 153, .3), transparent 60%),
    radial-gradient(60% 50% at 60% 60%, rgba(14, 165, 233, .2), transparent 60%),
    #0b0b0d;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.card-dark-title { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.card-dark p { color: rgba(255,255,255,.7); margin-bottom: 12px; }
.inline-form { display: flex; gap: 6px; }
.inline-form input {
  flex: 1; min-width: 0; border-radius: 999px; color: #fff; padding: 6px 12px; font-size: 12px; outline: none;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}
.inline-form input::placeholder { color: rgba(255,255,255,.55); }
.inline-form input:focus { border-color: rgba(255,255,255,.55); }

.perks li { position: relative; padding: 5px 0 5px 16px; color: var(--ink-2); }
.perks li::before { content: "✓"; position: absolute; left: 0; color: var(--ink); font-weight: 600; }

/* ---------- Detail page ---------- */
.detail { max-width: 900px; margin: 0 auto; padding: 14px 20px 80px; }
.detail-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.back { color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.back:hover { color: var(--ink); }
.detail-hero { display: grid; grid-template-columns: 1fr 280px; gap: 32px; align-items: start; }
.detail-visual {
  container-type: inline-size; position: relative; border-radius: 18px; border: 1px solid var(--line);
  display: grid; place-items: center; padding: 7%; overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.detail-visual:has(.mock) { aspect-ratio: 4/3; }
.detail-visual::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.35), transparent 40%); mix-blend-mode: soft-light;
}
.detail-visual .mock { max-width: 520px; }
.detail-visual img {
  width: 100%; max-width: 100%; height: auto; border-radius: 10px;
  border: 1px solid rgba(0,0,0,.07);
  box-shadow: 0 20px 44px -26px rgba(0,0,0,.4), 0 1px 2px rgba(0,0,0,.06);
}
.detail-buy { position: sticky; top: 20px; border-radius: 18px; padding: 20px; }
.detail-emoji { font-size: 34px; line-height: 1; margin-bottom: 12px; }
.detail h1 { font-size: 22px; letter-spacing: -.02em; line-height: 1.2; }
.detail-tagline { color: var(--ink-2); font-size: 14px; margin: 6px 0 16px; }
.detail-price { font-size: 24px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 12px; }
.detail-price small { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.detail-actions { display: flex; flex-direction: column; gap: 8px; }
.detail-notes { color: var(--muted); font-size: 12px; margin-top: 12px; line-height: 1.6; }
.detail-body { margin-top: 44px; display: grid; grid-template-columns: 1fr 280px; gap: 32px; }
.detail-body h2 { font-size: 15px; font-weight: 600; margin: 0 0 10px; }
.detail-body p { color: var(--ink-2); font-size: 14px; line-height: 1.65; margin-bottom: 26px; }
.features { display: grid; gap: 8px; margin-bottom: 26px; }
.features li { position: relative; padding-left: 20px; color: var(--ink-2); font-size: 14px; }
.features li::before { content: ""; position: absolute; left: 0; top: 7px; width: 8px; height: 8px; border-radius: 2px; background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.steps { display: grid; gap: 12px; border-radius: 14px; padding: 16px; }
.steps li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.steps b { flex: none; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(180deg, #2a2a2e, #0b0b0b); color: #fff; font-size: 11px; display: grid; place-items: center; }
.related { margin-top: 60px; }
.related h2 { font-size: 15px; font-weight: 600; margin-bottom: 14px; }
.related .grid { columns: 3; }
.related .card { margin-bottom: 20px; }

/* ---------- Overlay detail (klik kartu) ---------- */
body.overlay-open { overflow: hidden; }
.overlay {
  position: fixed; top: 0; right: 0; bottom: 0; left: 210px; z-index: 50;
  display: grid; grid-template-columns: 380px minmax(0, 1fr);
  animation: fade .18s ease;
}
.overlay[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.panel {
  background: #fff; border-right: 1px solid var(--line); overflow-y: auto; padding: 14px 20px 30px;
  scrollbar-width: thin; animation: slide .22s ease;
}
@keyframes slide { from { transform: translateX(-12px); opacity: 0; } to { transform: none; opacity: 1; } }
.stage {
  display: grid; place-items: center; padding: 40px; cursor: zoom-out;
  background: rgba(251,251,252,.55);
  -webkit-backdrop-filter: blur(28px) saturate(1.3); backdrop-filter: blur(28px) saturate(1.3);
}
.stage-visual {
  cursor: default; width: min(100%, 980px); padding: 4%; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line); container-type: inline-size; display: grid; place-items: center; position: relative;
  box-shadow: 0 20px 50px -30px rgba(0,0,0,.25), 0 1px 3px rgba(0,0,0,.05);
  animation: pop .25s ease;
}
@keyframes pop { from { transform: scale(.97); opacity: 0; } to { transform: none; opacity: 1; } }

.stage-visual .mock { max-width: 640px; }
.stage-visual .mock:hover { transform: none; }
/* the overlay always shows the whole screenshot, never the "peeking" card crop */
.stage-visual .card-visual,
.stage-visual .card-visual.frame-bottom,
.stage-visual .card-visual.frame-right {
  width: 100%; aspect-ratio: auto; padding: 0; place-items: center;
}
.stage-visual .card-visual img, .stage-visual .mock { transform: none !important; border-radius: 10px; }
.stage-visual img {
  width: 100%; max-width: 100%; height: auto; border-radius: 10px;
  border: 1px solid rgba(0,0,0,.07);
  box-shadow: 0 24px 50px -28px rgba(0,0,0,.45), 0 1px 2px rgba(0,0,0,.06);
}

.round-btn {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid transparent; background: transparent; cursor: pointer;
  display: grid; place-items: center; color: var(--muted); transition: background .12s, color .12s;
}
.round-btn:hover { background: var(--surface); color: var(--ink); }
.round-btn .lucide { width: 16px; height: 16px; }
.panel-top { display: flex; justify-content: space-between; align-items: center; margin: 0 -8px 26px; }
.panel-nav { display: flex; gap: 4px; }
.panel-kicker { font-size: 15px; }
.panel-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.panel h2 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.panel-author { display: flex; align-items: center; gap: 8px; font-size: 14px; margin-bottom: 16px; }
.avatar {
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; color: #fff;
  background: linear-gradient(180deg, #2a2a2e, #0b0b0b);
}
.panel-desc { font-size: 14px; line-height: 1.55; color: var(--ink); margin-bottom: 14px; }
.panel-date { font-size: 13px; margin-bottom: 26px; }
.meta { margin: 0 0 22px; }
.meta > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.meta dt { color: var(--muted); flex: none; }
.meta dd { margin: 0; text-align: right; display: flex; flex-direction: column; gap: 4px; }
.panel-actions { display: flex; flex-direction: column; gap: 8px; }
.panel-notes { font-size: 12px; margin-top: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .shell { grid-template-columns: 190px minmax(0, 1fr) 220px; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .sidebar-left {
    position: sticky; top: 0; z-index: 6; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 14px; padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    background: rgba(251,251,252,.7); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  }
  .sidebar-top { margin: 0; }
  .nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
  .nav-group { display: flex; gap: 4px; margin: 0; }
  .nav-label { display: none; }
  .nav-link { padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.7); border: 1px solid var(--glass-border); white-space: nowrap; }
  .nav-link.active { background: linear-gradient(180deg, #2a2a2e, #0b0b0b); color: #fff; border-color: transparent; }
  .nav-link .dot { display: none !important; }
  .sidebar-bottom { display: none; }
  .sidebar-right { padding: 0 14px 40px; }
  .main { padding-top: 20px; }
  .filters { top: 64px; }
  .overlay { left: 0; grid-template-columns: 1fr; grid-template-rows: auto 1fr; overflow-y: auto; display: block; }
  .stage { padding: 16px; min-height: 0; }
  .stage-visual { width: 100%; }
  .panel { border-right: 0; border-top: 1px solid var(--line); animation: none; }
  .detail-hero, .detail-body { grid-template-columns: 1fr; gap: 24px; }
  .detail-buy { position: static; }
  .related .grid { columns: 2; }
}
@media (max-width: 560px) {
  .grid { columns: 1; }
  .filters { flex-direction: column; align-items: stretch; border-radius: 16px; }
  .subtitle { display: none; }
  .related .grid { columns: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}


/* ---------- Doc page (About / FAQ / Support) ---------- */
.shell-doc { grid-template-columns: 210px minmax(0, 1fr); }
.doc { max-width: 700px; padding: 14px 26px 90px; }
.doc h1 { font-size: 26px; letter-spacing: -.025em; line-height: 1.15; margin-bottom: 10px; }
.doc .lead { color: var(--ink-2); font-size: 15px; line-height: 1.6; margin-bottom: 8px; }
.doc h2 { font-size: 15px; font-weight: 600; margin: 40px 0 12px; scroll-margin-top: 20px; }
.doc p { color: var(--ink-2); font-size: 14px; line-height: 1.65; margin-bottom: 12px; }
.doc ul { display: grid; gap: 9px; margin-bottom: 12px; }
.doc ul li { position: relative; padding-left: 18px; color: var(--ink-2); font-size: 14px; }
.doc ul li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 2px; background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.steps-doc { display: grid; gap: 12px; margin-bottom: 12px; }
.steps-doc li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-2); }
.steps-doc b { flex: none; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(180deg, #2a2a2e, #0b0b0b); color: #fff; font-size: 11px; display: grid; place-items: center; }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 13px 0; font-size: 14px; font-weight: 500; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { color: var(--muted); transition: transform .15s; }
.faq[open] summary span { transform: rotate(45deg); }
.faq p { padding-bottom: 6px; margin-bottom: 8px; }
.doc .contact { margin: 16px 0 8px; }
@media (max-width: 900px) { .shell-doc { grid-template-columns: 1fr; } .doc { padding: 24px 16px 60px; } }
