/* ==========================================================================
   GeekSpark storefront - modern soft UI
   Soft raised surfaces on a cool canvas, frosted glass for floating layers,
   an orange-to-violet gradient used sparingly for emphasis. Layout follows
   marketplace conventions: search-first header, category bar, filter
   sidebar, item cards and an item page with a purchase sidebar.
   ========================================================================== */

:root {
    --bg: #edf0f5;
    --surface: #f5f7fa;
    --glass: rgba(255, 255, 255, .62);
    --glass-line: rgba(255, 255, 255, .7);
    --hi: rgba(255, 255, 255, .95);
    --lo: rgba(158, 172, 196, .5);
    --line: #dfe4ec;
    --ink: #0f172a;
    --body: #475569;
    --soft: #64748b;
    --faint: #94a3b8;
    --spark: #f0592a;
    --spark-deep: #d6461a;
    --violet: #7c3aed;
    --grad: linear-gradient(135deg, #ff8a4c 0%, #f0592a 48%, #e0399a 100%);
    --grad-soft: linear-gradient(135deg, rgba(255, 138, 76, .16), rgba(124, 58, 237, .12));
    --slate: #0f172a;
    --slate-2: #1e293b;
    --mint: #0f9f7f;
    --envato: #5b8a2a;
    --red: #dc2626;
    --r-xl: 22px;
    --r-lg: 16px;
    --r-md: 12px;
    --r-sm: 8px;

    --up: 6px 6px 16px var(--lo), -6px -6px 16px var(--hi);
    --up-sm: 3px 3px 8px var(--lo), -3px -3px 8px var(--hi);
    --up-lg: 14px 14px 34px var(--lo), -12px -12px 28px var(--hi);
    --down: inset 3px 3px 7px var(--lo), inset -3px -3px 7px var(--hi);
    --down-sm: inset 2px 2px 4px var(--lo), inset -2px -2px 4px var(--hi);
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font: 400 15.5px/1.65 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-feature-settings: 'cv11', 'ss01';
    background: var(--bg);
    color: var(--body);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
fieldset { border: 0; min-width: 0; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; letter-spacing: -.022em; font-weight: 700; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--spark); outline-offset: 2px; }
::selection { background: rgba(240, 89, 42, .2); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.band { padding: 80px 0; }
.band-tight { padding: 44px 0; }
.muted { color: var(--soft); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Scroll reveal (only when JS runs) */
.js [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Surfaces ---------- */
.np { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--up); }
.np-lg { box-shadow: var(--up-lg); }
.np-in { background: var(--bg); border-radius: var(--r-lg); box-shadow: var(--down); }
.glass { background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 11px 19px; border: 1px solid transparent; border-radius: 11px; cursor: pointer;
    background: var(--surface); color: var(--ink); font-weight: 600; font-size: .9rem; line-height: 1.2;
    box-shadow: var(--up-sm); transition: background .2s, color .2s, box-shadow .2s, transform .2s var(--ease);
}
.btn:hover { color: var(--spark); transform: translateY(-1px); }
.btn:active { box-shadow: var(--down-sm); transform: translateY(0); }
.btn i { font-size: .85em; }
.btn-dark { background: var(--slate); color: #fff; box-shadow: 0 8px 20px -6px rgba(15, 23, 42, .45); }
.btn-dark:hover { background: var(--slate-2); color: #fff; }
.btn-spark { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -8px rgba(240, 89, 42, .6); }
.btn-spark:hover { color: #fff; filter: saturate(1.1) brightness(1.03); }
.btn-envato { background: var(--envato); color: #fff; box-shadow: 0 8px 20px -8px rgba(91, 138, 42, .6); }
.btn-envato:hover { color: #fff; }
.btn-glass { background: rgba(255, 255, 255, .85); color: var(--ink); box-shadow: 0 6px 16px -6px rgba(15, 23, 42, .35); backdrop-filter: blur(8px); }
.btn-wide { width: 100%; }
.btn-sm { padding: 8px 13px; font-size: .82rem; border-radius: 9px; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 11px; flex-shrink: 0; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Tags ---------- */
.chip {
    display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
    padding: 6px 11px; border-radius: 999px; font-size: .78rem; font-weight: 600; color: var(--body);
    background: var(--surface); box-shadow: var(--up-sm); transition: color .2s, box-shadow .2s;
}
.chip i { font-size: .9em; color: var(--soft); }
a.chip:hover { color: var(--ink); }
.chip.is-on { color: var(--ink); box-shadow: var(--down-sm); background: var(--bg); }
.chip.is-on i { color: var(--spark); }
.chip-flat { box-shadow: none; background: rgba(148, 163, 184, .16); }
.chip-spark { color: var(--spark-deep); background: rgba(240, 89, 42, .1); box-shadow: none; }
.chip-envato, .chip-envato i { color: var(--envato); }
.tag { display: inline-block; padding: 3px 9px; border-radius: 6px; font-size: .74rem; font-weight: 500; color: var(--soft); background: rgba(148, 163, 184, .16); }
a.tag { transition: color .15s, background .15s; }
a.tag:hover { color: var(--spark-deep); background: rgba(240, 89, 42, .1); }
.side-tags a.tag { padding: 5px 10px; font-size: .78rem; }

.eyebrow { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--spark); margin-bottom: 12px; }

.knob { width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem; color: var(--ink); background: var(--bg); box-shadow: var(--down-sm); flex-shrink: 0; }
.knob-round { border-radius: 12px; }
.knob-grad { background: var(--grad); color: #fff; box-shadow: 0 8px 18px -8px rgba(240, 89, 42, .7); }

.heading { margin-bottom: 36px; max-width: 640px; }
.heading h2 { font-size: clamp(1.55rem, 2.6vw, 2rem); }
.heading p { margin-top: 8px; color: var(--soft); }
.heading-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 30px; }
.heading-row .heading { margin-bottom: 0; }
.link-more { font-weight: 600; font-size: .9rem; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; min-height: 40px; }
.link-more:hover { color: var(--spark); }
.link-more i { font-size: .8em; transition: transform .2s; }
.link-more:hover i { transform: translateX(3px); }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: .84rem; color: var(--ink); margin-bottom: 7px; }
.input, .select, .textarea {
    width: 100%; padding: 12px 14px; border: 1px solid transparent; outline: 0; border-radius: 11px;
    background: var(--bg); box-shadow: var(--down); color: var(--ink); font-size: .95rem;
}
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .select:focus, .textarea:focus { border-color: rgba(240, 89, 42, .45); box-shadow: var(--down), 0 0 0 3px rgba(240, 89, 42, .12); }
.textarea { resize: vertical; min-height: 150px; }
.select { appearance: none; cursor: pointer; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; }
.error { color: var(--red); font-size: .8rem; margin-top: 6px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 11px; margin-bottom: 20px; font-size: .9rem; font-weight: 500; color: #0b7a62; background: rgba(15, 159, 127, .1); border: 1px solid rgba(15, 159, 127, .18); }
.notice-error { color: #b91c1c; background: rgba(220, 38, 38, .08); border-color: rgba(220, 38, 38, .18); }

.pill { display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 14px; background: var(--bg); box-shadow: var(--down); }
.pill .input { box-shadow: none; background: transparent; border: 0; padding: 9px 10px; }
.pill .input:focus { box-shadow: none; }
.pill > i { margin-left: 10px; color: var(--faint); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(237, 240, 245, .78); backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%); border-bottom: 1px solid rgba(223, 228, 236, .8); }
.site-header.is-stuck { box-shadow: 0 10px 30px -22px rgba(15, 23, 42, .45); }
.header-main { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.12rem; color: var(--ink); letter-spacing: -.02em; flex-shrink: 0; }
.brand img { width: 34px; height: 34px; }
.brand b { color: var(--spark); font-weight: 700; }
.header-search { flex: 1; max-width: 620px; display: flex; align-items: center; gap: 6px; padding: 5px 5px 5px 14px; border-radius: 12px; background: var(--bg); box-shadow: var(--down); }
.header-search i { color: var(--faint); font-size: .9rem; }
.header-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 7px 4px; font-size: .92rem; color: var(--ink); }
.header-search input::placeholder { color: var(--faint); }
.header-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.segment { display: inline-flex; padding: 4px; gap: 2px; border-radius: 10px; background: var(--bg); box-shadow: var(--down-sm); }
.segment a { display: inline-grid; place-items: center; min-width: 32px; min-height: 32px; padding: 0 10px; border-radius: 7px; font-size: .84rem; font-weight: 600; color: var(--soft); }
.segment a.is-on { color: var(--ink); background: var(--surface); box-shadow: var(--up-sm); }
.segment-sm a { padding: 0 9px; }
.search-toggle { display: none; }
.cart-btn { position: relative; }
.cart-count { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--grad); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; }

.catbar { border-top: 1px solid rgba(223, 228, 236, .7); }
.menu { display: flex; align-items: center; gap: 2px; height: 46px; overflow-x: auto; scrollbar-width: none; }
.menu::-webkit-scrollbar { display: none; }
.menu > li > a { position: relative; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 12px; font-weight: 500; font-size: .87rem; color: var(--body); white-space: nowrap; transition: color .15s; }
.menu > li > a i { color: var(--faint); font-size: .85em; transition: color .15s; }
.menu > li > a:hover, .menu > li > a.is-on { color: var(--ink); }
.menu > li > a:hover i, .menu > li > a.is-on i { color: var(--spark); }
.menu > li > a.is-on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; border-radius: 2px; background: var(--grad); }
.menu .menu-sep { width: 1px; height: 18px; background: var(--line); margin: 0 8px; }

/* ---------- Breadcrumbs ---------- */
.trail { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .82rem; color: var(--soft); margin-bottom: 16px; }
.trail a:hover { color: var(--ink); }
.trail i { font-size: .55rem; color: var(--faint); }
.trail span:last-child { color: var(--ink); font-weight: 500; }

/* ---------- Home: hero ---------- */
.hero { position: relative; padding: 70px 0 64px; overflow: hidden; isolation: isolate; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .55; }
.hero::before { width: 520px; height: 520px; top: -220px; left: -120px; background: radial-gradient(circle, rgba(255, 138, 76, .55), transparent 70%); }
.hero::after { width: 560px; height: 560px; top: -160px; right: -160px; background: radial-gradient(circle, rgba(124, 58, 237, .38), transparent 70%); }
.hero-inner { max-width: 860px; margin: 0 auto; text-align: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; font-size: .84rem; font-weight: 500; color: var(--body); margin-bottom: 24px; transition: transform .2s; }
.hero-badge:hover { transform: translateY(-1px); color: var(--ink); }
.hero-badge b { padding: 3px 10px; border-radius: 999px; background: var(--grad); color: #fff; font-size: .74rem; font-weight: 700; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); letter-spacing: -.04em; line-height: 1.06; margin-bottom: 18px; }
.hero .lead { font-size: 1.12rem; max-width: 640px; margin: 0 auto 30px; }
.search-xl { display: flex; align-items: center; gap: 8px; max-width: 700px; margin: 0 auto; padding: 8px; border-radius: 18px; }
.search-xl i { margin-left: 12px; color: var(--faint); }
.search-xl input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 12px 6px; font-size: 1rem; color: var(--ink); }
.search-xl input::placeholder { color: var(--faint); }
.search-xl select { border: 0; outline: 0; background: transparent; padding: 10px 28px 10px 12px; font-size: .88rem; font-weight: 500; color: var(--body); border-left: 1px solid var(--line); appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2364748b' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.search-xl .btn { padding: 13px 22px; }
.hero-tags { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 20px; }
.hero-tags > span { font-size: .82rem; color: var(--soft); margin-right: 2px; }
.hero-stats { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero-stats div { min-width: 160px; padding: 14px 20px; border-radius: var(--r-lg); text-align: center; }
.hero-stats strong { display: block; font-size: 1.35rem; color: var(--ink); letter-spacing: -.02em; }
.hero-stats small { font-size: .8rem; color: var(--soft); }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(170px, auto); gap: 20px; }
.bento-tile { position: relative; padding: 24px; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--up); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.bento-tile:hover { transform: translateY(-3px); box-shadow: var(--up-lg); }
.bento-tile h3 { font-size: 1.05rem; margin: 16px 0 6px; }
.bento-tile p { font-size: .88rem; color: var(--soft); }
.bento-tile.span-2 { grid-column: span 2; }
.bento-tile.tall { grid-row: span 2; }
.bento-tile.feature { background: var(--slate); color: #cbd5e1; box-shadow: 0 24px 50px -28px rgba(15, 23, 42, .7); }
.bento-tile.feature h3 { color: #fff; font-size: 1.35rem; }
.bento-tile.feature p { color: #94a3b8; }
.bento-tile.feature::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(240, 89, 42, .55), transparent 70%); filter: blur(10px); }
.bento-tile .ways-list { display: grid; gap: 12px; margin-top: 22px; position: relative; z-index: 1; }
.bento-tile .ways-list div { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--r-md); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.bento-tile .ways-list strong { display: block; color: #fff; font-size: .92rem; }
.bento-tile .ways-list small { color: #94a3b8; font-size: .82rem; }
.bento-tile .ways-list i { color: #fb8a5f; margin-top: 4px; }

.cat-bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.cat-tile { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 150px; padding: 22px; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--up); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.cat-tile::before { content: ""; position: absolute; inset: 0; background: var(--grad-soft); opacity: 0; transition: opacity .3s; }
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--up-lg); }
.cat-tile:hover::before { opacity: 1; }
.cat-tile > * { position: relative; }
.cat-tile:first-child { grid-column: span 2; grid-row: span 2; min-height: 318px; }
.cat-tile:first-child strong { font-size: 1.4rem; }
.cat-tile strong { display: block; color: var(--ink); font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; margin-top: 16px; }
.cat-tile small { color: var(--soft); font-size: .82rem; }
.cat-tile .arrow { position: absolute; top: 20px; right: 20px; color: var(--faint); transform: rotate(-45deg); transition: transform .2s, color .2s; }
.cat-tile:hover .arrow { color: var(--spark); transform: rotate(-45deg) translateX(3px); }
.cat-tile p { color: var(--soft); font-size: .9rem; max-width: 340px; margin-top: 8px; }

/* ---------- Item cards ---------- */
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.item { display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--up); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.item:hover { transform: translateY(-4px); box-shadow: var(--up-lg); }
.item-media { position: relative; display: block; overflow: hidden; background: var(--bg); }
.item-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s var(--ease); }
.item:hover .item-media img { transform: scale(1.04); }
.item-badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; gap: 6px; pointer-events: none; }
.item-badges span { padding: 4px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: rgba(255, 255, 255, .9); color: var(--ink); backdrop-filter: blur(6px); }
.item-badges .badge-cc { color: var(--envato); }
.item-badges .badge-off { margin-left: auto; background: var(--grad); color: #fff; }
.item-hover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(15, 23, 42, .38); opacity: 0; pointer-events: none; transition: opacity .25s; }
.item:hover .item-hover, .item-hover:focus-within { opacity: 1; pointer-events: auto; }
@media (hover: none) { .item-hover { display: none; } }
.item-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 16px; }
.item h3 { font-size: .98rem; font-weight: 600; line-height: 1.35; margin-bottom: 4px; }
.item h3 a:hover { color: var(--spark); }
.item-by { font-size: .78rem; color: var(--soft); margin-bottom: 10px; }
.item-by b { color: var(--body); font-weight: 600; }
.item-by a { color: var(--body); font-weight: 500; }
.item-by a:hover { color: var(--spark); }
.item-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.item-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.item-foot small { display: block; font-size: .75rem; color: var(--soft); margin-top: 2px; }
.item-actions { display: flex; gap: 6px; }
.item-actions .btn-icon { width: 36px; height: 36px; border-radius: 10px; }
.item-actions form { display: contents; }
.price { font-weight: 700; font-size: 1.18rem; color: var(--ink); letter-spacing: -.02em; }
.price del { font-size: .78rem; font-weight: 500; color: var(--faint); margin-left: 6px; }

/* Legacy card names still used on some pages */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }

/* ---------- Posts ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.post-card { display: flex; flex-direction: column; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--up); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--up-lg); }
.post-card .cover { overflow: hidden; }
.post-card .cover img, .post-card .cover .placeholder { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s var(--ease); }
.post-card:hover .cover img { transform: scale(1.04); }
.placeholder { display: grid; place-items: center; font-size: 1.6rem; color: var(--faint); background: var(--grad-soft); }
.post-card .body { padding: 16px 18px 18px; }
.post-card time { font-size: .76rem; color: var(--soft); font-weight: 500; }
.post-card h3 { font-size: 1.02rem; font-weight: 600; margin: 6px 0; line-height: 1.35; }
.post-card h3 a:hover { color: var(--spark); }
.post-card p { font-size: .87rem; color: var(--soft); }

/* ---------- FAQ ---------- */
.qa { display: grid; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--up); overflow: hidden; }
.qa details { border-bottom: 1px solid var(--line); }
.qa details:last-child { border-bottom: 0; }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 20px 24px; font-weight: 600; color: var(--ink); font-size: .97rem; transition: color .2s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex-shrink: 0; width: 9px; height: 9px; border-right: 2px solid var(--soft); border-bottom: 2px solid var(--soft); transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease); }
.qa details[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.qa summary:hover { color: var(--spark); }
.qa details > div { padding: 0 24px 22px; white-space: pre-line; font-size: .94rem; max-width: 820px; }

/* ---------- Closing band ---------- */
.closing { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.closing > div { padding: 34px; }
.closing h2 { font-size: 1.35rem; margin-bottom: 8px; }
.closing p { font-size: .94rem; }
.closing form { margin-top: 20px; }
.closing .dark { position: relative; overflow: hidden; background: var(--slate); border-radius: var(--r-xl); color: #cbd5e1; box-shadow: 0 24px 50px -28px rgba(15, 23, 42, .7); }
.closing .dark::after { content: ""; position: absolute; right: -90px; top: -90px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(124, 58, 237, .5), transparent 70%); }
.closing .dark > * { position: relative; z-index: 1; }
.closing .dark h2 { color: #fff; }
.closing .dark .eyebrow { color: #fb8a5f; }
.closing .np { border-radius: var(--r-xl); }

/* ---------- Page heads ---------- */
.page-head { position: relative; padding: 46px 0 30px; }
.page-head h1 { font-size: clamp(1.85rem, 3.6vw, 2.5rem); letter-spacing: -.03em; margin-bottom: 8px; }
.page-head .lead { max-width: 680px; font-size: 1.03rem; }
.page-head-split { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.page-head-split .knob { width: 60px; height: 60px; border-radius: 16px; font-size: 1.4rem; }

/* ---------- Marketplace ---------- */
.market { display: grid; grid-template-columns: 250px 1fr; gap: 32px; align-items: start; padding-bottom: 80px; }
.filters { position: sticky; top: 132px; padding: 20px; }
.filters-toggle { display: none; list-style: none; cursor: pointer; justify-content: space-between; align-items: center; gap: 12px; font-weight: 600; color: var(--ink); }
.filters-toggle::-webkit-details-marker { display: none; }
.filters-toggle span { display: inline-flex; align-items: center; gap: 10px; }
.filters-toggle b { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--grad); color: #fff; font-size: .72rem; display: grid; place-items: center; }
.filters-toggle > i { color: var(--soft); font-size: .8rem; transition: transform .25s var(--ease); }
.filters[open] .filters-toggle > i { transform: rotate(180deg); }
.filters h3 { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); margin-bottom: 10px; }
.filter-group + .filter-group { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.filter-link { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 10px; margin: 0 -10px; border-radius: var(--r-sm); font-size: .88rem; color: var(--body); transition: background .15s, color .15s; }
.filter-link:hover { background: var(--bg); color: var(--ink); }
.filter-link.is-on { color: var(--ink); font-weight: 600; background: var(--bg); box-shadow: var(--down-sm); }
.filter-link.is-on::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--spark); margin-right: -2px; }
.filter-link span:first-child { flex: 1; }
.filter-link small { color: var(--faint); font-size: .78rem; }
.filter-link i { width: 16px; color: var(--faint); margin-right: 6px; }
.filters .clear { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin-top: 10px; font-size: .84rem; font-weight: 600; color: var(--spark-deep); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 22px; padding: 10px 10px 10px 18px; border-radius: var(--r-lg); }
.toolbar .result-count { margin: 0; font-size: .9rem; color: var(--body); }
.toolbar .result-count strong { color: var(--ink); }
.toolbar .select { width: auto; min-width: 190px; padding-top: 9px; padding-bottom: 9px; }
.toolbar-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.toolbar-filters a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; color: var(--ink); background: rgba(240, 89, 42, .1); }
.toolbar-filters a i { font-size: .7rem; color: var(--spark-deep); }
.cat-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 6px 4px 14px; margin: 0 -4px 14px; scrollbar-width: thin; }
.result-count { font-size: .86rem; color: var(--soft); margin-bottom: 20px; }
.empty { text-align: center; padding: 60px 28px; }
.empty .knob { margin-bottom: 16px; }
.empty h3 { margin-bottom: 6px; font-size: 1.12rem; }

.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 44px; }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 12px; display: grid; place-items: center; border-radius: 11px; font-weight: 600; font-size: .9rem; background: var(--surface); box-shadow: var(--up-sm); }
.pager a:hover { color: var(--spark); }
.pager .is-on { background: var(--slate); color: #fff; box-shadow: none; }
.pager .is-off { color: var(--faint); box-shadow: none; background: transparent; }

/* ---------- Item page ---------- */
.item-hero { position: relative; padding: 30px 0 0; overflow: hidden; isolation: isolate; }
.item-hero::before { content: ""; position: absolute; z-index: -1; width: 640px; height: 420px; top: -260px; right: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(124, 58, 237, .22), transparent 70%); filter: blur(40px); }
.item-hero h1 { font-size: clamp(1.7rem, 3.2vw, 2.35rem); letter-spacing: -.03em; margin-bottom: 10px; max-width: 900px; }
.item-hero .lead { font-size: 1.04rem; max-width: 820px; margin-bottom: 14px; }
.item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; font-size: .86rem; color: var(--soft); margin-bottom: 22px; }
.item-meta span { display: inline-flex; align-items: center; gap: 7px; }
.item-meta i { color: var(--faint); }
.item-meta b { color: var(--ink); font-weight: 600; }
.item-meta a { color: var(--ink); font-weight: 600; }
.item-meta a:hover { color: var(--spark); }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 28px; scrollbar-width: none; }
.tabs a { position: relative; padding: 12px 14px; font-weight: 600; font-size: .9rem; color: var(--soft); white-space: nowrap; }
.tabs a small { margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: rgba(148, 163, 184, .2); font-size: .72rem; }
.tabs a:hover { color: var(--ink); }
.tabs a.is-on { color: var(--ink); }
.tabs a.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--grad); }

.product { display: grid; grid-template-columns: 1fr 350px; gap: 36px; align-items: start; padding-bottom: 40px; }
.product-media { padding: 8px; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--up); }
.product-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 15px; }
.media-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 18px 0 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.section-card { padding: 32px; margin-bottom: 22px; border-radius: var(--r-xl); scroll-margin-top: 140px; }
.section-card > h2 { font-size: 1.15rem; margin-bottom: 16px; }

.prose { color: var(--body); }
.prose h2 { font-size: 1.22rem; margin: 30px 0 12px; }
.prose h3 { font-size: 1.04rem; margin: 24px 0 10px; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol, .prose pre, .prose table, .prose blockquote { margin-bottom: 16px; }
.prose ul { list-style: none; padding-left: 0; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 7px; border-left: 2px solid var(--mint); border-bottom: 2px solid var(--mint); transform: rotate(-45deg); }
.prose ol { list-style: decimal; padding-left: 22px; }
.prose ol li::marker { color: var(--soft); font-weight: 600; }
.prose li { margin-bottom: 7px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--spark-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose code { padding: 2px 6px; border-radius: 5px; background: rgba(148, 163, 184, .18); font-size: .86em; font-family: 'JetBrains Mono', ui-monospace, Consolas, monospace; color: var(--ink); }
.prose pre { padding: 18px; border-radius: var(--r-md); background: var(--slate); color: #e2e8f0; overflow-x: auto; }
.prose pre code { background: none; padding: 0; color: inherit; }
.prose img { border-radius: var(--r-md); margin: 12px 0; }
.prose blockquote { padding: 14px 18px; border-radius: var(--r-md); background: var(--grad-soft); border: 1px solid rgba(240, 89, 42, .15); color: var(--body); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.prose th, .prose td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }

.timeline { display: grid; }
.release { display: grid; grid-template-columns: 96px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.release:first-child { padding-top: 0; }
.release:last-child { border-bottom: 0; padding-bottom: 0; }
.release-tag { align-self: start; justify-self: start; padding: 3px 10px; border-radius: 999px; font-weight: 700; font-size: .78rem; color: #fff; background: var(--slate); font-family: 'JetBrains Mono', ui-monospace, Consolas, monospace; }
.release:first-child .release-tag { background: var(--grad); }
.release time { font-size: .78rem; color: var(--soft); font-weight: 500; }
.release p { white-space: pre-line; font-size: .9rem; margin-top: 4px; }

.side { display: grid; gap: 18px; }
.buy-box { padding: 24px; border-radius: var(--r-xl); scroll-margin-top: 140px; }
.buy-box .price { font-size: 2rem; }
.buy-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; }
.buy-head span { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.quick-buy { display: none; justify-content: space-between; align-items: center; gap: 14px; padding: 12px 16px; margin-bottom: 22px; }
.licenses { display: grid; gap: 10px; margin: 18px 0; }
.license { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 15px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color .2s, box-shadow .2s, background .2s; }
.license:hover { border-color: #c9d1dc; }
.license input { position: absolute; opacity: 0; pointer-events: none; }
.license strong { display: block; color: var(--ink); font-size: .9rem; font-weight: 600; }
.license small { color: var(--soft); font-size: .76rem; }
.license .amount { font-weight: 700; color: var(--ink); }
.license:has(input:checked) { border-color: rgba(240, 89, 42, .7); background: linear-gradient(135deg, rgba(255, 138, 76, .08), rgba(124, 58, 237, .05)); box-shadow: 0 0 0 3px rgba(240, 89, 42, .1); }
.license:has(input:focus-visible) { outline: 2px solid var(--spark); outline-offset: 2px; }
.buy-box .btn { margin-bottom: 10px; }
.buy-note { font-size: .78rem; color: var(--soft); text-align: center; margin: 4px 0 4px; line-height: 1.5; }
.buy-note a { color: var(--ink); text-decoration: underline; }
.side-box { padding: 20px; border-radius: var(--r-lg); }
.side-box h3 { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); margin-bottom: 12px; }
.quality { display: flex; gap: 14px; align-items: center; }
.quality strong { display: block; color: var(--ink); font-size: .92rem; }
.quality small { color: var(--soft); font-size: .8rem; }
.specs { display: grid; gap: 0; font-size: .86rem; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.specs div:last-child { border-bottom: 0; }
.specs dt { color: var(--soft); flex-shrink: 0; }
.specs dd { color: var(--ink); font-weight: 500; text-align: right; }
.side-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.author { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.author img { width: 44px; height: 44px; border-radius: 12px; box-shadow: var(--up-sm); }
.author strong { display: block; color: var(--ink); font-size: .95rem; }
.author small { color: var(--soft); font-size: .8rem; }
.assure { display: grid; gap: 9px; margin-top: 16px; font-size: .84rem; }
.assure i { color: var(--mint); margin-right: 8px; width: 14px; }

/* ---------- Article ---------- */
.article { display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; padding-bottom: 60px; }
.article-cover { padding: 8px; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--up); margin-bottom: 30px; }
.article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 15px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.aside-box { padding: 22px; margin-bottom: 22px; }
.aside-box h3 { font-size: .9rem; margin-bottom: 14px; }
.aside-links { display: grid; gap: 12px; }
.aside-links a { display: grid; grid-template-columns: 60px 1fr; gap: 12px; align-items: center; font-size: .86rem; font-weight: 500; color: var(--ink); line-height: 1.35; }
.aside-links a:hover { color: var(--spark); }
.aside-links img, .aside-links .placeholder { width: 60px; height: 40px; object-fit: cover; border-radius: 8px; font-size: .9rem; }

/* ---------- About / contact / policies ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.figure { text-align: center; padding: 26px 12px; }
.figure strong { display: block; font-size: 1.8rem; font-weight: 700; color: var(--ink); letter-spacing: -.03em; }
.figure small { color: var(--soft); font-weight: 500; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value { padding: 28px; border-radius: var(--r-xl); }
.value h3 { margin: 16px 0 6px; font-size: 1.02rem; }
.value p { font-size: .92rem; }

.contact { display: grid; grid-template-columns: 340px 1fr; gap: 32px; align-items: start; padding-bottom: 80px; }
.contact-cards { display: grid; gap: 16px; }
.contact-card { display: flex; gap: 16px; align-items: center; padding: 18px; }
.contact-card strong { display: block; color: var(--ink); font-size: .92rem; font-weight: 600; }
.contact-card .muted { font-size: .9rem; }
.contact-form { padding: 34px; border-radius: var(--r-xl); }
.form-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.legal { display: grid; grid-template-columns: 230px 1fr; gap: 32px; align-items: start; padding-bottom: 80px; }
.legal-nav { position: sticky; top: 132px; padding: 10px; display: grid; gap: 2px; }
.legal-nav a { padding: 9px 12px; border-radius: var(--r-sm); font-weight: 500; font-size: .88rem; }
.legal-nav a:hover { background: var(--bg); color: var(--ink); }
.legal-body { display: grid; gap: 22px; }
.legal-body section { padding: 32px; border-radius: var(--r-xl); scroll-margin-top: 140px; }
.legal-body h2 { font-size: 1.25rem; margin-bottom: 12px; }
.legal-body h3 { font-size: .98rem; margin: 20px 0 6px; }
.legal-body ul { list-style: disc; padding-left: 20px; display: grid; gap: 9px; margin-top: 12px; }
.legal-body li::marker { color: var(--faint); }

/* ---------- Draft preview ---------- */
.preview-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 20px; border-radius: 12px; font-size: .88rem; color: #92400e; background: rgba(245, 158, 11, .12); border: 1px solid rgba(245, 158, 11, .25); }
.preview-bar span { flex: 1; min-width: 220px; }
.preview-bar strong { color: #92400e; }

/* ---------- Cart / checkout ---------- */
.checkout { display: grid; grid-template-columns: 1fr 350px; gap: 32px; align-items: start; }
.cart-line { display: grid; grid-template-columns: 108px 1fr auto auto; gap: 20px; align-items: center; padding: 12px 16px 12px 12px; margin-bottom: 14px; }
.cart-line img { width: 108px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; }
.cart-line h3 { font-size: 1rem; font-weight: 600; }
.cart-line h3 a:hover { color: var(--spark); }
.cart-line p { font-size: .84rem; }
.summary { padding: 26px; position: sticky; top: 132px; border-radius: var(--r-xl); }
.summary h2 { font-size: 1.05rem; margin-bottom: 16px; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 0; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.summary-total strong { font-size: 1.6rem; color: var(--ink); letter-spacing: -.02em; }
.summary-total span { font-weight: 500; color: var(--soft); font-size: .9rem; }
.order-line { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.order-line:last-child { border-bottom: 0; }
.order-line > span:first-child { display: grid; gap: 2px; }
.order-line strong { color: var(--ink); font-weight: 600; font-size: .94rem; }
.order-line small { font-size: .8rem; }
.order-line .amount { font-weight: 700; color: var(--ink); white-space: nowrap; }
.order-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; margin-bottom: 16px; cursor: pointer; }
.consent input { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; accent-color: var(--spark); }
.consent a { color: var(--ink); text-decoration: underline; }
.status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; }
.status-paid { color: #0b7a62; background: rgba(15, 159, 127, .12); }
.status-pending { color: #92400e; background: rgba(245, 158, 11, .14); }
.status-failed, .status-refunded { color: #b91c1c; background: rgba(220, 38, 38, .1); }

/* ---------- Customer auth / account ---------- */
.auth-wrap { position: relative; min-height: 72vh; display: grid; place-items: center; padding: 48px 16px 80px; overflow: hidden; isolation: isolate; }
.auth-wrap::before { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 138, 76, .3), transparent 70%); top: -160px; left: 10%; filter: blur(40px); }
.auth-card { width: 100%; max-width: 440px; padding: 36px; border-radius: var(--r-xl); }
.auth-card h1 { font-size: 1.55rem; margin-bottom: 6px; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; font-size: .86rem; }
.auth-row a:hover { color: var(--ink); }
.auth-switch { text-align: center; margin-top: 18px; font-size: .88rem; color: var(--soft); }
.auth-switch a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.account-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.account-nav form { display: inline; }
.account-title { font-size: 1.15rem; margin-bottom: 16px; }
.owned { display: grid; grid-template-columns: 108px 1fr auto; gap: 20px; align-items: center; padding: 12px 18px 12px 12px; margin-bottom: 14px; }
.owned img { width: 108px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; }
.owned h3 { font-size: 1rem; font-weight: 600; }
.owned h3 a:hover { color: var(--spark); }
.owned p { font-size: .84rem; }
.owned-actions { display: grid; justify-items: end; gap: 8px; }
.owned-rated { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--soft); }
.owned-rated:hover span { color: var(--spark); }
.older { margin-top: 6px; font-size: .82rem; }
.older summary { cursor: pointer; color: var(--soft); font-weight: 500; }
.older summary:hover { color: var(--ink); }
.older ul { padding: 8px 0 0 4px; display: grid; gap: 4px; }
.older a { font-weight: 600; color: var(--ink); text-decoration: underline; }
.invoice-head { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.invoice-head img { margin-bottom: 8px; }
.invoice-head strong { color: var(--ink); font-size: 1.05rem; }
.invoice-head h2 { font-size: 1.3rem; }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; padding: 64px 0 28px; margin-top: 40px; background: var(--slate); color: #94a3b8; }
.site-footer::before { content: ""; position: absolute; left: 50%; top: 0; width: 70%; height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(240, 89, 42, .7), rgba(124, 58, 237, .7), transparent); }
.footer-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; margin-bottom: 48px; }
.site-footer .brand { color: #fff; }
.footer-top p { margin-top: 14px; font-size: .88rem; max-width: 300px; line-height: 1.7; }
.footer-top h4 { font-size: .76rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #e2e8f0; margin-bottom: 16px; }
.footer-top ul { display: grid; gap: 10px; font-size: .88rem; }
.footer-top a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 24px; border-top: 1px solid rgba(148, 163, 184, .16); font-size: .82rem; }
.footer-bottom .pay i { font-size: 1.4rem; margin-left: 8px; vertical-align: middle; color: #cbd5e1; }

/* ---------- Error pages ---------- */
.oops { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.oops-code { font-size: clamp(4.5rem, 14vw, 7.5rem); font-weight: 700; letter-spacing: -.05em; line-height: 1; margin-bottom: 16px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

@media print {
    .site-header, .site-footer, .no-print { display: none !important; }
    body { background: #fff; }
    .invoice { box-shadow: none !important; padding: 0 !important; }
}

/* ---------- Ratings & reviews ---------- */
.stars { display: inline-flex; gap: 1px; color: #f5a524; font-size: .78rem; line-height: 1; }
.stars .fa-regular { color: #cbd2dc; }
.stars-lg { font-size: 1.05rem; gap: 3px; }
.item-rating { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--soft); margin: -4px 0 10px; }
.item-rating b { color: var(--ink); font-weight: 700; }
.item-rating:hover span { color: var(--spark); }
.item-meta .item-rating { margin: 0; font-size: .86rem; }
.item-meta .item-rating i.fa-star, .item-meta .item-rating i.fa-star-half-stroke { color: #f5a524; }
.item-meta .item-rating .fa-regular.fa-star { color: #cbd2dc; }
.item-rating-cc > .fa-leaf { color: var(--envato) !important; }
.item-foot small i { font-size: .85em; margin-right: 2px; color: var(--faint); }

.review-summary { display: grid; grid-template-columns: auto 1fr; gap: 18px 34px; align-items: center; margin-bottom: 22px; }
.review-score { display: grid; justify-items: center; gap: 6px; padding: 18px 24px; border-radius: var(--r-md); background: var(--bg); box-shadow: var(--down-sm); }
.review-score strong { font-size: 2.6rem; line-height: 1; color: var(--ink); letter-spacing: -.03em; }
.review-score small { color: var(--soft); font-size: .8rem; }
.review-bars { display: grid; gap: 7px; max-width: 420px; }
.review-bar { display: grid; grid-template-columns: 38px 1fr 28px; align-items: center; gap: 10px; font-size: .8rem; color: var(--soft); }
.review-bar i { color: #f5a524; font-size: .7rem; }
.review-bar .bar { height: 8px; border-radius: 99px; background: var(--bg); box-shadow: var(--down-sm); overflow: hidden; }
.review-bar .bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #f5a524, #f0592a); }
.review-empty { grid-column: 1 / -1; margin: 0; }
.review-cc { display: flex; margin-bottom: 12px; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r-md); border: 1px solid rgba(91, 138, 42, .25); background: rgba(91, 138, 42, .06); font-size: .88rem; color: var(--body); }
.review-cc > i { color: var(--envato); font-size: 1.1rem; }
.review-cc b { color: var(--ink); }
.review-cc small { display: block; color: var(--soft); font-size: .78rem; margin-top: 2px; }
.review-cc:hover { border-color: var(--envato); }
.review-cta { display: block; padding: 14px 16px; border-radius: var(--r-md); background: var(--bg); font-size: .9rem; margin-bottom: 8px; }
.review-cta i { color: var(--spark); margin-right: 8px; }
.review-cta a { color: var(--spark-deep); font-weight: 600; }

.review-write { margin-bottom: 10px; }
.review-write > summary { list-style: none; display: inline-flex; }
.review-write > summary::-webkit-details-marker { display: none; }
.review-form { margin-top: 18px; padding: 20px; border-radius: var(--r-md); background: var(--bg); box-shadow: var(--down-sm); }
.review-form fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.label-like { font-weight: 600; font-size: .84rem; color: var(--ink); margin-bottom: 7px; padding: 0; }
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { cursor: pointer; font-size: 1.6rem; color: #cbd2dc; padding: 2px; transition: color .12s, transform .12s; }
.star-input label:hover, .star-input label:hover ~ label, .star-input input:checked ~ label { color: #f5a524; }
.star-input label:hover { transform: scale(1.12); }
.star-input input:focus-visible + label { outline: 2px solid var(--spark); outline-offset: 2px; border-radius: 6px; }
.review-form .hint { font-size: .78rem; color: var(--soft); margin-top: 6px; }
.review-status { margin: 14px 0 0; padding: 10px 14px; border-radius: 10px; font-size: .86rem; background: rgba(245, 165, 36, .12); color: #92400e; }
.review-status-approved { background: rgba(15, 159, 127, .1); color: #0b6b55; }
.review-status-hidden { background: rgba(148, 163, 184, .18); color: var(--body); }

.review-list { display: grid; margin-top: 18px; border-top: 1px solid var(--line); }
.review { padding: 20px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; padding-bottom: 0; }
.review header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review h3 { font-size: .98rem; margin: 0; }
.review-by { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: .8rem; color: var(--soft); margin: 6px 0 10px; }
.review-by b { color: var(--ink); font-weight: 600; }
.review-by .verified { color: var(--mint); font-weight: 600; }
.review-body { font-size: .92rem; }
.review-reply { margin-top: 12px; padding: 12px 16px; border-left: 3px solid var(--spark); border-radius: 0 10px 10px 0; background: var(--bg); font-size: .88rem; }
.review-reply b { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: .82rem; margin-bottom: 4px; }
.review-reply img { border-radius: 5px; }

/* ---------- Share buttons ---------- */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; position: relative; }
.share-top { margin: -8px 0 24px; }
.share-label { font-size: .8rem; font-weight: 600; color: var(--soft); }
.share-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 0; border-radius: 12px; background: var(--surface); box-shadow: var(--up-sm, 3px 3px 8px var(--lo), -3px -3px 8px var(--hi)); color: var(--body); font-size: 1rem; cursor: pointer; transition: transform .15s var(--ease), color .15s, background .15s; }
.share-btn:hover { transform: translateY(-2px); color: #fff; }
.share-btn:focus-visible { outline: 2px solid var(--spark); outline-offset: 2px; }
.share-whatsapp:hover { background: #25d366; }
.share-facebook:hover { background: #1877f2; }
.share-x:hover { background: #0f1419; }
.share-linkedin:hover { background: #0a66c2; }
.share-telegram:hover { background: #229ed9; }
.share-instagram:hover { background: linear-gradient(45deg, #f9ce34, #ee2a7b 50%, #6228d7); }
.share-email:hover, .share-copy:hover, .share-more:hover { background: var(--ink); }
.share-note { flex-basis: 100%; font-size: .8rem; font-weight: 600; color: var(--mint); min-height: 0; }
.share:not(.has-note) .share-note { display: none; }
.share-end { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; margin-top: 24px; padding: 22px 26px; }
.share-end strong { display: block; color: var(--ink); font-size: 1.02rem; }
.share-end span { font-size: .88rem; color: var(--soft); }
.post-card time i { font-size: .85em; margin: 0 2px 0 1px; }
.chip-admin { outline: 1px dashed rgba(240, 89, 42, .5); outline-offset: -1px; }
.chip-admin small, .admin-only { font-size: .78em; font-weight: 500; color: var(--spark-deep); }

/* ---------- Responsive ---------- */
.site-header { transition: transform .28s var(--ease), box-shadow .2s; }

@media (max-width: 1080px) {
    .product, .article, .contact, .split, .checkout, .market { grid-template-columns: 1fr; }
    .side, .legal-nav, .summary, .filters { position: static; }
    .quick-buy { display: flex; }
    .bento { grid-template-columns: repeat(2, 1fr); }
    .cat-bento { grid-template-columns: repeat(2, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .legal { grid-template-columns: 1fr; }
    .legal-nav { grid-auto-flow: column; overflow-x: auto; scrollbar-width: none; }
    .market { gap: 18px; }
    .filters { padding: 0; }
    .filters-toggle { display: flex; min-height: 52px; padding: 0 18px; }
    .filters-body { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 24px; padding: 4px 18px 18px; border-top: 1px solid var(--line); }
    .filters:not([open]) .filters-body { display: none; }
    .filter-group { padding-top: 14px; }
    .filter-group + .filter-group { margin-top: 0; border-top: 0; }
    .filters .clear { grid-column: 1 / -1; }
}

@media (max-width: 880px) {
    .site-header .header-main { flex-wrap: wrap; height: auto; min-height: 58px; padding-top: 9px; padding-bottom: 9px; gap: 10px 12px; }
    .header-tools { margin-left: auto; gap: 8px; }
    .search-toggle { display: inline-flex; }
    .site-header.search-open .search-toggle { color: var(--spark); }
    .header-search { order: 3; flex: 0 0 100%; width: 100%; min-width: 0; max-width: none; box-sizing: border-box; display: none; margin-bottom: 2px; }
    .header-search input { width: 0; flex: 1 1 auto; }
    .header-search .btn { flex-shrink: 0; padding-left: 14px; padding-right: 14px; }
    .site-header.search-open .header-search { display: flex; }
    .site-header.is-hidden { transform: translateY(-100%); box-shadow: none; }
    .menu, .menu > li > a { height: 42px; }
    .menu, .tabs, .legal-nav { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
    .input, .select, .textarea, .header-search input, .search-xl input, .search-xl select { font-size: 16px; }
    .closing, .values { grid-template-columns: 1fr; }
    .cart-line, .owned { grid-template-columns: 84px 1fr; }
    .cart-line img, .owned img { width: 84px; }
    .cart-line > :nth-child(3), .cart-line > :nth-child(4), .owned > :nth-child(3) { grid-column: 2; justify-self: start; }
    .owned-actions { justify-items: start; grid-auto-flow: column; align-items: center; }
    .order-line { flex-wrap: wrap; }
    .filters-body { grid-template-columns: 1fr 1fr; }
    .search-xl select { display: none; }
    .hero { padding: 52px 0 48px; }
    .hero-stats { gap: 10px; margin-top: 32px; }
    .auth-row a { display: inline-flex; align-items: center; min-height: 40px; }
}

@media (max-width: 600px) {
    .share-end { padding: 18px; }
    .share-buttons { gap: 6px; }
    .share-btn { width: 34px; height: 34px; border-radius: 10px; font-size: .92rem; }
    .review-summary { grid-template-columns: 1fr; }
    .review-score { grid-template-columns: auto 1fr; justify-items: start; align-items: center; column-gap: 14px; }
    .review-score strong { grid-row: span 2; }
    .review-bars { max-width: none; }
    .review-form { padding: 16px; }
    body { font-size: 15px; }
    .wrap { padding: 0 16px; }
    .band { padding: 48px 0; }
    .page-head { padding-top: 26px; padding-bottom: 22px; }
    .page-head h1 { font-size: 1.75rem; }

    .hero { padding: 36px 0 36px; }
    .hero-badge { font-size: .78rem; margin-bottom: 18px; }
    .hero h1 { font-size: 2.05rem; margin-bottom: 14px; }
    .hero .lead { font-size: 1rem; margin-bottom: 24px; }
    .hero-tags { gap: 6px; }
    .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 28px; }
    .hero-stats div { min-width: 0; padding: 12px 6px; }
    .hero-stats strong { font-size: 1.1rem; }
    .hero-stats small { display: block; font-size: .7rem; line-height: 1.3; }
    .search-xl { padding: 6px; border-radius: 14px; }
    .search-xl i { margin-left: 8px; }
    .search-xl .btn { padding: 11px 16px; }

    .items, .tiles, .posts { grid-template-columns: 1fr; }
    .bento { grid-template-columns: 1fr; }
    .bento-tile.span-2 { grid-column: auto; grid-row: auto; min-height: 150px; }
    .cat-bento { grid-template-columns: 1fr; gap: 10px; }
    .cat-tile, .cat-tile:first-child { grid-column: auto; grid-row: auto; min-height: 0; flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; padding: 14px 44px 14px 14px; border-radius: var(--r-lg); }
    .cat-tile strong, .cat-tile:first-child strong { font-size: 1rem; margin-top: 0; }
    .cat-tile p { display: none; }
    .cat-tile .arrow { top: 50%; right: 18px; margin-top: -.5em; }
    .cat-tile .knob { flex-shrink: 0; }

    .trail { margin-bottom: 12px; }
    .trail span:last-child, .trail i:last-of-type { display: none; }

    .figures, .form-pair { grid-template-columns: 1fr; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 28px 20px; margin-bottom: 32px; }
    .footer-top > :first-child { grid-column: 1 / -1; }
    .closing > div, .contact-form, .legal-body section, .auth-card { padding: 24px 20px; }
    .section-card { padding: 22px 18px; }
    .page-head-split { grid-template-columns: 1fr; }
    .filters-body { grid-template-columns: 1fr; }
    .toolbar .select { width: 100%; }
    .brand span { display: none; }
    .tabs { margin-bottom: 20px; }
    .tabs a { padding: 12px 10px; font-size: .86rem; }
    .product-media { padding: 6px; }
    .product-media img { border-radius: 12px; }
    .release { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 380px) {
    .header-tools { gap: 6px; }
    .segment-sm a { padding: 0 7px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
    .js [data-reveal] { opacity: 1; transform: none; }
}
