/* ==========================================================================
   TRX Wheel · 前台样式（Arabic / RTL）
   ========================================================================== */

:root {
    --wheel: min(84vw, 396px);
    --gold: #f0b64b;
    --gold-deep: #d3922a;
    --gold-soft: rgba(240, 182, 75, .18);
    --red: #e0112e;
    --ink: #f7f4ed;
    --muted: rgba(247, 244, 237, .6);
    --card: rgba(21, 17, 24, .78);
    --line: rgba(255, 255, 255, .09);
    --radius: 20px;
    --font: 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* hidden 属性必须能压过各元素自己的 display 值 */
[hidden] { display: none !important; }

html, body { margin: 0; padding: 0; }

body {
    min-height: 100vh;
    background: #07070c;
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 背景氛围 */
.bg-aura {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(60% 40% at 50% 0%, rgba(224, 17, 46, .22), transparent 70%),
        radial-gradient(50% 38% at 50% 78%, rgba(240, 182, 75, .16), transparent 72%),
        radial-gradient(90% 60% at 50% 110%, rgba(224, 17, 46, .12), transparent 70%),
        #07070c;
}
.bg-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: .35;
    background-image:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at 50% 30%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 20%, transparent 75%);
}

/* 顶部 */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px clamp(16px, 4vw, 32px);
    background: linear-gradient(180deg, rgba(7, 7, 12, .9), rgba(7, 7, 12, 0));
    backdrop-filter: blur(6px);
}

.brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 15px;
    letter-spacing: .04em;
    color: #1a0d02;
    background: linear-gradient(160deg, #ffd987, var(--gold) 45%, #b4741c);
    box-shadow: 0 8px 22px rgba(240, 182, 75, .25);
}
.brand-text { font-weight: 700; font-size: 17px; letter-spacing: .01em; white-space: nowrap; }

.header-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 62vw;
    flex: 0 1 auto;
    min-width: 0;
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 12px;
    color: var(--muted);
    background: rgba(255, 255, 255, .04);
    white-space: nowrap;
    overflow: hidden;
}
.chip-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dot-live {
    width: 7px; height: 7px; flex: 0 0 7px;
    border-radius: 50%;
    background: #35d07f;
    box-shadow: 0 0 0 4px rgba(53, 208, 127, .16);
    animation: pulse 1.8s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .45; }
}

/* 主体 */
.page {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 32px) 32px;
}

.hero { text-align: center; padding: 18px 0 6px; }

.eyebrow {
    display: inline-block;
    padding: 5px 14px;
    border: 1px solid var(--gold-soft);
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: .16em;
    color: var(--gold);
    background: rgba(240, 182, 75, .08);
}

h1 {
    margin: 16px 0 8px;
    font-size: clamp(26px, 7vw, 38px);
    line-height: 1.28;
    font-weight: 800;
    letter-spacing: -.01em;
}
.gold-text {
    background: linear-gradient(180deg, #ffe6ae, var(--gold) 60%, #c98b27);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-sub { margin: 0; color: var(--muted); font-size: 14px; }
.hero-sub strong { color: var(--ink); font-weight: 700; }

.prize-pills { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.pill {
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 12px;
    color: #ffdba4;
    background: rgba(255, 255, 255, .05);
    direction: ltr;
}

/* ---------------- 转盘 ---------------- */
.wheel-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 18px;
}

.wheel-glow {
    position: absolute;
    top: 8%;
    width: min(94vw, 460px);
    height: min(94vw, 460px);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(240, 182, 75, .22), rgba(224, 17, 46, .14) 45%, transparent 68%);
    filter: blur(18px);
    pointer-events: none;
}

.pointer {
    position: relative;
    z-index: 6;
    margin-bottom: -16px;
    filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .55));
}
.pointer-body {
    width: 0; height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 26px solid var(--gold);
}
.pointer::after {
    content: '';
    position: absolute;
    left: 50%; top: -6px;
    width: 16px; height: 16px;
    margin-left: -8px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff6dd, var(--gold));
    box-shadow: 0 0 14px rgba(240, 182, 75, .9);
}

.wheel-wrap { position: relative; width: var(--wheel); height: var(--wheel); }

.wheel-lights { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.wheel-lights i {
    position: absolute;
    left: 50%; top: 50%;
    width: 7px; height: 7px;
    margin: -3.5px 0 0 -3.5px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff7e2, var(--gold) 65%, #9a6415);
    box-shadow: 0 0 9px rgba(240, 182, 75, .85);
    transform-origin: center center;
}

@property --turn {
    syntax: '<angle>';
    inherits: true;
    initial-value: 0deg;
}

.wheel {
    --turn: 0deg;
    position: absolute;
    inset: 0;
    border-radius: 50%;
    transition: transform 22s cubic-bezier(.12, .68, .05, 1);
    will-change: transform;
    transform: rotate(0deg);
    box-shadow:
        0 0 0 5px rgba(255, 227, 176, .32),
        0 0 0 12px rgba(240, 182, 75, .1),
        0 26px 70px rgba(0, 0, 0, .65),
        inset 0 0 54px rgba(0, 0, 0, .45);
}

.wheel-label {
    position: absolute;
    left: 50%; top: 50%;
    width: 0; height: 0;
    transform: rotate(var(--ang)) translateY(calc(var(--wheel) * -0.302));
}

.label-inner {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    transform: translate(-50%, -50%) rotate(calc(-1 * var(--ang) - var(--turn)));
    font-size: clamp(13px, 3.5vw, 17px);
    line-height: 1.06;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .45);
    white-space: nowrap;
}
.label-inner b { font-weight: 800; font-size: 1em; }
.label-inner small { font-size: .58em; letter-spacing: .1em; font-weight: 600; }
.label-nowin { font-size: .8em; }

.wheel-ring {
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    border: 1px solid rgba(255, 226, 178, .35);
    box-shadow: inset 0 0 24px rgba(0, 0, 0, .4);
    pointer-events: none;
}

.wheel-hub {
    position: absolute;
    left: 50%; top: 50%;
    width: 23%; padding-top: 23%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle at 36% 28%, #fff0cd, var(--gold) 42%, #a9661a 100%);
    box-shadow: 0 0 0 4px rgba(0, 0, 0, .35), 0 12px 28px rgba(0, 0, 0, .5), inset 0 -6px 14px rgba(120, 60, 0, .45);
    z-index: 5;
}
.wheel-hub::before {
    content: '';
    position: absolute;
    inset: 12%;
    border-radius: 50%;
    border: 1px dashed rgba(90, 45, 0, .35);
}
.hub-logo {
    position: absolute;
    left: 0; right: 0; top: 42%;
    transform: translateY(-50%);
    text-align: center;
    font-weight: 800;
    font-size: clamp(16px, 4.6vw, 22px);
    letter-spacing: .06em;
    color: #2a1602;
}
.hub-sub {
    position: absolute;
    left: 0; right: 0; bottom: 26%;
    text-align: center;
    font-size: 9px;
    letter-spacing: .28em;
    color: rgba(60, 32, 0, .75);
    font-weight: 600;
}

/* 按钮 */
.action-area {
    margin-top: 34px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.spin-quota {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 5px 13px;
    border: 1px solid rgba(240, 182, 75, .28);
    border-radius: 999px;
    background: rgba(240, 182, 75, .1);
    color: #ffdba4;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}
.quota-dot {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 8px rgba(240, 182, 75, .8);
}

.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 30px;
    border: 0;
    border-radius: 999px;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
    transition: transform .16s ease, box-shadow .2s ease, filter .2s ease;
}
.btn:active { transform: translateY(1px) scale(.99); }

.btn-gold {
    color: #241303;
    background: linear-gradient(160deg, #ffe7b2, var(--gold) 42%, #cf8f22);
    box-shadow: 0 14px 34px rgba(240, 182, 75, .3), inset 0 -3px 0 rgba(120, 60, 0, .25);
}
.btn-gold:hover { filter: brightness(1.04); }
.btn-gold:disabled { filter: grayscale(.35) brightness(.8); cursor: not-allowed; box-shadow: none; }

.btn-spin {
    width: min(88%, 380px);
    padding: 17px 26px;
    font-size: 18px;
    letter-spacing: .01em;
    animation: breathe 2.6s ease-in-out infinite;
}
.btn-spin.is-spinning { animation: none; }
@keyframes breathe {
    0%, 100% { box-shadow: 0 14px 34px rgba(240, 182, 75, .3), inset 0 -3px 0 rgba(120, 60, 0, .25); }
    50% { box-shadow: 0 18px 46px rgba(240, 182, 75, .48), inset 0 -3px 0 rgba(120, 60, 0, .25); }
}

.btn-ghost {
    color: var(--ink);
    background: rgba(255, 255, 255, .07);
    border: 1px solid var(--line);
}
.btn-small { padding: 10px 20px; font-size: 14px; font-weight: 600; }

.btn-ico { font-size: 19px; display: inline-block; }
.btn-spin.is-spinning .btn-ico { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.spin-note { margin: 0; font-size: 12.5px; color: var(--muted); }

.countdown {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border: 1px solid var(--gold-soft);
    border-radius: 16px;
    background: rgba(240, 182, 75, .08);
    color: #ffdba4;
    font-size: 13.5px;
}
.cd-time { font-variant-numeric: tabular-nums; font-weight: 800; direction: ltr; font-size: 16px; }

/* 最近中奖 */
.winners, .steps { margin-top: 46px; }

/* 邀请返佣 & 钱包余额 */
.invite-card, .balance-card {
    margin-top: 46px;
    padding: 22px 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(240, 182, 75, .09), rgba(255, 255, 255, .025));
}
.invite-head {
    display: flex;
    align-items: center;
    gap: 13px;
}
.invite-badge {
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #fff3d2, var(--gold) 65%, #a9661a);
    color: #2b1704;
    font-weight: 800;
    font-size: 18px;
    box-shadow: 0 0 18px rgba(240, 182, 75, .35);
}
.invite-head h2, .balance-card h2 {
    margin: 0 0 4px;
    font-size: 18px;
}
.invite-head p, .balance-desc {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.7;
    color: var(--muted);
}
.invite-link {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}
.invite-link input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(0, 0, 0, .28);
    color: #ffe3b0;
    font-size: 12px;
    font-family: ui-monospace, monospace;
}
.invite-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 14px;
}
.invite-stat {
    padding: 11px 8px;
    border: 1px solid rgba(240, 182, 75, .16);
    border-radius: 12px;
    background: rgba(0, 0, 0, .22);
    text-align: center;
}
.invite-stat b {
    display: block;
    color: var(--gold);
    font-size: 14px;
    direction: ltr;
}
.invite-stat span {
    display: block;
    margin-top: 3px;
    font-size: 10.5px;
    color: var(--muted);
}
.inline-wallet, .balance-form { margin-top: 16px; }
.inline-wallet label, .balance-form label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--muted);
}
.inline-wallet-row, .balance-row {
    display: flex;
    gap: 8px;
}
.inline-wallet-row input, .balance-row input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(0, 0, 0, .28);
    color: var(--ink);
    font-size: 12px;
    font-family: ui-monospace, monospace;
}
.inline-wallet-hint {
    min-height: 16px;
    margin: 7px 0 0;
    font-size: 11px;
    line-height: 1.5;
    color: var(--muted);
    word-break: break-all;
}
.inline-wallet-chain {
    margin: 4px 0 0;
    font-size: 11.5px;
    line-height: 1.6;
    color: var(--gold);
}
.inline-wallet-chain b {
    font-family: ui-monospace, monospace;
    font-weight: 600;
    word-break: break-all;
}
.balance-chain-note {
    margin: 6px 0 0;
    font-size: 11px;
    line-height: 1.6;
    color: var(--muted);
}
.balance-result {
    margin-top: 14px;
    padding: 12px 14px;
    border: 1px solid rgba(240, 182, 75, .2);
    border-radius: 14px;
    background: rgba(0, 0, 0, .24);
}
.balance-line {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 0;
    font-size: 13px;
}
.balance-line b { color: #ffdba4; direction: ltr; }
.balance-line.is-total {
    margin-top: 5px;
    padding-top: 9px;
    border-top: 1px solid var(--line);
    font-weight: 700;
}
.balance-line.is-total b { color: var(--gold); }
.claim-balance {
    margin: 4px 0 10px;
    padding: 9px 12px;
    border: 1px dashed rgba(240, 182, 75, .35);
    border-radius: 12px;
    background: rgba(240, 182, 75, .08);
    color: #ffdba4;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--muted);
}
.section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--line), transparent);
}

.winner-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}
.winner-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, .035);
    font-size: 13.5px;
}
.w-amount { color: #ffcf85; font-weight: 800; direction: ltr; }
.w-addr { color: var(--muted); font-size: 12px; letter-spacing: .02em; }

/* 步骤 */
.steps ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps li {
    display: flex;
    gap: 14px;
    padding: 15px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
}
.step-no {
    flex: 0 0 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 800;
    font-size: 14px;
    color: #2a1602;
    background: linear-gradient(160deg, #ffe7b2, var(--gold) 60%, #c9881f);
}
.steps h3 { margin: 2px 0 4px; font-size: 14.5px; font-weight: 700; }
.steps p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; }

/* 页脚 */
.site-footer {
    max-width: 720px;
    margin: 10px auto 0;
    padding: 26px clamp(16px, 4vw, 32px) 40px;
    text-align: center;
    color: var(--muted);
    font-size: 12.5px;
}
.site-footer .tg-link {
    display: inline-block;
    margin: 6px 0;
    color: var(--gold);
    text-decoration: none;
}
.site-footer .copy { opacity: .55; margin-top: 12px; }

/* ---------------- 弹窗 ---------------- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal[hidden] { display: none; }
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 4, 8, .72);
    backdrop-filter: blur(10px);
    animation: fade .25s ease;
}
@keyframes fade { from { opacity: 0; } }

.modal-card {
    position: relative;
    z-index: 2;
    width: min(100%, 420px);
    max-height: 88vh;
    overflow-y: auto;
    padding: 30px 24px 24px;
    border-radius: 22px;
    border: 1px solid rgba(240, 182, 75, .28);
    background: linear-gradient(180deg, #17121a, #0d0b11 70%);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .06);
    text-align: center;
    animation: pop .32s cubic-bezier(.2, .9, .3, 1.2);
}
@keyframes pop { from { transform: translateY(14px) scale(.96); opacity: 0; } }

.modal-close {
    position: absolute;
    top: 12px; left: 14px;
    width: 32px; height: 32px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    color: var(--muted);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}
.result-badge { font-size: 46px; line-height: 1; margin-bottom: 6px; }
.modal-card h2 { margin: 0 0 6px; font-size: 22px; font-weight: 800; }
.result-amount {
    margin: 4px 0 0;
    font-size: 30px;
    font-weight: 800;
    direction: ltr;
    background: linear-gradient(180deg, #ffe6ae, var(--gold) 65%, #c9881f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.result-sub { margin: 6px 0 18px; font-size: 13.5px; color: var(--muted); }

.claim-form { display: grid; gap: 10px; text-align: start; margin-top: 8px; }
.claim-form label { font-size: 13px; color: var(--muted); }
.claim-form input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .05);
    color: var(--ink);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 14px;
    direction: ltr;
    letter-spacing: .01em;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}
.claim-form input:focus { border-color: rgba(240, 182, 75, .55); box-shadow: 0 0 0 3px rgba(240, 182, 75, .14); }
.field-error { margin: 0; font-size: 12.5px; color: #ff7a7a; }
.claim-note { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.5; }
.claim-form .btn { margin-top: 4px; }

.claim-done { margin-top: 6px; }
.done-icon {
    width: 52px; height: 52px;
    margin: 0 auto 10px;
    display: grid; place-items: center;
    border-radius: 50%;
    font-size: 24px;
    color: #0d2b18;
    background: linear-gradient(160deg, #9ff0bd, #35d07f);
}
#claimDoneText { font-size: 14px; color: #b8f4cf; }
.claim-ref {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 12px 0 14px;
    padding: 11px 14px;
    border: 1px dashed var(--line);
    border-radius: 12px;
    font-size: 12.5px;
    color: var(--muted);
}
.claim-ref b { color: var(--ink); font-family: ui-monospace, monospace; }

/* ---------------- Safari 拦截层 ---------------- */
.gate {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(6, 6, 10, .86);
    backdrop-filter: blur(14px);
}
.gate-card {
    width: min(100%, 400px);
    padding: 30px 24px;
    border-radius: 22px;
    border: 1px solid rgba(240, 182, 75, .25);
    background: linear-gradient(180deg, #16111a, #0b0a0f);
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
}
.gate-icon { color: var(--gold); margin-bottom: 10px; }
.gate-card h2 { margin: 0 0 10px; font-size: 20px; font-weight: 800; }
.gate-card p { margin: 0 0 18px; font-size: 13.5px; color: var(--muted); line-height: 1.65; }
.gate-card p strong { color: var(--gold); }
.gate-card .btn { display: flex; width: 100%; margin-bottom: 10px; }
.gate-hint { margin: 6px 0 0 !important; font-size: 11.5px; opacity: .6; }
.gate .btn-ghost { margin-bottom: 0; }

/* ---------------- iOS Safari 桥接页 ---------------- */
.bridge-page {
    display: flex;
    justify-content: center;
    padding: 22px 0 46px;
}
.bridge-card {
    position: relative;
    width: min(100%, 430px);
    padding: 26px 22px 22px;
    border-radius: 26px;
    border: 1px solid rgba(240, 182, 75, .28);
    background:
        radial-gradient(circle at 50% 0%, rgba(240, 182, 75, .13), transparent 45%),
        linear-gradient(180deg, #1a1114, #100a0d);
    box-shadow: 0 28px 70px rgba(0, 0, 0, .55);
    text-align: center;
}
.bridge-card .eyebrow { display: block; margin-bottom: 14px; }
.bridge-card h1 {
    margin: 14px 0 10px;
    font-size: clamp(22px, 5.6vw, 30px);
    line-height: 1.3;
    font-weight: 800;
    color: var(--ink);
}
.bridge-body {
    margin: 0 auto 12px;
    max-width: 340px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.8;
}
.bridge-body strong { color: var(--gold); }
.bridge-sub {
    margin: 0 auto 4px;
    max-width: 340px;
    font-size: 13px;
    line-height: 1.7;
}
.bridge-quota {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0 16px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(240, 182, 75, .2);
    background: rgba(240, 182, 75, .08);
    color: var(--gold-soft, #f9d995);
    font-size: 12px;
    font-weight: 700;
}
.bridge-actions { display: grid; gap: 10px; margin-top: 4px; }
.bridge-actions .btn { width: 100%; display: flex; }
.bridge-card .gate-hint {
    margin: 14px 0 0 !important;
    line-height: 1.6;
}
.bridge-wheel {
    position: relative;
    width: min(46vw, 178px);
    aspect-ratio: 1;
    margin: 2px auto 8px;
    border-radius: 50%;
    border: 5px solid #f0b64b;
    background: conic-gradient(from 342deg,
        #8e1226 0deg 36deg,
        #241016 36deg 72deg,
        #b07a2a 72deg 108deg,
        #5c1624 108deg 144deg,
        #3b3b46 144deg 180deg,
        #8e1226 180deg 216deg,
        #241016 216deg 252deg,
        #b07a2a 252deg 288deg,
        #5c1624 288deg 324deg,
        #3b3b46 324deg 360deg);
    box-shadow:
        0 0 0 6px rgba(240, 182, 75, .1),
        0 20px 45px rgba(0, 0, 0, .45),
        inset 0 0 22px rgba(0, 0, 0, .55);
}
.bridge-wheel::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, .24);
    pointer-events: none;
}
.bridge-wheel-lights {
    position: absolute;
    inset: -13px;
    border-radius: 50%;
    border: 2px dotted rgba(240, 182, 75, .5);
    animation: bridgeWheelGlow 4s linear infinite;
}
.bridge-hub {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 31%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    border-radius: 50%;
    border: 3px solid #ffe7b2;
    background: radial-gradient(circle at 35% 25%, #fff1c9, #e3a62f 62%, #9b5d13);
    color: #2a1604;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: .5px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .45);
    z-index: 2;
}
.bridge-hub small { font-size: 7px; letter-spacing: 1px; opacity: .75; }
@keyframes bridgeWheelGlow {
    to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .bridge-wheel-lights { animation: none; }
}

/* ---------------- 领取状态页 ---------------- */
.page-status { padding-top: 30px; }
.status-card {
    padding: 28px 22px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--card);
    backdrop-filter: blur(8px);
}
.status-card h1 { font-size: 22px; margin: 0 0 18px; }
.status-form { display: grid; gap: 8px; margin-bottom: 16px; }
.status-form label { font-size: 12.5px; color: var(--muted); }
.status-form input {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .05);
    color: var(--ink);
    font-family: ui-monospace, monospace;
    font-size: 13px;
}
.status-form .btn { margin-top: 6px; }
.status-error { color: #ff8a8a; font-size: 13.5px; }
.status-result { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.status-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.status-badge { padding: 6px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.st-pending { background: rgba(240, 182, 75, .14); color: #ffd28a; border: 1px solid rgba(240, 182, 75, .3); }
.st-approved { background: rgba(90, 160, 255, .14); color: #9dc4ff; border: 1px solid rgba(90, 160, 255, .3); }
.st-paid { background: rgba(53, 208, 127, .14); color: #86eeb0; border: 1px solid rgba(53, 208, 127, .3); }
.st-rejected { background: rgba(224, 17, 46, .16); color: #ff9aa6; border: 1px solid rgba(224, 17, 46, .32); }
.status-amount { direction: ltr; font-size: 18px; color: #ffd28a; }
.status-result dl { margin: 0; display: grid; grid-template-columns: 90px 1fr; gap: 8px 12px; font-size: 13px; }
.status-result dt { color: var(--muted); }
.status-result dd { margin: 0; word-break: break-all; }
.mono { font-family: ui-monospace, monospace; font-size: 12px; }
.status-result dd a { color: var(--gold); }
.status-note { margin-top: 16px; font-size: 12px; color: var(--muted); }
.back-link { display: inline-block; margin-top: 20px; color: var(--muted); text-decoration: none; font-size: 13px; }

/* 轻提示 */
.tw-toast {
    position: fixed;
    left: 50%;
    bottom: 42px;
    transform: translateX(-50%);
    z-index: 80;
    max-width: 86vw;
    padding: 12px 22px;
    border-radius: 14px;
    border: 1px solid rgba(240, 182, 75, .35);
    background: rgba(22, 18, 26, .95);
    color: #ffe0ab;
    font-size: 13.5px;
    text-align: center;
    box-shadow: 0 14px 36px rgba(0, 0, 0, .5);
    animation: toastIn .28s ease;
}
.tw-toast.is-error { border-color: rgba(224, 17, 46, .45); color: #ffb3bd; }
.tw-toast.is-out { opacity: 0; transition: opacity .5s ease; }
@keyframes toastIn {
    from { opacity: 0; transform: translate(-50%, 10px); }
}

/* 窄屏微调 */
@media (max-width: 380px) {
    .header-chip { display: none; }
    .btn-spin { font-size: 16.5px; padding: 15px 20px; }
    .label-inner { font-size: 12.5px; }
}
@media (min-width: 760px) {
    :root { --wheel: 420px; }
}

/* ==========================================================================
   多语言（阿语 RTL / 英语 LTR）
   ========================================================================== */
.header-tools { display: flex; align-items: center; gap: 10px; min-width: 0; }

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    flex: 0 0 auto;
}
.lang-switch { position: relative; flex: 0 0 auto; }

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border: 1px solid rgba(240, 182, 75, .28);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    color: var(--ink);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    max-width: 132px;
    cursor: pointer;
}
.lang-toggle::after {
    content: '';
    width: 8px;
    height: 5px;
    flex: 0 0 8px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23f0b64b' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat center;
    background-size: 8px 5px;
}
.lang-current { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.lang-menu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 6px);
    inset-inline-end: 0;
    min-width: 160px;
    max-height: 392px;
    overflow-y: auto;
    margin: 0;
    padding: 6px;
    list-style: none;
    border: 1px solid rgba(240, 182, 75, .26);
    border-radius: 14px;
    background: #15111a;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
    -webkit-overflow-scrolling: touch;
}
.lang-menu a {
    display: block;
    padding: 7px 10px;
    border-radius: 9px;
    color: #f7f4ed;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}
.lang-menu a:hover { background: rgba(240, 182, 75, .14); }
.lang-menu a.is-active { color: var(--gold); font-weight: 700; background: rgba(240, 182, 75, .1); }.lang-switch { flex: 0 0 auto; }