/* SG 充值中心 - 前台样式 */
:root {
    --bg: #0a0e17;
    --bg-2: #111827;
    --card: rgba(20, 27, 43, 0.92);
    --line: rgba(255, 255, 255, 0.08);
    --text: #e9eef9;
    --muted: #93a1ba;
    --gold: #f0c24b;
    --gold-2: #e0a92b;
    --ok: #35c48a;
    --err: #ef5b6b;
    --warn: #f2a93b;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    color: var(--text);
    background:
        radial-gradient(1200px 620px at 16% -8%, rgba(38, 56, 104, .75) 0%, transparent 62%),
        radial-gradient(900px 520px at 92% -4%, rgba(72, 44, 96, .55) 0%, transparent 58%),
        radial-gradient(700px 500px at 50% 110%, rgba(240, 194, 75, .05) 0%, transparent 60%),
        linear-gradient(180deg, #080b13 0%, #0a0f1b 45%, #0b1120 100%);
    background-attachment: fixed;
    min-height: 100vh;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; }
a:hover { opacity: .85; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
    background: linear-gradient(180deg, rgba(10, 14, 23, .9), rgba(10, 14, 23, .72));
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
}
.topbar-inner {
    max-width: 1040px;
    margin: 0 auto;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); }
.brand-logo {
    width: 34px; height: 34px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, #f9e08f, #d99a1f);
    color: #201704;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: .5px;
    box-shadow: 0 6px 18px rgba(226, 167, 36, .28);
}
.brand-text { font-weight: 700; letter-spacing: .5px; font-size: 15px; }
.topnav { display: flex; align-items: center; gap: 6px; font-size: 13px; }
.topnav a { color: var(--muted); padding: 6px 10px; border-radius: 8px; transition: color .15s, background .15s; }
.topnav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.topnav a.on { color: var(--gold); font-weight: 600; background: rgba(240, 194, 75, .1); }
.whoami { color: var(--muted); font-size: 12px; }
.currency-switch, .lang-switch { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.currency-switch a, .lang-switch a { padding: 4px 8px; font-size: 11px; border-radius: 0; color: var(--muted); }
.currency-switch a.on, .lang-switch a.on { color: var(--gold); background: rgba(240, 194, 75, .12); font-weight: 700; }
.currency-switch a + a, .lang-switch a + a { border-left: 1px solid var(--line); }
.agent-balance {
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gold);
    background: rgba(240, 194, 75, .1);
    border: 1px solid rgba(240, 194, 75, .24);
}
.btn.is-busy { opacity: .6; cursor: not-allowed; }

.notice-bar {
    background: rgba(240, 194, 75, 0.08);
    border-bottom: 1px solid rgba(240, 194, 75, 0.16);
    color: #e8d8a8;
    font-size: 12px;
    padding: 8px 0;
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 18px; }
.main { padding: 26px 18px 60px; }

.card {
    position: relative;
    background: linear-gradient(180deg, rgba(26, 34, 53, .95), rgba(16, 22, 36, .93));
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 16px 44px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .03);
    overflow: hidden;
}
.card::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(240, 194, 75, .35), transparent);
}
.card-title { margin: 0 0 6px; font-size: 20px; letter-spacing: .3px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: Consolas, "SFMono-Regular", Menlo, monospace; }

.auth-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 18px;
    align-items: start;
    max-width: 940px;
    margin: 10px auto 0;
}
.auth-card { padding: 26px; }
.auth-card .muted { margin: 4px 0 18px; }

.form { display: block; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 7px; letter-spacing: .2px; }
.input, .field input, .field select, .field textarea,
input[type=text], input[type=password], input[type=email], input[type=number], input[type=date], select, textarea {
    width: 100%;
    padding: 12px 13px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(9, 13, 22, 0.86);
    color: var(--text);
    font-size: 14px;
    outline: none;
    transition: border-color .15s, box-shadow .15s, background .15s;
}
input:hover, select:hover, textarea:hover { border-color: rgba(255, 255, 255, .2); }
input:focus, select:focus, textarea:focus {
    border-color: rgba(240, 194, 75, 0.7);
    box-shadow: 0 0 0 3px rgba(240, 194, 75, 0.12);
    background: rgba(9, 13, 22, 0.95);
}
input::placeholder, textarea::placeholder { color: #5f6b82; }

/* 验证码：输入框与图片同排，整体一个描边框 */
.field > .captcha-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    padding: 4px 4px 4px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 11px;
    background: rgba(9, 13, 22, 0.86);
    transition: border-color .15s, box-shadow .15s;
}
.captcha-row:focus-within {
    border-color: rgba(240, 194, 75, 0.7);
    box-shadow: 0 0 0 3px rgba(240, 194, 75, 0.12);
}
.captcha-row input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    padding: 8px 0;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}
.captcha-row img {
    flex: 0 0 104px;
    width: 104px;
    height: 42px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #eef2f7;
    transition: filter .15s, transform .1s;
}
.captcha-row img:hover { filter: brightness(1.06); }
.captcha-row img:active { transform: scale(.98); }

.field > .email-code-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    padding: 4px 4px 4px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 11px;
    background: rgba(9, 13, 22, 0.86);
    transition: border-color .15s, box-shadow .15s;
}
.email-code-row:focus-within {
    border-color: rgba(240, 194, 75, 0.7);
    box-shadow: 0 0 0 3px rgba(240, 194, 75, 0.12);
}
.email-code-row input {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    padding: 8px 0;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}
.email-code-row .btn { flex: 0 0 auto; white-space: nowrap; }
.field-hint { display: block; margin-top: 6px; font-size: 12px; line-height: 1.5; font-style: normal; color: var(--muted); }
.field-hint.is-ok { color: #46c98b; }
.field-hint.is-error { color: #f07c7c; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 14px;
    cursor: pointer;
    transition: transform .08s, filter .15s, background .15s;
    font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid rgba(240, 194, 75, .75); outline-offset: 2px; }
.btn-primary {
    background: linear-gradient(135deg, #fbe19a 0%, #f0c24b 42%, #dea01e 100%);
    color: #211705;
    font-weight: 700;
    box-shadow: 0 10px 26px rgba(226, 167, 36, 0.24), inset 0 1px 0 rgba(255, 255, 255, .55);
}
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 14px 30px rgba(226, 167, 36, .3); }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--text);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); }
.btn-block { width: 100%; margin-top: 6px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-sm { padding: 6px 12px; font-size: 12px; border-radius: 8px; }

.auth-links { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; font-size: 13px; }

.side-info h3 { margin: 0 0 12px; font-size: 16px; }
.steps, .tips { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.9; font-size: 13px; }
.steps b { color: var(--gold); }
.tip { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); color: var(--muted); font-size: 12px; line-height: 1.7; }

.pill {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(240, 194, 75, 0.1);
    border: 1px solid rgba(240, 194, 75, 0.22);
    color: #f3d88c;
    font-size: 12px;
}

.target-card { margin-bottom: 18px; }
.target-info { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; }
.target-main { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.target-chip {
    align-self: flex-start;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: .4px;
    color: var(--gold);
    background: rgba(240, 194, 75, .09);
    border: 1px solid rgba(240, 194, 75, .22);
}
.target-name { margin: 1px 0 0; font-size: 26px; letter-spacing: .5px; }
.target-sub { font-size: 12px; color: var(--muted); }
.target-sub b { color: var(--text); font-weight: 600; }
.target-side { display: flex; align-items: center; gap: 14px; }
.points-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 106px;
    padding: 10px 16px;
    border-radius: 12px;
    background: rgba(240, 194, 75, 0.08);
    border: 1px solid rgba(240, 194, 75, 0.18);
}
.points-box span { display: block; font-size: 11px; color: var(--muted); }
.points-box strong { font-size: 25px; line-height: 1.1; color: var(--gold); }
.points-box strong em { font-style: normal; font-size: 14px; font-weight: 600; margin-right: 1px; }
.points-box strong i { font-style: normal; font-size: 11px; font-weight: 400; color: var(--muted); margin-left: 3px; }
.target-divider { width: 1px; height: 32px; background: var(--line); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 6px 0 14px; flex-wrap: wrap; }
.section-title { font-size: 15px; margin: 0; color: var(--text); }
.section-hint { font-size: 12px; color: var(--muted); }
.pkg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; margin-bottom: 24px; }
.currency-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 18px 0 8px; }
.currency-card {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 14px;
    background: linear-gradient(165deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
    color: var(--text);
    text-decoration: none;
    transition: border-color .15s, transform .12s, box-shadow .15s;
}
.currency-card:hover { border-color: rgba(240, 194, 75, .55); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, .22); }
.currency-symbol { flex: none; width: 56px; height: 56px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; color: var(--gold); background: rgba(240, 194, 75, .12); border: 1px solid rgba(240, 194, 75, .24); }
.currency-name { font-size: 18px; font-weight: 700; margin: 0 0 4px; }
.currency-desc { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 0; }
.pkg { display: block; cursor: pointer; }
.pkg input { position: absolute; opacity: 0; pointer-events: none; }
.pkg-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 14px 16px 15px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    transition: border-color .15s, background .15s, transform .12s, box-shadow .15s;
    height: 100%;
    box-sizing: border-box;
}
.pkg-hot .pkg-body {
    border-color: rgba(53, 196, 138, .22);
    background: linear-gradient(165deg, rgba(53, 196, 138, .07), rgba(255, 255, 255, .03) 62%);
}
.pkg input:checked + .pkg-body {
    border-color: rgba(240, 194, 75, 0.75);
    background: linear-gradient(165deg, rgba(240, 194, 75, 0.14), rgba(240, 194, 75, 0.04));
    box-shadow: 0 0 0 1px rgba(240, 194, 75, 0.35) inset, 0 10px 24px rgba(0, 0, 0, .22);
}
.pkg:hover .pkg-body { border-color: rgba(240, 194, 75, .45); transform: translateY(-2px); }
.pkg-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 20px; }
.pkg-label { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s; }
.pkg-bonus {
    flex: none;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    color: #6ff0b4;
    background: rgba(53, 196, 138, .14);
    border: 1px solid rgba(53, 196, 138, .3);
}
.pkg-amount { font-size: 24px; line-height: 1.3; font-weight: 700; color: var(--gold); letter-spacing: .3px; }
.pkg-total { font-size: 12px; color: var(--muted); }
.pkg-total b { font-size: 15px; font-weight: 700; color: #fff; }
.pkg-base { font-size: 11px; color: rgba(255, 255, 255, .38); }
.pkg input:checked + .pkg-body .pkg-label { color: var(--gold); }
.pkg input:checked + .pkg-body .pkg-total b { color: var(--gold); }

.pay-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-bottom: 22px; }
.pay-type { display: block; cursor: pointer; }
.pay-type input { position: absolute; opacity: 0; pointer-events: none; }
.pay-body {
    display: block;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}
.pay-type input:checked + .pay-body {
    border-color: rgba(240, 194, 75, 0.75);
    background: rgba(240, 194, 75, 0.09);
    box-shadow: 0 0 0 1px rgba(240, 194, 75, 0.3) inset;
}
.pay-type:hover .pay-body { border-color: rgba(240, 194, 75, .38); background: rgba(255, 255, 255, .05); }
.pay-name { display: block; font-weight: 600; margin-bottom: 4px; }
.pay-desc { display: block; font-size: 12px; color: var(--muted); }
.pay-type-logo .pay-body { padding: 10px 12px; text-align: center; }
.pay-logo {
    display: block;
    width: 100%;
    height: 44px;
    object-fit: contain;
    margin: 0 auto 6px;
    padding: 5px 10px;
    box-sizing: border-box;
    background: #fff;
    border-radius: 8px;
}
.pay-types-logo { max-height: 420px; overflow-y: auto; padding-right: 2px; }

.pkg-note { font-size: 12px; margin: -6px 0 0; }
.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 292px;
    gap: 18px;
    align-items: start;
}
.checkout-main { margin: 0; }
.checkout-aside {
    margin: 0;
    position: sticky;
    top: 18px;
    padding: 20px 22px 22px;
}
.checkout-aside .section-title { margin-bottom: 12px; }
.pay-types-col { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 0 0 4px; }
.order-sum {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: 16px 0;
    padding: 14px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.sum-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sum-row span { font-size: 12px; color: var(--muted); }
.sum-row b { font-size: 20px; line-height: 1.2; color: var(--gold); }
.sum-row + .sum-row b { font-size: 17px; color: #fff; }
.aside-hint { font-size: 11px; color: var(--muted); text-align: center; margin: 10px 0 0; }

.submit-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.pay-card { max-width: 720px; margin: 0 auto; }
.pay-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.order-no { font-size: 15px; margin-top: 2px; }
.pay-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 14px;
    margin: 18px 0 22px;
    padding: 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
}
.pay-meta div span { display: block; font-size: 11px; margin-bottom: 4px; }
.pay-meta b { font-size: 15px; }
.pay-meta .amount { color: var(--gold); font-size: 20px; }

.qr-zone {
    display: flex;
    gap: 22px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    padding: 10px 0 4px;
}
.qr-box {
    width: 220px; height: 220px;
    display: flex; align-items: center; justify-content: center;
    background: #fff;
    border-radius: 14px;
    padding: 8px;
}
.qr-box img { width: 100%; height: 100%; }
.qr-loading { color: #6b7280; font-size: 12px; }
.qr-tip p { margin: 0 0 6px; font-size: 13px; }
.countdown { color: var(--gold); font-weight: 700; }

.result { text-align: center; padding: 16px 0 6px; }
.result-icon {
    width: 54px; height: 54px;
    margin: 0 auto 10px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 26px;
    background: rgba(53, 196, 138, 0.12);
    color: var(--ok);
}
.result-warn .result-icon { background: rgba(242, 169, 59, 0.12); color: var(--warn); }
.result-muted .result-icon { background: rgba(147, 161, 186, 0.12); color: var(--muted); }
.result h3 { margin: 0 0 6px; font-size: 20px; }
.result p { color: var(--muted); margin: 4px 0; }
.result-actions { display: flex; gap: 12px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.error-text { color: var(--err); font-size: 13px; line-height: 1.7; margin: 10px 0; }
.payssion-panel .result-icon { background: rgba(240, 194, 75, .12); color: var(--gold); }
.payssion-form { margin: 18px 0 8px; }

.badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1.6;
}
.badge-ok, .badge-success { background: rgba(53, 196, 138, 0.14); color: #4fdca2; }
.badge-warn { background: rgba(242, 169, 59, 0.14); color: #f6bb61; }
.badge-err { background: rgba(239, 91, 107, 0.14); color: #ff7d8b; }
.badge-muted { background: rgba(147, 161, 186, 0.14); color: var(--muted); }

.tabs { display: flex; gap: 6px; margin: 6px 0 16px; flex-wrap: wrap; }
.tabs a {
    padding: 7px 14px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 13px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
}
.tabs a.on { color: var(--gold); border-color: rgba(240, 194, 75, 0.4); background: rgba(240, 194, 75, 0.08); }

.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table th { background: rgba(255, 255, 255, 0.04); color: var(--muted); font-weight: 500; font-size: 12px; }
.table tbody tr:hover { background: rgba(255, 255, 255, .035); }
.table tr:last-child td { border-bottom: none; }
.table td.empty, .empty { text-align: center; color: var(--muted); padding: 26px; }
.acc-point { font-size: 15px; color: var(--gold); font-weight: 700; }
.acc-point.acc-zero { color: var(--muted); font-weight: 500; }
.inline-form { display: inline; }
.apply-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 14px 16px; border: 1px dashed rgba(255, 255, 255, .16); border-radius: 12px; background: rgba(255, 255, 255, .03); }
.apply-notice { flex: 1 1 520px; max-width: 760px; font-size: 16px; font-weight: 700; line-height: 1.75; color: var(--text); }
.action-cell { display: flex; gap: 6px; }

.pager { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 14px; font-size: 12px; }
.pager a { padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); color: var(--muted); background: rgba(255, 255, 255, 0.03); }
.pager a.active { color: var(--gold); border-color: rgba(240, 194, 75, 0.4); background: rgba(240, 194, 75, 0.08); }
.pager .dots { color: var(--muted); }
.pager-info { margin-left: auto; color: var(--muted); }

.alert { display: none; }
.alert-success, .alert-error, .alert-warn { display: block; }
.modal-overlay {
    position: fixed; inset: 0; z-index: 100;
    background: rgba(4, 7, 13, 0.72);
    backdrop-filter: blur(3px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.modal-box {
    width: 100%;
    max-width: 380px;
    background: #131a29;
    border: 1px solid rgba(240, 194, 75, 0.25);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}
.modal-icon { font-size: 30px; margin-bottom: 8px; }
.modal-error .modal-icon { color: var(--err); }
.modal-success .modal-icon { color: var(--ok); }
.modal-warn .modal-icon { color: var(--warn); }
.modal-msg { color: #dbe4f3; font-size: 14px; line-height: 1.7; white-space: pre-line; margin-bottom: 18px; word-break: break-word; }
.modal-close { min-width: 120px; }

.foot { border-top: 1px solid var(--line); padding: 22px 0 30px; color: var(--muted); font-size: 12px; text-align: center; }
.foot p { margin: 4px 0; }

@media (max-width: 820px) {
    .auth-grid { grid-template-columns: 1fr; }
    .topbar-inner { flex-wrap: wrap; }
    .topnav { gap: 2px; font-size: 12px; flex-wrap: wrap; }
    .topnav a { padding: 5px 8px; }
    .currency-switch, .lang-switch { margin: 2px 0; }
    .currency-grid { grid-template-columns: 1fr; }
    .target-name { font-size: 22px; }
    .pay-card { margin: 0; }
    .qr-zone { flex-direction: column; }
    .card { padding: 18px; }
    .auth-card { padding: 20px; }
    .captcha-row img { flex-basis: 92px; width: 92px; height: 40px; }
    .checkout-grid { grid-template-columns: 1fr; gap: 14px; }
    .checkout-aside { position: static; }
    .pay-types-col { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}

@media (max-width: 560px) {
    .target-side { width: 100%; justify-content: space-between; }
    .target-divider { display: none; }
}
