/* =============================================================================
   Packages page. Dark by default, light via [data-theme="light"].
   Prefix: pk-. Layout: header, hero, sticky toolbar, card grid, modals, tray.
   ========================================================================== */

:root,
[data-theme="dark"] {
    --bg: #070b14;
    --bg-2: #0c1322;
    --surface: #101a2e;
    --surface-2: #15213a;
    --line: rgba(148, 163, 184, .16);
    --line-2: rgba(148, 163, 184, .28);
    --text: #e6edf7;
    --muted: #93a1b8;
    --accent: #38bdf8;
    --accent-2: #6366f1;
    --accent-ink: #04121f;
    --good: #34d399;
    --warn: #fbbf24;
    --bad: #f87171;
    --wa: #25d366;
    --shadow: 0 18px 50px rgba(0, 0, 0, .45);
    --glow: radial-gradient(60% 50% at 80% 0%, rgba(99, 102, 241, .22), transparent 70%), radial-gradient(50% 45% at 5% 10%, rgba(56, 189, 248, .16), transparent 70%);
    --radius: 16px;
    --radius-sm: 10px;
    --header-h: 68px;
    --font-display: 'Sora', 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;
    --line-strong: rgba(148, 163, 184, .3);
    --grad: linear-gradient(135deg, #22d3ee 0%, #8b5cf6 100%);
    --grad-soft: linear-gradient(135deg, rgba(34, 211, 238, .14), rgba(139, 92, 246, .14));
    color-scheme: dark;
}

[data-theme="light"] {
    --bg: #f4f7fb;
    --bg-2: #ffffff;
    --surface: #ffffff;
    --surface-2: #eef2f8;
    --line: rgba(15, 23, 42, .10);
    --line-2: rgba(15, 23, 42, .20);
    --text: #0f172a;
    --muted: #55637a;
    --accent: #0369a1;
    --accent-2: #4f46e5;
    --accent-ink: #ffffff;
    --good: #047857;
    --warn: #b45309;
    --bad: #b91c1c;
    --wa: #128c4a;
    --shadow: 0 18px 40px rgba(15, 23, 42, .14);
    --line-strong: rgba(15, 23, 42, .2);
    --grad: linear-gradient(135deg, #0891b2 0%, #7c3aed 100%);
    --grad-soft: linear-gradient(135deg, rgba(8, 145, 178, .1), rgba(124, 58, 237, .1));
    --glow: radial-gradient(60% 50% at 80% 0%, rgba(79, 70, 229, .10), transparent 70%), radial-gradient(50% 45% at 5% 10%, rgba(3, 105, 161, .08), transparent 70%);
    color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 150px; }
body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg) var(--glow) no-repeat;
    -webkit-font-smoothing: antialiased;
}
body.pk-lock { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: 'Sora', 'Inter', sans-serif; line-height: 1.2; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.pk-wrap { width: min(1200px, 100% - 32px); margin-inline: auto; }
.pk-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* Header */
.eq-wrap { width: min(1280px, 100% - 40px); margin-inline: auto; }
.eq-header {
    position: sticky; top: 0; z-index: 120; height: var(--header-h);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border-bottom: 1px solid var(--line);
}
.eq-header .eq-wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.eq-logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.eq-logo:hover { text-decoration: none; }
.eq-logo img { height: 34px; width: auto; }
.eq-logo .mark {
    width: 36px; height: 36px; border-radius: 11px; background: var(--grad); color: #04121c;
    display: inline-flex; align-items: center; justify-content: center; font-size: 16px;
}
.eq-nav { display: flex; gap: 4px; margin-left: 12px; }
.eq-nav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-weight: 500; font-size: 14px; transition: all .2s; }
.eq-nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.eq-nav a.is-active { color: var(--text); background: var(--grad-soft); box-shadow: inset 0 0 0 1px var(--line-strong); }
.eq-nav-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 19px; height: 19px; padding: 0 5px; margin-left: 4px; border-radius: 999px; background: var(--grad); color: #04121c; font-size: 11px; font-weight: 700; vertical-align: middle; }
.eq-nav-badge[hidden] { display: none; }
.eq-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.eq-icon-btn {
    position: relative; width: 42px; height: 42px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--surface-2); border: 1px solid var(--line); color: var(--text);
    transition: border-color .2s, background .2s, transform .15s;
}
.eq-icon-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.eq-icon-btn .eq-count {
    position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px;
    border-radius: 999px; background: var(--grad); color: #04121c; font-size: 11px; font-weight: 700;
    display: none; align-items: center; justify-content: center;
}
.eq-icon-btn .eq-count.is-on { display: inline-flex; }
.eq-icon-btn.is-active { border-color: var(--accent); }
.eq-menu-btn { display: none; }
.eq-skip { position: absolute; left: 8px; top: -60px; z-index: 400; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.eq-skip:focus { top: 12px; }
.eq-progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 300; background: transparent; pointer-events: none; }
.eq-progress span { display: block; height: 100%; width: 0; background: var(--grad); transition: width .1s linear; }

.pk-icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); transition: background .15s, border-color .15s, transform .15s; }
.pk-icon-btn:hover { background: var(--surface-2); border-color: var(--line-2); }
.pk-icon-btn.is-on { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.pk-icon-sm { width: 34px; height: 34px; border-radius: 8px; }

/* Buttons */
.pk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 10px; border: 1px solid transparent; font-weight: 600; font-size: .95rem; text-decoration: none; transition: transform .15s, box-shadow .15s, background .15s; }
.pk-btn:hover { text-decoration: none; transform: translateY(-1px); }
.pk-btn:active { transform: none; }
.pk-btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.pk-btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 8px 22px rgba(99, 102, 241, .3); }
.pk-btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--text); }
.pk-btn-ghost:hover { background: var(--surface-2); }
.pk-btn-wa { background: var(--wa); color: #fff; }
.pk-btn-sm { padding: 8px 12px; font-size: .86rem; }
.pk-btn-block { width: 100%; }
.pk-btn.is-added { background: var(--good); color: #04130c; box-shadow: none; }
.pk-link { background: none; border: 0; padding: 4px 0; color: var(--accent); font-weight: 600; font-size: .88rem; }
.pk-link:hover { text-decoration: underline; }

/* Hero */
.pk-hero { padding: 36px 0 34px; }
.pk-crumbs { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .86rem; margin-bottom: 18px; }
.pk-crumbs a { color: var(--muted); }
.pk-crumbs i { font-size: .6rem; }
.pk-hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.pk-eyebrow { display: inline-block; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); color: var(--accent); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.pk-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); margin: 14px 0; }
.pk-hero h1 span { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pk-lead { color: var(--muted); font-size: 1.08rem; max-width: 60ch; }
.pk-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.pk-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pk-stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 12px; text-align: center; }
.pk-stat b { display: block; font-family: 'Sora', sans-serif; font-size: 1.35rem; }
.pk-stat span { color: var(--muted); font-size: .8rem; }

/* Toolbar */
.pk-toolbar-wrap { position: sticky; top: var(--header-h); z-index: 60; padding: 12px 0 8px; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(12px); border-block: 1px solid var(--line); }
.pk-toolbar { display: grid; grid-template-columns: minmax(200px, 1.6fr) auto minmax(160px, 1fr) auto; gap: 12px; align-items: end; }
.pk-search { position: relative; }
.pk-search > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.pk-input, .pk-select { width: 100%; height: 44px; padding: 0 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line-2); transition: border-color .15s, box-shadow .15s; }
.pk-search .pk-input { padding-left: 40px; padding-right: 40px; }
.pk-input:focus, .pk-select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.pk-clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); }
.pk-clear:hover { background: var(--surface-2); color: var(--text); }
.pk-budget label { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-bottom: 8px; }
.pk-budget output { color: var(--text); font-weight: 600; }
.pk-budget input[type="range"] { width: 100%; accent-color: var(--accent); height: 24px; }
.pk-view { display: flex; gap: 6px; }

.pk-chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 0 4px; scrollbar-width: none; }
.pk-chips::-webkit-scrollbar { display: none; }
.pk-chip { flex: none; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-size: .88rem; font-weight: 500; transition: background .15s, border-color .15s; }
.pk-chip span { margin-left: 4px; color: var(--muted); font-size: .78rem; }
.pk-chip:hover { border-color: var(--accent); }
.pk-chip.is-on { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.pk-chip.is-on span { color: inherit; opacity: .8; }
.pk-chip-fav { margin-left: auto; }
.pk-chip-fav i { color: var(--bad); }
.pk-chip-fav.is-on i { color: inherit; }
.pk-resultbar { display: flex; align-items: center; justify-content: space-between; padding: 6px 0 2px; color: var(--muted); font-size: .88rem; }
.pk-resultbar b { color: var(--text); }

/* Recently viewed */
.pk-recent { padding-top: 22px; }
.pk-recent-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.pk-recent-head h2 { font-size: 1rem; color: var(--muted); font-family: 'Inter', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.pk-recent-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.pk-recent-item { flex: none; display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: left; }
.pk-recent-item:hover { border-color: var(--accent); }
.pk-recent-item .ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 700; font-size: .78rem; }
.pk-recent-item b { display: block; font-size: .88rem; }
.pk-recent-item small { color: var(--muted); }

/* Grid and cards */
.pk-grid-wrap { padding: 22px 0 36px; }
.pk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.pk-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; }
.pk-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow); }
.pk-card.is-focus { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 40%, transparent); }
.pk-card[hidden] { display: none; }
.pk-card.is-new { animation: pk-rise .45s both; }
@keyframes pk-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.pk-media { position: relative; aspect-ratio: 16 / 8; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, var(--surface-2)), color-mix(in srgb, var(--accent-2) 26%, var(--surface-2))); display: grid; place-items: center; overflow: hidden; }
.pk-media img { width: 100%; height: 100%; object-fit: cover; }
.pk-initials { font-family: 'Sora', sans-serif; font-size: 3rem; font-weight: 700; opacity: .55; }
.pk-badges { position: absolute; left: 10px; top: 10px; display: flex; flex-wrap: wrap; gap: 6px; max-width: calc(100% - 64px); }
.pk-badge { padding: 4px 10px; border-radius: 99px; background: rgba(7, 11, 20, .78); color: #fff; font-size: .72rem; font-weight: 600; backdrop-filter: blur(6px); }
.pk-badge-save { background: var(--good); color: #04130c; }
.pk-fav { position: absolute; right: 10px; top: 10px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(7, 11, 20, .7); color: #fff; backdrop-filter: blur(6px); transition: transform .15s; }
.pk-fav:hover { transform: scale(1.1); }
.pk-fav[aria-pressed="true"] { background: var(--bad); }
.pk-fav[aria-pressed="true"] i { font-weight: 900; }
.pk-fav.pop { animation: pk-pop .35s; }
@keyframes pk-pop { 40% { transform: scale(1.35); } }

.pk-body { display: flex; flex-direction: column; gap: 12px; padding: 18px; flex: 1; }
.pk-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pk-tag { padding: 3px 10px; border-radius: 99px; border: 1px solid var(--line-2); font-size: .74rem; color: var(--muted); }
.pk-tag-cap { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.pk-name { font-size: 1.25rem; }
.pk-desc { color: var(--muted); font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pk-includes h3 { font-family: 'Inter', sans-serif; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 8px; }
.pk-includes ul { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 6px; }
.pk-includes li { display: flex; gap: 10px; font-size: .9rem; }
.pk-includes li i { color: var(--accent); width: 16px; margin-top: 4px; text-align: center; font-size: .8rem; }
.pk-includes li b { color: var(--accent); font-weight: 600; }
.pk-pricing { margin-top: auto; padding: 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.pk-row { display: flex; justify-content: space-between; align-items: baseline; font-size: .9rem; color: var(--muted); }
.pk-row s { color: var(--muted); }
.pk-final { margin-top: 4px; }
.pk-final b { font-family: 'Sora', sans-serif; font-size: 1.6rem; color: var(--text); }
.pk-save { margin-top: 8px; padding: 6px 10px; border-radius: 8px; background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good); font-size: .85rem; font-weight: 600; }
.pk-peruser { margin-top: 6px; font-size: .8rem; color: var(--muted); }
.pk-card-actions { display: grid; gap: 10px; }
.pk-card-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pk-compare-pick { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; color: var(--muted); cursor: pointer; user-select: none; }
.pk-compare-pick input { width: 17px; height: 17px; accent-color: var(--accent); }

/* List layout */
.pk-grid[hidden] { display: none; }
.pk-grid[data-view="list"] { grid-template-columns: 1fr; }
.pk-grid[data-view="list"] .pk-card { flex-direction: row; }
.pk-grid[data-view="list"] .pk-media { aspect-ratio: auto; width: 240px; flex: none; }
.pk-grid[data-view="list"] .pk-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px 24px; }
.pk-grid[data-view="list"] .pk-pricing { margin-top: 0; }
.pk-grid[data-view="list"] .pk-card-actions { grid-column: 2; }

.pk-empty { text-align: center; padding: 60px 20px; border: 1px dashed var(--line-2); border-radius: var(--radius); background: var(--surface); }
.pk-empty > i { font-size: 2.6rem; color: var(--muted); margin-bottom: 14px; }
.pk-empty h2 { font-size: 1.4rem; margin-bottom: 8px; }
.pk-empty p { color: var(--muted); max-width: 52ch; margin: 0 auto; }
.pk-empty .pk-hero-cta { justify-content: center; }

/* Sections */
.pk-how, .pk-faq, .pk-cta { padding: 28px 0; }
.pk-how h2, .pk-faq h2 { font-size: 1.6rem; margin-bottom: 18px; }
.pk-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pk-steps li { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.pk-steps .n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 700; margin-bottom: 12px; }
.pk-steps h3 { font-size: 1.05rem; margin-bottom: 6px; }
.pk-steps p { color: var(--muted); font-size: .92rem; }
.pk-faq-list { display: grid; gap: 10px; max-width: 860px; }
.pk-faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 0 18px; }
.pk-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0; font-weight: 600; cursor: pointer; list-style: none; }
.pk-faq summary::-webkit-details-marker { display: none; }
.pk-faq summary i { transition: transform .2s; color: var(--muted); font-size: .8rem; }
.pk-faq details[open] summary i { transform: rotate(180deg); }
.pk-faq details p { padding-bottom: 16px; color: var(--muted); }
.pk-cta-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: 30px; border-radius: 20px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 20%, var(--surface)), color-mix(in srgb, var(--accent-2) 24%, var(--surface))); border: 1px solid var(--line-2); }
.pk-cta-card h2 { font-size: 1.5rem; margin-bottom: 6px; }
.pk-cta-card p { color: var(--muted); }
.pk-cta-card .pk-hero-cta { margin: 0; }
.pk-footer { margin-top: 24px; padding: 72px 0 90px; border-top: 1px solid var(--line); background: var(--bg-2); color: var(--muted); }
.pk-footer-grid { display: grid; gap: 36px; margin-bottom: 44px; }
@media (min-width: 800px) { .pk-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.pk-footer .eq-logo { margin-bottom: 16px; font-size: 1.2rem; }
.pk-footer p { color: var(--muted); font-size: .92rem; max-width: 38ch; }
.pk-footer h4 { margin: 0 0 16px; font-size: .78rem; font-family: 'JetBrains Mono', monospace; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pk-footer ul { list-style: none; margin: 0; padding: 0; }
.pk-footer li { margin-bottom: 10px; font-size: .92rem; }
.pk-footer li a, .pk-footer li button { border: 0; background: none; padding: 0; color: var(--text); font-size: inherit; }
.pk-footer li a:hover, .pk-footer li button:hover { color: var(--accent); text-decoration: none; }
.pk-footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 26px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted); }
.pk-footer-bottom .links { display: flex; gap: 18px; flex-wrap: wrap; }
.pk-footer-bottom button { border: 0; background: none; padding: 0; color: inherit; font-size: inherit; }
.pk-footer-bottom button:hover { color: var(--accent); }

.pk-top { position: fixed; right: 18px; bottom: 90px; z-index: 70; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow); }
.pk-top[hidden] { display: none; }

/* Compare tray */
.pk-tray { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 16px; width: min(760px, 100% - 24px); padding: 12px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); animation: pk-rise .3s both; }
.pk-tray[hidden] { display: none; }
.pk-tray-items { display: flex; gap: 8px; flex: 1; min-width: 0; overflow-x: auto; }
.pk-tray-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 99px; background: var(--surface-2); font-size: .85rem; font-weight: 500; }
.pk-tray-chip button { width: 22px; height: 22px; border: 0; border-radius: 50%; background: var(--line-2); color: var(--text); font-size: .7rem; }
.pk-tray-slot { flex: none; padding: 6px 12px; border-radius: 99px; border: 1px dashed var(--line-2); color: var(--muted); font-size: .82rem; }
.pk-tray-actions { display: flex; align-items: center; gap: 12px; }

/* Modals */
.pk-modal { position: fixed; inset: 0; z-index: 150; display: none; align-items: flex-start; justify-content: center; padding: 4vh 14px; overflow-y: auto; background: rgba(3, 7, 14, .72); backdrop-filter: blur(5px); }
.pk-modal.is-open { display: flex; animation: pk-fade .2s both; }
@keyframes pk-fade { from { opacity: 0; } to { opacity: 1; } }
.pk-drawer-wrap { padding: 0; align-items: stretch; justify-content: flex-end; overflow: hidden; }
.pk-drawer { width: min(430px, 100%); display: flex; flex-direction: column; background: var(--surface); border-left: 1px solid var(--line-2); box-shadow: var(--shadow); animation: pk-slide .3s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes pk-slide { from { transform: translateX(100%); } to { transform: none; } }
.pk-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.pk-drawer-head h2 { font-size: 1.15rem; display: flex; align-items: center; gap: 10px; }
.pk-drawer-body { flex: 1; overflow-y: auto; padding: 10px 22px; }
.pk-drawer-foot { padding: 16px 22px; border-top: 1px solid var(--line); background: var(--surface-2); display: grid; gap: 10px; }
.pk-drawer-empty { text-align: center; color: var(--muted); padding: 60px 10px; }
.pk-drawer-empty i { font-size: 2.4rem; color: var(--accent); margin-bottom: 12px; display: block; }
.pk-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: center; }
.pk-row:last-child { border-bottom: 0; }
.pk-row .th { width: 54px; height: 54px; border-radius: 12px; flex: none; overflow: hidden; background: var(--grad-soft); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.pk-row .th img { width: 100%; height: 100%; object-fit: cover; }
.pk-row .info { flex: 1; min-width: 0; }
.pk-row .info b, .pk-row-name { display: block; font-size: .92rem; line-height: 1.3; font-weight: 700; text-align: left; color: var(--text); }
.pk-row-name:hover { color: var(--accent); }
.pk-row .info small { color: var(--muted); font-size: .78rem; }
.pk-row .amt { font-family: var(--font-mono); font-size: .85rem; color: var(--accent); white-space: nowrap; }
.pk-qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; margin-top: 6px; }
.pk-qty button { width: 28px; height: 28px; font-size: .75rem; color: var(--muted); }
.pk-qty button:hover { background: var(--surface-2); color: var(--text); }
.pk-qty span { min-width: 28px; text-align: center; font-size: .85rem; font-weight: 600; }
.pk-rm { color: var(--muted); width: 30px; height: 30px; border-radius: 50%; flex: none; }
.pk-rm:hover { color: #f87171; background: rgba(248, 113, 113, .12); }
.pk-total { display: flex; justify-content: space-between; align-items: baseline; font-size: .9rem; color: var(--muted); }
.pk-total b { font-family: var(--font-display); font-size: 1.4rem; color: var(--text); }
.pk-btn.is-disabled { opacity: .5; pointer-events: none; }
.pk-sheet { position: relative; width: min(620px, 100%); background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); animation: pk-rise .28s both; }
.pk-sheet-sm { width: min(480px, 100%); }
.pk-sheet-lg { width: min(860px, 100%); }
.pk-sheet-xl { width: min(1080px, 100%); }
.pk-x { position: absolute; right: 14px; top: 14px; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); }
.pk-x:hover { border-color: var(--line-2); }

.pk-dt-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; padding-right: 44px; }
.pk-dt-title { font-size: 1.7rem; margin-bottom: 8px; padding-right: 44px; }
.pk-dt-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 24px; margin-top: 20px; }
.pk-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.pk-table th, .pk-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.pk-table th { color: var(--muted); font-weight: 600; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; }
.pk-table td.num, .pk-table th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pk-table tfoot td { font-weight: 700; border-bottom: 0; }
.pk-panel { padding: 18px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.pk-panel h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-family: 'Inter', sans-serif; margin-bottom: 12px; }
.pk-big { font-family: 'Sora', sans-serif; font-size: 2rem; font-weight: 700; }
.pk-meter { height: 10px; margin: 12px 0 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.pk-meter i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--good), var(--accent)); transition: width .5s; }
.pk-meter-lab { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); }
.pk-qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.pk-qty button { width: 36px; height: 38px; border: 0; background: var(--surface-2); }
.pk-qty output { min-width: 40px; text-align: center; font-weight: 600; }
.pk-dt-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.pk-dt-nav { display: flex; justify-content: space-between; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.pk-kv { display: grid; gap: 8px; font-size: .9rem; }
.pk-kv div { display: flex; justify-content: space-between; gap: 12px; }
.pk-kv span { color: var(--muted); }

/* Compare table */
.pk-cmp-wrap { overflow-x: auto; margin-top: 16px; }
.pk-cmp { width: 100%; min-width: 620px; border-collapse: separate; border-spacing: 0; font-size: .92rem; }
.pk-cmp th, .pk-cmp td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.pk-cmp thead th { position: sticky; top: 0; background: var(--surface); font-family: 'Sora', sans-serif; font-size: 1rem; }
.pk-cmp tbody th { color: var(--muted); font-weight: 500; width: 190px; }
.pk-cmp td.best { background: color-mix(in srgb, var(--good) 12%, transparent); color: var(--good); font-weight: 700; }
.pk-cmp .yes { color: var(--good); }
.pk-cmp .no { color: var(--muted); opacity: .5; }
.pk-cmp tr.is-same { opacity: .55; }
.pk-cmp-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-right: 44px; }
.pk-switch { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); cursor: pointer; }
.pk-switch input { accent-color: var(--accent); width: 17px; height: 17px; }

/* Finder */
.pk-steps-bar { display: flex; gap: 6px; margin: 16px 0 22px; }
.pk-steps-bar i { flex: 1; height: 5px; border-radius: 99px; background: var(--surface-2); }
.pk-steps-bar i.on { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.pk-q h3 { font-size: 1.15rem; margin-bottom: 14px; }
.pk-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.pk-opt { padding: 14px 10px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); text-align: center; font-weight: 600; transition: border-color .15s, background .15s; }
.pk-opt small { display: block; margin-top: 2px; color: var(--muted); font-weight: 400; font-size: .76rem; }
.pk-opt:hover { border-color: var(--accent); }
.pk-opt.is-on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--bg-2)); }
.pk-q-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 22px; }
.pk-rank { display: grid; gap: 10px; margin-top: 14px; }
.pk-rank-item { display: flex; align-items: center; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.pk-rank-item.top { border-color: var(--accent); }
.pk-rank-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); font-weight: 700; flex: none; }
.pk-rank-item.top .pk-rank-n { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.pk-rank-main { flex: 1; min-width: 0; }
.pk-rank-main b { display: block; }
.pk-rank-main small { color: var(--muted); }
.pk-score { font-family: 'Sora', sans-serif; font-weight: 700; color: var(--accent); }

/* Shortcuts help */
.pk-keylist { display: grid; gap: 8px; margin-top: 14px; }
.pk-keylist div { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .92rem; }
kbd { display: inline-block; min-width: 26px; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--surface-2); font-family: 'JetBrains Mono', monospace; font-size: .78rem; text-align: center; }

/* Toasts */
.pk-toasts { position: fixed; right: 16px; bottom: 84px; z-index: 300; display: grid; gap: 8px; width: min(360px, 100% - 32px); }
.pk-toast { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow); font-size: .9rem; animation: pk-rise .25s both; }
.pk-toast.ok i { color: var(--good); }
.pk-toast.warn i { color: var(--warn); }
.pk-toast a, .pk-toast button { margin-left: auto; background: none; border: 0; color: var(--accent); font-weight: 600; white-space: nowrap; }
.pk-toast.out { opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }

@media (max-width: 980px) {
    .pk-hero-grid { grid-template-columns: 1fr; }
    .pk-toolbar { grid-template-columns: 1fr 1fr; }
    .pk-search { grid-column: 1 / -1; }
    .pk-steps { grid-template-columns: 1fr; }
    .pk-dt-grid { grid-template-columns: 1fr; }
    .eq-nav { display: none; }
    .eq-menu-btn { display: inline-flex; }
    .eq-nav.is-open { display: flex; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; padding: 14px 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
    .pk-grid { grid-template-columns: 1fr; }
    .pk-grid[data-view="list"] .pk-card { flex-direction: column; }
    .pk-grid[data-view="list"] .pk-media { width: auto; aspect-ratio: 16 / 8; }
    .pk-grid[data-view="list"] .pk-body { display: flex; }
    .pk-sheet { padding: 22px 16px; }
    .pk-tray { flex-direction: column; align-items: stretch; gap: 10px; }
    .pk-tray-actions { justify-content: space-between; }
    .pk-chip-fav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
    .eq-header, .pk-toolbar-wrap, .pk-tray, .pk-top, .pk-toasts, .eq-progress, .pk-footer, .pk-how, .pk-faq, .pk-cta { display: none !important; }
    body { background: #fff; color: #000; }
    .pk-card { break-inside: avoid; box-shadow: none; border-color: #999; }
}
