/* YTindir — tasarım sistemi v2 */
:root {
  --bg: #f7f7f9;
  --bg-2: #eeeff3;
  --card: #ffffff;
  --card-2: #f3f4f7;
  --text: #14161b;
  --muted: #646b78;
  --line: #e3e5eb;
  --line-2: #d3d6de;
  --accent: #e6392b;
  --accent-2: #c42d21;
  --accent-soft: #fdeceb;
  --accent-grad: linear-gradient(135deg, #ff5f45 0%, #e6392b 55%, #c9241a 100%);
  --ok: #17995a;
  --ok-soft: #e4f7ec;
  --warn: #c27a00;
  --err: #d3302f;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 34px rgba(20, 22, 27, 0.08);
  --shadow-lg: 0 30px 80px rgba(20, 22, 27, 0.16);
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1015;
    --bg-2: #14171e;
    --card: #181b23;
    --card-2: #1f232d;
    --text: #eef0f4;
    --muted: #98a0af;
    --line: #262b36;
    --line-2: #333947;
    --accent-soft: #3a1c19;
    --ok-soft: #12342a;
    --shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.6);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--text); background: var(--bg); padding-bottom: env(safe-area-inset-bottom); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(2rem, 5.5vw, 3.1rem); }
h2 { font-size: clamp(1.4rem, 3.5vw, 1.9rem); margin-top: 1.5em; }
h3 { font-size: 1.1rem; }
.h4 { font-size: 1.05rem; margin: 0 0 .75rem; display: flex; align-items: center; gap: .4rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.truncate { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
.container { width: min(1080px, 100% - 2rem); margin-inline: auto; }
.narrow { max-width: 480px; }
code { background: var(--bg-2); padding: .1em .35em; border-radius: 6px; font-size: .9em; }
.icon { width: 1.1em; height: 1.1em; vertical-align: -0.2em; flex: none; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.2rem; color: var(--text); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand-icon { border-radius: 9px; box-shadow: 0 4px 12px rgba(230, 57, 43, .35); }
.nav nav { display: flex; align-items: center; gap: .85rem; font-weight: 600; font-size: .95rem; }
.nav nav > a { color: var(--text); }
.nav nav > a[aria-current="page"] { color: var(--accent); }
.pill { display: inline-flex; align-items: center; gap: .3rem; background: var(--card); border: 1px solid var(--line); padding: .3rem .7rem; border-radius: 999px; font-size: .85rem; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pill-admin { border-color: var(--accent); color: var(--accent) !important; }
.nav-donate { color: var(--accent) !important; display: inline-flex; align-items: center; gap: .25rem; }
@media (max-width: 640px) { .hide-sm { display: none !important; } .nav nav { gap: .55rem; } }
.lang-switch { position: relative; }
.lang-btn { display: inline-flex; align-items: center; gap: .3rem; background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: .3rem .6rem; font: inherit; font-weight: 700; font-size: .85rem; color: var(--text); cursor: pointer; min-height: 34px; }
.lang-btn:hover { border-color: var(--line-2); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: .3rem; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-width: 140px; z-index: 70; }
.lang-menu a { display: block; padding: .5rem .7rem; border-radius: 8px; color: var(--text); font-weight: 600; }
.lang-menu a:hover { background: var(--bg-2); text-decoration: none; }
.lang-menu a[aria-current="true"] { color: var(--accent); }

.announce { background: var(--accent-soft); color: var(--text); padding: .5rem 0; font-size: .95rem; text-align: center; }
.flash { padding: .6rem 0; text-align: center; font-weight: 600; }
.flash-success { background: var(--ok-soft); color: var(--ok); }
.flash-error { background: var(--accent-soft); color: var(--err); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .7rem 1.2rem; border-radius: 13px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; transition: transform .08s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease; white-space: nowrap; min-height: 44px; }
.btn:hover { text-decoration: none; border-color: var(--muted); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent-grad); border-color: transparent; color: #fff; box-shadow: 0 8px 22px rgba(230, 57, 43, .32); }
.btn-primary:hover { box-shadow: 0 10px 26px rgba(230, 57, 43, .42); filter: brightness(1.04); border-color: transparent; }
.btn-ghost { background: transparent; }
.btn-danger { background: transparent; color: var(--err); border-color: var(--err); }
.btn-sm { padding: .45rem .9rem; min-height: 38px; font-size: .9rem; border-radius: 11px; }
.btn-xs { padding: .3rem .6rem; min-height: 30px; font-size: .8rem; border-radius: 8px; }
.btn-block { width: 100%; }
.btn-icon { padding: .4rem; min-height: 36px; width: 36px; justify-content: center; }
.btn-icon .icon { margin: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.inline { display: inline-flex; gap: .3rem; flex-wrap: wrap; }
.inline-form { display: flex; gap: .5rem; margin: .5rem 0 1rem; }
.inline-form input { flex: 1; }

/* ---------- Cards & forms ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); margin-bottom: 1rem; }
.card-danger { border-color: color-mix(in srgb, var(--err) 40%, var(--line)); }
.form label { display: block; font-weight: 600; margin-bottom: .9rem; }
.form input:not([type="checkbox"]), .inline-form input, select { display: block; width: 100%; margin-top: .3rem; padding: .75rem .9rem; font: inherit; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card-2); color: var(--text); min-height: 46px; }
.form input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form .check { display: flex; align-items: center; gap: .5rem; font-weight: 500; }
fieldset { border: 1px solid var(--line); }
legend { font-weight: 700; padding: 0 .4rem; }
.alert { padding: .8rem 1rem; border-radius: 12px; margin: .75rem 0; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.alert-error { background: var(--accent-soft); border-color: color-mix(in srgb, var(--err) 45%, transparent); color: var(--err); }
.alert-info { background: var(--card); border-color: var(--line); }
.badge { display: inline-flex; align-items: center; padding: .15rem .6rem; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.badge-admin { background: var(--accent); border-color: var(--accent); color: #fff; }
.badge-danger { background: var(--err); border-color: var(--err); color: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 3rem 0 1.5rem; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; }
.glow-a { width: 520px; height: 520px; left: -140px; top: -220px; background: radial-gradient(circle, rgba(230, 57, 43, .55), transparent 65%); }
.glow-b { width: 520px; height: 520px; right: -160px; top: -120px; background: radial-gradient(circle, rgba(255, 140, 80, .35), transparent 65%); }
@media (prefers-color-scheme: dark) { .glow { opacity: .4; } }
.hero > .container { position: relative; z-index: 1; }
.eyebrow { display: inline-flex; align-items: center; gap: .35rem; margin: 0 auto .8rem; padding: .3rem .8rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .8rem; font-weight: 700; color: var(--accent); letter-spacing: .02em; }
.hero .eyebrow { display: flex; width: fit-content; }
.hero h1 { text-align: center; }
.lead { font-size: 1.1rem; color: var(--muted); text-align: center; max-width: 620px; margin: 0 auto 1.6rem; }
.dl-form { padding: .6rem; border-radius: 22px; box-shadow: var(--shadow-lg); }
.input-row { display: flex; gap: .5rem; align-items: center; }
.input-icon { display: grid; place-items: center; width: 44px; height: 44px; color: var(--accent); flex: none; margin-left: .2rem; }
.input-row input { flex: 1; margin: 0; font-size: 1.05rem; border: 0; background: transparent; padding: .8rem .2rem; min-height: 50px; color: var(--text); font: inherit; }
.input-row input:focus { outline: none; }
.dl-form:focus-within { box-shadow: var(--shadow-lg), 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.hint { margin: .45rem .6rem .35rem; font-size: .82rem; color: var(--muted); }
@media (max-width: 560px) {
  .input-row { flex-wrap: wrap; }
  .input-icon { display: none; }
  .input-row input { flex-basis: 100%; padding: .6rem .6rem; }
  .input-row .btn { flex: 1; }
}
.quota { text-align: center; font-size: .92rem; color: var(--muted); margin: 1rem 0 .5rem; }
.quota strong { color: var(--text); }

/* ---------- Destek şeridi ---------- */
.support-strip { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center; margin: .9rem 0 .4rem; padding: .8rem 1rem; border-radius: 16px; background: linear-gradient(135deg, var(--accent-soft), var(--card) 75%); border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: 0 8px 24px rgba(230, 57, 43, .10); animation: rise .4s ease-out; }
.ss-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-grad); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(230, 57, 43, .35); animation: beat 2.4s ease-in-out infinite; }
.ss-icon .icon { width: 20px; height: 20px; }
@keyframes beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.12); } 24% { transform: scale(1); } 36% { transform: scale(1.08); } 48% { transform: scale(1); } }
.ss-text { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.ss-text strong { font-size: .98rem; }
.ss-text span { font-size: .86rem; color: var(--muted); }
.ss-btn { white-space: nowrap; }
@media (max-width: 600px) { .support-strip { grid-template-columns: auto 1fr; } .ss-btn { grid-column: 1 / -1; width: 100%; } }

/* ---------- Result card ---------- */
.result-card { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: var(--card); margin: 1rem 0; animation: rise .35s ease-out; }
@keyframes rise { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
.result-bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(40px) saturate(1.4); opacity: .35; transform: scale(1.1); pointer-events: none; }
@media (prefers-color-scheme: dark) { .result-bg { opacity: .28; } }
.result-inner { position: relative; display: grid; grid-template-columns: minmax(240px, 40%) 1fr; gap: 1.4rem; padding: 1.25rem; background: linear-gradient(180deg, color-mix(in srgb, var(--card) 70%, transparent), var(--card) 70%); }
.result-thumb { position: relative; display: block; border-radius: 16px; overflow: hidden; aspect-ratio: 16/9; background: var(--bg-2); box-shadow: 0 18px 40px rgba(0, 0, 0, .28); }
.result-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.result-thumb:hover img { transform: scale(1.04); }
.play-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, .55)); opacity: .9; transition: opacity .2s ease; }
.play-overlay span { width: 58px; height: 58px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--accent); display: grid; place-items: center; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
.play-overlay .icon { width: 26px; height: 26px; margin-left: 3px; }
.result-thumb .dur { position: absolute; right: 8px; bottom: 8px; background: rgba(0, 0, 0, .8); color: #fff; font-size: .78rem; padding: .15rem .45rem; border-radius: 6px; font-weight: 700; }
.result-body { min-width: 0; }
.eyebrow-sm { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.result-title { font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 800; margin: .2rem 0 .6rem; letter-spacing: -0.01em; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .7rem; }
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .28rem .65rem; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); font-size: .8rem; font-weight: 600; color: var(--text); }
.chip .icon { color: var(--accent); }
.chip-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip-active .icon { color: #fff; }
.result-body .desc { font-size: .9rem; color: var(--muted); margin-bottom: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.quick-label { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .45rem; }
.quick { display: flex; flex-wrap: wrap; gap: .5rem; align-items: stretch; }
.quick-btn { display: flex; align-items: center; gap: .6rem; padding: .6rem .9rem .6rem .7rem; border-radius: 14px; border: 1px solid var(--line-2); background: var(--card); color: var(--text); font: inherit; cursor: pointer; text-align: left; min-width: 180px; transition: border-color .15s ease, transform .08s ease, box-shadow .15s ease; }
.quick-btn:hover { border-color: var(--accent); box-shadow: 0 6px 18px rgba(230, 57, 43, .15); }
.quick-btn:active { transform: scale(.98); }
.quick-btn:disabled { opacity: .5; cursor: not-allowed; }
.quick-btn .q-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.quick-btn .q-ic .icon { width: 18px; height: 18px; }
.quick-btn .q-main { display: flex; flex-direction: column; line-height: 1.2; }
.quick-btn .q-label { font-weight: 800; font-size: .92rem; }
.quick-btn .q-sub { font-size: .78rem; color: var(--muted); }
.quick-btn .q-tag { margin-left: auto; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--ok); background: var(--ok-soft); padding: .15rem .45rem; border-radius: 999px; }
.result-actions { display: flex; gap: .6rem; margin-top: .9rem; flex-wrap: wrap; align-items: center; }
@media (max-width: 680px) { .result-inner { grid-template-columns: 1fr; gap: 1rem; padding: .9rem; } .quick-btn { min-width: 0; flex: 1 1 100%; } }

/* ---------- Quality sheet ---------- */
.segmented { display: grid; grid-template-columns: 1fr 1fr; background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; margin: .25rem 0 .9rem; }
.segmented button { border: 0; background: transparent; font: inherit; font-weight: 700; padding: .55rem; border-radius: 9px; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; }
.segmented button[aria-pressed="true"] { background: var(--card); color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.opt-list { display: flex; flex-direction: column; gap: .4rem; overflow: auto; flex: 1 1 auto; min-height: 0; padding: 2px; margin: -2px; }
.opt { display: grid; grid-template-columns: 1fr auto 28px; align-items: center; gap: .8rem; width: 100%; text-align: left; padding: .75rem .85rem; border-radius: 14px; border: 1.5px solid var(--line); background: var(--card); color: var(--text); font: inherit; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.opt:hover { border-color: var(--line-2); background: var(--card-2); }
.opt[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.opt:disabled { opacity: .45; cursor: not-allowed; }
.opt-main { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.opt-label { font-weight: 800; font-size: .98rem; }
.opt-label small { color: var(--muted); font-weight: 600; }
.opt-desc { font-size: .8rem; color: var(--muted); }
.opt-size { font-weight: 800; color: var(--accent); font-size: .9rem; white-space: nowrap; }
.opt-check { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: transparent; }
.opt[aria-pressed="true"] .opt-check { background: var(--accent); border-color: var(--accent); color: #fff; }
.opt-check .icon { width: 14px; height: 14px; }
.sheet-foot { flex: none; padding-top: .9rem; }
.sheet-foot .btn { width: 100%; font-size: 1rem; }

/* ---------- Jobs ---------- */
.jobs { margin-top: 1.5rem; }
.job { display: grid; grid-template-columns: 104px 1fr auto; gap: .9rem; align-items: center; padding: .7rem; border: 1px solid var(--line); border-radius: 16px; background: var(--card); margin-bottom: .6rem; box-shadow: var(--shadow); animation: rise .3s ease-out; }
.job img { width: 104px; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; background: var(--bg-2); }
.job .j-title { font-weight: 700; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job .j-sub { font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.job .j-actions { display: flex; gap: .4rem; }
.progress { height: 7px; background: var(--bg-2); border-radius: 999px; overflow: hidden; margin-top: .45rem; }
.progress > span { display: block; height: 100%; background: var(--accent-grad); width: 0; transition: width .4s ease; border-radius: 999px; }
.progress.indeterminate > span { width: 40%; animation: slide 1.2s infinite linear; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@media (max-width: 560px) { .job { grid-template-columns: 84px 1fr; } .job img { width: 84px; } .job .j-actions { grid-column: 1 / -1; } .job .j-actions .btn { flex: 1; } }
.status { display: inline-flex; align-items: center; gap: .25rem; font-weight: 700; font-size: .8rem; padding: .1rem .5rem; border-radius: 999px; }
.status-done { color: var(--ok); background: var(--ok-soft); }
.status-failed { color: var(--err); background: var(--accent-soft); }
.status-processing, .status-queued { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.status-expired { color: var(--muted); background: var(--card-2); }
table .status { font-size: .78rem; }

.dl-state { margin-top: .4rem; }
.dl-state .progress { margin-top: 0; }
.dl-label { margin-top: .3rem; }

/* ---------- Search results ---------- */
.search-results { margin-top: 1rem; }
.sr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .9rem; }
.sr-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); box-shadow: var(--shadow); display: flex; flex-direction: column; animation: rise .3s ease-out; }
.sr-thumb { position: relative; aspect-ratio: 16/9; background: var(--bg-2); }
.sr-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sr-thumb .dur { position: absolute; right: 6px; bottom: 6px; background: rgba(0, 0, 0, .8); color: #fff; font-size: .75rem; padding: .1rem .4rem; border-radius: 5px; font-weight: 700; }
.sr-body { padding: .7rem .8rem .8rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.sr-title { font-weight: 700; font-size: .92rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sr-sub { font-size: .8rem; color: var(--muted); }
.sr-body .btn { margin-top: auto; }

.ios-tip { margin-top: .75rem; padding: .75rem .9rem; background: var(--card-2); border-radius: 12px; font-size: .9rem; border: 1px dashed var(--line-2); display: flex; gap: .5rem; align-items: flex-start; }
.loader-card { padding: 1.25rem; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.skeleton { display: grid; grid-template-columns: minmax(200px, 40%) 1fr; gap: 1.2rem; }
.sk { background: linear-gradient(90deg, var(--bg-2) 25%, var(--card-2) 50%, var(--bg-2) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 10px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.sk-thumb { aspect-ratio: 16/9; border-radius: 14px; }
.sk-line { height: 14px; margin-bottom: .6rem; }
@media (max-width: 680px) { .skeleton { grid-template-columns: 1fr; } }

/* ---------- Sections ---------- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin: 2.5rem auto; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; transition: transform .2s ease, box-shadow .2s ease; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-icon { width: 44px; height: 44px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: .7rem; }
.feature-icon .icon { width: 22px; height: 22px; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }
.steps ol { padding-left: 1.3rem; }
.step-list { list-style: none; padding: 0; }
.step-list li { display: flex; gap: .8rem; align-items: flex-start; margin-bottom: .8rem; }
.step-n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-grad); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: .9rem; box-shadow: 0 6px 14px rgba(230, 57, 43, .3); }
.tiers { margin: 2.5rem auto; }
.tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.tier { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.tier-featured { border-color: var(--accent); box-shadow: var(--shadow-lg); position: relative; }
.tier-featured::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent-grad); border-radius: var(--radius) var(--radius) 0 0; }
.tier .price { color: var(--muted); margin: 0 0 .7rem; }
.check-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.check-list li { display: flex; gap: .5rem; align-items: flex-start; margin-bottom: .45rem; }
.check-list .icon { color: var(--ok); margin-top: .2em; }
.faq-section { margin: 2.5rem auto 3rem; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; padding: .5rem 1rem; margin-bottom: .5rem; background: var(--card); }
.faq-item summary { cursor: pointer; font-weight: 700; padding: .4rem 0; }
.faq-item summary h2 { display: inline; font-size: 1.05rem; margin: 0; }
.faq-item p { margin: .5rem 0 .6rem; color: var(--muted); }
.prose { max-width: 760px; padding: 2rem 0 3rem; }
.prose .lead { text-align: left; margin-left: 0; }
.prose ol, .prose ul { padding-left: 1.3rem; }
.prose li { margin-bottom: .5rem; }
.big-steps li { margin-bottom: 1rem; }
.note { background: var(--accent-soft); border-radius: 12px; padding: .8rem 1rem; margin: 1rem 0; display: flex; gap: .5rem; align-items: flex-start; }
.note .icon { color: var(--accent); margin-top: .2em; }
dl dt { font-weight: 700; margin-top: .8rem; }
dl dd { margin: .2rem 0 0; color: var(--muted); }
.install-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.install-grid h2 { margin-top: 0; font-size: 1.15rem; display: flex; align-items: center; gap: .4rem; }
h2 .icon, h3 .icon { color: var(--accent); }
.page-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .5rem; }
.page-head h1 { margin: 0; }
.page-icon { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: inline-grid; place-items: center; flex: none; }
.page-icon .icon { width: 24px; height: 24px; }
.page-icon.big { width: 72px; height: 72px; border-radius: 20px; margin: 0 auto 1rem; }
.page-icon.big .icon { width: 36px; height: 36px; }
.status-page { padding: 3rem 0; }
.auth-card { margin: 2rem auto; }
.auth-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .5rem; }
.auth-head h1 { margin: 0; font-size: 1.6rem; }
.auth-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.perks { margin-bottom: 1rem; }
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: .55rem .6rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
table.kv th { width: 40%; text-transform: none; }
.row-muted { opacity: .6; }
.ext .icon { margin-left: .25rem; }

/* ---------- Donate ---------- */
.donate-banner { display: grid; grid-template-columns: auto 1fr auto; gap: 1.2rem; align-items: center; background: linear-gradient(135deg, var(--accent-soft), var(--card) 70%); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); border-radius: var(--radius); padding: 1.4rem; margin: 2.5rem 0; }
.donate-banner h2 { margin: 0 0 .3rem; font-size: 1.3rem; }
.donate-banner p { margin: 0; }
.donate-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--accent-grad); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px rgba(230, 57, 43, .35); }
.donate-icon .icon { width: 28px; height: 28px; }
.donate-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
@media (max-width: 720px) { .donate-banner { grid-template-columns: 1fr; text-align: center; } .donate-icon { margin: 0 auto; } .donate-actions { justify-content: center; } }
.donate-card h2 { margin-top: 0; font-size: 1.25rem; display: flex; align-items: center; gap: .4rem; }
.donate-layout { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; align-items: start; }
@media (max-width: 640px) { .donate-layout { grid-template-columns: 1fr; } }
.qr-wrap { display: flex; justify-content: center; }
.qr { width: 200px; height: 200px; background: #fff; border-radius: 14px; padding: 6px; border: 1px solid var(--line); }
.qr svg { width: 100%; height: 100%; display: block; }
.address-box { display: flex; flex-direction: column; gap: .6rem; margin: .5rem 0 .8rem; }
.address { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; word-break: break-all; background: var(--card-2); padding: .7rem .8rem; border-radius: 10px; border: 1px solid var(--line); user-select: all; }
.warn { display: flex; gap: .4rem; align-items: flex-start; color: var(--warn); margin: .4rem 0 .6rem; }
.warn .icon { margin-top: .15em; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.why-grid .feature h3 { font-size: 1rem; }
.why-grid .feature p { font-size: .9rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 5rem; background: var(--bg-2); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; margin-bottom: 1.5rem; }
.footer-grid strong { display: block; margin-bottom: .5rem; }
.footer-grid a { display: block; color: var(--muted); margin-bottom: .3rem; }

/* ---------- PWA banner ---------- */
.pwa-banner { position: fixed; left: 0; right: 0; bottom: 0; background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0, 0, 0, .15); padding: .75rem 0 calc(.75rem + env(safe-area-inset-bottom)); z-index: 60; font-size: .92rem; }
.pwa-banner .container { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.pwa-actions { display: flex; gap: .4rem; }
.pwa-text { display: inline-flex; align-items: center; gap: .4rem; }

/* ---------- Modal / sheet ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8, 10, 14, .6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal-card { position: relative; display: flex; flex-direction: column; width: min(460px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 1.5rem; box-shadow: var(--shadow-lg); max-height: calc(100vh - 2rem); overflow: auto; animation: pop .2s ease-out; }
@keyframes pop { from { transform: translateY(14px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-close { position: absolute; top: .9rem; right: .9rem; background: var(--card-2); border: 1px solid var(--line); border-radius: 50%; width: 36px; height: 36px; display: grid; place-items: center; cursor: pointer; color: var(--text); z-index: 2; }
.modal-head { display: flex; align-items: center; gap: .7rem; margin-bottom: .6rem; padding-right: 2.5rem; }
.modal-head h2 { margin: 0; font-size: 1.25rem; }
.modal-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-grad); color: #fff; display: grid; place-items: center; flex: none; }
.modal-icon .icon { width: 22px; height: 22px; }
.modal .qr { width: 180px; height: 180px; margin: .5rem auto; }
.sheet-handle { display: none; width: 44px; height: 5px; border-radius: 999px; background: var(--line-2); margin: 0 auto .9rem; }
.sheet-video { display: flex; gap: .7rem; align-items: center; padding: .6rem; border-radius: 14px; background: var(--card-2); margin-bottom: .9rem; }
.sheet-video img { width: 84px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; }
.sheet-video .sv-title { font-weight: 700; font-size: .9rem; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sheet-video .sv-sub { font-size: .78rem; color: var(--muted); }
body.modal-open { overflow: hidden; }
@media (max-width: 560px) {
  .modal { align-items: end; padding: 0; }
  .modal-card { border-radius: 24px 24px 0 0; width: 100%; padding-bottom: calc(1.2rem + env(safe-area-inset-bottom)); max-height: 92vh; max-height: 92dvh; animation: up .25s ease-out; }
  .sheet-handle { display: block; }
  @keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(1.5rem + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--text); color: var(--bg); padding: .6rem 1rem; border-radius: 999px; font-weight: 700; font-size: .9rem; z-index: 100; box-shadow: var(--shadow); }

/* ---------- Admin ---------- */
.admin-nav { display: flex; gap: .3rem; flex-wrap: wrap; margin: 1rem 0 1.25rem; }
.admin-nav a { padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: .3rem; }
.admin-nav a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: .9rem 1rem; display: flex; flex-direction: column; }
.stat-n { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.stat-l { color: var(--muted); font-size: .85rem; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 40px; gap: .5rem; align-items: center; margin-bottom: .4rem; font-size: .9rem; }
.bar { height: 10px; background: var(--bg-2); border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--accent-grad); }
.bar-n { text-align: right; font-weight: 700; }
.chips-nav { display: flex; gap: .4rem; flex-wrap: wrap; margin: .5rem 0 1rem; }
.pager { display: flex; gap: .3rem; flex-wrap: wrap; margin: 1rem 0; }
.pager a { padding: .3rem .65rem; border: 1px solid var(--line); border-radius: 8px; color: var(--text); }
.pager a[aria-current="page"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.settings-form legend { font-size: 1rem; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
