/* main.css - базові стилі, змінні та спільні компоненти (сайт + адмінка) */
:root {
    --bg: #070b14;
    --bg-2: #0c1322;
    --text: #e8ecf4;
    --muted: #8b95a8;
    --gold: #e2b86b;
    --gold-2: #b98a3e;
    --blue: #2e7bf6;
    --blue-2: #1f5fd0;
    --green: #3ddc84;
    --red: #ff5d6c;
    --border: rgba(255, 255, 255, 0.08);
    --radius: 14px;
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font);
    color: var(--text);
    background:
        radial-gradient(900px 500px at 15% -10%, rgba(46, 123, 246, 0.16), transparent 60%),
        radial-gradient(800px 480px at 90% 0%, rgba(226, 184, 107, 0.10), transparent 55%),
        var(--bg);
    background-attachment: fixed;
    line-height: 1.5;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
button, input, select, textarea { font-family: inherit; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* Кнопки */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 9px 16px; border-radius: 10px; border: 1px solid transparent;
    font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: none !important;
    color: #fff; background: rgba(255, 255, 255, 0.07);
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s, opacity 0.2s;
}
.btn:hover { transform: translateY(-1px); background: rgba(255, 255, 255, 0.12); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(180deg, var(--blue), var(--blue-2)); box-shadow: 0 6px 20px rgba(46, 123, 246, 0.35); }
.btn-primary:hover { background: linear-gradient(180deg, #4a8ff8, var(--blue-2)); }
.btn-gold { background: linear-gradient(180deg, #f1cf8f, var(--gold-2)); color: #1c1407; box-shadow: 0 6px 22px rgba(226, 184, 107, 0.35); }
.btn-gold:hover { background: linear-gradient(180deg, #f7dba4, var(--gold-2)); }
.btn-green { background: rgba(61, 220, 132, 0.15); border-color: rgba(61, 220, 132, 0.4); color: var(--green); }
.btn-red { background: rgba(255, 93, 108, 0.14); border-color: rgba(255, 93, 108, 0.4); color: var(--red); }
.btn-ghost { background: transparent; border-color: var(--border); }
.btn-sm { padding: 6px 11px; font-size: 12px; border-radius: 8px; }

/* Поля вводу */
.input, select.input, textarea.input {
    width: 100%; padding: 10px 13px; border-radius: 10px; font-size: 13px; color: var(--text);
    background: rgba(8, 12, 22, 0.7); border: 1px solid var(--border); outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.input:focus { border-color: rgba(46, 123, 246, 0.7); box-shadow: 0 0 0 3px rgba(46, 123, 246, 0.2); }
textarea.input { font-family: Consolas, "SFMono-Regular", monospace; font-size: 12px; resize: vertical; }
label.lbl { display: block; margin: 14px 0 6px; font-size: 12px; font-weight: 600; color: var(--muted); }

/* Таблиці */
.table-wrap { overflow: auto; border-radius: 12px; border: 1px solid var(--border); max-height: 520px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { position: sticky; top: 0; z-index: 1; text-align: left; padding: 10px 12px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); background: #0e1626; border-bottom: 1px solid var(--border); }
.tbl td { padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); vertical-align: middle; }
.tbl tr:hover td { background: rgba(255, 255, 255, 0.03); }
.thumb { width: 64px; height: 36px; object-fit: cover; border-radius: 6px; display: block; background: #172036; }
.thumb-ph { width: 64px; height: 36px; border-radius: 6px; background: #172036; display: flex; align-items: center; justify-content: center; }

/* Бейджі */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; background: rgba(46, 123, 246, 0.16); color: #8db8ff; white-space: nowrap; }
.badge.ok { background: rgba(61, 220, 132, 0.14); color: var(--green); }
.badge.err { background: rgba(255, 93, 108, 0.14); color: var(--red); }
.badge.warn { background: rgba(226, 184, 107, 0.15); color: var(--gold); }

/* Прогрес */
.progress { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; border: 1px solid var(--border); }
.progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), #6fb0ff); transition: width 0.4s ease; }

/* Смуги статистики */
.stat-row { margin-bottom: 12px; }
.stat-head { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; }
.stat-head small { color: var(--muted); font-weight: 400; }
.stat-bg { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.stat-fill { height: 100%; border-radius: 999px; transition: width 0.5s; }
.stat-empty { color: var(--muted); font-size: 13px; }

/* Графіки */
.chart { width: 100%; }
.chart svg { width: 100%; height: auto; display: block; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ===== Публічний сайт ===== */
.site { max-width: 1180px; margin: 0 auto; padding: 0 20px 30px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; color: var(--text); text-decoration: none !important; }
.brand img { width: 36px; height: 36px; }
.hero { padding: 26px 0 8px; text-align: center; }
.hero h1 { font-size: clamp(24px, 4vw, 38px); letter-spacing: -0.02em; }
.hero p { margin: 10px auto 0; max-width: 620px; color: var(--muted); }
.url-form { display: flex; align-items: center; gap: 8px; max-width: 760px; margin: 26px auto 0; padding: 8px 8px 8px 20px; border-radius: 999px; background: rgba(12, 18, 32, 0.8); border: 1px solid rgba(226, 184, 107, 0.45); box-shadow: 0 0 0 6px rgba(226, 184, 107, 0.06), 0 10px 40px rgba(226, 184, 107, 0.12); }
.url-form input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--text); font-size: 15px; padding: 10px 0; }
.url-form input::placeholder { color: #66708a; }
.url-form .btn { border-radius: 999px; padding: 12px 22px; font-size: 14px; }
.hint { text-align: center; margin-top: 12px; font-size: 12px; color: var(--muted); }
.form-status { text-align: center; min-height: 20px; margin-top: 10px; font-size: 13px; }

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 28px; }
.stat-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; }
.stat-card .ico { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; background: rgba(255, 255, 255, 0.05); }
.stat-card b { display: block; font-size: 22px; line-height: 1.1; }
.stat-card span { font-size: 12px; color: var(--muted); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 24px; margin-top: 26px; }
.section-title { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.platform { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.platform .p-head { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.platform .p-head img { width: 30px; height: 30px; }
.platform p { margin: 0; font-size: 12px; color: var(--muted); flex: 1; }
.platform .p-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tag { padding: 3px 10px; border-radius: 8px; font-size: 11px; font-weight: 600; border: 1px solid rgba(226, 184, 107, 0.5); color: var(--gold); }
.media-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mt { text-align: center; font-size: 12px; }
.mt .mt-ico { width: 54px; height: 54px; margin: 0 auto 6px; display: flex; align-items: center; justify-content: center; border-radius: 14px; background: rgba(226, 184, 107, 0.08); border: 1px solid rgba(226, 184, 107, 0.4); font-size: 24px; }
.mt small { display: block; color: var(--muted); font-size: 10px; }
.guide { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.guide .step { padding: 12px; font-size: 12px; text-align: center; color: var(--muted); }
.guide .step b { display: block; font-size: 22px; color: var(--gold); margin-bottom: 4px; }
.side-card { padding: 18px; margin-bottom: 18px; }
.chart-card { padding: 18px; margin-top: 24px; }

/* Результат аналізу */
.result { margin: 24px auto 0; max-width: 900px; padding: 18px; display: none; }
.result.show { display: block; animation: rise 0.35s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.res-head { display: grid; grid-template-columns: 220px 1fr; gap: 18px; align-items: start; }
.res-thumb { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #131c2e; display: flex; align-items: center; justify-content: center; font-size: 34px; }
.res-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.res-title { font-size: 17px; font-weight: 700; word-break: break-word; }
.res-meta { margin-top: 6px; font-size: 12px; color: var(--muted); }
.res-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; margin-top: 14px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: #131c2e; }
.res-progress { margin-top: 16px; display: none; }
.res-progress .row { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 5px; color: var(--muted); }
.res-files { margin-top: 14px; display: grid; gap: 8px; }
.file-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); font-size: 13px; }
.notice { padding: 14px 18px; font-size: 13px; color: var(--muted); }

.footer { margin-top: 36px; padding: 18px 0 0; border-top: 1px solid var(--border); text-align: center; font-size: 12px; color: var(--muted); }
.footer .footer-text { margin-bottom: 8px; line-height: 1.7; }
.footer a { color: var(--gold); }

@media (max-width: 980px) {
    .layout { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .platforms { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
    .platforms { grid-template-columns: 1fr; }
    .res-head { grid-template-columns: 1fr; }
    .url-form { flex-direction: column; border-radius: 22px; padding: 12px; align-items: stretch; }
    .url-form input { padding: 6px 4px; }
}

/* ===== Вікна, акаунт, підтримка, стрічка, підвал (v2) ===== */
body.no-scroll { overflow: hidden; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 300; max-width: calc(100% - 40px); padding: 12px 18px; border-radius: 12px; font-size: 13px; background: #121a2b; border: 1px solid var(--border); box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5); opacity: 0; transform: translateY(10px); transition: all 0.25s; pointer-events: none; }
.toast.show { opacity: 1; transform: none; }
.toast.err { border-color: rgba(255, 93, 108, 0.6); }
.toast.ok { border-color: rgba(61, 220, 132, 0.6); }

.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(3, 6, 12, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal.open { display: flex; animation: rise 0.2s ease; }
.modal-box { position: relative; width: 440px; max-width: 100%; max-height: 92vh; overflow-y: auto; padding: 26px; background: linear-gradient(160deg, #141c2e, #0c1220); }
.modal-box.wide { width: 640px; }
.modal-close { position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, 0.06); color: var(--text); font-size: 20px; cursor: pointer; }
.modal h2 { font-size: 20px; margin-bottom: 16px; }
.tabs { display: flex; gap: 6px; padding: 4px; margin-bottom: 18px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); }
.tabs button { flex: 1; padding: 9px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 600; cursor: pointer; }
.tabs button.active { background: rgba(46, 123, 246, 0.25); color: #fff; }
.form-grid { display: grid; gap: 10px; }
.err-text { min-height: 18px; margin-top: 10px; font-size: 13px; color: var(--red); }
.oauth { display: grid; gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.oauth .or { text-align: center; font-size: 12px; color: var(--muted); }
.btn-oauth { width: 100%; padding: 11px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border); }
.btn-oauth.g b { color: #ea4335; } .btn-oauth.f b { color: #4a8bff; }

.user-area { position: relative; display: flex; align-items: center; gap: 8px; }
.user-trigger { gap: 8px; padding: 6px 12px 6px 6px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.avatar.ph { display: inline-flex; align-items: center; justify-content: center; background: var(--blue); color: #fff; font-weight: 700; font-size: 13px; }
.u-nick { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 230px; padding: 8px; display: none; background: #121a2b; }
.user-menu.open { display: block; }
.user-menu .um-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.user-menu .um-head small { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.user-menu a, .user-menu button { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--text); font-size: 13px; text-align: left; cursor: pointer; text-decoration: none !important; }
.user-menu a:hover, .user-menu button:hover { background: rgba(255, 255, 255, 0.07); }

.acct-head { margin-bottom: 14px; padding-right: 36px; }
.acct-head b { font-size: 18px; display: block; }
.hist-list { display: grid; gap: 10px; }
.hist-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); }
.hi-thumb { flex: 0 0 64px; width: 64px; height: 40px; border-radius: 8px; object-fit: cover; background: #172036; }
.hi-thumb.ph { display: flex; align-items: center; justify-content: center; font-size: 18px; }
.hi-body { flex: 1; min-width: 0; }
.hi-title { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hi-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 4px; font-size: 11px; color: var(--muted); }

.support-btn { position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 56px; height: 56px; border: 0; border-radius: 50%; font-size: 24px; cursor: pointer; color: #fff; background: linear-gradient(160deg, var(--blue), var(--blue-2)); box-shadow: 0 8px 28px rgba(46, 123, 246, 0.5); }
.support-btn .dot { position: absolute; top: 6px; right: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--red); border: 2px solid #0b1220; }
.support-panel { position: fixed; right: 20px; bottom: 88px; z-index: 91; width: 340px; max-width: calc(100% - 24px); height: 460px; max-height: calc(100vh - 110px); display: none; flex-direction: column; background: #0f1626; }
.support-panel.open { display: flex; animation: rise 0.2s ease; }
.sup-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.sup-head b { font-size: 15px; } .sup-head small { display: block; color: var(--muted); font-size: 11px; }
.sup-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.sup-msg { max-width: 82%; padding: 8px 12px; border-radius: 12px; font-size: 13px; word-break: break-word; }
.sup-msg small { display: block; font-size: 10px; opacity: 0.65; margin-bottom: 2px; }
.sup-msg.me { align-self: flex-end; background: rgba(46, 123, 246, 0.3); }
.sup-msg.staff { align-self: flex-start; background: rgba(255, 255, 255, 0.08); }
.sup-form { padding: 10px; border-top: 1px solid var(--border); display: grid; gap: 8px; }
.sup-form textarea { resize: none; height: 54px; }

.recent { margin-top: 26px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }

.layout > main, .layout > aside { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.layout > main .chart-card, .layout > aside .side-card:last-of-type { flex: 1; }
.layout .chart-card, .layout .side-card { margin: 0; }

.footer { margin: 36px auto 0; padding: 28px; border-top: 0; text-align: left; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 26px; }
.footer h4 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 13px; }
.footer ul a { color: var(--muted); }
.footer ul a:hover { color: var(--gold); text-decoration: none; }
.footer p { margin: 8px 0 0; font-size: 13px; line-height: 1.6; }
.footer-bottom { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }

/* ===== Адаптивність: планшет і телефон ===== */
@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-row { gap: 10px; }
}
@media (max-width: 620px) {
    .site { padding: 0 12px 24px; }
    .topbar { padding: 14px 0; flex-wrap: wrap; }
    .brand { font-size: 15px; }
    .hero h1 { font-size: 22px; }
    .stats-row { grid-template-columns: 1fr 1fr; }
    .stat-card { padding: 12px; gap: 10px; }
    .stat-card b { font-size: 18px; }
    .res-actions .btn { flex: 1 1 100%; }
    .footer { padding: 20px 16px; }
    .footer-grid { grid-template-columns: 1fr; gap: 18px; }
    .modal { padding: 0; align-items: flex-end; }
    .modal-box, .modal-box.wide { width: 100%; max-height: 94vh; border-radius: 18px 18px 0 0; padding: 22px 16px; }
    .support-panel { right: 8px; left: 8px; width: auto; bottom: 80px; height: calc(100vh - 100px); }
    .support-btn { right: 14px; bottom: 14px; }
    .u-nick { display: none; }
    .table-wrap { max-height: 380px; }
}

/* ===== Останні завантаження: компактні картки однакового розміру ===== */
.recent-strip { display: grid; grid-auto-flow: column; grid-auto-columns: 176px; gap: 12px; overflow-x: auto; padding: 2px 2px 12px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.recent-strip::-webkit-scrollbar { height: 8px; }
.recent-strip::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.14); border-radius: 8px; }
.rc { scroll-snap-align: start; display: grid; grid-template-rows: 96px 36px 16px; row-gap: 8px; height: 178px; padding: 8px; overflow: hidden; color: var(--text); text-decoration: none !important; }
.rc-thumb { position: relative; border-radius: 10px; overflow: hidden; background: #172036; }
.rc-thumb .rc-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.rc-thumb .rc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rc-badges { position: absolute; left: 6px; bottom: 6px; display: flex; align-items: center; gap: 5px; padding: 3px 8px 3px 4px; border-radius: 999px; font-size: 11px; background: rgba(5, 8, 15, 0.74); }
.rc-badges .rc-ico { width: 16px; height: 16px; flex: none; }
.rc-title { height: 36px; font-size: 12.5px; font-weight: 600; line-height: 18px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; }
.rc-meta { display: flex; justify-content: space-between; gap: 6px; font-size: 11px; line-height: 16px; color: var(--muted); white-space: nowrap; overflow: hidden; }
@media (max-width: 620px) {
    .recent-strip { grid-auto-columns: 152px; }
    .rc { height: 166px; grid-template-rows: 84px 36px 16px; }
}

/* ===== v3: перемикачі, партнери, сторінка техробіт, модальні вікна на телефоні ===== */
.hero .hero-sub { margin: 10px auto 0; max-width: 620px; color: var(--muted); font-size: 16px; font-weight: 400; line-height: 1.5; }
.switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.14); transition: background 0.2s, box-shadow 0.2s; cursor: pointer; }
.switch i::before { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.switch input:checked + i { background: var(--green); box-shadow: 0 0 14px rgba(61, 220, 132, 0.5); }
.switch input:checked + i::before { transform: translateX(20px); }

.partners-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.pt { position: relative; display: flex; align-items: center; gap: 12px; height: 84px; padding: 12px; overflow: hidden; color: var(--text); text-decoration: none !important; }
.pt img.pt-img { flex: none; width: 58px; height: 58px; border-radius: 10px; object-fit: cover; background: #172036; }
.pt .pt-ph { flex: none; width: 58px; height: 58px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 24px; background: rgba(226, 184, 107, 0.12); }
.pt .pt-body { min-width: 0; }
.pt .pt-title { font-size: 14px; font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pt small { display: block; margin-top: 3px; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.pt.banner { padding: 0; grid-column: span 2; }
.pt.banner img.pt-img { width: 100%; height: 100%; border-radius: 0; position: absolute; inset: 0; }
.pt.banner .pt-body { position: relative; align-self: flex-end; width: 100%; padding: 22px 14px 10px; background: linear-gradient(0deg, rgba(5, 8, 15, 0.88), transparent); }

.maint { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.maint-box { max-width: 520px; padding: 36px 28px; text-align: center; }
.maint-box .m-ico { font-size: 54px; }
.maint-box h1 { font-size: 24px; margin: 12px 0 10px; }
.maint-box p { margin: 0; color: var(--muted); line-height: 1.6; white-space: pre-line; }

/* Модальні вікна: коректно вміщаються в екран телефона */
.modal { padding: 12px; }
.modal-box { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.modal-box * { min-width: 0; }
.modal-box > .modal-close { position: sticky; top: 0; float: right; margin: -10px -8px 0 8px; z-index: 5; }
.file-row, .hist-item { overflow-wrap: anywhere; }
@media (max-width: 640px) {
    .modal { padding: 0; align-items: flex-end; }
    .modal-box, .modal-box.wide { width: 100%; max-width: 100%; max-height: 92vh; max-height: 92dvh; padding: 18px 14px calc(18px + env(safe-area-inset-bottom, 0px)); border-radius: 20px 20px 0 0; }
    .modal h2 { font-size: 18px; padding-right: 44px; }
    .modal input, .modal select, .modal textarea, .modal .input { font-size: 16px; }
    .modal .tabs button { padding: 10px 6px; font-size: 13px; }
    .modal .form-grid .btn, .modal .oauth .btn { width: 100%; }
    .hist-item { flex-wrap: wrap; }
    .hist-item .hi-body { flex: 1 1 calc(100% - 80px); }
    .hist-item > .btn { flex: 1 1 100%; }
    .file-row { flex-direction: column; align-items: stretch; gap: 8px; }
    .file-row .btn { width: 100%; }
    .modal .res-head { grid-template-columns: 1fr; }
    .modal .res-actions .btn { flex: 1 1 100%; }
    .modal .gallery { grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); }
    .modal .table-wrap { max-height: 220px; }
    .modal .tbl th, .modal .tbl td { padding: 8px; white-space: nowrap; }
    .modal .kv { grid-template-columns: 1fr; gap: 2px 0; }
    .modal .kv span:nth-child(even) { margin-bottom: 8px; word-break: break-word; }
    .pt.banner { grid-column: span 1; }
}
@media (max-height: 520px) and (orientation: landscape) {
    .modal { align-items: stretch; padding: 0; }
    .modal-box, .modal-box.wide { max-height: 100vh; max-height: 100dvh; border-radius: 0; }
}

/* ===== v4: кольори, масштаб на телефоні, шапка, підвал ===== */
:root {
    --bg: #080d1a;
    --text: #eef2fb;
    --muted: #aab4c8;
    --gold: #f0c674;
    --gold-2: #c99a3e;
    --blue: #3b86ff;
    --blue-2: #2a61d6;
    --green: #44e08f;
    --red: #ff6b7a;
    --border: rgba(255, 255, 255, 0.12);
}
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { max-width: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body {
    background:
        radial-gradient(900px 520px at 12% -8%, rgba(59, 134, 255, 0.22), transparent 60%),
        radial-gradient(800px 500px at 92% 0%, rgba(240, 198, 116, 0.14), transparent 55%),
        radial-gradient(700px 500px at 50% 112%, rgba(120, 90, 255, 0.12), transparent 60%),
        var(--bg);
    background-attachment: fixed;
}
.glass { background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)); }
.hero h1 { background: linear-gradient(90deg, #ffffff, #cfe0ff 55%, #f6d99a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.badge { background: rgba(59, 134, 255, 0.2); color: #b3d1ff; }
.platform p, .res-meta, .mt small { color: #b6bfd2; }
.stat-card .ico { background: rgba(255, 255, 255, 0.08); }
.stat-card b { letter-spacing: -0.01em; }
.tag { border-color: rgba(240, 198, 116, 0.6); }

/* Золота обводка лише в момент вибору: за замовчуванням її немає ні в кого */
.glass.platform { cursor: pointer; }
.glass.platform:active { border-color: rgba(240, 198, 116, 0.7); }
.glass.active-card { border-color: rgba(240, 198, 116, 0.75); box-shadow: 0 0 0 1px rgba(240, 198, 116, 0.35), 0 0 30px rgba(240, 198, 116, 0.18); }

/* Шапка: довга назва сайту скорочується, панель користувача завжди на місці */
.topbar { flex-wrap: nowrap; gap: 12px; }
.brand { min-width: 0; flex: 1 1 auto; }
.brand img { flex: none; }
.brand span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-area { flex: none; }
.user-menu { max-width: calc(100vw - 24px); }

/* Підвал: один постійний слот для лічильників трафіку (Google Analytics, Метрика, інформери) */
.footer-bottom { align-items: center; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 22px; margin-top: 18px; font-size: 13px; }
.footer .footer-legal a { display: inline-flex; align-items: center; min-height: 36px; color: var(--muted); }
.footer .footer-legal a:hover { color: var(--gold); }
.footer-counters { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; max-width: 100%; min-height: 31px; overflow: hidden; }
.footer-counters > * { max-width: 100%; }
.footer-counters img { max-height: 31px; width: auto; vertical-align: middle; }
.footer-counters:empty { display: none; }

.layout { grid-template-columns: minmax(0, 1fr) 330px; }
.stats-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 980px) {
    .layout { grid-template-columns: minmax(0, 1fr); }
    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .topbar .btn { padding: 8px 12px; }
    .user-menu { position: fixed; left: 12px; right: 12px; top: calc(env(safe-area-inset-top, 0px) + 60px); min-width: 0; max-width: none; }
    .result { padding: 14px; margin-top: 18px; }
    .guide { grid-template-columns: minmax(0, 1fr); }
    .media-types { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-counters { justify-content: center; }
    .toast { left: 12px; right: 12px; bottom: auto; top: calc(env(safe-area-inset-top, 0px) + 12px); }
    .support-panel { height: calc(100vh - 100px); height: calc(100dvh - 100px); }
}
/* Модальні вікна: висота за видимою областю екрана (адресний рядок мобільного браузера) */
@supports (height: 100dvh) {
    .modal { height: 100dvh; bottom: auto; }
}

/* ===== v6: перемикач мов UA | EN ===== */
.top-right { display: flex; align-items: center; gap: 10px; flex: none; }
.lang-switch { display: inline-flex; flex: none; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--border); }
.lang-switch a { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 30px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 0.05em; color: var(--muted); text-decoration: none !important; transition: background 0.15s, color 0.15s; }
.lang-switch a:hover { color: var(--text); }
.lang-switch a.active { background: linear-gradient(180deg, var(--blue), var(--blue-2)); color: #fff; box-shadow: 0 4px 12px rgba(59, 134, 255, 0.4); }
@media (max-width: 620px) { .user-area > .btn-primary { display: none; } }

/* ---------- Блок соцмереж (desktop і mobile) ---------- */
.social-block { margin: 22px 0; padding: 22px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; align-items: center; }
.social-head .section-title { margin: 0 0 8px; }
.social-desc { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.social-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.social-link { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 14px; border-radius: 14px; color: var(--text); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease; }
.social-link:hover, .social-link:focus-visible { transform: translateY(-2px); border-color: rgba(226, 184, 107, 0.55); background: rgba(255, 255, 255, 0.07); }
.social-ico { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); }
.social-tg .social-ico { color: #fff; background: linear-gradient(160deg, #3aa7e8, #1f7dc0); }
.social-txt { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.social-txt b { font-size: 14px; }
.social-txt small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.social-go { margin-left: auto; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .social-block { grid-template-columns: 1fr; } }
@media (max-width: 620px) {
    .social-block { padding: 16px; gap: 14px; }
    .social-links { grid-template-columns: 1fr; gap: 10px; }
    .social-link { min-height: 56px; }
}
/* у мобільній версії блок стоїть між секціями .m-block */
.m .social-block { margin: 14px 12px; border-radius: 18px; }

/* ---------- Онбординг (хмарки підказок) ---------- */
.ob-root { position: fixed; inset: 0; z-index: 400; }
.ob-backdrop { position: absolute; inset: 0; background: transparent; }
.ob-ring { position: fixed; border-radius: 14px; pointer-events: none; box-shadow: 0 0 0 2px var(--gold), 0 0 0 9999px rgba(3, 6, 12, 0.55); transition: all 0.25s ease; }
.ob-tip { position: fixed; box-sizing: border-box; width: 340px; max-width: calc(100vw - 16px); padding: 16px 16px 12px; border-radius: 16px; color: var(--text); background: #121a2b; border: 1px solid rgba(226, 184, 107, 0.45); box-shadow: 0 14px 44px rgba(0, 0, 0, 0.55); transition: top 0.25s ease, left 0.25s ease; }
.ob-tip .ob-x { position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.ob-tip .ob-x:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.ob-step { font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold); margin: 0 30px 4px 0; }
.ob-title { display: block; font-size: 16px; margin: 0 30px 6px 0; }
.ob-text { margin: 0 0 12px; font-size: 14px; line-height: 1.5; color: #c9d1e0; }
.ob-btns { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ob-sp { flex: 1; }
.ob-btns button { min-height: 40px; padding: 0 14px; border-radius: 10px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.ob-skip { border: 0; background: transparent; color: var(--muted); padding-left: 0 !important; }
.ob-prev { border: 1px solid var(--border); background: rgba(255, 255, 255, 0.05); color: var(--text); }
.ob-next { border: 0; color: #1c1407; background: linear-gradient(180deg, #f1cf8f, var(--gold-2)); }
.ob-arrow { position: absolute; width: 14px; height: 14px; background: #121a2b; transform: translateX(-50%) rotate(45deg); }
.ob-tip.below .ob-arrow { top: -8px; border-left: 1px solid rgba(226, 184, 107, 0.45); border-top: 1px solid rgba(226, 184, 107, 0.45); }
.ob-tip.above .ob-arrow { bottom: -8px; border-right: 1px solid rgba(226, 184, 107, 0.45); border-bottom: 1px solid rgba(226, 184, 107, 0.45); }
#obHelpBtn { min-width: 40px; padding: 8px 10px; }
@media (max-width: 380px) {
    .ob-tip { padding: 14px 12px 10px; }
    .ob-btns button { padding: 0 11px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) { .ob-ring, .ob-tip { transition: none; } }

/* ---------- Встановлення додатка (банер і вікно інструкції) ---------- */
#pwaBtn[hidden], [data-pwa-open][hidden] { display: none !important; }
.pwa-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; }
.pwa-x { position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.pwa-x:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.pwa-btn { min-height: 42px; padding: 0 16px; border-radius: 11px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.pwa-btn-main { border: 0; color: #1c1407; background: linear-gradient(180deg, #f1cf8f, var(--gold-2)); }
.pwa-btn-ghost { border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04); color: var(--text); }
.pwa-banner {
    position: fixed; z-index: 300; left: 50%; transform: translateX(-50%);
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: min(560px, calc(100vw - 16px)); box-sizing: border-box;
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
    padding: 14px 40px 14px 14px; border-radius: 16px; color: var(--text); background: #121a2b;
    border: 1px solid rgba(226, 184, 107, 0.45); box-shadow: 0 14px 44px rgba(0, 0, 0, 0.55); animation: pwaUp 0.3s ease;
}
.pwa-banner-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pwa-banner-txt b { font-size: 15px; }
.pwa-banner-txt span { font-size: 13px; line-height: 1.4; color: var(--muted); }
.pwa-banner-btns { display: flex; gap: 8px; }
@keyframes pwaUp { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (max-width: 560px) {
    .pwa-banner { grid-template-columns: auto minmax(0, 1fr); padding: 12px 38px 12px 12px; gap: 10px; }
    .pwa-banner-btns { grid-column: 1 / -1; }
    .pwa-banner-btns .pwa-btn { flex: 1; }
}
.pwa-dlg { position: fixed; inset: 0; z-index: 450; display: flex; align-items: center; justify-content: center; padding: 12px; }
.pwa-dlg-bg { position: absolute; inset: 0; background: rgba(3, 6, 12, 0.65); }
.pwa-dlg-box {
    position: relative; box-sizing: border-box; width: 100%; max-width: 440px; max-height: calc(100vh - 24px); overflow-y: auto;
    padding: 20px 18px 16px; border-radius: 18px; color: var(--text); background: #121a2b;
    border: 1px solid rgba(226, 184, 107, 0.45); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.pwa-dlg-head { display: flex; align-items: center; gap: 12px; margin: 0 34px 14px 0; font-size: 17px; }
.pwa-steps { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 10px; font-size: 14px; line-height: 1.5; color: #c9d1e0; }
.pwa-steps li::marker { color: var(--gold); font-weight: 700; }
.pwa-note, .pwa-msg { margin: 0 0 14px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.pwa-msg { font-size: 14px; color: #c9d1e0; }
.pwa-dlg-box .pwa-btn-main { width: 100%; }
@media (prefers-reduced-motion: reduce) { .pwa-banner { animation: none; } }
@media (max-width: 1100px) { #pwaBtn .pwa-btn-label { display: none; } }

/* Поділитися сайтом */
.share-block { margin: 22px 0; padding: 22px; text-align: center; }
.share-block .section-title { margin: 0 0 6px; }
.share-desc { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.share-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.share-btn { flex: 1 1 130px; max-width: 220px; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.06); color: var(--text); font: inherit; font-size: 14px; font-weight: 600; text-decoration: none !important; cursor: pointer; }
.share-btn:hover { border-color: var(--gold); }
.share-btn[hidden] { display: none; }
.share-main { background: linear-gradient(180deg, #f1cf8f, #b98a3e); color: #1c1407; border-color: transparent; }
.share-msg { min-height: 18px; margin: 10px 0 0; font-size: 13px; color: var(--gold); overflow-wrap: anywhere; }
.m .share-block { margin: 14px 12px; padding: 16px; border-radius: 18px; }

/* Рекламні банери: блок фіксованого розміру по центру, не розтягується на всю ширину */
.promo { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 20px auto; }
.promo[hidden] { display: none; }
.promo-label { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.promo-box { display: block; flex: none; max-width: 100%; overflow: hidden; border-radius: 12px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.03); }
.promo-box img { display: block; width: 100%; height: 100%; object-fit: contain; }

/* ===== Блок результату (6.16): вкладки, якість, одна кнопка, наочний прогрес ===== */
.res-head { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); }
.res-thumb { border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.res-thumb img { object-fit: contain; background: #0b111d; }
.res-info { min-width: 0; }
.res-title { font-size: 19px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.res-meta { font-size: 13px; }
.dl-pick { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.dl-pick:empty { display: none; }
.dl-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--border); }
.dl-tab { min-height: 46px; padding: 4px 6px; border: 0; border-radius: 11px; background: transparent; color: var(--muted); font: 700 15px var(--font); cursor: pointer; }
.dl-tab[aria-pressed="true"] { background: linear-gradient(180deg, var(--blue), var(--blue-2)); color: #fff; box-shadow: 0 6px 18px rgba(46, 123, 246, 0.4); }
.dl-cap { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.dl-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dl-chip { min-height: 46px; padding: 0 4px; border: 1.5px solid var(--border); border-radius: 12px; background: rgba(255, 255, 255, 0.03); color: var(--text); font: 700 15px var(--font); cursor: pointer; }
.dl-chip[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); background: rgba(226, 184, 107, 0.12); }
.dl-go { min-height: 56px; border: 0; border-radius: 16px; background: linear-gradient(180deg, #f1cf8f, var(--gold-2)); color: #1c1407; font: 800 18px var(--font); letter-spacing: 0.02em; cursor: pointer; box-shadow: 0 10px 28px rgba(226, 184, 107, 0.35); }
.dl-go:hover:not(:disabled) { filter: brightness(1.06); }
.dl-go:active:not(:disabled) { transform: scale(0.99); }
.dl-pick button:disabled { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.dl-tab:focus-visible, .dl-chip:focus-visible, .dl-go:focus-visible, .dl-save:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Прогрес: велика цифра, смуга з рухом, етапи */
.dl-prog { display: none; margin-top: 16px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); }
.dl-prog.run, .dl-prog.done, .dl-prog.err { display: block; animation: rise 0.3s ease; }
.dl-prog-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.dl-prog-text { min-width: 0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.dl-prog-pct { flex: none; font-size: 30px; line-height: 1; font-weight: 800; color: #8fbcff; font-variant-numeric: tabular-nums; }
.dl-bar { height: 16px; }
.dl-bar > i { position: relative; background: linear-gradient(90deg, var(--blue), #6fb0ff); box-shadow: 0 0 14px rgba(46, 123, 246, 0.55); border-radius: 999px; }
.dl-prog.run .dl-bar > i { background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.22) 0 10px, transparent 10px 20px), linear-gradient(90deg, var(--blue), #6fb0ff); background-size: 28px 28px, 100% 100%; animation: dl-stripes 0.9s linear infinite; }
.dl-prog.done .dl-bar > i { background: linear-gradient(90deg, #22b866, var(--green)); box-shadow: 0 0 14px rgba(61, 220, 132, 0.55); }
.dl-prog.done .dl-prog-pct { color: var(--green); }
.dl-prog.err .dl-bar > i { background: var(--red); box-shadow: none; }
.dl-prog.err .dl-prog-pct { color: var(--red); }
@keyframes dl-stripes { to { background-position: 28px 0, 0 0; } }
.dl-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; margin: 14px 0 0; padding: 0; }
.dl-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); text-align: center; line-height: 1.25; }
.dl-steps li + li::before { content: ""; position: absolute; top: 7px; right: 50%; width: 100%; height: 2px; background: var(--border); }
.dl-steps li.ok + li::before, .dl-steps li.ok + li.now::before { background: var(--green); }
.dl-steps i { position: relative; z-index: 1; width: 16px; height: 16px; border-radius: 50%; background: #1b2438; border: 2px solid rgba(255, 255, 255, 0.18); }
.dl-steps li.ok { color: var(--text); }
.dl-steps li.ok i { background: var(--green); border-color: var(--green); }
.dl-steps li.now { color: #fff; font-weight: 700; }
.dl-steps li.now i { background: var(--blue); border-color: #8fbcff; box-shadow: 0 0 0 5px rgba(46, 123, 246, 0.25); animation: dl-pulse 1.2s ease-in-out infinite; }
.dl-steps li.bad { color: var(--red); font-weight: 700; }
.dl-steps li.bad i { background: var(--red); border-color: var(--red); }
@keyframes dl-pulse { 50% { box-shadow: 0 0 0 9px rgba(46, 123, 246, 0.08); } }

/* Готові файли: великі кнопки */
.dl-save { display: flex; align-items: center; justify-content: center; min-height: 56px; padding: 8px 16px; border-radius: 16px; background: linear-gradient(180deg, #2fd27a, #179c56); color: #04150b !important; font-weight: 800; font-size: 17px; text-align: center; text-decoration: none !important; box-shadow: 0 10px 26px rgba(61, 220, 132, 0.3); overflow-wrap: anywhere; }
.dl-save.gold { background: linear-gradient(180deg, #f1cf8f, var(--gold-2)); color: #1c1407 !important; box-shadow: 0 10px 26px rgba(226, 184, 107, 0.3); }
.dl-save:hover { filter: brightness(1.06); }
@media (max-width: 620px) {
    .res-head { grid-template-columns: minmax(0, 1fr); }
    .res-title { font-size: 17px; }
    .dl-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dl-prog-pct { font-size: 26px; }
}
@media (max-width: 480px) { .dl-steps li { font-size: 11px; letter-spacing: -0.01em; } }
@media (max-width: 359px) { .dl-steps li { font-size: 10px; } .dl-tab { font-size: 14px; } }
@media (prefers-reduced-motion: reduce) { .dl-prog.run .dl-bar > i, .dl-steps li.now i { animation: none; } }
