:root {
  --bg: #06070b;
  --bg-2: #0b0d14;
  --glass: rgba(20, 23, 34, 0.62);
  --glass-2: rgba(28, 32, 46, 0.72);
  --solid: #121520;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #f1f2f7;
  --muted: #9ba1b4;
  --dim: #646b80;
  --amber: #ffb547;
  --orange: #ff7a45;
  --pink: #ff4f8b;
  --grad: linear-gradient(120deg, #ffc35c 0%, #ff7a45 48%, #ff4f8b 100%);
  --accent: #ff9a4a;
  --accent-ink: #1c0f05;
  --accent-soft: rgba(255, 154, 74, 0.13);
  --green: #34d399;
  --green-soft: rgba(52, 211, 153, 0.12);
  --blue: #60a5fa;
  --blue-soft: rgba(96, 165, 250, 0.12);
  --violet: #a78bfa;
  --violet-soft: rgba(167, 139, 250, 0.13);
  --red: #fb7185;
  --red-soft: rgba(251, 113, 133, 0.12);
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --font: 'Plus Jakarta Sans', Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(255, 122, 69, 0.35); }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 0.86em; }
[hidden] { display: none !important; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% auto; animation: gradShift 6s ease-in-out infinite; }
@keyframes gradShift { 50% { background-position: 100% 0; } }

/* ---------- animated backdrop ---------- */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.backdrop .blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.38; will-change: transform; }
.backdrop .b1 { width: 620px; height: 620px; background: #ff7a45; top: -260px; left: -160px; animation: drift1 26s ease-in-out infinite; }
.backdrop .b2 { width: 520px; height: 520px; background: #ff4f8b; top: 10%; right: -220px; opacity: 0.22; animation: drift2 32s ease-in-out infinite; }
.backdrop .b3 { width: 560px; height: 560px; background: #4f6bff; bottom: -320px; left: 30%; opacity: 0.18; animation: drift3 38s ease-in-out infinite; }
.backdrop .mesh { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%); opacity: 0.55; }
.backdrop .noise { position: absolute; inset: 0; opacity: 0.05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes drift1 { 50% { transform: translate(180px, 120px) scale(1.15); } }
@keyframes drift2 { 50% { transform: translate(-160px, 140px) scale(0.9); } }
@keyframes drift3 { 50% { transform: translate(-200px, -120px) scale(1.1); } }
.scroll-bar { position: fixed; top: 0; left: 0; height: 2px; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--grad); z-index: 60; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.top.scrolled { background: rgba(8, 9, 14, 0.72); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand img { transition: transform .5s var(--spring); filter: drop-shadow(0 4px 14px rgba(255, 122, 69, 0.45)); }
.brand:hover img { transform: rotate(-10deg) scale(1.08); }
.brand b { font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); }
.nav a { position: relative; z-index: 1; text-decoration: none; color: var(--muted); padding: 7px 14px; border-radius: 9px; font-weight: 600; font-size: 14px; transition: color .25s; }
.nav a:hover, .nav a.on { color: var(--text); }
.nav .pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 9px; background: rgba(255, 255, 255, 0.09); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s; opacity: 0; }
.sync { margin-left: auto; font-size: 12.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; white-space: nowrap; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.sync::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); animation: ping 2.4s infinite; }
.sync.busy::before { background: var(--amber); animation: ping 1s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } }

main { flex: 1; padding-top: 18px; padding-bottom: 80px; }
.view { animation: viewIn .55s var(--ease) backwards; } /* backwards: no filter left behind (it would disable backdrop blur) */
.view.out { animation: viewOut .18s ease-in both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes viewOut { to { opacity: 0; transform: translateY(-6px); } }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(18px) scale(0.985); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 56px 0 40px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--amber); padding: 6px 12px 6px 8px; border-radius: 99px; background: var(--accent-soft); border: 1px solid rgba(255, 154, 74, 0.25); margin-bottom: 20px; }
.eyebrow i { width: 18px; height: 18px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-style: normal; color: #1c0f05; font-size: 11px; }
.hero h1 { font-size: clamp(36px, 5.6vw, 64px); line-height: 1.02; letter-spacing: -0.045em; margin: 0 0 20px; font-weight: 800; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero h1 .line > span { display: inline-block; animation: rise .9s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes rise { from { transform: translateY(105%); opacity: 0; } to { transform: none; opacity: 1; } }
.hero p { color: var(--muted); font-size: 17.5px; margin: 0 0 30px; max-width: 540px; animation: fadeUp .8s var(--ease) .35s both; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; animation: fadeUp .8s var(--ease) .5s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.road { position: relative; height: 54px; margin-top: 38px; border-radius: 14px; background: linear-gradient(180deg, #11131b, #0b0c12); border: 1px solid var(--line); overflow: hidden; animation: fadeUp .8s var(--ease) .65s both; }
.road::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 3px; transform: translateY(-50%); background: repeating-linear-gradient(90deg, rgba(255, 196, 92, 0.7) 0 34px, transparent 34px 70px); animation: roadMove 1.1s linear infinite; }
@keyframes roadMove { to { background-position: -70px 0; } }
.road .truck { position: absolute; top: 50%; left: -80px; transform: translateY(-50%); width: 64px; height: 30px; animation: truckRun 9s var(--ease) infinite; filter: drop-shadow(0 6px 14px rgba(255, 122, 69, 0.5)); }
@keyframes truckRun { 0% { left: -80px; } 45%, 55% { left: calc(50% - 32px); } 100% { left: calc(100% + 20px); } }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat { position: relative; overflow: hidden; background: var(--glass); backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.stat b { display: block; font-size: 32px; letter-spacing: -0.03em; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 13px; }
.stat::after { content: ''; position: absolute; inset: auto -40% -60% auto; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 122, 69, 0.22), transparent 70%); transition: transform .6s var(--ease); }
.stat:hover::after { transform: scale(1.5); }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.05); color: var(--text); padding: 10px 17px; border-radius: 12px; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap; overflow: hidden; isolation: isolate; transition: transform .25s var(--spring), background .25s, border-color .25s, box-shadow .3s, opacity .2s; }
.btn:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.22); transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--grad); background-size: 160% auto; border-color: transparent; color: var(--accent-ink); box-shadow: 0 8px 28px -8px rgba(255, 122, 69, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn.primary:hover { background-position: 90% 0; box-shadow: 0 14px 36px -8px rgba(255, 122, 69, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn.primary::after { content: ''; position: absolute; z-index: -1; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent); transform: skewX(-20deg); animation: shine 3.6s ease-in-out infinite; }
.btn.primary:disabled::after { display: none; }
@keyframes shine { 0%, 60% { left: -60%; } 100% { left: 130%; } }
.btn.big { padding: 14px 22px; font-size: 15px; border-radius: 14px; }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.btn.ghost { background: transparent; }
.btn .sub { font-weight: 600; opacity: 0.72; }
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .3s var(--spring); }
.btn:hover svg { transform: translateY(1px); }
.btn .ripple { position: absolute; border-radius: 50%; transform: scale(0); background: rgba(255, 255, 255, 0.35); animation: ripple .6s ease-out; pointer-events: none; z-index: -1; }
@keyframes ripple { to { transform: scale(2.6); opacity: 0; } }

/* ---------- sections ---------- */
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 48px 0 18px; }
.sec-h h2 { margin: 0; font-size: 22px; letter-spacing: -0.025em; font-weight: 800; }
.sec-h a { color: var(--muted); font-size: 14px; text-decoration: none; font-weight: 600; transition: color .2s, transform .2s; display: inline-block; }
.sec-h a:hover { color: var(--text); transform: translateX(3px); }
.page-h { margin: 18px 0 26px; }
.page-h h1 { margin: 0 0 8px; font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.04em; font-weight: 800; line-height: 1.05; }
.page-h p { margin: 0; color: var(--muted); font-size: 15.5px; }
.crumbs { font-size: 13px; color: var(--dim); margin-bottom: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; transition: color .2s; }
.crumbs a:hover { color: var(--text); }

/* ---------- glass cards with cursor spotlight ---------- */
.glass { position: relative; background: var(--glass); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); border: 1px solid var(--line); border-radius: var(--radius); }
.spot { --mx: 50%; --my: 50%; }
.spot::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 154, 74, 0.13), transparent 45%); }
.spot:hover::before { opacity: 1; }
.spot::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(260px circle at var(--mx) var(--my), rgba(255, 170, 90, 0.75), transparent 60%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.spot:hover::after { opacity: 1; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.combo { display: block; text-decoration: none; padding: 22px; transition: transform .45s var(--spring), box-shadow .45s var(--ease), border-color .3s; transform-style: preserve-3d; }
.combo:hover { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.04); }
.combo .row1 { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.combo h3 { margin: 0; font-size: 18px; letter-spacing: -0.02em; font-weight: 800; }
.combo .meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.combo .nums { display: flex; gap: 16px; margin: 20px 0 12px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.combo .nums b { color: var(--text); font-weight: 800; }
.combo .go { position: absolute; right: 20px; bottom: 20px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); opacity: 0; transform: translateX(-8px); transition: opacity .3s, transform .4s var(--spring); }
.combo:hover .go { opacity: 1; transform: none; }
.combo .go svg { width: 16px; height: 16px; }
.bar { height: 7px; background: rgba(255, 255, 255, 0.05); border-radius: 99px; overflow: hidden; display: flex; gap: 2px; margin-right: 44px; }
.bar i { display: block; height: 100%; border-radius: 99px; transform-origin: 0 50%; animation: grow 1.1s var(--ease) both; animation-delay: calc(var(--d, 0ms) + 200ms); }
@keyframes grow { from { transform: scaleX(0); } }
.bar .d { background: linear-gradient(90deg, #10b981, #34d399); }
.bar .s { background: linear-gradient(90deg, #3b82f6, #60a5fa); opacity: .7; }
.bar .p { background: linear-gradient(90deg, #8b5cf6, #a78bfa); opacity: .8; }
.ver-group { margin-bottom: 38px; }
.ver-group h2 { font-size: 14px; color: var(--muted); font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; margin: 0 0 14px; display: flex; align-items: center; gap: 12px; }
.ver-group h2::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-2), transparent); }

/* ---------- chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); color: var(--muted); white-space: nowrap; border: 1px solid transparent; }
.chip.new { background: var(--accent-soft); color: var(--amber); border-color: rgba(255, 181, 71, 0.2); }
.chip.upd { background: var(--blue-soft); color: var(--blue); border-color: rgba(96, 165, 250, 0.2); }
.chip.paid { background: var(--violet-soft); color: var(--violet); border-color: rgba(167, 139, 250, 0.2); }
.chip.ok { background: var(--green-soft); color: var(--green); border-color: rgba(52, 211, 153, 0.2); }
.chip.red { background: var(--red-soft); color: var(--red); }
.chip.latest { background: var(--grad); color: var(--accent-ink); box-shadow: 0 4px 16px -4px rgba(255, 122, 69, 0.6); }
.chip.pulse::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* ---------- combo page ---------- */
.combo-head { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; margin-bottom: 22px; }
.combo-head .facts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.dl-panel { padding: 24px; display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; margin-bottom: 18px; overflow: hidden; }
.dl-panel::after { content: ''; position: absolute; width: 380px; height: 380px; right: -120px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 122, 69, 0.25), transparent 65%); pointer-events: none; animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.18); opacity: .7; } }
.dl-panel h2 { margin: 0 0 6px; font-size: 18px; letter-spacing: -0.02em; }
.dl-panel p { margin: 0; color: var(--muted); font-size: 14px; max-width: 620px; }
.dl-actions { position: relative; z-index: 1; display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; font-size: 12.5px; color: var(--muted); }
.legend span::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 7px; vertical-align: 1px; }
.legend .d::before { background: var(--green); }
.legend .s::before { background: var(--blue); }
.legend .p::before { background: var(--violet); }

details.howto { margin-bottom: 20px; overflow: hidden; }
details.howto summary { cursor: pointer; padding: 15px 18px; font-weight: 700; font-size: 14px; list-style: none; display: flex; align-items: center; gap: 10px; }
details.howto summary::-webkit-details-marker { display: none; }
details.howto summary .chev { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--accent-soft); color: var(--amber); transition: transform .4s var(--spring); }
details.howto[open] summary .chev { transform: rotate(90deg); }
details.howto .body { padding: 0 18px 16px 50px; color: var(--muted); font-size: 14px; animation: fadeUp .4s var(--ease); }
details.howto ol { margin: 0; padding-left: 18px; }
details.howto li { margin: 5px 0; }
code { font-family: var(--mono); font-size: 0.86em; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; color: var(--text); }

.toolbar { position: sticky; top: 68px; z-index: 20; padding: 12px 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.toolbar::before { content: ''; position: absolute; inset: 0 -24px; z-index: -1; background: linear-gradient(180deg, rgba(6, 7, 11, 0.92) 70%, rgba(6, 7, 11, 0)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); mask-image: linear-gradient(180deg, #000 75%, transparent); }
.search { flex: 1; min-width: 220px; position: relative; }
.search input { width: 100%; background: var(--glass-2); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px 11px 40px; outline: none; transition: border-color .25s, box-shadow .25s, background .25s; }
.search input:focus { border-color: rgba(255, 154, 74, 0.6); box-shadow: 0 0 0 4px rgba(255, 154, 74, 0.12); background: rgba(28, 32, 46, 0.9); }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--dim); transition: color .25s; }
.search input:focus + svg, .search:focus-within svg { color: var(--amber); }
.seg { position: relative; display: flex; background: var(--glass-2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.seg button { position: relative; z-index: 1; border: 0; background: none; padding: 7px 12px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; transition: color .25s; }
.seg button.on { color: var(--text); }
.seg button .n { color: var(--dim); margin-left: 5px; font-size: 12px; font-variant-numeric: tabular-nums; }
.seg .pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; border-radius: 9px; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08); transition: transform .45s var(--ease), width .45s var(--ease); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); cursor: pointer; user-select: none; white-space: nowrap; font-weight: 600; }

/* custom checkbox */
input[type=checkbox] { appearance: none; -webkit-appearance: none; width: 19px; height: 19px; margin: 0; flex: none; border-radius: 6px; border: 1.5px solid rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.03); cursor: pointer; display: grid; place-items: center; transition: background .2s, border-color .2s, transform .3s var(--spring), box-shadow .2s; }
input[type=checkbox]::after { content: ''; width: 10px; height: 6px; border: 2.4px solid var(--accent-ink); border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform .3s var(--spring); }
input[type=checkbox]:checked { background: var(--grad); border-color: transparent; box-shadow: 0 4px 14px -4px rgba(255, 122, 69, 0.7); }
input[type=checkbox]:checked::after { transform: rotate(-45deg) scale(1); }
input[type=checkbox]:hover:not(:disabled) { border-color: rgba(255, 170, 90, 0.7); }
input[type=checkbox]:active:not(:disabled) { transform: scale(0.85); }
input[type=checkbox]:disabled { opacity: 0.25; cursor: not-allowed; }
input[type=checkbox]:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.selbar { display: flex; align-items: center; gap: 12px; padding: 4px 2px 12px; font-size: 13.5px; color: var(--muted); flex-wrap: wrap; }
.selbar .sp { flex: 1; }

.mods { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.mod { position: relative; display: grid; grid-template-columns: 22px 46px 100px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--line); transition: background .25s; }
.mod:first-child { border-top: 0; }
.mod::before { content: ''; position: absolute; left: 0; top: 12%; bottom: 12%; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); transform: scaleY(0); transition: transform .35s var(--spring); }
.mod:hover { background: rgba(255, 255, 255, 0.028); }
.mod.sel { background: rgba(255, 154, 74, 0.06); }
.mod.sel::before, .mod:hover::before { transform: scaleY(1); }
.mod.have { opacity: .5; }
.mod.have:hover { opacity: .95; }
.mod.rv { transform: translateY(10px); }
.mod.rv.in { transform: none; }
.mod .num { font-family: var(--mono); font-size: 12px; color: var(--dim); text-align: right; }
.mod .ic-wrap { width: 100px; height: 58px; border-radius: 10px; overflow: hidden; background: rgba(255, 255, 255, 0.04); position: relative; }
.mod .ic { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transform: scale(1.08); transition: opacity .5s, transform .6s var(--ease); }
.mod .ic.ok { opacity: 1; transform: none; }
.mod:hover .ic.ok { transform: scale(1.06); }
.mod .info { min-width: 0; }
.mod .name { font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; letter-spacing: -0.01em; }
.mod .sub { font-size: 12.5px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.mod .file { font-family: var(--mono); font-size: 11.5px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 3px; }
.mod .note { font-size: 12.5px; color: var(--amber); margin-top: 5px; }
.mod .act { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
.mod .act .btn { min-width: 140px; }
.btn.dl { background: var(--green-soft); border-color: rgba(52, 211, 153, 0.3); color: var(--green); }
.btn.dl:hover { background: rgba(52, 211, 153, 0.2); box-shadow: 0 8px 24px -10px rgba(52, 211, 153, 0.6); }
.btn.src { color: var(--blue); }
.btn.src:hover { box-shadow: 0 8px 24px -12px rgba(96, 165, 250, 0.6); }
.btn.buy { color: var(--violet); }
.have-t { border: 0; background: none; cursor: pointer; color: var(--dim); padding: 7px; border-radius: 9px; display: grid; place-items: center; transition: color .2s, background .2s, transform .35s var(--spring); }
.have-t:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.have-t.on { color: var(--green); }
.have-t.pop { animation: pop .45s var(--spring); }
@keyframes pop { 40% { transform: scale(1.35); } }
.have-t svg { width: 19px; height: 19px; }
.empty { padding: 48px; text-align: center; color: var(--muted); }

/* ---------- floating dock ---------- */
.dock { position: fixed; left: 50%; bottom: 20px; z-index: 45; width: min(760px, calc(100% - 32px)); transform: translate(-50%, 140%); transition: transform .55s var(--spring); }
.dock.on { transform: translate(-50%, 0); }
.dock-in { display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 18px; border-radius: 18px; background: rgba(18, 20, 30, 0.82); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5); border: 1px solid var(--line-2); box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 154, 74, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.dock .count { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: var(--accent-ink); font-weight: 800; font-size: 15px; flex: none; font-variant-numeric: tabular-nums; }
.dock .count.bump { animation: pop .4s var(--spring); }
.dock .txt { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); }
.dock .txt b { display: block; color: var(--text); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock .txt span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock .acts { display: flex; gap: 8px; }

/* queue (open next) */
.queue { position: sticky; bottom: 16px; z-index: 15; margin-top: 18px; padding: 14px 16px; display: flex; align-items: center; gap: 16px; background: rgba(18, 20, 30, 0.86); box-shadow: 0 18px 44px -14px rgba(0, 0, 0, 0.75); transition: bottom .5s var(--spring); }
body.docked .queue { bottom: 100px; }
.queue .txt { flex: 1; font-size: 13.5px; min-width: 0; }
.queue .txt b { display: block; font-size: 14.5px; }
.queue .txt span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.queue .prog { height: 4px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); margin-top: 8px; overflow: hidden; }
.queue .prog i { display: block; height: 100%; background: var(--grad); border-radius: 99px; transition: width .6s var(--ease); }

/* ---------- updates feed ---------- */
.feed { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.feed li { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 14px; padding: 13px 18px; border-top: 1px solid var(--line); align-items: center; font-size: 14px; transition: background .2s; }
.feed li:first-child { border-top: 0; }
.feed li:hover { background: rgba(255, 255, 255, 0.025); }
.feed .when { color: var(--dim); font-size: 12.5px; }
.feed .what { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.feed .what a { color: var(--muted); text-decoration: none; }
.feed .what a:hover { color: var(--text); }
.feed .v { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }

/* ---------- GMC mods ---------- */
.gmc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.gmc-card { overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .45s var(--spring), box-shadow .45s; }
.gmc-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -26px rgba(0, 0, 0, 0.85); }
.gmc-card .ph { aspect-ratio: 276 / 162; overflow: hidden; background: rgba(255, 255, 255, 0.04); }
.gmc-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease); }
.gmc-card:hover img { transform: scale(1.07); }
.gmc-card div.t { padding: 13px 15px; font-weight: 700; font-size: 14px; display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.gmc-card div.t span { color: var(--blue); }
.gmc-card div.t svg { width: 15px; height: 15px; }
.tabs { display: flex; gap: 8px; margin-bottom: 20px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; top: 84px; transform: translate(-50%, -16px) scale(0.96); display: flex; align-items: center; gap: 10px; background: rgba(22, 25, 36, 0.92); backdrop-filter: blur(16px); border: 1px solid var(--line-2); color: var(--text); padding: 11px 16px; border-radius: 14px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .3s, transform .45s var(--spring); z-index: 70; max-width: calc(100% - 32px); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.7); }
.toast::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); flex: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 13.5px; color: var(--muted); }
.foot-in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot p { margin: 4px 0; }
.foot a { color: var(--text); text-decoration-color: rgba(255, 255, 255, 0.25); text-underline-offset: 3px; transition: color .2s; }
.foot a:hover { color: var(--amber); }

.skeleton { height: 140px; border-radius: var(--radius); background: linear-gradient(90deg, rgba(255,255,255,.03) 0%, rgba(255,255,255,.07) 50%, rgba(255,255,255,.03) 100%); background-size: 200% 100%; animation: shimmer 1.3s infinite; margin-top: 24px; }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 26px; }
  .combo-head, .dl-panel { grid-template-columns: 1fr; }
  .dl-actions { justify-content: stretch; }
  .dl-actions .btn { flex: 1; }
  .mod { grid-template-columns: 22px 72px minmax(0, 1fr); gap: 10px 14px; padding: 12px 14px; }
  .mod .num { display: none; }
  .mod .ic-wrap { width: 72px; height: 42px; }
  .mod .act { grid-column: 2 / -1; justify-content: flex-start; }
  .mod .act .btn { flex: 1; }
  .sync { display: none; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .top-in { gap: 12px; height: 60px; }
  .brand span { display: none; }
  .nav { overflow-x: auto; scrollbar-width: none; }
  .nav a { padding: 7px 10px; }
  .toolbar { top: 60px; }
  .feed li { grid-template-columns: 1fr; gap: 2px; }
  .queue, .dock-in { flex-wrap: wrap; }
  .dock .txt { flex-basis: calc(100% - 60px); }
  .queue .txt { flex-basis: 100%; }
  .toolbar { position: static; }
  .toolbar::before { display: none; }
  .dock { bottom: 12px; }
  .dock-in { padding: 10px; gap: 10px; }
  #dHave { display: none; }
  body.docked .queue { bottom: 128px; }
  .queue .btn, .dock .acts { flex: 1; }
  .dock .acts .btn { flex: 1; }
  .road .truck { animation-duration: 7s; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .rv { opacity: 1; transform: none; }
}

/* performance: long lists and phones skip the expensive backdrop blur */
.mods.glass, .feed.glass, .bulk.glass { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(16, 18, 27, 0.9); }
@media (max-width: 900px), (hover: none) {
  .glass { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(18, 20, 30, 0.92); }
  .backdrop .blob { animation: none; filter: blur(60px); }
  .backdrop .noise { display: none; }
}
