/* ==========================================================================
   Pliscovery Design System — v2
   Dark-first, bold, tactile. Every interaction gets feedback.
   ========================================================================== */
/* Theme follows the device (system) by default; light is the baseline. Users can pin light/dark. */
:root {
  --brand: #6A4DF5; --brand-2: #F2487A; --brand-3: #FF9F43;
  --grad: linear-gradient(135deg, #FF9F43 0%, #FF5C8A 45%, #7B61FF 100%);
  --r-xl: 32px; --r-l: 24px; --r-m: 18px; --r-s: 12px;
  --font: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --spring: cubic-bezier(.34, 1.56, .64, 1); --ease: cubic-bezier(.22, 1, .36, 1);
  --tab-h: 0px;
  --bg: #F6F6F9; --bg-1: #EEEEF3; --surface: #FFFFFF; --surface-2: #F0F0F5; --surface-3: #E4E4EC;
  --ink: #0B0B12; --ink-2: #555568; --ink-3: #8A8A9C; --line: rgb(11 11 18 / .07); --line-2: rgb(11 11 18 / .12);
  --mint: #0C9A6A; --amber: #B26B00; --red: #D7263D;
  --grad-soft: linear-gradient(135deg, rgb(255 159 67 / .12), rgb(255 92 138 / .10) 45%, rgb(123 97 255 / .14));
  --glass: rgb(246 246 249 / .8);
  --shadow-1: 0 1px 2px rgb(11 11 18 / .04), 0 6px 20px -10px rgb(11 11 18 / .14);
  --shadow-2: 0 2px 6px rgb(11 11 18 / .04), 0 24px 56px -24px rgb(11 11 18 / .26);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0A0A0F; --bg-1: #101018; --surface: #16161F; --surface-2: #1E1E2A; --surface-3: #282836;
  --ink: #F7F7FA; --ink-2: #A3A3B5; --ink-3: #6E6E82; --line: rgb(255 255 255 / .07); --line-2: rgb(255 255 255 / .13);
  --brand: #8C76FF; --brand-2: #FF5C8A; --mint: #2BD9A0; --amber: #FFB547; --red: #FF5470;
  --grad-soft: linear-gradient(135deg, rgb(255 159 67 / .16), rgb(255 92 138 / .14) 45%, rgb(123 97 255 / .18));
  --glass: rgb(16 16 24 / .72);
  --shadow-1: 0 1px 0 rgb(255 255 255 / .04) inset, 0 8px 24px -12px rgb(0 0 0 / .6);
  --shadow-2: 0 1px 0 rgb(255 255 255 / .06) inset, 0 24px 60px -20px rgb(0 0 0 / .75);
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #0A0A0F; --bg-1: #101018; --surface: #16161F; --surface-2: #1E1E2A; --surface-3: #282836;
  --ink: #F7F7FA; --ink-2: #A3A3B5; --ink-3: #6E6E82; --line: rgb(255 255 255 / .07); --line-2: rgb(255 255 255 / .13);
  --brand: #8C76FF; --brand-2: #FF5C8A; --mint: #2BD9A0; --amber: #FFB547; --red: #FF5470;
  --grad-soft: linear-gradient(135deg, rgb(255 159 67 / .16), rgb(255 92 138 / .14) 45%, rgb(123 97 255 / .18));
  --glass: rgb(16 16 24 / .72);
  --shadow-1: 0 1px 0 rgb(255 255 255 / .04) inset, 0 8px 24px -12px rgb(0 0 0 / .6);
  --shadow-2: 0 1px 0 rgb(255 255 255 / .06) inset, 0 24px 60px -20px rgb(0 0 0 / .75);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--font); letter-spacing: -.011em; min-height: 100dvh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
main { flex: 1; outline: none; padding-bottom: calc(var(--tab-h) + 24px); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
svg.i { width: 22px; height: 22px; flex: none; }
svg.i.s { width: 18px; height: 18px; }
svg.i.l { width: 26px; height: 26px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 10px; }
::selection { background: rgb(123 97 255 / .35); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 10px 14px; border-radius: 10px; z-index: 50; }
.skip:focus { left: 8px; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-2); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Ambient background ---------- */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient::before, .ambient::after { content: ""; position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; filter: blur(90px); opacity: .22; }
.ambient::before { background: radial-gradient(circle, #7B61FF, transparent 60%); top: -40vmax; right: -25vmax; animation: drift 24s ease-in-out infinite alternate; }
.ambient::after { background: radial-gradient(circle, #FF5C8A, transparent 60%); top: -30vmax; left: -35vmax; opacity: .14; animation: drift 30s ease-in-out infinite alternate-reverse; }
.ambient::before, .ambient::after { opacity: .10; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ambient::before { opacity: .22; } :root:not([data-theme="light"]) .ambient::after { opacity: .14; } }
:root[data-theme="dark"] .ambient::before { opacity: .22; } :root[data-theme="dark"] .ambient::after { opacity: .14; }

/* ---------- Top bar ---------- */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 16px; padding: 12px max(16px, calc((100% - 1180px) / 2)); background: var(--glass); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 19px; letter-spacing: -.03em; }
.brand img { width: 30px; height: 30px; border-radius: 9px; }
.top .tabs-desk { display: flex; gap: 2px; margin-left: 18px; padding: 4px; background: var(--surface); border-radius: 999px; border: 1px solid var(--line); }
.tabs-desk a { padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-2); transition: color .2s, background .25s var(--ease); }
.tabs-desk a:hover { color: var(--ink); }
.tabs-desk a[aria-current="page"] { background: var(--surface-3); color: var(--ink); }
.top .right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.round { width: 42px; height: 42px; border-radius: 999px; display: inline-grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--ink); cursor: pointer; position: relative; transition: transform .2s var(--spring), background .2s; font-weight: 700; font-size: 13px; }
.round:hover { background: var(--surface-2); }
.round:active { transform: scale(.9); }
.dot { position: absolute; top: 6px; right: 7px; min-width: 9px; height: 9px; border-radius: 99px; background: var(--brand-2); box-shadow: 0 0 0 2px var(--bg); }
.avatar { width: 42px; height: 42px; border-radius: 999px; display: grid; place-items: center; font-weight: 750; color: #fff; background: var(--grad); font-size: 16px; }

/* ---------- Bottom tab bar (mobile) ---------- */
.tabbar { display: none; }
@media (max-width: 760px) {
  :root { --tab-h: 74px; }
  .top .tabs-desk, .top .hide-m { display: none; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding: 8px 8px env(safe-area-inset-bottom); background: var(--glass); backdrop-filter: saturate(1.8) blur(24px); -webkit-backdrop-filter: saturate(1.8) blur(24px); border-top: 1px solid var(--line); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--ink-3); border-radius: 16px; transition: color .2s; position: relative; }
  .tabbar a svg { transition: transform .35s var(--spring); }
  .tabbar a[aria-current="page"] { color: var(--ink); }
  .tabbar a[aria-current="page"] svg { transform: translateY(-2px) scale(1.08); color: var(--brand); }
  .tabbar a:active svg { transform: scale(.85); }
  .foot { display: none; }
}

/* ---------- Buttons ---------- */
.btn { --h: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h); padding: 0 22px; border-radius: 999px; border: 0; font-weight: 650; font-size: 15px; letter-spacing: -.01em; cursor: pointer; white-space: nowrap; transition: transform .25s var(--spring), filter .2s, background .2s, box-shadow .25s; user-select: none; }
.btn:active { transform: scale(.95); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { filter: brightness(.92); }
.btn-brand { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgb(255 92 138 / .6); }
.btn-brand:hover { box-shadow: 0 14px 36px -10px rgb(255 92 138 / .75); }
.btn-ghost { background: var(--surface-2); color: var(--ink); }
.btn-ghost:hover { background: var(--surface-3); }
.btn-danger { background: rgb(255 84 112 / .14); color: var(--red); }
.btn-sm { --h: 38px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn .spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: rot .7s linear infinite; }

/* ---------- Hero / search ---------- */
.hero { padding: clamp(36px, 8vw, 96px) 0 8px; }
.hello { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 22px; }
.hello b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 99px; background: var(--grad); color: #fff; }
.hero h1 { font-size: clamp(46px, 9.5vw, 112px); line-height: .92; letter-spacing: -.055em; font-weight: 800; margin: 0 0 30px; max-width: 12ch; }
.search { position: relative; max-width: 760px; z-index: 10; }
.search-box { display: flex; align-items: center; gap: 10px; height: 68px; padding: 0 8px 0 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow-2); transition: border-color .2s, box-shadow .3s, border-radius .2s; }
.search-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 5px rgb(123 97 255 / .16), var(--shadow-2); }
.search.open .search-box { border-radius: 22px 22px 0 0; }
.search-box > svg { color: var(--ink-3); }
.search-box input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--ink); font: 500 19px var(--font); letter-spacing: -.02em; outline: none; }
.search-box input::placeholder { color: var(--ink-3); }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-box .btn { --h: 52px; border-radius: 16px; }
.suggest { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border: 1px solid var(--brand); border-top: 1px solid var(--line); border-radius: 0 0 22px 22px; padding: 6px; margin: 0; list-style: none; box-shadow: var(--shadow-2); max-height: min(420px, 60vh); overflow: auto; animation: drop .22s var(--ease); }
.suggest li { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 14px; cursor: pointer; font-weight: 500; }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--surface-2); }
.suggest li mark { background: none; color: var(--ink); font-weight: 750; }
.suggest li .ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-2); flex: none; }
.suggest li .tag { margin-left: auto; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.suggest li .tag.fy { color: var(--brand-2); }
.suggest .head { font-size: 12px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; padding: 10px 12px 4px; cursor: default; }
.suggest .head:hover { background: none; }

/* ---------- Quick actions (Revolut-style circle row) ---------- */
.actions-row { display: flex; gap: 18px; margin: 34px 0 0; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; scroll-snap-type: x mandatory; }
.actions-row::-webkit-scrollbar, .rail::-webkit-scrollbar, .segment::-webkit-scrollbar { display: none; }
.qa { display: flex; flex-direction: column; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; scroll-snap-align: start; min-width: 68px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.qa span.c { width: 58px; height: 58px; border-radius: 999px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); transition: transform .3s var(--spring), background .2s; }
.qa:hover span.c { background: var(--surface-3); }
.qa:active span.c { transform: scale(.88); }
.qa.hot span.c { background: var(--grad); color: #fff; border: 0; }

/* ---------- Sections & rails ---------- */
.section { margin-top: 52px; }
.section-h { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-h h2 { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -.04em; line-height: 1.05; font-weight: 780; margin: 0; }
.section-h p { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 14px; scrollbar-width: none; }
.rail > * { scroll-snap-align: start; }
@media (max-width: 760px) { .rail { grid-auto-columns: 78%; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; } }

.mood { position: relative; overflow: hidden; border: 0; cursor: pointer; text-align: left; color: #fff; aspect-ratio: 4 / 5; border-radius: var(--r-l); padding: 20px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow-1); transition: transform .4s var(--spring); isolation: isolate; }
.mood::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 70% at 100% 0%, rgb(255 255 255 / .28), transparent 50%); z-index: -1; }
.mood:hover { transform: translateY(-4px) scale(1.01); }
.mood:active { transform: scale(.97); }
.mood .em { font-size: 46px; line-height: 1; filter: drop-shadow(0 8px 16px rgb(0 0 0 / .25)); }
.mood b { font-size: 24px; line-height: 1.05; letter-spacing: -.04em; font-weight: 780; display: block; }
.mood small { display: flex; align-items: center; gap: 6px; opacity: .85; font-weight: 600; font-size: 13px; margin-top: 8px; }
.g0 { background: linear-gradient(160deg, #FF9F43, #FF4E7A); } .g1 { background: linear-gradient(160deg, #8F6BFF, #E14BA0); } .g2 { background: linear-gradient(160deg, #FFB547, #F2542D); }
.g3 { background: linear-gradient(160deg, #FF5C8A, #7B3FE4); } .g4 { background: linear-gradient(160deg, #18B5A4, #3E5BF0); } .g5 { background: linear-gradient(160deg, #2D2A6E, #C2417A); }
.g6 { background: linear-gradient(160deg, #F0437B, #FF8A4C); } .g7 { background: linear-gradient(160deg, #1FAA6B, #A8D52B); } .g8 { background: linear-gradient(160deg, #5B3FD6, #18A0E0); }

.fy { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); cursor: pointer; text-align: left; transition: transform .3s var(--spring), background .2s; width: 100%; }
.fy:hover { background: var(--surface-2); }
.fy:active { transform: scale(.97); }
.fy .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-soft); color: var(--brand-2); flex: none; }
.fy b { font-weight: 650; display: block; letter-spacing: -.02em; }
.fy small { color: var(--ink-3); font-size: 13px; }
.fy > svg:last-child { margin-left: auto; color: var(--ink-3); }

.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.promise div { padding: 22px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); }
.promise svg { color: var(--mint); margin-bottom: 14px; }
.promise b { display: block; font-size: 17px; letter-spacing: -.02em; margin-bottom: 4px; }
.promise p { margin: 0; color: var(--ink-2); font-size: 14px; }
@media (max-width: 760px) { .promise { grid-template-columns: 1fr; } }

/* ---------- Results ---------- */
.res-top { position: sticky; top: 67px; z-index: 20; padding: 14px 0 10px; background: linear-gradient(var(--bg) 70%, transparent); }
@media (max-width: 760px) { .res-top { top: 59px; } }
.res-top .search-box { height: 56px; border-radius: 18px; box-shadow: var(--shadow-1); }
.res-top .search.open .search-box { border-radius: 18px 18px 0 0; }
.res-top .search-box input { font-size: 17px; }
.res-top .search-box .btn { --h: 42px; border-radius: 13px; padding: 0 16px; }
.res-title { font-size: clamp(30px, 5.5vw, 56px); letter-spacing: -.05em; line-height: 1; font-weight: 800; margin: 18px 0 14px; overflow-wrap: anywhere; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid transparent; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; transition: transform .25s var(--spring), background .2s, border-color .2s; }
.chip:hover { background: var(--surface-3); }
.chip:active { transform: scale(.93); }
.chip.k { background: transparent; border-color: var(--line-2); color: var(--ink-2); cursor: default; }
.chip.k svg { color: var(--ink-3); }
.chip.on { background: var(--ink); color: var(--bg); }
.refine { margin-top: 18px; padding: 18px; border-radius: var(--r-l); background: var(--grad-soft); border: 1px solid var(--line); animation: rise .5s var(--ease) both; }
.refine .q + .q { margin-top: 14px; }
.refine .ql { font-size: 13px; font-weight: 700; color: var(--ink-2); margin: 0 0 8px; text-transform: uppercase; letter-spacing: .06em; }
.refine .chip { background: var(--surface); }
.meta-line { display: flex; align-items: center; gap: 8px; margin: 24px 0 0; color: var(--ink-2); font-size: 14px; font-weight: 500; flex-wrap: wrap; }
.meta-line .pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgb(43 217 160 / .12); color: var(--mint); font-weight: 650; font-size: 12px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; padding: 0; margin: 16px 0 0; list-style: none; }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-1); animation: rise .55s var(--ease) both; transition: transform .35s var(--spring), border-color .2s; }
.card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.card.out { animation: out .35s var(--ease) forwards; }
.card .media { position: relative; aspect-ratio: 16 / 10; background-color: var(--surface-2); overflow: hidden; }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .5s; opacity: 0; }
.card .media img.ld { opacity: 1; }
.card:hover .media img { transform: scale(1.04); }
.card .media.ph { aspect-ratio: 16 / 6; display: grid; place-items: center; color: rgb(255 255 255 / .9); }
.card .media.ph > svg { width: 44px; height: 44px; filter: drop-shadow(0 6px 14px rgb(0 0 0 / .25)); }
.card .heart { position: absolute; top: 12px; right: 12px; width: 42px; height: 42px; border-radius: 999px; border: 0; display: grid; place-items: center; cursor: pointer; background: rgb(10 10 15 / .45); color: #fff; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: transform .35s var(--spring), background .2s; z-index: 2; }
.card .heart:active { transform: scale(.8); }
.card .heart.on { background: #fff; color: var(--brand-2); }
.card .heart.on svg { fill: currentColor; animation: pop .45s var(--spring); }
.card .kind { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 99px; background: rgb(10 10 15 / .5); color: #fff; font-size: 12px; font-weight: 700; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: 2; }
.card .kind.v { background: var(--mint); color: #04130D; }
.card .body { padding: 18px 18px 4px; flex: 1; }
.card h3 { font-size: 20px; line-height: 1.15; letter-spacing: -.035em; font-weight: 750; margin: 0 0 6px; }
.card p.sub { margin: 0; color: var(--ink-2); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.fact { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: 9px; background: var(--surface-2); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.fact.price { color: var(--ink); }
.why { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; font-size: 13px; font-weight: 600; color: var(--mint); }
.card .foot-row { display: flex; align-items: center; gap: 8px; padding: 14px 14px 14px 18px; }
.card .src { flex: 1; min-width: 0; font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .src a:hover { color: var(--ink); }
.icon-btn { width: 38px; height: 38px; border-radius: 999px; border: 0; background: var(--surface-2); color: var(--ink-2); cursor: pointer; display: inline-grid; place-items: center; transition: transform .25s var(--spring), background .2s, color .2s; flex: none; }
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }
.icon-btn:active { transform: scale(.85); }

.skel { border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.skel i { display: block; background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 300% 100%; animation: shimmer 1.4s infinite; border-radius: 10px; }
.skel i:first-child { aspect-ratio: 16 / 10; border-radius: 0; }
.skel i:nth-child(2) { height: 20px; margin: 18px 18px 10px; width: 70%; }
.skel i:nth-child(3) { height: 14px; margin: 0 18px 22px; width: 45%; }

.empty { text-align: center; padding: 48px 24px; border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line); margin-top: 18px; }
.empty .orb { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 26px; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 18px 40px -14px rgb(255 92 138 / .7); }
.empty h2 { font-size: 26px; letter-spacing: -.04em; margin: 0 0 8px; }
.empty p { color: var(--ink-2); max-width: 460px; margin: 0 auto 20px; }
.sources { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; }
.src-pill { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.src-pill i { width: 7px; height: 7px; border-radius: 99px; background: var(--ink-3); }
.src-pill.ok i { background: var(--mint); box-shadow: 0 0 0 3px rgb(43 217 160 / .18); }
.src-pill.error i, .src-pill.timeout i { background: var(--amber); }

/* ---------- Panels / forms ---------- */
.sheet { max-width: 460px; margin: clamp(28px, 7vw, 72px) auto; padding: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-2); animation: rise .5s var(--ease) both; }
.sheet .orb { width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 22px; box-shadow: 0 18px 40px -14px rgb(255 92 138 / .7); }
.sheet h1 { font-size: 34px; letter-spacing: -.05em; line-height: 1.02; margin: 0 0 10px; font-weight: 800; }
.sheet p { color: var(--ink-2); margin: 0 0 8px; }
.field { display: block; margin: 22px 0 0; }
.field span { display: block; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.input { width: 100%; height: 56px; padding: 0 18px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink); font: 500 17px var(--font); letter-spacing: -.01em; transition: border-color .2s, box-shadow .2s; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgb(123 97 255 / .16); }
.stack { display: grid; gap: 10px; margin-top: 20px; }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 14px; margin-top: 18px; border-radius: 16px; background: var(--surface-2); color: var(--ink-2); font-size: 14px; }
.note svg { color: var(--mint); margin-top: 1px; }
.success { text-align: center; }
.success .orb { margin-inline: auto; background: var(--mint); color: #04130D; box-shadow: 0 18px 40px -14px rgb(43 217 160 / .6); animation: pop .6s var(--spring); }

/* ---------- My World ---------- */
.world-hero { padding: 30px 0 4px; }
.world-hero .eyebrow { font-size: 14px; font-weight: 600; color: var(--ink-2); margin: 0 0 6px; }
.world-hero h1 { font-size: clamp(40px, 7vw, 72px); line-height: .95; letter-spacing: -.055em; font-weight: 800; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 26px 0 0; }
.stat { padding: 18px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); cursor: pointer; text-align: left; transition: transform .3s var(--spring), background .2s; }
.stat:hover { background: var(--surface-2); }
.stat:active { transform: scale(.96); }
.stat .n { font-size: 40px; font-weight: 800; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat .l { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); font-weight: 600; margin-top: 8px; }
.stat.hero-stat { background: var(--grad); color: #fff; border: 0; }
.stat.hero-stat .l { color: rgb(255 255 255 / .85); }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.segment { display: inline-flex; gap: 2px; padding: 4px; margin: 28px 0 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.segment button { flex: none; border: 0; background: none; height: 38px; padding: 0 16px; border-radius: 999px; font-weight: 650; font-size: 14px; color: var(--ink-2); cursor: pointer; transition: background .25s var(--ease), color .2s; display: inline-flex; align-items: center; gap: 6px; }
.segment button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.segment .badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--brand-2); color: #fff; font-size: 11px; display: inline-grid; place-items: center; }
.list { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 10px; }
.row-item { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r-m); background: var(--surface); border: 1px solid var(--line); animation: rise .45s var(--ease) both; transition: background .2s; }
.row-item:hover { background: var(--surface-2); }
.row-item .ico { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; flex: none; color: #fff; }
.row-item .grow { flex: 1; min-width: 0; }
.row-item h3 { margin: 0; font-size: 16px; font-weight: 650; letter-spacing: -.02em; overflow-wrap: anywhere; }
.row-item small { color: var(--ink-3); font-size: 13px; display: block; margin-top: 2px; }
.status-sel { appearance: none; height: 34px; padding: 0 30px 0 12px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface-2) 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='%23999' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 11px center; color: var(--ink); font: 600 13px var(--font); cursor: pointer; }
.composer { display: flex; gap: 8px; padding: 6px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line-2); margin-top: 18px; }
.composer input { flex: 1; min-width: 0; border: 0; background: none; padding: 0 12px; color: var(--ink); font: 500 16px var(--font); outline: none; }
.consent { display: flex; gap: 16px; align-items: center; padding: 20px; margin-top: 22px; border-radius: var(--r-l); background: var(--grad-soft); border: 1px solid var(--line-2); animation: rise .5s var(--ease) both; }
.consent .orb { width: 52px; height: 52px; border-radius: 17px; background: var(--grad); display: grid; place-items: center; color: #fff; flex: none; }
.consent b { display: block; font-size: 17px; letter-spacing: -.02em; }
.consent p { margin: 2px 0 0; color: var(--ink-2); font-size: 14px; }
.consent .grow { flex: 1; }
@media (max-width: 560px) { .consent { flex-wrap: wrap; } .consent .btn { width: 100%; } }

/* ---------- Settings list ---------- */
.settings { max-width: 640px; margin: 0 auto; }
.profile-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 34px 0 10px; }
.profile-card .avatar { width: 84px; height: 84px; font-size: 32px; margin-bottom: 14px; box-shadow: 0 18px 40px -14px rgb(255 92 138 / .7); }
.profile-card h1 { font-size: 30px; letter-spacing: -.045em; margin: 0; }
.group { margin-top: 24px; }
.group h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 0 0 8px 14px; font-weight: 700; }
.group .box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; }
.set { display: flex; align-items: center; gap: 14px; padding: 15px 16px; width: 100%; background: none; border: 0; text-align: left; cursor: pointer; font-size: 15px; font-weight: 550; color: var(--ink); transition: background .15s; }
.set + .set { border-top: 1px solid var(--line); }
.set:hover { background: var(--surface-2); }
.set .ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-3); color: var(--ink); flex: none; }
.set .grow { flex: 1; min-width: 0; }
.set small { display: block; color: var(--ink-3); font-size: 13px; font-weight: 500; }
.set.danger { color: var(--red); }
.set.danger .ico { background: rgb(255 84 112 / .14); color: var(--red); }
.switch { position: relative; width: 52px; height: 32px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--surface-3); transition: background .25s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 99px; background: #fff; box-shadow: 0 2px 6px rgb(0 0 0 / .3); transition: transform .35s var(--spring); }
.switch input:checked + span { background: var(--mint); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.cats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }

/* ---------- Modal ---------- */
dialog.modal { border: 0; padding: 0; background: transparent; color: var(--ink); max-width: 460px; width: calc(100% - 32px); }
dialog.modal::backdrop { background: rgb(0 0 0 / .55); backdrop-filter: blur(6px); }
dialog.modal[open] .sheet { margin: 0; }
@media (max-width: 560px) { dialog.modal { margin: auto 0 0; width: 100%; max-width: none; } dialog.modal .sheet { border-radius: 28px 28px 0 0; padding-bottom: calc(28px + env(safe-area-inset-bottom)); animation: up .4s var(--ease); } }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + 22px); transform: translate(-50%, 24px) scale(.96); opacity: 0; display: flex; align-items: center; gap: 10px; background: var(--ink); color: var(--bg); padding: 12px 18px 12px 14px; border-radius: 999px; font-size: 14px; font-weight: 650; transition: .4s var(--spring); pointer-events: none; z-index: 60; max-width: calc(100% - 32px); box-shadow: var(--shadow-2); }
.toast.on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.toast svg { color: var(--mint); }

.foot { padding: 48px 16px 40px; text-align: center; color: var(--ink-3); font-size: 13px; }
.foot .tag { font-size: 22px; font-weight: 780; letter-spacing: -.04em; color: var(--ink); margin: 0 0 8px; }
.fine { max-width: 520px; margin: 0 auto; }

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes out { to { opacity: 0; transform: scale(.92); } }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes pop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes shimmer { to { background-position: -300% 0; } }
@keyframes rot { to { transform: rotate(360deg); } }
@keyframes drift { to { transform: translate(-8vmax, 6vmax) scale(1.1); } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; animation-timing-function: var(--ease); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media (max-width: 560px) {
  .search-box { height: 60px; padding-left: 16px; border-radius: 18px; }
  .search-box .btn { width: 46px; padding: 0; --h: 46px; border-radius: 14px; }
  .search-box .btn .lbl { display: none; }
  .search.open .search-box { border-radius: 18px 18px 0 0; }
  .sheet { padding: 26px; margin-inline: 16px; }
}
.spacer { flex: 1; }
@media (max-width: 760px) { .hide-m { display: none !important; } }
[hidden] { display: none !important; }

/* ---------- Studio ---------- */
.studio-lede { max-width: 620px; font-size: 18px; }
.studio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 12px; margin-top: 24px; }
.studio-card, .biz-cta { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); transition: transform .3s var(--spring), background .2s; }
.studio-card:hover, .biz-cta:hover { background: var(--surface-2); }
.studio-card:active, .biz-cta:active { transform: scale(.98); }
.studio-card .ico, .biz-cta .ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: #fff; flex: none; }
.biz-cta { background: var(--grad-soft); border-color: var(--line-2); padding: 22px; }
.biz-cta .ico { background: var(--grad); }
.studio-card .grow, .biz-cta .grow { flex: 1; min-width: 0; }
.studio-card b, .biz-cta b { display: block; font-size: 18px; letter-spacing: -.025em; }
.studio-card small, .biz-cta small { color: var(--ink-2); font-size: 14px; }
.studio-create { max-width: 640px; margin: 0; }
.studio-create .chips { margin-top: 2px; }
.sheet.wide { max-width: 720px; margin: 18px 0; }
.back { display: inline-flex; align-items: center; gap: 6px; margin-top: 22px; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.back:hover { color: var(--ink); }
.verify { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 16px; border-radius: 14px; background: rgb(255 181 71 / .14); color: var(--amber); font-size: 14px; font-weight: 600; }
.verify.ok { background: rgb(43 217 160 / .14); color: var(--mint); }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.thumb { width: 48px; height: 48px; border-radius: 14px; object-fit: cover; flex: none; background: var(--surface-2); }
.input.area { height: auto; min-height: 110px; padding: 14px 18px; resize: vertical; font-size: 15px; line-height: 1.5; }
.input.area.tall { min-height: 200px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
select.input { appearance: none; cursor: pointer; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.offer-form .field { margin-top: 14px; }
dialog.modal { max-height: 92dvh; }
dialog.modal .sheet { max-height: 92dvh; overflow: auto; }
.status-sel.st-published { background-color: rgb(43 217 160 / .16); color: var(--mint); border-color: transparent; }
.status-sel.st-removed { color: var(--ink-3); }

/* ---------- Tablet & large screens ---------- */
@media (min-width: 761px) and (max-width: 1100px) {
  .hero h1 { font-size: clamp(56px, 10vw, 96px); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .rail { grid-auto-columns: minmax(220px, 40%); }
}
@media (min-width: 1600px) { .wrap { width: min(1320px, 100% - 64px); } }
/* Installed-app polish */
@media (display-mode: standalone) { .top { padding-top: max(12px, env(safe-area-inset-top)); } .foot { display: none; } }

/* ==========================================================================
   v4 — Immersive layer: one-line headline, 3D globe, tilt, scroll reveals
   ========================================================================== */
/* Headline always on one line: sized to its container, never wraps or overflows. */
.hero { position: relative; container-type: inline-size; isolation: isolate; }
.hero h1 { white-space: nowrap; max-width: none; font-size: clamp(28px, 10.4cqi, 132px); letter-spacing: -.058em; line-height: 1; margin-bottom: clamp(20px, 3.5cqi, 36px); }
.hero h1 .grad-text { padding-right: .04em; }
.hero > :not(.hero-3d) { position: relative; z-index: 1; }

/* 3D world of possibilities */
.hero-3d { position: absolute; z-index: 0; top: -40px; right: -6%; width: min(620px, 62%); aspect-ratio: 1; pointer-events: none; opacity: 0; animation: globe-in 1.4s var(--ease) .15s forwards; }
.hero-3d canvas { pointer-events: auto; cursor: grab; touch-action: pan-y; display: block; }
.hero-3d canvas:active { cursor: grabbing; }
@media (max-width: 760px) { .hero-3d { top: -10px; right: -28%; width: 92%; } }
@keyframes globe-in { from { opacity: 0; transform: scale(.85) rotate(-8deg); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) { .hero-3d { animation-name: globe-in-m; } @keyframes globe-in-m { to { opacity: .55; } } }

/* Search sits on frosted glass above the globe */
.hero .search-box { background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); }

/* 3D tilt + glare (fine pointers only, set from JS) */
.tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transform-style: preserve-3d; transition: transform .45s var(--ease), box-shadow .3s; will-change: transform; }
.tilt::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgb(255 255 255 / .28), transparent 45%); mix-blend-mode: soft-light; }
.tilt:hover::before { opacity: 1; }
.tilt:hover { box-shadow: var(--shadow-2); }
.mood.tilt:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(10px); }
.mood .em { transform: translateZ(40px); transition: transform .45s var(--spring); }
.mood:hover .em { transform: translateZ(60px) scale(1.12) rotate(-6deg); }
.card.tilt:hover { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-3px); }

/* Scroll-driven reveals (progressive enhancement) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .section, .promise > div, .biz-cta { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 22%; }
  }
}
@keyframes reveal { from { transform: translateY(32px); } to { transform: none; } }

/* Animated gradient border on the primary search when focused */
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.hero .search-box:focus-within { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, conic-gradient(from var(--ang), #FF9F43, #FF5C8A, #7B61FF, #FF9F43) border-box; border: 1.5px solid transparent; animation: spin-border 4s linear infinite; }
@keyframes spin-border { to { --ang: 360deg; } }
main { overflow-x: clip; }

/* ==========================================================================
   v5 — Minimal. Neutral greys, one accent, no gradients, no ornament.
   ========================================================================== */
:root {
  --accent: #2F5BFF; --accent-ink: #FFFFFF; --accent-soft: rgb(47 91 255 / .08);
  --brand: var(--accent); --brand-2: var(--accent); --brand-3: var(--accent);
  --grad: var(--accent); --grad-soft: var(--accent-soft);
  --bg: #FAFAFA; --surface: #FFFFFF; --surface-2: #F2F2F4; --surface-3: #E7E7EB;
  --ink: #0A0A0B; --ink-2: #5E5E66; --ink-3: #9A9AA2; --line: rgb(10 10 11 / .07); --line-2: rgb(10 10 11 / .11);
  --shadow-1: 0 1px 2px rgb(10 10 11 / .04); --shadow-2: 0 12px 40px -16px rgb(10 10 11 / .18);
  --r-xl: 28px; --r-l: 20px; --r-m: 16px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --accent: #6F8CFF; --accent-ink: #0A0A0B; --accent-soft: rgb(111 140 255 / .12);
  --bg: #0B0B0C; --surface: #141416; --surface-2: #1C1C1F; --surface-3: #26262A;
  --ink: #F5F5F6; --ink-2: #A1A1A8; --ink-3: #6B6B73; --line: rgb(255 255 255 / .07); --line-2: rgb(255 255 255 / .11);
  --shadow-1: none; --shadow-2: 0 16px 48px -20px rgb(0 0 0 / .8);
} }
:root[data-theme="dark"] {
  --accent: #6F8CFF; --accent-ink: #0A0A0B; --accent-soft: rgb(111 140 255 / .12);
  --bg: #0B0B0C; --surface: #141416; --surface-2: #1C1C1F; --surface-3: #26262A;
  --ink: #F5F5F6; --ink-2: #A1A1A8; --ink-3: #6B6B73; --line: rgb(255 255 255 / .07); --line-2: rgb(255 255 255 / .11);
  --shadow-1: none; --shadow-2: 0 16px 48px -20px rgb(0 0 0 / .8);
}
.ambient { display: none; }
.grad-text { background: none; color: inherit; }

/* Buttons: solid, quiet */
.btn-brand { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.btn-brand:hover { box-shadow: none; filter: brightness(1.08); }
.btn-primary { background: var(--ink); color: var(--bg); }

/* Header: lighter */
.top { background: color-mix(in srgb, var(--bg) 85%, transparent); border-bottom-color: transparent; }
.top.scrolled { border-bottom-color: var(--line); }
.tabs-desk { background: transparent; border-color: transparent; }
.tabs-desk a[aria-current="page"] { background: var(--surface-2); }
.round { background: transparent; border-color: transparent; }
.round:hover { background: var(--surface-2); }
.avatar { background: var(--ink); color: var(--bg); }
.dot { background: var(--accent); }

/* Hero: headline, search, chips. Nothing else. */
.hero { padding: clamp(48px, 11vw, 140px) 0 12px; }
.hero h1 { font-weight: 700; letter-spacing: -.05em; }
.hero-3d { opacity: 0; }
@keyframes globe-in { from { opacity: 0; transform: scale(.94); } to { opacity: .9; transform: none; } }
@media (max-width: 760px) { .hero-3d { display: none; } }
.search-box, .hero .search-box { background: var(--surface); box-shadow: var(--shadow-2); border: 1px solid var(--line-2); backdrop-filter: none; -webkit-backdrop-filter: none; }
.search-box:focus-within, .hero .search-box:focus-within { animation: none; background: var(--surface); border: 1px solid var(--ink); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-2); }
.search-box .btn { box-shadow: none; }
.suggest { border-color: var(--ink); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { background: transparent; border: 1px solid var(--line-2); color: var(--ink-2); font-weight: 550; }
.chip:hover { background: var(--surface-2); color: var(--ink); border-color: var(--line-2); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip.k { color: var(--ink-2); }

/* Sections */
.section { margin-top: clamp(56px, 8vw, 96px); }
.section-h h2 { font-weight: 650; font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -.03em; }

/* Explore tiles: calm, typographic */
.rail { grid-auto-columns: minmax(200px, 1fr); gap: 12px; }
.mood { aspect-ratio: 1 / 1; padding: 18px; color: var(--ink); background: var(--surface) !important; border: 1px solid var(--line); box-shadow: none; }
.mood::after { display: none; }
.mood:hover { transform: translateY(-2px); border-color: var(--line-2); }
.mood .em { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink); filter: none; font-size: 0; }
.mood .em svg { width: 22px; height: 22px; }
.mood:hover .em { transform: none; background: var(--accent); color: var(--accent-ink); }
.mood b { font-size: 18px; font-weight: 600; letter-spacing: -.025em; }
.tilt::before { display: none; }
.tilt, .tilt:hover, .mood.tilt:hover, .card.tilt:hover { transform: none; }
.mood.tilt:hover { transform: translateY(-2px); }
@media (max-width: 760px) { .rail { grid-auto-columns: 46%; } }

.fy { border-color: var(--line); }
.fy .ico { background: var(--surface-2); color: var(--ink); }

.biz-link { margin: 72px 0 0; color: var(--ink-2); font-size: 15px; }
.biz-link a { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-weight: 600; }
.biz-link a:hover { color: var(--accent); }

/* Cards & results */
.card { box-shadow: none; }
.card:hover { border-color: var(--line-2); }
.card .media.ph { background: var(--surface-2) !important; color: var(--ink-3); aspect-ratio: 16 / 5; }
.card .media.ph > svg { filter: none; width: 28px; height: 28px; }
.card .kind { background: var(--surface); color: var(--ink); backdrop-filter: none; }
.card .kind.v { background: var(--ink); color: var(--bg); }
.card .heart { background: var(--surface); color: var(--ink); backdrop-filter: none; box-shadow: var(--shadow-1); }
.card .heart.on { background: var(--ink); color: var(--bg); }
.why, .meta-line .pill { color: var(--ink-2); background: transparent; padding: 0; }
.why svg { color: var(--accent); }
.refine { background: var(--surface); }
.refine .chip { background: transparent; }
.res-title { font-weight: 700; }

/* Neutral icon tiles everywhere (no rainbow) */
.g0, .g1, .g2, .g3, .g4, .g5, .g6, .g7, .g8 { background: var(--surface-2); color: var(--ink); }
.row-item .ico, .studio-card .ico { color: var(--ink); background: var(--surface-2); }
.orb, .sheet .orb, .empty .orb, .consent .orb, .success .orb { background: var(--surface-2); color: var(--ink); box-shadow: none; }
.success .orb { background: var(--accent); color: var(--accent-ink); }
.consent, .biz-cta { background: var(--surface); border-color: var(--line-2); }
.stat.hero-stat { background: var(--ink); color: var(--bg); }
.stat.hero-stat .l { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.stat .n { font-weight: 700; }
.segment button[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.segment .badge { background: var(--accent); }
.switch input:checked + span { background: var(--accent); }
.profile-card .avatar { box-shadow: none; }
.toast svg { color: var(--accent); }
.src-pill.ok i { background: var(--ink); box-shadow: none; }
.verify { background: var(--surface-2); color: var(--ink-2); }
.verify.ok { background: var(--accent-soft); color: var(--accent); }
.status-sel.st-published { background-color: var(--accent-soft); color: var(--accent); }
.tabbar a[aria-current="page"] svg { color: var(--ink); }
.brand img { box-shadow: 0 0 0 1px var(--line-2); border-radius: 9px; }
.mood { aspect-ratio: 5 / 4; }
.tabs-desk { border: 0; }

/* ==========================================================================
   v6 — Useful results: anatomy, details, compare, removable filters
   ========================================================================== */
.card .body { padding: 16px 18px 6px; }
.overline { margin: 0 0 4px; font-size: 12px; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); }
.card h3 { font-size: 18px; margin: 0 0 6px; }
.title-btn { all: unset; cursor: pointer; }
.title-btn:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.title-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.card .facts { margin-top: 10px; }
.fact { background: transparent; border: 1px solid var(--line-2); color: var(--ink-2); height: 28px; }
.fact.price { border-color: var(--ink); color: var(--ink); font-weight: 700; }
.card .why { display: block; margin: 12px 0 0; font-size: 14px; color: var(--ink); font-weight: 500; line-height: 1.4; }
.card-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 10px 18px 0; margin-top: 8px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.card-meta b { color: var(--ink); font-weight: 600; }
.fresh { color: var(--ink-3); }
.card .foot-row { padding: 12px 14px 14px 18px; gap: 6px; }
.icon-btn.cmp[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.chip.applied { border-color: var(--ink); color: var(--ink); background: var(--surface); padding-right: 10px; }
.chip.applied svg:last-child { width: 14px; height: 14px; color: var(--ink-3); margin-left: 2px; }
.chip.applied:hover svg:last-child { color: var(--ink); }
.chips.center, .row-actions.center { justify-content: center; }
.empty .chips { margin: 0 0 18px; }
.fine.left { text-align: left; margin: 14px 0 0; max-width: none; color: var(--ink-3); font-size: 13px; }

.compare-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tab-h) + 18px); z-index: 45; display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-2); font-size: 14px; font-weight: 600; animation: rise .3s var(--ease); }
.compare-bar .btn-primary { background: var(--bg); color: var(--ink); }

.detail-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; margin-bottom: 16px; background: var(--surface-2); }
.detail-list { display: grid; grid-template-columns: max-content 1fr; gap: 10px 16px; margin: 18px 0; font-size: 14px; }
.detail-list dt { color: var(--ink-3); font-weight: 600; }
.detail-list dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.detail-list a { text-decoration: underline; text-underline-offset: 3px; }
dialog.modal .why { font-size: 15px; color: var(--ink); padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
dialog.modal.wide { max-width: 900px; }
.cmp-wrap { overflow-x: auto; margin: 16px 0; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cmp-table th, .cmp-table td { text-align: left; vertical-align: top; padding: 12px 10px; border-bottom: 1px solid var(--line); min-width: 140px; }
.cmp-table thead th { font-size: 15px; color: var(--ink); }
.cmp-table tbody th { color: var(--ink-3); font-weight: 600; min-width: 100px; }
.stats.six { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1100px) { .stats.six { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .stats.six { grid-template-columns: repeat(2, 1fr); } }
.media-none { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px 0 18px; min-height: 56px; }
.media-none .heart, .row-actions .heart { position: static; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line-2); display: grid; place-items: center; cursor: pointer; background: var(--surface); color: var(--ink); }
.media-none .heart.on, .row-actions .heart.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.media-none .kind { position: static; }
.media.broken { display: none; }
dialog.modal.wide .sheet { max-width: none; }
@media (max-width: 760px) { .res-title { font-size: 30px; line-height: 1.1; } }
.push-note { align-items: center; margin-top: 14px; }
.push-note .grow { flex: 1; }
.btn-danger.btn-sm { --h: 38px; }

/* ---------- Operator console ---------- */
.op .stats { margin-top: 16px; }
.stat .s { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
button.stat { font: inherit; color: inherit; }
.op-h { font-size: 15px; font-weight: 650; letter-spacing: -.01em; margin: 28px 0 8px; }
.op-body { margin-top: 8px; }
.toolbar { margin: 16px 0; max-width: 420px; }
.charts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
@media (max-width: 900px) { .charts { grid-template-columns: 1fr; } }
.chart { margin: 0; padding: 16px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); }
.chart figcaption { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); margin-bottom: 10px; }
.chart figcaption b { color: var(--ink); font-size: 15px; }
.chart svg { width: 100%; height: 110px; display: block; }
.chart rect { fill: var(--accent); opacity: .85; }
.chart rect:hover { opacity: 1; }
.cmp-table.op { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
.cmp-table.op th, .cmp-table.op td { min-width: 0; padding: 11px 12px; font-size: 14px; }
.cmp-table.op thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 650; background: var(--surface-2); }
.cmp-table.op code { font-size: 12px; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: 12px; font-weight: 650; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.tag.ok { background: var(--accent-soft); color: var(--accent); }
.tag.bad { background: rgb(215 38 61 / .12); color: var(--red); }
.linkish { all: unset; cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.linkish:hover { text-decoration-color: var(--ink); }
.block { display: block; }
.pad { padding: 12px 0; }
.row-actions.tight { margin: 0; flex-wrap: nowrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 760px) { .grid2 { grid-template-columns: 1fr; } }
.foot-links a { color: var(--ink-2); }
.foot-links a:hover { color: var(--ink); }

/* ==========================================================================
   v7 — Colour & life. One accent for actions (blue); a warm category palette
   for content. Solid tints, no gradients. Contrast-checked text colours.
   ========================================================================== */
:root {
  --gift: #E8513E;  --gift-bg: #FFECE8;
  --event: #6E4BF2; --event-bg: #EFEAFF;
  --travel: #0B84D8; --travel-bg: #E4F3FD;
  --learn: #138A4C; --learn-bg: #E3F5EA;
  --hobby: #B87600; --hobby-bg: #FFF3D6;
  --food: #D9620B;  --food-bg: #FFEEDD;
  --experience: #CF2F7E; --experience-bg: #FDE7F1;
  --job: #0C8C8C;   --job-bg: #DFF4F3;
  --product: #4652C9; --product-bg: #E9EBFC;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --gift: #FF8A78; --gift-bg: rgb(255 138 120 / .14); --event: #A892FF; --event-bg: rgb(168 146 255 / .15);
  --travel: #5DB8F5; --travel-bg: rgb(93 184 245 / .14); --learn: #4CCB86; --learn-bg: rgb(76 203 134 / .14);
  --hobby: #F2BE4A; --hobby-bg: rgb(242 190 74 / .14); --food: #FF9E57; --food-bg: rgb(255 158 87 / .14);
  --experience: #FF7DB8; --experience-bg: rgb(255 125 184 / .14); --job: #45CFCF; --job-bg: rgb(69 207 207 / .14);
  --product: #8E98FF; --product-bg: rgb(142 152 255 / .15);
} }
:root[data-theme="dark"] {
  --gift: #FF8A78; --gift-bg: rgb(255 138 120 / .14); --event: #A892FF; --event-bg: rgb(168 146 255 / .15);
  --travel: #5DB8F5; --travel-bg: rgb(93 184 245 / .14); --learn: #4CCB86; --learn-bg: rgb(76 203 134 / .14);
  --hobby: #F2BE4A; --hobby-bg: rgb(242 190 74 / .14); --food: #FF9E57; --food-bg: rgb(255 158 87 / .14);
  --experience: #FF7DB8; --experience-bg: rgb(255 125 184 / .14); --job: #45CFCF; --job-bg: rgb(69 207 207 / .14);
  --product: #8E98FF; --product-bg: rgb(142 152 255 / .15);
}
.c-gift { --c: var(--gift); --cbg: var(--gift-bg); } .c-event { --c: var(--event); --cbg: var(--event-bg); }
.c-travel { --c: var(--travel); --cbg: var(--travel-bg); } .c-learn { --c: var(--learn); --cbg: var(--learn-bg); }
.c-hobby { --c: var(--hobby); --cbg: var(--hobby-bg); } .c-food { --c: var(--food); --cbg: var(--food-bg); }
.c-experience { --c: var(--experience); --cbg: var(--experience-bg); } .c-job { --c: var(--job); --cbg: var(--job-bg); }
.c-product { --c: var(--product); --cbg: var(--product-bg); }

/* Headline: hand-drawn underline under the key word */
.squiggle { position: relative; white-space: nowrap; }
.squiggle::after { content: ""; position: absolute; left: -.02em; right: .02em; bottom: -.08em; height: .2em; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 13 C 40 3, 70 3, 100 10 S 160 18, 197 6' fill='none' stroke='black' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 13 C 40 3, 70 3, 100 10 S 160 18, 197 6' fill='none' stroke='black' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  transform-origin: left; animation: draw .9s var(--ease) .35s both; }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Category chips: coloured dot, tinted on hover */
.chip.catdot::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: var(--c); flex: none; }
.chip.catdot:hover { background: var(--cbg); border-color: transparent; color: var(--ink); }

/* Explore tiles: soft colour fields */
.mood[class*="c-"] { background: var(--cbg) !important; border-color: transparent; }
.mood[class*="c-"] .em { background: var(--surface); color: var(--c); box-shadow: 0 1px 2px rgb(0 0 0 / .05); }
.mood[class*="c-"]:hover .em { background: var(--c); color: #fff; transform: rotate(-6deg) scale(1.06); }
.mood[class*="c-"] b { color: var(--ink); }
.mood .em { transition: transform .35s var(--spring), background .2s, color .2s; }

/* Result cards: category colour in overline, icon and price */
.card[class*="c-"] .overline { color: var(--c); }
.card[class*="c-"] .fact.price { border-color: var(--c); color: var(--c); background: var(--cbg); }
.card[class*="c-"] .media-none { background: linear-gradient(var(--cbg), var(--cbg)) top / 100% 6px no-repeat; padding-top: 18px; }
.cat-ico { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--cbg); color: var(--c); }
.cat-ico svg { width: 18px; height: 18px; }
.card[class*="c-"] .why svg, .card[class*="c-"] .why { color: var(--ink); }
.card[class*="c-"]:hover { border-color: color-mix(in srgb, var(--c) 35%, var(--line)); }
.media-none .kind.v { margin-left: 8px; }
.card .heart.on, .row-actions .heart.on, .media-none .heart.on { background: var(--gift); border-color: var(--gift); color: #fff; }

/* Save burst */
.heart { position: relative; overflow: visible; }
.burst { position: absolute; inset: 0; pointer-events: none; }
.burst i { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 99px; background: var(--c);
  animation: burst .6s var(--ease) forwards; transform: rotate(var(--a)) translateY(0); }
@keyframes burst { to { transform: rotate(var(--a)) translateY(-26px) scale(.4); opacity: 0; } }

/* Tinted tiles & icons (My World, lists) */
.stat.tinted { background: var(--cbg); border-color: transparent; }
.stat.tinted .l svg { color: var(--c); }
.stat.hero-stat { background: var(--accent); color: #fff; }
.stat.hero-stat .l { color: rgb(255 255 255 / .82); }
.row-item .ico.tinted { background: var(--cbg); color: var(--c); }
.applied, .chip.applied { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.chip.applied svg:last-child { color: var(--accent); }

/* Little moments */
.biz-link a { color: var(--accent); }
.segment button[aria-selected="true"] { background: var(--accent); color: #fff; }
.chart rect:nth-child(4n+1) { fill: var(--accent); } .chart rect:nth-child(4n+2) { fill: var(--event); }
.chart rect:nth-child(4n+3) { fill: var(--travel); } .chart rect:nth-child(4n) { fill: var(--experience); }
.op .stats .stat:nth-child(6n+1) .n { color: var(--accent); } .op .stats .stat:nth-child(6n+2) .n { color: var(--event); }
.op .stats .stat:nth-child(6n+3) .n { color: var(--travel); } .op .stats .stat:nth-child(6n+4) .n { color: var(--learn); }
.op .stats .stat:nth-child(6n+5) .n { color: var(--food); } .op .stats .stat:nth-child(6n) .n { color: var(--experience); }
.toast svg { color: var(--gift); }
::selection { background: color-mix(in srgb, var(--accent) 25%, transparent); }

/* ---------- v8: guidance & freshness ---------- */
.onb { margin-top: 22px; padding: 16px 18px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line-2); max-width: 760px; animation: rise .5s var(--ease) .4s both; }
.onb-h { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-bottom: 12px; }
.onb-h b { font-size: 16px; letter-spacing: -.02em; }
.onb-h .muted { font-size: 14px; }
.chip.pick svg { color: var(--c); }
.chip.pick[aria-pressed="true"] { background: var(--c); border-color: var(--c); color: #fff; }
.chip.pick[aria-pressed="true"] svg { color: #fff; }
.onb .row-actions { margin: 14px 0 0; }
.search-box input::placeholder { transition: opacity .25s var(--ease); }
.search-box input.ph-out::placeholder { opacity: 0; }
.related { margin-top: 28px; }
.related .chips { margin-top: 8px; }
/* Generative cover art for results without a source image */
.media-none.art-head { position: relative; display: flex; align-items: flex-start; padding: 14px 14px 0 18px; min-height: 0; aspect-ratio: 16 / 6; background: none !important; overflow: hidden; }
.media-none.art-head .art { position: absolute; inset: 0; width: 100%; height: 100%; }
.media-none.art-head > :not(.art) { position: relative; }
.media-none.art-head .cat-ico { background: var(--surface); box-shadow: 0 2px 8px rgb(0 0 0 / .08); }
.card:hover .art { transform: scale(1.04); }
.art { transition: transform .8s var(--ease); }
.status-sel + * { position: relative; }
/* WCAG AA contrast for tertiary text (≥4.5:1 on page and surface) */
:root { --ink-3: #6B6B75; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ink-3: #93939C; } }
:root[data-theme="dark"] { --ink-3: #93939C; }
/* Text-safe category colours (≥4.5:1 on white) for light mode */
:root {
  --gift: #C23A28; --event: #5F3BE0; --travel: #0969AE; --learn: #0E7240; --hobby: #8A5900;
  --food: #A84A07; --experience: #B0236A; --job: #08706F; --product: #3D49BE;
}
