/* MCTG Mods. Visual language follows MX Bikes Manager (layout v2). */
:root {
  --bg: #08090b;
  --panel: rgba(255, 255, 255, .045);
  --raised: rgba(255, 255, 255, .075);
  --solid: #17181c;
  --solid-2: #202126;
  --hairline: inset 0 0 0 1px rgba(255, 255, 255, .07);
  --sheen: inset 0 1px 0 rgba(255, 255, 255, .06);
  --text: #f4f5f7;
  --text-2: rgba(240, 242, 248, .76);
  --muted: rgba(235, 238, 245, .48);
  --accent: #ff7d2e;
  --accent-2: #ff9550;
  --accent-soft: rgba(255, 125, 46, .15);
  --ok: #30d158; --ok-soft: rgba(48, 209, 88, .14);
  --danger: #ff453a; --danger-soft: rgba(255, 69, 58, .16);
  --warn: #ffd60a; --warn-soft: rgba(255, 214, 10, .14);
  --display: 'Segoe UI Variable Display', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --ui: 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 8px 24px rgba(0, 0, 0, .3);
  --blur: saturate(170%) blur(28px);
  --glass: rgba(26, 27, 32, .72);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.36, .5, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
  --tint-a: rgba(255, 120, 40, .32);
  --tint-b: rgba(70, 110, 255, .24);
}
body[data-view="browse"] { --tint-a: rgba(255, 140, 40, .2); --tint-b: rgba(40, 170, 255, .14); }
body[data-view="upload"] { --tint-a: rgba(200, 90, 255, .16); --tint-b: rgba(255, 120, 60, .14); }
body[data-view="account"] { --tint-a: rgba(40, 200, 140, .16); --tint-b: rgba(60, 120, 255, .18); }
body[data-view="guide"] { --tint-a: rgba(255, 90, 60, .2); --tint-b: rgba(255, 190, 60, .12); }

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font: 14px/1.5 var(--ui); letter-spacing: -.003em; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
select option { background: var(--solid-2); color: var(--text); }
::selection { background: var(--accent-soft); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 8px; border: 3px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .22); background-clip: padding-box; }
.ico { width: 18px; height: 18px; flex: none; }

/* ---------- ambient background ---------- */
.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--bg); }
.ambient::before { content: ''; position: absolute; inset: -20%;
  background:
    radial-gradient(40% 45% at 12% 8%, var(--tint-a), transparent 70%),
    radial-gradient(45% 50% at 92% 95%, var(--tint-b), transparent 70%),
    radial-gradient(30% 30% at 60% 40%, rgba(255, 255, 255, .025), transparent 70%);
  filter: blur(40px); transition: background 1.2s var(--ease); }
.ambient-img { position: absolute; inset: -10%; background: center / cover no-repeat; filter: blur(70px) saturate(140%) brightness(.55); opacity: 0; transform: scale(1.1); transition: opacity .9s var(--ease); }
.ambient-img.show { opacity: .55; }
.ambient::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 9, 11, .1), rgba(8, 9, 11, .55)); }

/* ---------- top bar ---------- */
.titlebar { position: sticky; top: 0; z-index: 20; height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 18px; }
.titlebar::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 9, 11, .75), rgba(8, 9, 11, 0)); backdrop-filter: blur(6px); -webkit-mask: linear-gradient(#000 60%, transparent); mask: linear-gradient(#000 60%, transparent); }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { font: 800 11px/1 var(--display); letter-spacing: .02em; padding: 8px 9px; border-radius: 10px; color: #fff; background: linear-gradient(140deg, #ffa14d, #ff5f1f); box-shadow: 0 4px 14px rgba(255, 110, 40, .35); }
.brand-name { font: 600 14px var(--display); color: var(--text); letter-spacing: -.01em; }
.rail { position: relative; display: flex; align-items: center; height: 44px; padding: 4px; gap: 2px; border-radius: 999px; background: rgba(255, 255, 255, .05); box-shadow: var(--hairline), var(--sheen); overflow-x: auto; scrollbar-width: none; min-width: 0; }
.rail::-webkit-scrollbar { display: none; }
.rail-ind { position: absolute; left: 0; top: 4px; height: 36px; border-radius: 999px; background: rgba(255, 255, 255, .92); box-shadow: 0 6px 16px rgba(0, 0, 0, .35); pointer-events: none; z-index: 0; opacity: 0; transition: transform .45s var(--out), width .45s var(--out), opacity .2s; }
.rail-btn { position: relative; z-index: 1; flex: none; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 15px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--text-2); transition: color .25s, background .2s, transform .3s var(--spring); }
.rail-btn .ico { width: 17px; height: 17px; }
.rail-btn:hover { background: rgba(255, 255, 255, .07); color: var(--text); }
.rail-btn.active { color: #0c0d10; background: transparent; }
.rail-btn:active { transform: scale(.95); }
.spacer { flex: 1; }
.top-account { display: flex; align-items: center; gap: 8px; flex: none; }
.top-icon { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .06); box-shadow: var(--hairline); color: var(--text-2); cursor: pointer; transition: background .15s, color .15s, transform .3s var(--spring); }
.top-icon:hover { background: rgba(255, 255, 255, .12); color: var(--text); transform: translateY(-1px); }
.top-avatar { width: 38px; height: 38px; border: 0; border-radius: 50%; cursor: pointer; display: grid; place-items: center; font: 700 15px var(--display); color: var(--accent); background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 2px rgba(255, 255, 255, .12); transition: box-shadow .2s, transform .3s var(--spring); }
.top-avatar:hover { box-shadow: 0 0 0 2px var(--accent); transform: translateY(-1px); }

/* ---------- shell ---------- */
.shell { padding: 0 14px 14px; }
.content { min-height: calc(100vh - 78px); border-radius: 26px; background: rgba(16, 17, 20, .5); box-shadow: var(--hairline), var(--sheen), 0 20px 60px rgba(0, 0, 0, .35); overflow: hidden; }
.view { animation: viewIn .42s var(--out) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px) scale(.995); filter: blur(2px); } }
.foot { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; padding: 6px 36px 22px; color: var(--muted); font-size: 12px; }
.foot a:hover { color: var(--text); }

/* ---------- headers ---------- */
.get-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; padding: 30px 36px 6px; }
.get-title { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.get-title h2 { margin: 0; font: 700 34px/1.1 var(--display); letter-spacing: -.025em; animation: titleIn .5s var(--out) both; }
@keyframes titleIn { from { opacity: 0; transform: translateX(-8px); } }
.sub { color: var(--muted); font-size: 13px; }
.crumb { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.crumb:hover { color: var(--text); }
.crumb .ico { width: 15px; height: 15px; transform: rotate(180deg); }
.scroller { padding: 8px 36px 30px; }
.browse-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 16px 36px 12px; }
.chips { display: flex; gap: 6px; padding: 0 36px 16px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 26px 0 12px; font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); animation: rowIn .45s var(--out) both; }
.section-title:first-child { margin-top: 8px; }
.section-title a { text-transform: none; letter-spacing: 0; font-size: 12.5px; color: var(--text-2); }
.section-title a:hover { color: var(--accent-2); }
@keyframes rowIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .08); box-shadow: var(--sheen); color: var(--text); font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .2s, box-shadow .25s, transform .3s var(--spring); }
.btn .ico { width: 16px; height: 16px; }
.btn:hover:not(:disabled) { background: rgba(255, 255, 255, .14); transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: scale(.95); transition-duration: .1s; }
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(255, 110, 40, .28), var(--sheen); }
.btn-primary:hover:not(:disabled) { background: var(--accent-2); box-shadow: 0 10px 26px rgba(255, 110, 40, .42), var(--sheen); }
.btn-launch { height: 38px; padding: 0 18px 0 15px; background: linear-gradient(140deg, #ffa14d, #ff5f1f); color: #fff; box-shadow: 0 6px 18px rgba(255, 100, 30, .35), var(--sheen); }
.btn-launch:hover:not(:disabled) { background: linear-gradient(140deg, #ffad61, #ff6a2e); }
.btn-ghost { background: transparent; box-shadow: none; }
.btn-ghost:hover:not(:disabled) { background: var(--accent-soft); }
.btn-danger { background: rgba(255, 69, 58, .1); color: #ff8079; }
.btn-danger:hover:not(:disabled) { background: var(--danger-soft); }
.btn-lg { height: 44px; padding: 0 22px; font-size: 14.5px; }

.search { position: relative; display: flex; align-items: center; }
.search .ico { position: absolute; left: 13px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.search input { height: 38px; width: 100%; border-radius: 999px; padding: 0 16px 0 36px; }
.search.spotlight { flex: 1 1 420px; max-width: 640px; }
.search.spotlight input { height: 46px; font-size: 15px; padding-left: 44px; border-radius: 16px; }
.search.spotlight .ico { left: 16px; width: 18px; height: 18px; }
.input, input[type=text], input[type=search], input[type=url], input[type=password], select, textarea {
  border: 0; outline: none; background: rgba(255, 255, 255, .06); box-shadow: var(--hairline); border-radius: 12px; padding: 0 14px; height: 40px; color: var(--text); transition: background .2s, box-shadow .25s; }
textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; line-height: 1.55; width: 100%; }
select { cursor: pointer; padding-right: 10px; }
.browse-bar select { height: 46px; border-radius: 16px; padding: 0 16px; }
input:focus, select:focus, textarea:focus { background: rgba(255, 255, 255, .09); box-shadow: inset 0 0 0 1px rgba(255, 125, 46, .55), 0 0 0 4px var(--accent-soft); }
input::placeholder, textarea::placeholder { color: var(--muted); }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: var(--hairline); color: var(--text-2); cursor: pointer; white-space: nowrap; font-weight: 500; font-size: 13px; transition: background .2s, color .2s, transform .3s var(--spring); }
.chip .ico { width: 15px; height: 15px; opacity: .85; }
.chip:hover { background: rgba(255, 255, 255, .1); color: var(--text); }
.chip:active { transform: scale(.95); }
.chip.active { background: #f4f5f7; color: #0b0b0d; box-shadow: none; font-weight: 600; animation: pick .35s var(--spring); }
.chip .n { font-size: 11.5px; opacity: .6; }
@keyframes pick { from { transform: scale(.92); } }
.seg-tabs { display: inline-flex; gap: 2px; padding: 3px; border-radius: 13px; background: rgba(255, 255, 255, .05); box-shadow: var(--hairline); }
.seg-tabs button { height: 32px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); font-weight: 600; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: background .2s, color .2s; }
.seg-tabs button .ico { width: 15px; height: 15px; }
.seg-tabs button:hover { color: var(--text); }
.seg-tabs button.active { background: rgba(255, 255, 255, .14); color: var(--text); box-shadow: 0 4px 12px rgba(0, 0, 0, .25), var(--sheen); animation: pick .35s var(--spring); }

/* ---------- cards ---------- */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { position: relative; display: block; padding: 7px 7px 10px; border-radius: 18px; background: rgba(255, 255, 255, .035); box-shadow: var(--hairline); cursor: pointer; animation: cardIn .5s var(--out) both; transition: transform .35s var(--spring), background .2s, box-shadow .3s; }
.card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), 0 18px 40px rgba(0, 0, 0, .35); }
.card:active { transform: translateY(-1px) scale(.985); transition-duration: .12s; }
.grid > .card:nth-child(2) { animation-delay: .04s; } .grid > .card:nth-child(3) { animation-delay: .08s; } .grid > .card:nth-child(4) { animation-delay: .12s; }
.grid > .card:nth-child(5) { animation-delay: .16s; } .grid > .card:nth-child(6) { animation-delay: .18s; } .grid > .card:nth-child(n+7) { animation-delay: .2s; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.thumb { position: relative; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: rgba(255, 255, 255, .04); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--out); }
.card:hover .thumb img { transform: scale(1.045); }
.thumb .ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .18); background: radial-gradient(120% 90% at 50% 30%, rgba(255, 255, 255, .07), rgba(0, 0, 0, .2) 70%); }
.thumb .ph .ico { width: 44px; height: 44px; stroke-width: 1.4; }
.badges { position: absolute; left: 8px; top: 8px; display: flex; gap: 6px; z-index: 2; }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: #fff; background: rgba(14, 15, 18, .62); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); backdrop-filter: blur(8px); }
.badge .ico { width: 12px; height: 12px; }
.badge.accent { background: rgba(255, 125, 46, .85); }
.badge.warn { color: var(--warn); }
.card-body { padding: 10px 6px 0; }
.card-title { font-weight: 650; font-size: 14px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-sub { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- feature hero ---------- */
.feature-hero { position: relative; display: block; height: 340px; margin-bottom: 8px; border-radius: 26px; overflow: hidden; cursor: pointer; box-shadow: var(--hairline), 0 24px 60px rgba(0, 0, 0, .4); animation: cardIn .6s var(--out) both; background: rgba(255, 255, 255, .04); }
.feature-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--out); }
.feature-hero:hover img { transform: scale(1.04); }
.fh-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 7, 9, .92) 0%, rgba(6, 7, 9, .7) 38%, rgba(6, 7, 9, .05) 75%), linear-gradient(0deg, rgba(6, 7, 9, .6), transparent 50%); }
.fh-body { position: absolute; left: 36px; bottom: 32px; max-width: min(520px, 60%); display: flex; flex-direction: column; gap: 8px; }
.fh-kicker { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-2); }
.fh-body h3 { margin: 0; font: 750 34px/1.1 var(--display); letter-spacing: -.025em; text-shadow: 0 2px 20px rgba(0, 0, 0, .5); }
.fh-body p { margin: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fh-actions { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.fh-actions .btn { height: 40px; padding: 0 20px; }
.fh-views { color: var(--muted); font-size: 12.5px; }

/* ---------- summary tiles ---------- */
.lib-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; flex: 1 1 520px; max-width: 640px; }
.sum-tile { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0; border-radius: 18px; background: rgba(255, 255, 255, .04); box-shadow: var(--hairline); color: var(--text); text-align: left; animation: rowIn .45s var(--out) both; }
.sum-tile:nth-child(2) { animation-delay: .04s; } .sum-tile:nth-child(3) { animation-delay: .08s; }
.sum-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(255, 255, 255, .07); color: var(--text-2); flex: none; }
.sum-tile.accent .sum-ico { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(255, 110, 40, .35); }
.sum-txt { display: flex; flex-direction: column; min-width: 0; }
.sum-txt b { font: 700 20px/1.1 var(--display); letter-spacing: -.02em; }
.sum-txt small { color: var(--muted); font-size: 12px; }

/* ---------- mod page ---------- */
.mod-hero { position: relative; height: 420px; overflow: hidden; }
.mod-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mod-hero .fh-shade { background: linear-gradient(90deg, rgba(10, 11, 13, .9) 0%, rgba(10, 11, 13, .55) 45%, rgba(10, 11, 13, .05) 80%), linear-gradient(0deg, rgba(16, 17, 20, 1) 0%, rgba(16, 17, 20, .2) 45%, transparent 70%); }
.mod-hero .fh-body { left: 36px; bottom: 30px; max-width: min(640px, 70%); }
.mod-hero .crumb { color: var(--text-2); }
.mod-hero.noimg { height: 240px; background: radial-gradient(80% 120% at 20% 0%, rgba(255, 125, 46, .18), transparent 70%); }
.mod-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; padding: 10px 36px 36px; }
.mod-side { position: sticky; top: 76px; display: flex; flex-direction: column; gap: 12px; }
.set-card { border-radius: 20px; padding: 20px 22px; background: rgba(255, 255, 255, .04); box-shadow: var(--hairline); animation: rowIn .45s var(--out) both; }
.set-card h3 { margin: 0 0 4px; font: 650 17px var(--display); letter-spacing: -.015em; }
.dl-btn { width: 100%; height: 48px; font-size: 15px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 9px 16px; margin: 0; font-size: 13px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.kv dd a { color: var(--accent-2); }
.kv dd a:hover { text-decoration: underline; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags .chip { height: 26px; padding: 0 10px; font-size: 12px; }
.gallery-strip { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 14px; scrollbar-width: thin; }
.gallery-strip button { flex: none; width: 150px; aspect-ratio: 16 / 10; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: none; box-shadow: var(--hairline); opacity: .8; transition: opacity .2s, transform .3s var(--spring); }
.gallery-strip button:hover { opacity: 1; transform: translateY(-2px); }
.gallery-strip img { width: 100%; height: 100%; object-fit: cover; }
.prose { color: var(--text-2); font-size: 14.5px; line-height: 1.7; overflow-wrap: anywhere; max-width: 760px; }
.prose h3, .prose h4, .prose h5 { color: var(--text); font-family: var(--display); margin: 1.3em 0 .4em; }
.prose p { margin: 0 0 .9em; }
.prose a { color: var(--accent-2); } .prose a:hover { text-decoration: underline; }
.prose code { background: rgba(255, 255, 255, .08); padding: 1px 6px; border-radius: 6px; font-size: 13px; }
.prose ul { padding-left: 20px; margin: 0 0 1em; }
.tab-body { padding-top: 18px; }
.log-row { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.log-row b { font-family: var(--display); }
.log-row p { margin: 4px 0 0; color: var(--text-2); white-space: pre-wrap; }
.owner-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- forms ---------- */
.form-page { max-width: 900px; padding: 8px 36px 36px; display: grid; gap: 14px; }
.field { display: grid; gap: 7px; }
.field > span { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.field > span small { font-weight: 400; color: var(--muted); margin-left: 6px; }
.field input, .field select { width: 100%; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 26px; border-radius: 18px; border: 1.5px dashed rgba(255, 125, 46, .4); background: rgba(255, 255, 255, .02); color: var(--text-2); text-align: center; cursor: pointer; transition: background .2s, border-color .2s; }
.dropzone:hover, .dropzone.over { background: var(--accent-soft); border-color: var(--accent); }
.dropzone .ico { width: 26px; height: 26px; color: var(--accent-2); }
.dropzone small { color: var(--muted); }
.progress { width: 100%; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-top: 8px; }
.progress > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .4s var(--out); }
.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.shot { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; box-shadow: var(--hairline); }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.shot .acts { position: absolute; right: 6px; top: 6px; display: flex; gap: 4px; }
.shot .acts button { width: 28px; height: 28px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff; cursor: pointer; backdrop-filter: blur(6px); }
.shot .acts button:hover { background: rgba(255, 255, 255, .2); }
.shot .acts .ico { width: 14px; height: 14px; }
.shot .badges { left: 6px; top: 6px; }

/* ---------- auth ---------- */
.auth-wrap { display: grid; place-items: center; padding: 50px 20px 70px; }
.me-card { width: min(420px, 100%); display: flex; flex-direction: column; gap: 14px; padding: 30px 26px 24px; border-radius: 24px; background: radial-gradient(120% 80% at 50% 0%, rgba(255, 125, 46, .16), rgba(255, 255, 255, .03) 70%); box-shadow: var(--hairline), var(--sheen); animation: cardIn .5s var(--out) both; }
.me-card h2 { margin: 0; font: 700 24px var(--display); letter-spacing: -.02em; text-align: center; }
.me-card .sub { text-align: center; margin-top: -8px; }
.me-card .btn { height: 44px; }
.me-card .swap { text-align: center; font-size: 13px; color: var(--muted); }
.me-card .swap a { color: var(--accent-2); font-weight: 600; cursor: pointer; }

/* ---------- empty / misc ---------- */
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 60px 20px; color: var(--muted); text-align: center; }
.empty .ico { width: 34px; height: 34px; opacity: .5; }
.empty b { color: var(--text); font: 650 16px var(--display); }
.pager { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 26px; color: var(--muted); font-size: 13px; }
.skeleton { border-radius: 18px; aspect-ratio: 16 / 12; background: linear-gradient(90deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.04) 100%); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.guide { max-width: 760px; padding: 8px 36px 36px; display: grid; gap: 12px; }
.guide .set-card h3 { display: flex; align-items: center; gap: 10px; }
.step-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; flex: none; }
.guide p { margin: 6px 0 0; color: var(--text-2); }

/* ---------- floating layers ---------- */
.toasts { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; gap: 8px; z-index: 100; justify-items: center; }
.toast { padding: 11px 18px; border-radius: 999px; background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, .09), var(--sheen); font-weight: 600; font-size: 13.5px; animation: toastIn .45s var(--spring) both; display: flex; align-items: center; gap: 8px; }
.toast .ico { width: 16px; height: 16px; color: var(--ok); }
.toast.err .ico { color: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.92); } }
.menu { position: fixed; z-index: 60; min-width: 200px; padding: 6px; border-radius: 16px; background: var(--glass); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, .09), var(--sheen); animation: menuIn .22s var(--out) both; transform-origin: top right; }
.menu .who { padding: 8px 12px 10px; border-bottom: 1px solid rgba(255, 255, 255, .06); margin-bottom: 4px; }
.menu .who b { display: block; } .menu .who small { color: var(--muted); }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--text); font-size: 13.5px; cursor: pointer; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--accent); color: #fff; }
.menu .ico { width: 16px; height: 16px; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px) scale(.96); } }
.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 30px; background: rgba(4, 5, 7, .7); backdrop-filter: blur(14px) saturate(120%); animation: scrimIn .25s ease both; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 18px; box-shadow: var(--shadow); animation: sheetIn .45s var(--spring) both; }
@keyframes scrimIn { from { opacity: 0; } }
@keyframes sheetIn { from { opacity: 0; transform: translateY(18px) scale(.94); } }

/* ---------- responsive ---------- */
@media (max-width: 1250px) { .rail-btn:not(.active) span { display: none; } .rail-btn:not(.active) { padding: 0 11px; } }
@media (max-width: 1100px) {
  .get-head { padding: 22px 22px 6px; } .scroller, .form-page, .guide { padding-left: 22px; padding-right: 22px; }
  .browse-bar { padding-left: 22px; padding-right: 22px; } .chips { padding-left: 22px; padding-right: 22px; }
  .mod-layout { grid-template-columns: 1fr; padding: 10px 22px 30px; } .mod-side { position: static; }
  .mod-hero .fh-body, .fh-body { left: 22px; bottom: 22px; max-width: 85%; } .fh-body h3 { font-size: 26px; }
  .feature-hero { height: 280px; } .lib-summary { max-width: none; }
}
@media (max-width: 720px) {
  .titlebar { padding: 0 10px; gap: 8px; } .brand-name, .btn-launch span { display: none; } .btn-launch { padding: 0 12px; }
  .shell { padding: 0 6px 6px; } .content { border-radius: 20px; }
  .two { grid-template-columns: 1fr; } .lib-summary { grid-template-columns: 1fr 1fr 1fr; }
  .sum-tile { padding: 10px; gap: 8px; } .sum-ico { display: none; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .mod-hero { height: 320px; } .feature-hero { height: 240px; } .fh-body p { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; } }
