* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; overflow-x: hidden; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
.boot { min-height: 100vh; display: grid; place-content: center; gap: 20px; justify-items: center; }
.brand-mark { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 21px; font-weight: 900; font-size: 24px; background: linear-gradient(145deg, var(--purple-2), var(--purple)); box-shadow: 0 18px 45px rgba(124,92,255,.35); }
.boot-line { width: 100px; height: 3px; border-radius: 4px; background: linear-gradient(90deg, transparent, var(--purple), transparent); animation: breathe 1.2s infinite; }
@keyframes breathe { 50% { transform: scaleX(.45); opacity: .5; } }

.shell { min-height: 100vh; }
.topbar { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); }
.topbar-inner { height: 100%; margin: auto; display: flex; align-items: center; }
.logo { display: flex; align-items: center; gap: 11px; font-weight: 850; letter-spacing: -.5px; white-space: nowrap; }
.logo-badge { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 13px; background: linear-gradient(145deg,#a88cff,#6947ff); font-weight: 950; font-size: 15px; box-shadow: 0 8px 22px rgba(124,92,255,.25); }
.logo small { display: block; font-size: 8px; letter-spacing: 2.7px; font-weight: 700; margin-top: 2px; }
.desktop-nav { display: flex; height: 100%; align-items: center; }
.nav-link { height: 42px; display: flex; align-items: center; font-weight: 650; border: 0; cursor: pointer; transition: .2s; }

.top-actions { margin-left: auto; display: flex; align-items: center; gap: 11px; }
.balance-chip { display: flex; align-items: center; gap: 9px; font-size: 13px; }

.avatar-button { font-weight: 800; cursor: pointer; }
.creator-badge { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; vertical-align: -3px; margin-left: 6px; filter: drop-shadow(0 2px 6px rgba(29, 155, 240, 0.4)); cursor: pointer; transition: transform 0.2s ease; }
.creator-badge:hover { transform: scale(1.18); }
.creator-badge svg { width: 100%; height: 100%; fill: #1d9bf0; }
.creator-badge .creator-check { fill: none; stroke: #ffffff; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.avatar-button .creator-badge { position: absolute; right: -6px; bottom: -5px; margin: 0; }
.draw-rule-notice { margin: 12px 0; padding: 11px 14px; border: 1px solid #e0b974; border-radius: 12px; background: #fff6e6; color: #67440c; font-size: 13px; line-height: 1.6; }

.content { margin: 0 auto; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 25px; }
.eyebrow { font-size: 11px; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(30px, 4vw, 48px); letter-spacing: -2.1px; line-height: 1.1; }
h2 { margin-bottom: 6px; font-size: 24px; letter-spacing: -.8px; }
h3 { margin-bottom: 6px; font-size: 16px; }

.tiny { color: var(--muted); font-size: 11px; }
.success { color: var(--green); }
.warning { color: var(--gold); }
.danger { color: var(--red); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; font-weight: 700; }
.dot { width: 6px; height: 6px; border-radius: 50%; box-shadow: 0 0 12px var(--green); }
.btn { border: 1px solid var(--purple); border-radius: 12px; min-height: 46px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--purple); color: #fff; font-weight: 750; font-size: 13px; cursor: pointer; transition: transform .18s, filter .18s, opacity .18s; box-shadow: 0 8px 20px rgba(112,66,244,.18); }
.btn:hover { transform: translateY(-1px); background: #6032df; filter: brightness(1.05); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.secondary { background: #fff; border-color: #cfc5ee; color: var(--purple); box-shadow: none; }
.btn.green { background: linear-gradient(135deg,#2ce9b0,#0ab782); border-color: #0ab782; color: #04110e; box-shadow: 0 10px 25px rgba(28,230,165,.18); }
.btn.gold { background: linear-gradient(135deg,#ffd682,#f0a62e); border-color: #e09825; color: #1b1000; box-shadow: 0 10px 22px rgba(240,166,46,.18); }
.btn.danger-btn { background: rgba(255,100,124,.1); border-color: rgba(255,100,124,.25); color: #ff879a; box-shadow: none; }
.btn.telegram { background: #fff; color: #2176a9; border-color: #d6e7ef; box-shadow: none; }
.btn.x-login { background: #fff; color: #17162c; border-color: var(--line-strong); box-shadow: none; }
.btn.small { min-height: 38px; border-radius: 10px; padding: 0 14px; font-size: 12px; }
.btn.wide { width: 100%; }
.icon-btn { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }

.gradient-text { background: linear-gradient(120deg,#fff 20%,#bcaaff 55%,#63ffd0); -webkit-background-clip: text; color: transparent; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin: 0 0 18px; }
.section-head p { margin: 0; }
.filters { display: flex; gap: 7px; }
.filter { border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 8px 13px; border-radius: 11px; cursor: pointer; font-size: 12px; }
.filter.active { color: var(--text); border-color: rgba(124,92,255,.4); background: rgba(124,92,255,.12); }
.pool-grid { display: grid; grid-template-columns: repeat(3,1fr); }
.pool-card { padding: 18px; transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s ease, border-color 0.25s ease; position: relative; cursor: pointer; }

.pool-visual { border-radius: 17px; font-size: 74px; }
.pool-visual > img { transition: transform .35s ease; }
.pool-card:hover .pool-visual > img { transform: translateY(-4px) scale(1.03); }
.pool-visual span { z-index: 1; filter: drop-shadow(0 15px 16px rgba(0,0,0,.08)); }
.card-badge { position: absolute; z-index: 2; border-radius: 9px; padding: 5px 8px; font-size: 10px; font-weight: 700; }

.pool-title-row { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.pool-title-row h3 { font-size: 17px; }
.price { font-weight: 820; white-space: nowrap; }
.pool-subtitle { color: var(--muted); font-size: 12px; }
.progress-row { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin: 17px 0 7px; }
.progress { height: 6px; overflow: hidden; border-radius: 99px; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, #7042f4 0%, #00d2ff 100%); border-radius: inherit; box-shadow: 0 0 10px rgba(112, 66, 244, 0.4); }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 15px; font-size: 11px; color: var(--muted); }

.detail-layout { display: grid; grid-template-columns: minmax(0,1.28fr) minmax(330px,.72fr); gap: 22px; }
.detail-layout > *, .detail-layout .panel { min-width: 0; }
.panel { border: 1px solid #e7e1f3; background: #fff; border-radius: var(--radius); padding: 24px; color: var(--text); box-shadow: 0 12px 38px rgba(42, 30, 87, .055); }
.prize-stage { height: 370px; border-radius: 20px; display: grid; place-items: center; font-size: 132px; position: relative; overflow: hidden; }
.prize-stage::after { content: ""; width: 240px; height: 240px; border-radius: 50%; border: 1px solid color-mix(in srgb,var(--accent) 35%,transparent); position: absolute; box-shadow: 0 0 0 42px color-mix(in srgb,var(--accent) 5%,transparent); }
.prize-stage span { z-index: 1; filter: drop-shadow(0 25px 20px rgba(0,0,0,.32)); }
.prize-stage img { position: relative; z-index: 1; width: 82%; height: 86%; object-fit: contain; filter: drop-shadow(0 24px 22px rgba(44, 28, 98, .18)); }
.detail-title { margin-top: 23px; display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.detail-title h1 { font-size: 34px; }
.buy-box { position: sticky; top: 101px; align-self: start; }
.countdown { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; margin: 18px 0 24px; }
.time-unit { padding: 12px 4px; text-align: center; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 13px; }
.time-unit strong { display: block; font-size: 20px; }
.time-unit span { color: var(--muted); font-size: 9px; }
.quantity { display: grid; grid-template-columns: 44px 1fr 44px; gap: 8px; margin: 11px 0 15px; }
.quantity button, .quantity input { border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); min-height: 45px; border-radius: 13px; text-align: center; }
.quantity button { cursor: pointer; font-size: 18px; }
.quick-counts { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; }
.quick-counts button { padding: 7px 3px; border: 1px solid var(--line); color: var(--muted); background: transparent; border-radius: 9px; cursor: pointer; font-size: 11px; }
.cost-line { display: flex; justify-content: space-between; align-items: end; margin: 22px 0 14px; }
.cost-line strong { font-size: 26px; color: var(--green); }
.fairness { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 16px; }
.hash { font-family: ui-monospace,SFMono-Regular,Consolas,monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 10px; border-radius: 10px; background: rgba(0,0,0,.18); color: #a7a7ba; font-size: 10px; }

.wallet-overview { display: grid; grid-template-columns: minmax(0,1fr) 230px; gap: 20px; align-items: stretch; }
.wallet-balance-card { min-width: 0; padding: 25px 28px 20px; border: 1px solid #e5ddfa; border-radius: 22px; background: linear-gradient(118deg,#f0eaff 0%,#fff 58%,#f1fbf8 100%); box-shadow: 0 12px 30px rgba(80,55,150,.08); }
.wallet-balance-label { color: var(--muted); font-size: 13px; font-weight: 650; }
.wallet-balance-label span { margin-left: 4px; color: var(--purple); font-size: 11px; }
.wallet-balance-value { margin: 8px 0 17px; color: var(--text); font-size: clamp(30px,4vw,42px); font-weight: 820; letter-spacing: -1.5px; line-height: 1.1; overflow-wrap: anywhere; }
.wallet-balance-value span { color: var(--muted); font-size: 14px; font-weight: 650; letter-spacing: 0; }
.wallet-address-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; color: var(--muted); font-size: 12px; }
.wallet-address-label { flex: 0 0 auto; }
.wallet-address-value { min-width: 0; color: #5f5a76; font-family: ui-monospace,SFMono-Regular,Consolas,monospace; font-size: 11px; overflow-wrap: anywhere; }
.wallet-address-edit, .wallet-address-bind { flex: 0 0 auto; border: 0; background: transparent; color: var(--purple); cursor: pointer; }
.wallet-address-edit { display: inline-grid; place-items: center; width: 28px; height: 28px; margin: -5px 0; border-radius: 9px; font-size: 17px; }
.wallet-address-edit:hover { background: #eee8ff; }
.wallet-address-bind { padding: 0; font-size: 12px; font-weight: 750; }
.wallet-actions { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; align-items: center; }
.wallet-action { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 15px 8px; border: 1px solid #efedf5; border-radius: 18px; background: #fff; color: var(--text); font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: 0 8px 20px rgba(44,35,83,.08); transition: transform .18s, box-shadow .18s, border-color .18s; }
.wallet-action:hover { transform: translateY(-2px); border-color: #d8d1eb; box-shadow: 0 12px 24px rgba(44,35,83,.12); }
.wallet-action-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--purple); font-size: 21px; box-shadow: 0 3px 12px rgba(48,35,89,.12); }
.wallet-ledger-panel { margin-top: 20px; padding: 22px; }
.wallet-ledger-head { margin-bottom: 14px; }
.wallet-ledger-head h2 { margin: 4px 0 0; }
.wallet-activity-list { display: grid; gap: 9px; }
.wallet-activity-row { min-width: 0; display: grid; grid-template-columns: 42px minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #efedf4; border-radius: 15px; background: #f8f7fb; box-shadow: inset 0 1px 0 rgba(255,255,255,.85),0 3px 10px rgba(37,29,75,.035); }
.wallet-activity-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; font-size: 18px; }
.wallet-activity-icon.is-credit { color: #079b73; background: #e5f7f1; }
.wallet-activity-icon.is-debit { color: var(--purple); background: #eee9fb; }
.wallet-activity-main { min-width: 0; display: grid; gap: 4px; }
.wallet-activity-main strong { color: var(--text); font-size: 13px; }
.wallet-activity-main time { color: #918da1; font-size: 11px; }
.wallet-activity-amount { display: grid; justify-items: end; gap: 4px; white-space: nowrap; }
.wallet-activity-amount strong { font-size: 13px; }
.wallet-activity-amount strong span { font-size: 10px; font-weight: 600; }
.wallet-activity-amount.is-credit { color: #079b73; }
.wallet-activity-amount.is-debit { color: var(--text); }
.wallet-activity-status { color: #858095; font-size: 10px; font-weight: 600; }
.wallet-activity-status.is-pending { color: var(--gold); }
.wallet-activity-empty { padding: 32px 14px; color: var(--muted); text-align: center; }
.modal.wallet-recharge-modal { width: min(500px,100%); padding: 26px; }
.wallet-recharge-content { display: grid; gap: 13px; }
.wallet-recharge-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 4px; }
.wallet-recharge-heading h2 { margin: 4px 0 0; }
.wallet-recharge-label { color: var(--text); font-size: 12px; font-weight: 700; }
.wallet-recharge-input-wrap { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 13px; background: #fbfaff; }
.wallet-recharge-input-wrap:focus-within { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(112,66,244,.1); }
.wallet-recharge-input-wrap input { width: 100%; min-width: 0; min-height: 52px; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 23px; font-weight: 750; }
.wallet-recharge-input-wrap input::-webkit-inner-spin-button, .wallet-recharge-input-wrap input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.wallet-recharge-input-wrap > span { color: var(--muted); font-size: 12px; }
.wallet-recharge-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.wallet-recharge-option { min-height: 42px; padding: 6px; border: 1px solid var(--line); border-radius: 11px; background: #fff; color: var(--text); font-size: 12px; font-weight: 650; cursor: pointer; }
.wallet-recharge-option:hover, .wallet-recharge-option.is-selected { border-color: #bba9fa; background: #f2eeff; color: var(--purple); }
.wallet-recharge-help { display: flex; align-items: center; gap: 7px; margin: 0; padding: 11px 12px; border-radius: 11px; background: #f6f3ff; color: var(--muted); font-size: 11px; }
.wallet-recharge-help i, .wallet-recharge-help strong { color: var(--purple); }
.wallet-recharge-submit { min-height: 48px; }
.order-card { padding: 15px; border: 1px solid var(--line); border-radius: 15px; display: grid; grid-template-columns: 1fr auto; gap: 6px; align-items: center; margin-bottom: 10px; }
.order-card strong { font-size: 13px; }
.order-card small { color: var(--muted); }
.status { padding: 5px 8px; border-radius: 8px; font-size: 10px; }

.invite-hero { border: 1px solid var(--line); border-radius: 28px; background: radial-gradient(circle at 88% 10%,rgba(28,230,165,.2),transparent 30%),radial-gradient(circle at 15% 85%,rgba(124,92,255,.26),transparent 36%),#151623; padding: 40px; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; overflow: hidden; }
.invite-hero h1 { color: #fff; font-size: 43px; }
.invite-hero p { color: #c4bfd5; }
.invite-code { display: flex; gap: 8px; padding: 7px; border: 1px solid var(--line); background: rgba(0,0,0,.17); border-radius: 15px; max-width: 530px; }
.invite-code code { flex: 1; padding: 7px 10px; overflow: hidden; text-overflow: ellipsis; color: var(--green); font-size: 12px; }
.invite-art { display: grid; place-items: center; font-size: 130px; filter: drop-shadow(0 25px 30px rgba(0,0,0,.35)); }
.three-col { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 18px; }
.reward-step { text-align: center; padding: 27px 20px; }
.step-icon { width: 52px; height: 52px; display: grid; place-items: center; margin: 0 auto 13px; border-radius: 17px; background: rgba(124,92,255,.14); color: var(--purple-2); font-size: 22px; }
.leaderboard { margin-top: 18px; }
.leader-row { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.rank { font-weight: 900; color: var(--muted); }
.leader-row:nth-child(1) .rank { color: var(--gold); }
.leader-row:nth-child(2) .rank { color: #c8d0dd; }
.leader-row:nth-child(3) .rank { color: #d18a55; }

.login-layout { min-height: calc(100vh - 190px); display: grid; place-content: center; }
.login-card { width: min(440px,calc(100vw - 32px)); text-align: center; padding: 38px; }
.login-logo { width: 70px; height: 70px; margin: 0 auto 21px; display: grid; place-items: center; border-radius: 23px; background: linear-gradient(145deg,#a68aff,#6545f5); font-weight: 950; font-size: 24px; box-shadow: 0 20px 45px rgba(124,92,255,.3); }
.login-card p { line-height: 1.7; }
.login-options { display: grid; gap: 10px; margin-top: 24px; }
.telegram { background: #229ed9; box-shadow: 0 10px 25px rgba(34,158,217,.15); }
.x-login { background: #fff; color: #080910; box-shadow: none; }

.admin-shell { display: grid; grid-template-columns: 235px 1fr; gap: 20px; }
.admin-side { align-self: start; padding: 14px; }
.admin-title { padding: 11px 10px 19px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.admin-nav button { width: 100%; justify-content: flex-start; border: 0; background: transparent; padding: 11px 12px; border-radius: 11px; cursor: pointer; text-align: left; }
.admin-nav button.active, .admin-nav button:hover { color: var(--text); background: rgba(124,92,255,.12); }
.admin-nav-section { display: grid; gap: 2px; margin-top: 12px; }
.admin-nav-section:first-child { margin-top: 0; }
.admin-nav-section > span { padding: 0 12px 6px; color: #7f779c; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.metric-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; margin-bottom: 18px; }
.metric-card { padding: 17px; }
.metric-card span { font-size: 10px; }
.metric-card strong { display: block; margin-top: 8px; font-size: 22px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { text-align: left; padding: 13px 12px; border-bottom: 1px solid var(--line); font-size: 11px; }
th { font-weight: 650; }
td strong { font-size: 12px; }
.table-actions { display: flex; gap: 6px; }
.audit-item { display: grid; grid-template-columns: 122px 135px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.audit-item time { color: var(--muted); }
.audit-action { color: var(--purple-2); font-family: ui-monospace,monospace; }

.field { display: grid; gap: 7px; margin-bottom: 13px; }
.field label { font-size: 11px; }
.field input, .field textarea, .field select { width: 100%; min-height: 44px; background: rgba(255,255,255,.045); border: 1px solid var(--line); border-radius: 12px; color: var(--text); padding: 10px 12px; outline: none; }
.field input:focus, .field textarea:focus { border-color: rgba(124,92,255,.6); box-shadow: 0 0 0 3px rgba(124,92,255,.1); }
.field textarea { min-height: 90px; resize: vertical; }
.field-help { color: var(--muted); font-size: 10px; line-height: 1.55; }
.setting-field { align-content: start; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(124,92,255,.025); }
.input-prefix { display: grid; grid-template-columns: 38px 1fr; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.045); }
.input-prefix > span { text-align: center; color: var(--muted); font-weight: 800; }
.input-prefix > input { border: 0; border-left: 1px solid var(--line); border-radius: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; animation: fade .18s; }
.modal { width: min(520px,100%); max-height: calc(100vh - 40px); overflow: auto; border: 1px solid var(--line-strong); border-radius: 24px; padding: 25px; }
.modal-head { display: flex; justify-content: space-between; align-items: start; margin-bottom: 20px; }
.toast-root { position: fixed; right: 22px; top: 95px; display: grid; gap: 9px; }
.toast { width: min(340px,calc(100vw - 32px)); padding: 13px 15px; border: 1px solid var(--line-strong); backdrop-filter: blur(18px); border-radius: 14px; animation: slide-in .25s; }

@keyframes fade { from { opacity: 0; } }
@keyframes slide-in { from { transform: translateX(25px); opacity: 0; } }
.empty { text-align: center; color: var(--muted); padding: 45px 15px; }
.empty span { display: block; font-size: 36px; margin-bottom: 10px; }
.mobile-nav { display: none; }

@media (max-width: 960px) {
  .desktop-nav { display: none; }
  .content { padding-top: 22px; }
  .pool-grid { grid-template-columns: repeat(2,1fr); }
  .detail-layout { grid-template-columns: minmax(0,1fr); }
  .buy-box { position: static; }
  .invite-hero { grid-template-columns: 1fr; }
  .invite-art { display: none; }
  .admin-shell { grid-template-columns: 1fr; }

  .admin-nav { display: flex; overflow-x: auto; }
  .admin-nav button { width: auto; white-space: nowrap; }
  .metric-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 640px) {

  .balance-chip-label { display: none; }

  .content { padding-bottom: 100px; }

  .section-head { align-items: start; gap: 12px; }
  .filters { max-width: 55%; overflow-x: auto; }
  .prize-stage { font-size: 100px; }
  .detail-title { display: block; }

  .invite-code { display: grid; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .audit-item { grid-template-columns: 1fr; gap: 3px; }

  .page-head { align-items: start; }
  .page-head h1 { font-size: 33px; }
  .toast-root { top: 77px; right: 16px; }
}

/* 2026 light product redesign — public surface and admin console */
:root {
  color-scheme: light;
  --bg: #fbfaff;
  --line: #e9e5f6;
  --line-strong: #d8d1eb;
  --text: #17162c;
  --muted: #706d87;
  --purple: #7042f4;
  --purple-2: #8c62ff;
  --green: #0bbd8b;
  --gold: #f19128;
  --red: #d94867;
  --blue: #3b7bdf;
  --radius: 20px;
  --shadow: 0 20px 60px rgba(70, 48, 140, .10);
}
.ambient { display: none; }
.topbar { height: 80px; background: rgba(255,255,255,.96); border-bottom-color: var(--line); backdrop-filter: blur(18px); }
.topbar-inner { width: min(1380px, calc(100% - 56px)); gap: 48px; }
.logo { color: #111129; font-size: 22px; }
.logo-badge, .brand-mark, .login-logo { background: #7042f4; color: #fff; box-shadow: 0 10px 28px rgba(112,66,244,.24); }
.logo small { color: #817b9e; }
.desktop-nav { gap: 18px; }
.nav-link { color: #45415f; font-size: 15px; background: transparent; border-radius: 0; padding: 0 10px; position: relative; }
.nav-link:hover, .nav-link.active { color: var(--purple); background: transparent; }
.nav-link.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 3px; border-radius: 3px; background: var(--purple); }
.content { width: min(1380px, calc(100% - 56px)); padding: 30px 0 90px; }
.broadcast-bar { position: relative; top: auto; z-index: 3; background: #f7f4ff; color: #4c4770; border-bottom: 1px solid var(--line); }
.broadcast-inner { width: min(1380px, calc(100% - 56px)); margin: auto; height: 46px; display: flex; align-items: center; gap: 18px; overflow: hidden; }
.broadcast-tag { flex: 0 0 auto; color: var(--purple); font-weight: 800; padding-right: 18px; border-right: 1px solid #d8d1eb; }
.broadcast-viewport { min-width: 0; overflow: hidden; }
.broadcast-track { display: flex; width: max-content; animation: ticker 34s linear infinite; }
.broadcast-track span { display: inline-flex; align-items: center; white-space: nowrap; padding-right: 48px; font-size: 13px; }
@keyframes ticker { to { transform: translateX(-50%); } }

.text-link { border: 0; background: transparent; color: var(--purple); font-weight: 750; cursor: pointer; padding: 4px; }
.text-link.danger { color: var(--red); }
.pill { background: #f2effb; border-color: var(--line); color: #5d5875; }
.dot { background: var(--green); }
.balance-chip, .avatar-button { background: #fff; border-color: var(--line-strong); color: var(--text); }

.home-hero { position: relative; min-height: 480px; display: grid; grid-template-columns: 1.05fr .95fr .72fr; gap: 36px; align-items: center; padding: 34px 0 64px; border-bottom: 1px solid var(--line); }
.hero-copy { min-width: 0; }
.eyebrow { color: var(--purple); letter-spacing: 3px; font-weight: 800; }
.home-hero h1 { max-width: 650px; margin: 14px 0 18px; color: #111127; font-size: clamp(46px, 5vw, 76px); line-height: 1.04; letter-spacing: -4px; }
.home-hero p { max-width: 560px; color: #53506a; font-size: 17px; line-height: 1.8; }
.trust-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.trust-points div { padding-left: 14px; border-left: 3px solid #d8cdfd; }
.trust-points strong, .trust-points span { display: block; }
.trust-points strong { font-size: 15px; }
.trust-points span { color: var(--muted); font-size: 12px; margin-top: 4px; line-height: 1.5; }
.hero-product { min-height: 400px; display: grid; place-items: center; overflow: hidden; }
.hero-product picture { width: 100%; display: grid; place-items: center; }
.hero-product img { width: 100%; max-height: 430px; object-fit: contain; filter: drop-shadow(0 26px 32px rgba(54,35,111,.15)); }
.hero-entry { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: var(--shadow); }
.live-badge { display: inline-flex; padding: 7px 11px; border-radius: 999px; background: #eee8ff; color: var(--purple); font-size: 12px; font-weight: 800; }
.hero-entry h2 { margin: 18px 0 4px; font-size: 26px; }
.hero-entry p { font-size: 14px; line-height: 1.5; margin: 0 0 22px; color: var(--muted); }
.hero-carousel-controls { position: absolute; left: 50%; bottom: 15px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; z-index: 2; }
.hero-carousel-arrow { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(45, 32, 91, .08); }
.hero-carousel-dots { display: flex; align-items: center; gap: 7px; }
.hero-carousel-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 99px; background: #cbc4df; cursor: pointer; transition: width .2s ease, background .2s ease; }
.hero-carousel-dots button.active { width: 22px; background: var(--purple); }
.hero-progress-head { display: flex; justify-content: space-between; align-items: baseline; color: var(--purple); }
.hero-progress-head strong { font-size: 29px; }
.hero-progress-head small { font-size: 14px; color: var(--muted); }
.hero-price { text-align: center; margin: 22px 0 12px; color: var(--purple); font-weight: 800; }
.progress { background: #ece9f5; }
.progress i { background: var(--purple); }

.section-head h2, .page-head h1 { color: var(--text); }
.pool-grid { gap: 18px; }
.home-pool-grid { grid-template-columns: repeat(4, 1fr); }
.pool-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: none; overflow: hidden; }
.pool-card:hover { transform: translateY(-3px); border-color: #b9a8f3; box-shadow: var(--shadow); }
.pool-visual { height: 170px; background: #f6f3ff; display: grid; place-items: center; position: relative; overflow: hidden; }
.pool-visual > img { width: 88%; height: 90%; object-fit: contain; }
.pool-visual > span { display: none; }
.card-badge { left: 12px; top: 12px; right: auto; background: #fff; border: 1px solid var(--line); color: var(--purple); box-shadow: none; }
.pool-info { padding: 17px; }
.pool-title-row h3 { color: var(--text); }
.pool-subtitle, .progress-row, .card-foot { color: var(--muted); }
.price { color: var(--purple); }
.how-strip { margin-top: 24px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: #fff; display: grid; grid-template-columns: repeat(3, 1fr) 1.35fr; gap: 22px; }
.how-strip > div { display: flex; gap: 13px; align-items: flex-start; }
.how-strip b, .step-index, .guide-list b { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; color: var(--purple); background: #eee8ff; }
.how-strip span, .how-strip strong { display: block; }
.how-strip span { color: var(--muted); font-size: 12px; line-height: 1.55; }
.how-strip span strong { color: var(--text); font-size: 14px; margin-bottom: 4px; }

.muted { color: var(--muted); }
.modal-backdrop { background: rgba(25,21,48,.48); backdrop-filter: blur(8px); }
.modal { background: #fff; color: var(--text); border-color: var(--line); box-shadow: 0 30px 100px rgba(24,17,57,.22); }
.icon-btn { background: #f4f1fb; border-color: var(--line); color: #5c5774; }
.tab-nav { border-bottom-color: var(--line); }

.field label { color: #48445c; }
.field input, .field select, .field textarea { background: #fbfaff; border-color: #ddd7eb; color: var(--text); }
.field input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0 8px 0 0; accent-color: var(--purple); vertical-align: -3px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(112,66,244,.10); }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; margin: 20px 0 12px; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-security { text-align: center; color: var(--muted); font-size: 12px; margin: 16px 0 0; }

.explain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 24px; }
.explain-grid .panel { padding: 28px; }
.guide-list { display: grid; gap: 14px; margin: 20px 0 28px; }
.guide-list section { display: flex; gap: 20px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.guide-list h2, .guide-list p { margin: 0; }
.guide-list p { color: var(--muted); margin-top: 6px; }

.admin-login-page { min-height: 100vh; display: grid; grid-template-columns: 1.2fr .8fr; background: #111126; color: #fff; }
.admin-login-brand { padding: 70px 8vw; display: flex; flex-direction: column; justify-content: space-between; background: #171631; }
.admin-login-brand .logo { color: #fff; }
.admin-login-brand h1 { font-size: clamp(44px, 5vw, 70px); line-height: 1.08; max-width: 720px; }
.admin-login-brand p { color: #b7b1d0; font-size: 17px; }
.admin-login-card { align-self: center; margin: 60px; background: #fff; color: var(--text); padding: 38px; border-radius: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.admin-shell { align-items: start; }
.admin-side { background: #171631; color: #fff; border: 0; position: sticky; top: 105px; }
.admin-top-label { color: var(--muted); font-weight: 700; font-size: 14px; }
.admin-title .tiny { color: #aaa3c4; }
.admin-nav button { color: #c9c3dc; }
.admin-nav button:hover, .admin-nav button.active { background: #2b2750; color: #fff; }
.metric-card { background: #fff; }
.metric-card span { color: var(--muted); }
.table-wrap { border-color: var(--line); }
table { color: var(--text); }
th { color: var(--muted); background: #f8f6fc; }
td, th { border-bottom-color: var(--line); }
.status { background: #f0edf8; color: #665f7c; }
.status.paid { background: #e8faf4; color: #087d5d; }
.carousel-item-editor { padding: 20px; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 16px; background: #fbfaff; }
.control-scheme-panel { margin-top: 20px; }
.scheme-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.scheme-grid article { padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fbfaff; }
.scheme-grid article strong { font-size: 13px; }
.scheme-grid article p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.field-span { grid-column: 1 / -1; }

@media (max-width: 1100px) {
  .home-hero { grid-template-columns: 1fr 1fr; }
  .hero-entry { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; align-items: center; }
  .hero-entry .progress, .hero-entry .hero-price, .hero-entry .btn { grid-column: 2; }
  .hero-entry h2, .hero-entry p, .hero-entry .hero-progress-head { grid-column: 1; }
  .home-pool-grid { grid-template-columns: repeat(2, 1fr); }
  .how-strip { grid-template-columns: 1fr 1fr; }
  .admin-login-page { grid-template-columns: 1fr; }
  .admin-login-brand { min-height: 310px; padding: 42px; }
  .admin-login-card { margin: 40px auto; }
  .scheme-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .topbar-inner, .content, .broadcast-inner { width: min(100% - 28px, 1380px); }
  .topbar { height: 68px; }
  .logo small { display: none; }
  .top-actions .pill { display: none; }

  .top-actions .btn { min-height: 38px; padding: 0 12px; font-size: 12px; }
  .broadcast-inner { height: 40px; }
  .broadcast-tag { font-size: 12px; padding-right: 10px; }
  .content { padding-top: 18px; }
  .home-hero { display: flex; flex-direction: column; min-height: 0; padding: 12px 0 54px; gap: 10px; }
  .hero-copy { order: 1; }
  .hero-product { order: 2; min-height: 145px; width: 100%; }
  .hero-product img { max-height: 165px; }
  .hero-entry { order: 3; display: block; width: 100%; padding: 15px; border-radius: 18px; }
  .live-badge { padding: 5px 9px; }
  .hero-entry h2 { margin: 9px 0 8px; font-size: 21px; }
  .hero-entry p { display: none; }
  .hero-price { margin: 11px 0 8px; }
  .hero-progress-head strong { font-size: 24px; }
  .hero-carousel-controls { bottom: 8px; }
  .hero-carousel-arrow { width: 40px; height: 40px; }
  .home-hero h1 { font-size: 37px; line-height: 1.02; letter-spacing: -2.2px; margin: 8px 0 11px; }
  .home-hero p { font-size: 13px; line-height: 1.55; margin-bottom: 10px; }
  .trust-points { gap: 8px; margin-top: 12px; }
  .trust-points span { display: none; }
  .pool-grid, .home-pool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .explain-grid { grid-template-columns: 1fr; }
  .pool-card { padding: 8px; border-radius: 14px; }
  .pool-visual { height: 118px; border-radius: 11px; }
  .pool-visual > img { width: 94%; height: 94%; }
  .card-badge { top: 8px; left: 8px; max-width: calc(100% - 16px); padding: 4px 6px; font-size: 9px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pool-info { padding: 11px 2px 2px; }
  .pool-title-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px; }
  .pool-title-row h3 { min-height: 34px; margin: 0; font-size: 14px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .pool-subtitle { margin-top: 4px; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .price { font-size: 11px; }
  .progress-row { margin: 11px 0 6px; font-size: 9px; }
  .card-foot { margin-top: 10px; font-size: 9px; gap: 3px; }
  .card-foot .text-link { min-width: 44px; min-height: 36px; font-size: 10px; padding: 2px; white-space: nowrap; }
  .section-head { margin-bottom: 12px; }
  .section-head h2 { font-size: 21px; }
  .section-head p { font-size: 12px; }
  .how-strip { grid-template-columns: 1fr; padding: 18px; gap: 16px; }
  .modal { width: min(100% - 16px, 520px); max-height: calc(100dvh - 16px); overflow: auto; padding: 20px; border-radius: 22px; }
  .wallet-overview { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .wallet-balance-card { padding: 20px 18px 16px; border-radius: 18px; }
  .wallet-balance-value { margin: 7px 0 13px; font-size: clamp(29px,9vw,38px); }
  .wallet-address-row { gap: 5px 7px; font-size: 11px; }
  .wallet-address-value { font-size: 10px; }
  .wallet-actions { width: min(100%,360px); margin: 0 auto; gap: 8px; }
  .wallet-action { gap: 7px; padding: 8px; border-color: transparent; box-shadow: none; background: transparent; }
  .wallet-action:hover { transform: none; box-shadow: none; }
  .wallet-action-icon { width: 58px; height: 58px; border: 1px solid #efedf5; box-shadow: 0 5px 16px rgba(44,35,83,.1); }
  .wallet-ledger-panel { margin-top: 12px; padding: 16px; }
  .wallet-activity-row { grid-template-columns: 38px minmax(0,1fr) auto; gap: 9px; padding: 10px; border-radius: 13px; }
  .wallet-activity-icon { width: 36px; height: 36px; font-size: 17px; }
  .wallet-activity-main strong, .wallet-activity-amount strong { font-size: 12px; }
  .wallet-activity-main time { font-size: 10px; }
  .wallet-activity-amount strong span { font-size: 9px; }
  .wallet-recharge-backdrop { align-items: end; padding: 0; }
  .modal.wallet-recharge-modal { width: 100%; max-width: none; max-height: min(86dvh,740px); margin: 0; overflow: auto; padding: 22px 18px calc(18px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; }
  .quick-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .scheme-grid { grid-template-columns: 1fr; }
  .field-span { grid-column: auto; }
  .detail-layout { gap: 12px; }
  .detail-layout > div { display: contents; }
  .prize-panel { order: 1; }
  .buy-box { order: 2; }
  .draw-result-panel { order: 3; }
  .recent-panel { order: 4; }
  .page-head { margin-bottom: 16px; }
  .panel { padding: 16px; border-radius: 16px; }
  .prize-stage { height: 230px; }
  .admin-login-brand { display: none; }
  .admin-login-card { margin: auto; }
  .admin-side { position: static; overflow-x: auto; }
  .admin-nav { width: max-content; }
  .admin-nav-section { display: flex; margin: 0; }
  .admin-nav-section > span { display: none; }
}

/* 运营级新增组件与视觉效果 */

.tab-nav { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 20px; padding-bottom: 2px; }
.tab-btn { border: 0; background: transparent; padding: 10px 16px; border-radius: 10px 10px 0 0; color: var(--muted); font-weight: 700; font-size: 13px; cursor: pointer; transition: .2s; border-bottom: 2px solid transparent; }
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--purple-2); border-bottom-color: var(--purple); background: rgba(124,92,255,.08); }

.verifier-card { background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-top: 14px; font-family: ui-monospace, monospace; font-size: 12px; }
.verifier-card strong { color: var(--green); font-size: 15px; }

.status-badge { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 6px; font-size: 10px; font-weight: 700; }
.status-badge.cashed { background: rgba(28,230,165,.15); color: var(--green); }
.status-badge.shipped { background: rgba(75,173,255,.15); color: var(--blue); }
.status-badge.pending { background: rgba(255,189,82,.15); color: var(--gold); }
.status-badge.delivered { background: rgba(255,255,255,.1); color: #ccc; }

/* 可读性、认证表单与移动端优先交互 */
.toast-root { z-index: 1000; }
.toast { background: #17162c; color: #fff; border-color: #373250; font-size: 14px; line-height: 1.5; box-shadow: 0 18px 50px rgba(20,15,45,.28); }
.toast.success-toast { background: #102e27; color: #eafff8; border-color: #1d8c70; }
.toast.error-toast { background: #3a1720; color: #fff2f4; border-color: #b9475e; }
.input-with-icon { position: relative; display: flex; align-items: center; }
.input-with-icon > span { position: absolute; left: 14px; z-index: 1; color: var(--purple); pointer-events: none; }
.input-with-icon > input { width: 100%; padding-left: 42px; padding-right: 44px; }
.password-toggle { position: absolute; right: 7px; width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); cursor: pointer; }
.verification-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px; align-items: center; }
.verification-control .btn { min-height: 46px; }
.confirmation { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 13px; line-height: 1.5; margin: 12px 0; }
.confirmation input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--purple); }
.category-filters { margin: 0 0 18px; overflow-x: auto; padding-bottom: 4px; }
.category-filters .filter { white-space: nowrap; min-height: 40px; }
.admin-login-card { width: min(420px, calc(100% - 36px)); justify-self: center; margin-inline: auto; }

@media (max-width: 760px) {
  .verification-control { grid-template-columns: 1fr; }
  .verification-control .btn { width: 100%; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .admin-shell .table-wrap { overflow: visible; border: 0; }
  .admin-shell .table-wrap table, .admin-shell .table-wrap tbody, .admin-shell .table-wrap tr, .admin-shell .table-wrap td { display: block; width: 100%; }
  .admin-shell .table-wrap thead { display: none; }
  .admin-shell .table-wrap tr { margin-bottom: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
  .admin-shell .table-wrap td { padding: 7px 4px; border: 0; }
  .admin-shell .table-actions { display: flex; flex-wrap: wrap; gap: 7px; }
  .admin-login-card { width: calc(100% - 24px); padding: 24px 18px; border-radius: 18px; }
  .invite-hero { padding: 24px 18px; }
  .invite-hero h1 { font-size: 31px; }
  .three-col { grid-template-columns: 1fr; }
  .order-card { word-break: break-word; }
}

/* Shared surface treatment across public pages and the console. */
.shell { background: radial-gradient(circle at 88% 0%, #f0eaff 0, transparent 440px), radial-gradient(circle at 3% 45%, #edf9ff 0, transparent 360px), var(--bg); }
.hero-product img { transition: transform .35s ease; }
.prize-stage { background: radial-gradient(circle at 50% 43%, color-mix(in srgb, var(--accent) 18%, white), #f7f4ff 72%); }
.buy-box { border-top: 3px solid var(--purple); }
.metric-card { border-top: 3px solid #bba4ff; }
.carousel-item-editor { background: linear-gradient(150deg, white, #f8f6ff); }
.order-card { background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.order-card:hover { border-color: #cbbcf4; box-shadow: 0 8px 24px rgba(42, 30, 87, .06); }
.ticket-share { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 7px 0 16px; }
.quick-counts button:disabled { opacity: .45; cursor: not-allowed; }
:is(a, button, input, select, textarea):focus-visible { outline: 3px solid rgba(112, 66, 244, .45); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ========================================================
   2026 全站页面顶级视觉美化规范 (All-Page Luxury UI Polish)
   ======================================================== */

/* 1. 彻底优化设置表单 (告别单调丑陋的方块堆叠) */
.form-grid {
  display: grid;
  gap: 16px;
  margin-top: 12px;
}
.setting-field {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid #e7e2f5;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(45, 32, 91, 0.03);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.setting-field:hover {
  border-color: #baa8f3;
  box-shadow: 0 8px 24px rgba(112, 66, 244, 0.07);
}
.setting-field label {
  font-size: 13px;
  font-weight: 750;
  color: #17162c;
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 1.4;
}
.setting-field input,
.setting-field select,
.setting-field textarea {
  width: 100%;
  min-height: 44px;
  background: #fbfaff;
  border: 1.5px solid #ded8ec;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 550;
  color: #17162c;
  transition: all 0.2s ease;
}
.setting-field input:focus,
.setting-field select:focus,
.setting-field textarea:focus {
  border-color: var(--purple);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(112, 66, 244, 0.12);
  outline: none;
}
.setting-field .field-help {
  color: #7d7899;
  font-size: 11.5px;
  line-height: 1.5;
  margin-top: 2px;
}

/* 3. 参与者记录列表美化 (多网名、多彩拟真头像) */
.recent-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.recent-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid #ede8f7;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(45, 32, 91, 0.025);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.recent-item:hover {
  transform: translateX(3px);
  border-color: #cfc2f4;
}
.recent-avatar {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-weight: 850;
  font-size: 15px;
  background: linear-gradient(135deg, #8c62ff, #6032df);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(112, 66, 244, 0.2);
  flex-shrink: 0;
}
.recent-meta strong {
  font-size: 13px;
  color: #17162c;
  display: flex;
  align-items: center;
  gap: 3px;
}
.recent-meta span {
  font-size: 11px;
  color: #837e9c;
  display: block;
  margin-top: 2px;
}
.numbers {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 750;
  color: var(--purple);
  background: #f4f0ff;
  padding: 6px 10px;
  border-radius: 9px;
  max-width: 170px;
  text-align: right;
  word-break: break-all;
}

/* 4. 开奖揭晓结果与公平验证面板 */
.draw-result-panel {
  border: 1.5px solid #1ce6a5;
  background: linear-gradient(145deg, #f0fdf9, #ffffff);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 14px 40px rgba(28, 230, 165, 0.12);
}
.draw-result-panel h2 {
  font-size: 22px;
  color: #086b51;
  margin-bottom: 12px;
}
.draw-result-panel .hash {
  background: #f7f5fd;
  border: 1px solid #e5def5;
  color: #554f73;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 11px;
}

/* 5. 控盘中心方案卡片美化 */
.scheme-grid {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}
.scheme-grid article {
  padding: 20px;
  border: 1px solid #e7e2f5;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(45, 32, 91, 0.03);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.scheme-grid article:hover {
  transform: translateY(-2px);
  border-color: #a48df0;
  box-shadow: 0 8px 24px rgba(112, 66, 244, 0.08);
}
.scheme-grid article strong {
  font-size: 14px;
  color: #17162c;
  display: flex;
  align-items: center;
  gap: 6px;
}
.scheme-grid article p {
  color: #726e8a;
  font-size: 12px;
  line-height: 1.65;
  margin-top: 8px;
}

/* 6. 商品夺宝卡片流光进度条提升 */
.pool-card .progress {
  height: 8px;
  border-radius: 99px;
  background: #ebe6f7;
  overflow: hidden;
}
.pool-card .progress i {
  background: linear-gradient(90deg, #7042f4 0%, #00d2ff 100%);
  border-radius: inherit;
  box-shadow: 0 0 10px rgba(112, 66, 244, 0.4);
}

/* 运营升级：奖池状态、个人中心与批量控盘 */
.pool-status-overlay { position:absolute; inset:0; z-index:3; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; color:#fff; background:rgba(8,8,14,.58); backdrop-filter:blur(1.5px); }
.pool-status-overlay strong { font-size:24px; letter-spacing:.12em; }
.pool-status-overlay span { font-size:12px; color:rgba(255,255,255,.8); }
.pool-card-closed .pool-visual > img { filter:grayscale(.35); }
.admin-security-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; align-items:start; }
.strategy-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.strategy-option { display:flex; gap:9px; align-items:flex-start; padding:10px 12px; border:1px solid var(--line); border-radius:12px; background:#fff; }
.strategy-option input { width:auto; margin-top:3px; }
.strategy-option small { display:block; margin-top:2px; color:var(--muted); }
.pool-batch-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin-bottom:14px; }
.pool-select-cell input { width:auto; }
@media (max-width:900px) { .admin-security-grid { grid-template-columns:1fr; } }
@media (max-width:640px) { .strategy-options { grid-template-columns:1fr; } }

/* Mobile-first pool discovery and compact account histories. */
.invite-steps-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
.risk-event-panel { margin-top:18px; }
.risk-event-row { border-color:#f4b1ac; background:#fff3f1; color:#9f3026; }
.risk-event-row strong, .risk-event-row .audit-action { color:#a72f26; }
.admin-user-ledger { max-height:min(60vh,540px); overflow:auto; }
@media (max-width:900px) { .invite-steps-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:640px) { .invite-steps-grid { gap:10px; } .invite-steps-grid .reward-step { padding:18px 10px; } }

/* 2026 mobile-first profile and independent desktop newcomer carousel. */
.newbie-pool-section {
  margin: 28px 0 36px;
  padding: 24px 26px 20px;
  border: 1px solid #ded6f4;
  border-radius: 22px;
  background: linear-gradient(135deg, #fbf9ff, #fff 68%);
  box-shadow: none;
}
.newbie-pool-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; margin-bottom: 18px; }
.newbie-pool-title { min-width: 280px; }
.newbie-pool-title > div { display: flex; align-items: center; gap: 10px; }
.newbie-pool-title h2 { margin: 0; font-size: 27px; letter-spacing: -1px; }
.newbie-pool-title p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.newbie-exclusive-label { display: inline-flex; align-items: center; min-height: 28px; padding: 0 11px; border-radius: 9px; background: #eee8ff; color: var(--purple); font-size: 12px; font-weight: 800; }
.newbie-pool-rules { display: flex; align-items: center; justify-content: flex-end; gap: 0; }
.newbie-pool-rules > span { position: relative; min-width: 168px; padding: 2px 20px 2px 52px; border-left: 1px solid var(--line); }
.newbie-pool-rules > span:first-child { border-left: 0; }
.newbie-pool-rules b { position: absolute; left: 16px; top: 7px; color: #aa96ec; font-size: 12px; }
.newbie-pool-rules strong, .newbie-pool-rules small { display: block; }
.newbie-pool-rules strong { font-size: 13px; }
.newbie-pool-rules small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.newbie-carousel { position: relative; padding: 0 44px 20px; }
.newbie-carousel-stage { display: grid; grid-template-columns: minmax(190px, 270px) minmax(420px, 520px) minmax(190px, 270px); align-items: stretch; justify-content: center; gap: 38px; min-height: 140px; }
.newbie-carousel-stage.is-single { grid-template-columns: minmax(0, 520px); }
.newbie-slide-preview { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.82); color: var(--text); display: grid; grid-template-columns: 84px minmax(0,1fr); align-items: center; gap: 13px; text-align: left; cursor: pointer; transition: border-color .2s ease, transform .2s ease; }
.newbie-slide-preview:hover { border-color: #b9a8f3; transform: translateY(-2px); }
.newbie-slide-preview img { width: 84px; height: 100px; object-fit: contain; }
.newbie-slide-preview span { font-size: 13px; font-weight: 800; line-height: 1.4; }
.newbie-slide-card { min-width: 0; padding: 14px 16px; border: 1px solid #cfc2f5; border-radius: 16px; background: #fff; display: grid; grid-template-columns: 110px minmax(0,1fr) auto; align-items: center; gap: 15px; box-shadow: 0 10px 28px rgba(77,51,153,.07); }
.newbie-slide-media { height: 110px; display: grid; place-items: center; border-radius: 13px; background: #f7f4ff; overflow: hidden; }
.newbie-slide-media img { width: 100%; height: 100%; object-fit: contain; }
.newbie-slide-info { min-width: 0; }
.newbie-round-label { display: inline-flex; margin-bottom: 7px; padding: 4px 8px; border-radius: 7px; background: #f0ebff; color: var(--purple); font-size: 10px; font-weight: 800; }
.newbie-slide-title { max-width: 100%; min-height: 40px; padding: 0; border: 0; background: transparent; color: var(--text); display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: 15px; font-weight: 850; line-height: 1.35; text-align: left; cursor: pointer; }
.newbie-slide-title:hover { color: var(--purple); }
.newbie-slide-progress { display: flex; justify-content: space-between; gap: 10px; margin: 12px 0 6px; color: var(--muted); font-size: 11px; }
.newbie-slide-progress strong, .newbie-slide-progress b { color: var(--purple); }
.newbie-slide-cta { min-width: 105px; min-height: 44px; padding: 0 16px; white-space: nowrap; }
.newbie-carousel-arrow { position: absolute; top: 50%; z-index: 2; width: 38px; height: 38px; margin-top: -29px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: var(--text); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 6px 18px rgba(45,32,91,.08); }
.newbie-carousel-arrow:hover { border-color: #baaaf0; color: var(--purple); }
.newbie-carousel-arrow.previous { left: 0; }
.newbie-carousel-arrow.next { right: 0; }
.newbie-carousel-dots { position: absolute; left: 50%; bottom: 1px; transform: translateX(-50%); display: flex; align-items: center; gap: 7px; }
.newbie-carousel-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 99px; background: #cec7df; cursor: pointer; transition: width .2s ease, background .2s ease; }
.newbie-carousel-dots button.active { width: 20px; background: var(--purple); }

@media (max-width: 1180px) {
  .newbie-pool-header { display: grid; }
  .newbie-pool-rules { justify-content: flex-start; }
  .newbie-pool-rules > span:first-child { padding-left: 36px; }
  .newbie-pool-rules > span:first-child b { left: 0; }
  .newbie-carousel-stage:not(.is-single) { grid-template-columns: 190px minmax(390px, 500px) 190px; gap: 18px; }
  .newbie-slide-preview { grid-template-columns: 64px minmax(0,1fr); padding: 10px; }
  .newbie-slide-preview img { width: 64px; height: 80px; }
}

@media (max-width: 900px) {
  .newbie-carousel-stage { grid-template-columns: minmax(0, 520px); }
  .newbie-slide-preview { display: none; }
}

@media (max-width: 760px) {
  .newbie-pool-section { margin: 18px 0 24px; padding: 16px 14px 18px; }
  .newbie-pool-header { gap: 14px; margin-bottom: 14px; }
  .newbie-pool-title { min-width: 0; }
  .newbie-pool-title h2 { font-size: 22px; }
  .newbie-pool-title p { font-size: 12px; }
  .newbie-pool-rules { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
  .newbie-pool-rules > span { min-width: 0; padding: 0 8px; text-align: center; }
  .newbie-pool-rules > span:first-child { padding-left: 8px; }
  .newbie-pool-rules b, .newbie-pool-rules small { display: none; }
  .newbie-pool-rules strong { font-size: 10px; }
  .newbie-carousel { padding: 0 38px 18px; }
  .newbie-slide-card { grid-template-columns: 82px minmax(0,1fr); gap: 10px; padding: 10px; }
  .newbie-slide-media { height: 88px; }
  .newbie-slide-cta { grid-column: 1 / -1; width: 100%; min-height: 40px; }
  .newbie-slide-progress { margin-top: 8px; }
  .newbie-carousel-arrow { width: 32px; height: 32px; margin-top: -25px; font-size: 22px; }

}

@media (max-width: 640px) {
  .newbie-pool-section { margin-bottom: 20px; padding: 12px; }
}

/* Profile and mobile navigation: single source of truth. */
.profile-grid { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 20px; width: 100%; box-sizing: border-box; }
.profile-sidebar, .profile-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; width: 100%; box-sizing: border-box; }
.profile-sidebar { align-self: start; }
.profile-card { width: 100%; max-width: 100%; box-sizing: border-box; text-align: left; border-radius: 17px; background: linear-gradient(165deg, #f7f3ff, #fff 58%); }
.profile-identity-row { display: grid; grid-template-columns: 72px minmax(0, 1fr); align-items: center; column-gap: 14px; width: 100%; box-sizing: border-box; }
.profile-identity-row .profile-avatar { grid-row: 1 / span 2; }
.profile-identity-copy { grid-column: 2; grid-row: 1; min-width: 0; }
.profile-avatar { width: 72px; height: 72px; margin: 0; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(145deg, #876cff, #523bc8); color: #fff; font-size: 28px; font-weight: 900; box-shadow: 0 10px 26px rgba(124, 92, 255, .18); flex-shrink: 0; }
.profile-name-line { display: flex; align-items: center; gap: 4px; min-width: 0; }
.profile-name-line h2 { min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 22px; }
.profile-edit-name { width: 30px; height: 30px; flex: 0 0 auto; padding: 0; border: 0; border-radius: 9px; background: transparent; color: #77708f; font-size: 17px; cursor: pointer; }
.profile-edit-name:hover { background: #f1edff; color: var(--purple); }
.profile-username { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.profile-creator-auth { min-height: 24px; margin-top: 4px; padding: 0; border: 0; background: transparent; color: #6f688b; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; line-height: 1.2; cursor: pointer; }
.profile-creator-auth:hover { color: var(--purple); }
.profile-creator-auth.verified { color: var(--purple); cursor: default; }
.profile-creator-auth.pending { color: #8a6a24; cursor: default; }
.profile-creator-auth .creator-badge { width: 14px; height: 14px; margin-left: 1px; }
.profile-security-action { grid-column: 2; grid-row: 2; justify-self: start; min-height: 28px; padding: 0; border: 0; background: transparent; color: #706987; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; white-space: nowrap; cursor: pointer; }
.profile-security-action:hover { color: var(--purple); }
.profile-security-action i:first-child { font-size: 16px; }
.profile-security-action i:last-child { font-size: 18px; }
.profile-wallet-card { position: relative; width: 100%; box-sizing: border-box; margin-top: 22px; padding: 17px 19px 15px; border: 1px solid #e5ddf7; border-radius: 16px; background: radial-gradient(circle at 92% -18%, rgba(174, 145, 255, .26), transparent 46%), linear-gradient(120deg, #f8f5ff 0%, #f2edfd 55%, #f6f1ff 100%); box-shadow: 0 10px 26px rgba(73, 48, 141, .085), inset 0 1px 0 rgba(255,255,255,.88); overflow: hidden; }
.profile-wallet-card::before { content: ""; position: absolute; top: -64px; right: -27px; width: 168px; height: 168px; border: 1px solid rgba(169, 146, 231, .2); border-radius: 50%; pointer-events: none; }
.profile-wallet-hit { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.profile-wallet-hit:focus-visible { outline: 2px solid var(--purple); outline-offset: -3px; border-radius: inherit; }
.profile-wallet-top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; pointer-events: none; }
.profile-wallet-copy { min-width: 0; }
.profile-wallet-copy > span { display: inline-flex; align-items: center; gap: 6px; color: #756d90; font-size: 12px; font-weight: 700; }
.profile-wallet-label i { color: #7559cb; font-size: 15px; }
.profile-wallet-copy strong { display: flex; align-items: baseline; gap: 4px; margin-top: 5px; color: #211a3e; font-size: 28px; line-height: 1.05; letter-spacing: -.8px; overflow-wrap: anywhere; }
.profile-wallet-copy small { color: #756d90; font-size: 12px; font-weight: 600; letter-spacing: 0; }
.profile-wallet-copy strong i { align-self: center; color: #9181c1; font-size: 18px; font-weight: 400; }
.profile-recharge-action { position: relative; z-index: 3; flex: 0 0 auto; min-height: 36px; padding: 0 14px; border: 1px solid #6846d3; border-radius: 10px; background: linear-gradient(125deg, #7856e4, #6542d8); box-shadow: 0 5px 13px rgba(88, 58, 184, .19), inset 0 1px 0 rgba(255,255,255,.26); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 3px; font-size: 12px; font-weight: 800; cursor: pointer; pointer-events: auto; transition: transform .18s, box-shadow .18s; }
.profile-recharge-action i { font-size: 16px; }
.profile-recharge-action:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(88, 58, 184, .23); }
.profile-stats { position: relative; z-index: 2; width: 100%; box-sizing: border-box; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 17px; padding-top: 13px; border-top: 1px solid #e3dcf1; pointer-events: none; }
.profile-stats div { position: relative; text-align: center; }
.profile-stats div + div::before { content: ""; position: absolute; left: 0; top: 5px; width: 1px; height: 32px; background: #e2daf2; }
.profile-stats strong, .profile-stats span { display: block; }
.profile-stats strong { color: #33225f; font-size: 17px; }
.profile-stats strong small { color: #756d90; font-size: 11px; font-weight: 600; }
.profile-stats span { margin-bottom: 4px; color: #756d90; font-size: 11px; }
.profile-history-head { align-items: center; margin-bottom: 0; }
.profile-history-head h2 { margin: 0; font-size: 24px; }
.profile-history-all { color: var(--purple); display: inline-flex; align-items: center; font-size: 12px; font-weight: 750; }
.profile-history-all i { font-size: 17px; }
.profile-participation-panel { width: 100%; box-sizing: border-box; }
.profile-participation-panel .ticket-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid #ece8f3; }
.ticket-prize-image { width: 96px; height: 108px; border-radius: 15px; background: #f7f4ff; display: grid; place-items: center; overflow: hidden; flex-shrink: 0; }
.ticket-prize-image img { width: 94%; height: 94%; object-fit: contain; }
.ticket-prize-image > span { color: var(--purple); font-weight: 900; }
.ticket-record-body { min-width: 0; }
.ticket-status-row { min-height: 22px; }
.ticket-status { display: inline-flex; padding: 4px 8px; border-radius: 7px; background: #f0edf6; color: #716c84; font-size: 10px; font-weight: 800; }
.ticket-status.active { background: #eee8ff; color: var(--purple); }
.ticket-status.drawn { background: #f0edf6; color: #625d75; }
.ticket-record-head { margin-top: 4px; }
.ticket-title-button { width: 100%; min-width: 0; padding: 0; border: 0; background: transparent; color: var(--text); display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 15px; font-weight: 850; line-height: 1.35; text-align: left; cursor: pointer; }
.ticket-title-button > span { min-width: 0; display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.ticket-title-button > i { flex: 0 0 auto; color: #746c91; font-size: 22px; }
.ticket-title-button:hover { color: var(--purple); }
.ticket-title-static { font-size: 15px; }
.profile-countdown { display: flex; align-items: center; gap: 7px; margin-top: 7px; color: var(--purple); font-size: 13px; font-weight: 800; }
.profile-countdown > i { font-size: 19px; }
.profile-countdown-units { display: flex; align-items: center; gap: 2px; }
.profile-countdown .time-unit { min-width: auto; padding: 0; border: 0; border-radius: 0; background: transparent; display: inline-flex; align-items: baseline; text-align: left; }
.profile-countdown .time-unit strong { display: inline; font-size: 13px; }
.profile-countdown .time-unit span { display: none; }
.profile-countdown .time-unit:first-child span { display: inline; margin-left: 1px; color: currentColor; font-size: 12px; }
.profile-countdown .time-unit:nth-child(2)::after, .profile-countdown .time-unit:nth-child(3)::after { content: ":"; margin-left: 2px; }
.ticket-record-meta, .ticket-numbers { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 7px; margin-top: 6px; color: #6e6784; font-size: 11px; line-height: 1.45; }
.ticket-record-meta > span, .ticket-numbers > span { color: #8a849e; }
.ticket-numbers { max-width: none; padding: 0; border-radius: 0; background: transparent; font-family: inherit; font-weight: 500; text-align: left; word-break: break-word; }
.profile-prize-action { margin-top: 7px; padding: 0; border: 0; background: transparent; color: #6745dc; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 750; cursor: pointer; }
.profile-prize-action i { font-size: 16px; }
.profile-prize-action:hover { color: #4f2bbb; }
.profile-footer-actions { display: flex; justify-content: center; padding: 20px 0 0; }
.profile-logout { min-height: 40px; padding: 0 16px; border: 0; background: transparent; color: #77708f; display: inline-flex; align-items: center; gap: 7px; font-size: 12px; cursor: pointer; }
.profile-logout:hover { color: var(--purple); }

@media (max-width: 960px) {
  .profile-grid { grid-template-columns: 1fr; width: 100%; }
  .profile-sidebar, .profile-card, .profile-main { width: 100%; align-self: stretch; }
}

@media (max-width: 760px) {
  .mobile-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; min-height: calc(66px + env(safe-area-inset-bottom)); padding: 5px max(6px, env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left)); border-top: 1px solid #ece8f4; background: rgba(255, 255, 255, .97); backdrop-filter: blur(18px); box-shadow: 0 -7px 24px rgba(54, 35, 111, .07); display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .mobile-nav button { min-width: 0; min-height: 54px; padding: 4px 2px; border: 0; border-radius: 0; background: transparent; color: #6f6985; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 10px; font-weight: 650; cursor: pointer; }
  .mobile-nav button i { font-size: 21px; line-height: 1; }
  .mobile-nav button span { white-space: nowrap; }
  .mobile-nav button.active { background: transparent; color: var(--purple); font-weight: 800; }

  .profile-shell { min-height: 100vh; overflow-x: hidden; }
  .profile-shell .topbar, .profile-shell .broadcast-bar { display: none; }
  .profile-shell .content { width: 100%; max-width: 100%; margin: 0; padding: 0 16px calc(88px + env(safe-area-inset-bottom)); box-sizing: border-box; overflow-x: hidden; }
  .profile-page-head { display: none; }
  .profile-shell .profile-grid { display: flex; flex-direction: column; gap: 0; width: 100%; box-sizing: border-box; }
  .profile-shell .profile-sidebar, .profile-shell .profile-main { display: contents; width: 100%; }
  .profile-shell .profile-grid .panel, .profile-shell .profile-extra-panel { margin: 0 !important; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; backdrop-filter: none; width: 100%; box-sizing: border-box; }
  .profile-shell .profile-grid .profile-card { order: 1; padding-top: 25px; width: 100% !important; max-width: 100% !important; align-self: stretch !important; box-sizing: border-box !important; }
  .profile-shell .profile-grid .profile-participation-panel { order: 2; margin-top: 25px !important; width: 100% !important; box-sizing: border-box !important; }
  .profile-identity-row { grid-template-columns: 64px minmax(0, 1fr) auto; gap: 10px; width: 100%; box-sizing: border-box; }
  .profile-identity-row .profile-avatar, .profile-identity-copy, .profile-security-action { grid-column: auto; grid-row: auto; }
  .profile-avatar { width: 64px; height: 64px; font-size: 26px; box-shadow: 0 8px 20px rgba(91, 58, 222, .17); }
  .profile-name-line h2 { font-size: 19px; letter-spacing: -.5px; }
  .profile-edit-name { width: 25px; height: 25px; font-size: 15px; }
  .profile-username { font-size: 12px; }
  .profile-creator-auth { min-height: 20px; margin-top: 2px; font-size: 10px; }
  .profile-security-action { min-height: 34px; padding: 0; gap: 3px; font-size: 10px; }
  .profile-security-action i:first-child { font-size: 14px; }
  .profile-security-action i:last-child { font-size: 16px; }
  .profile-wallet-card { margin-top: 25px; padding: 16px 18px 13px; border-radius: 15px; }
  .profile-wallet-copy strong { font-size: 29px; }
  .profile-stats { margin-top: 15px; padding-top: 12px; }
  .profile-history-head { min-height: 44px; padding: 0 0 8px; width: 100%; }
  .profile-history-head h2 { font-size: 19px; letter-spacing: -.5px; }
  .profile-history-all { font-size: 10px; }
  .profile-participation-panel .ticket-row { grid-template-columns: 86px minmax(0, 1fr); gap: 13px; min-height: 118px; padding: 13px 0; width: 100%; box-sizing: border-box; }
  .ticket-prize-image { width: 86px; height: 100px; border-radius: 13px; }
  .ticket-status-row { min-height: 19px; }
  .ticket-status { padding: 3px 7px; font-size: 9px; }
  .ticket-record-head { margin-top: 2px; }
  .ticket-title-button { font-size: 13px; line-height: 1.3; }
  .ticket-title-button > i { font-size: 20px; }
  .profile-countdown { gap: 5px; margin-top: 5px; }
  .profile-countdown > i { font-size: 17px; }
  .profile-countdown .time-unit strong { font-size: 11px; }
  .profile-countdown .time-unit:first-child span { font-size: 10px; }
  .ticket-record-meta, .ticket-numbers { grid-template-columns: 56px minmax(0, 1fr); gap: 5px; margin-top: 4px; font-size: 10px; }
  .profile-extra-panel { margin-top: 18px !important; padding-top: 18px !important; border-top: 1px solid #e9e5f1 !important; width: 100%; box-sizing: border-box; }
  .profile-footer-actions { margin-top: 16px; padding: 18px 0 8px; border-top: 1px solid #e9e5f1; width: 100%; }
}

@media (max-width: 380px) {
  .profile-shell .content { padding-inline: 12px; width: 100%; box-sizing: border-box; }
  .profile-identity-row { grid-template-columns: 58px minmax(0, 1fr) auto; gap: 8px; width: 100%; box-sizing: border-box; }
  .profile-avatar { width: 58px; height: 58px; }
  .profile-security-action span { display: none; }
  .profile-participation-panel .ticket-row { grid-template-columns: 82px minmax(0, 1fr); gap: 10px; width: 100%; box-sizing: border-box; }
  .ticket-prize-image { width: 82px; height: 98px; }
}

/* 2026-10 records, refund and operations-detail upgrades */
.wallet-date-filter { min-width: 0; display: flex; align-items: end; flex-wrap: wrap; gap: 8px 10px; margin-bottom: 16px; }
.wallet-date-filter label { min-width: 0; display: grid; gap: 4px; color: var(--muted); font-size: 10px; }
.wallet-date-filter input { width: 160px; max-width: 100%; min-width: 0; min-height: 36px; padding: 6px 9px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--text); }
.wallet-date-filter > span { padding-bottom: 9px; color: var(--muted); font-size: 11px; }
.wallet-filter-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.wallet-ledger-limit { margin: -4px 0 12px; color: var(--muted); font-size: 11px; }
.wallet-pending-orders { display: grid; gap: 9px; margin: 0 0 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.wallet-pending-orders h3 { margin: 0 0 3px; }
.pagination { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 16px; color: var(--muted); font-size: 12px; }
.pagination > div { display: flex; gap: 8px; }
.profile-history-all { padding: 0; border: 0; background: transparent; cursor: pointer; }
.profile-mobile-title { display: none; }
.ticket-status.won { color: #087d5d; background: #e5f7f1; }
.ticket-status.lost { color: #80798f; background: #f0eef4; }
.records-panel .ticket-row { display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid #ece8f3; }
.records-panel .ticket-row:last-child { border-bottom: 0; }
.winning-notice { text-align: center; }
.winning-notice-close { position: absolute; }
.winning-notice-icon { display: grid; place-items: center; border-radius: 50%; }

.winning-notice p { max-width: 380px; }
.winning-notice-status { display: flex; align-items: center; justify-content: center; gap: 7px; margin: 0 0 16px; padding: 12px; color: #087d5d; font-weight: 750; }
.pool-details-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.pool-details-grid > div { min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: #faf9fd; display: grid; gap: 5px; }
.pool-details-grid span { color: var(--muted); font-size: 11px; }
.pool-details-grid strong { font-size: 13px; line-height: 1.5; }
.pool-details-grid code { overflow-wrap: anywhere; color: var(--purple); font-size: 11px; }
.pool-details-grid .field-span { grid-column: 1 / -1; }

.ticket-image-button { border: 0; padding: 0; cursor: pointer; }
.ticket-image-button:hover { outline: 2px solid var(--purple); }
.records-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 4px; }
.records-filters .tab-btn { border-radius: 10px; }
.claim-prize-summary { margin-bottom: 16px; background: #fff9ee; }
.claim-prize-summary strong { color: #a46109; }
.claim-prize-summary .tiny { margin-top: 4px; }
.claim-code { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #f7f4ff; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; user-select: all; }
.virtual-claim-options { display: grid; gap: 10px; }
.virtual-category-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 8px; }
.virtual-category-pill { border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--text); padding: 8px 12px; font-size: 12px; cursor: pointer; }
.virtual-category-pill.active { border-color: var(--purple); color: var(--purple); background: #f6f3ff; }
.virtual-code-list { display: grid; gap: 10px; }
.virtual-code-card { display: grid; grid-template-columns: minmax(140px,1fr) minmax(180px,1.5fr) auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; }
.virtual-code-info { min-width: 0; display: grid; gap: 3px; }
.virtual-code-info small { color: var(--muted); overflow-wrap: anywhere; }
.virtual-code-secret { min-width: 0; display: flex; gap: 8px; }
.virtual-code-secret input { min-width: 0; width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 8px; }

@media (max-width: 680px) {
  .wallet-date-filter { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); }
  .wallet-date-filter input { width: 100%; }
  .wallet-filter-actions { grid-column: 1 / -1; }
  .profile-mobile-title { display: block; padding: 34px 0 0; }
  .profile-mobile-title h1 { margin: 0; color: #17132a; font-size: 30px; font-weight: 850; letter-spacing: -.8px; line-height: 1.2; }
  .profile-mobile-title p { margin: 8px 0 0; color: #77708f; font-size: 13px; line-height: 1.5; }
  .records-panel .ticket-row { grid-template-columns: 82px minmax(0,1fr); gap: 10px; }
  .pool-details-grid { grid-template-columns: 1fr; }
  .pool-details-grid .field-span { grid-column: auto; }
  .detail-layout, .detail-layout > *, .detail-layout .panel, .detail-title, .recent-item { min-width: 0; max-width: 100%; }
  .detail-title h1, .detail-title p, .draw-result-panel p, .recent-meta { overflow-wrap: anywhere; }
  .recent-item { flex-wrap: wrap; }
  .recent-item .numbers { flex: 1 1 100%; max-width: 100%; text-align: left; }
  .draw-result-panel .hash, .fairness .hash { max-width: 100%; overflow-x: auto; text-overflow: clip; }
  .quantity { grid-template-columns: 44px minmax(0,1fr) 44px; }
  .quantity input { min-width: 0; }
  .claim-tabs .tab-btn { flex: 1; min-width: 0; padding-inline: 8px; }
  .virtual-code-card { grid-template-columns: minmax(0,1fr); }
  .virtual-code-secret { width: 100%; }
}

/* Shared account controls and icon language. */
.balance-chip { min-height: 44px; height: auto; padding: 5px 12px 5px 5px; border: 1px solid #e1daf3; border-radius: 12px; background: linear-gradient(120deg, #fff, #f8f5ff); box-shadow: 0 4px 13px rgba(67, 48, 130, .055); cursor: pointer; transition: border-color .18s, box-shadow .18s; }
.balance-chip:hover { border-color: #baaaf1; box-shadow: 0 6px 18px rgba(67, 48, 130, .11); }
.balance-chip-icon { width: 32px; height: 32px; flex: 0 0 auto; border-radius: 9px; background: #eee8ff; color: #6d49d8; display: grid; place-items: center; font-size: 17px; }
.balance-chip-label { color: #7b7396; font-size: 10px; font-weight: 700; }
.balance-chip strong { color: #221c3d; font-size: 14px; font-weight: 850; letter-spacing: -.2px; white-space: nowrap; }
.balance-chip strong small { color: #7b7396; font-size: 10px; font-weight: 700; }
.avatar-button { position: relative; width: 44px; height: 44px; border: 1px solid #e1daf3; border-radius: 12px; background: #f7f3ff; color: #6948d3; display: grid; place-items: center; font-size: 21px; transition: border-color .18s, background .18s; }
.avatar-button:hover { border-color: #baaaf1; background: #f0eaff; }
.topbar-notification-dot { position: absolute; top: -4px; right: -4px; width: 12px; height: 12px; border: 2px solid #fff; border-radius: 50%; background: #f3a245; }
.icon-btn[data-x-modal] { display: inline-grid; place-items: center; font-size: 20px; }
.input-with-icon > .auth-field-icon { font-size: 18px; line-height: 1; color: #7662b8; }
.password-toggle { display: grid; place-items: center; font-size: 19px; }
.password-toggle:hover { color: var(--purple); background: #f0eaff; }
.btn.telegram, .btn.x-login { gap: 10px; font-weight: 750; }
.btn.telegram i, .btn.x-login i { font-size: 20px; line-height: 1; }
.btn.telegram:hover { background: #f3faff; border-color: #aad7ef; }
.btn.x-login:hover { background: #f7f6fb; border-color: #c7c1d5; }

/* Wallet benefits now live with the rest of the wallet. */
.wallet-benefits-panel { margin-top: 22px; padding: 21px 23px; border-radius: 17px; box-shadow: 0 8px 26px rgba(42, 30, 87, .045); }
.wallet-benefits-heading { display: flex; align-items: center; gap: 13px; }
.wallet-benefits-icon { width: 42px; height: 42px; flex: 0 0 auto; border-radius: 12px; background: #eee8ff; color: #6f49dd; display: grid; place-items: center; font-size: 21px; }
.wallet-benefits-heading h2 { margin: 2px 0 3px; font-size: 21px; }
.wallet-benefits-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.wallet-benefits-list { display: grid; gap: 10px; margin-top: 19px; }
.wallet-benefit-item { min-width: 0; padding: 14px 16px; border: 1px solid #ebe5f7; border-radius: 12px; background: #fcfbff; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wallet-benefit-item > div:first-child { min-width: 0; display: grid; gap: 4px; }
.wallet-benefit-item strong { font-size: 14px; }
.wallet-benefit-item span { color: var(--muted); font-size: 11px; }
.wallet-benefit-item a { width: fit-content; color: var(--purple); font-size: 11px; font-weight: 750; }
.wallet-benefit-value { flex: 0 0 auto; text-align: right; }
.wallet-benefit-value strong { display: block; color: #6540d7; font-size: 18px; }
.wallet-benefit-value small { font-size: 11px; }
.wallet-benefits-empty { min-height: 95px; margin-top: 17px; border: 1px dashed #ded5f3; border-radius: 12px; background: #fbf9ff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; }
.wallet-benefits-empty i { color: #9176df; font-size: 23px; }
.wallet-benefits-empty span { color: #45405f; font-size: 12px; font-weight: 750; }
.wallet-benefits-empty small { color: #827b9a; font-size: 11px; }

/* A translucent celebration distinct from ordinary dialogs. */
.modal-backdrop.winning-backdrop { background: rgba(34, 22, 78, .48); backdrop-filter: blur(16px); }
.modal.winning-modal { position: relative; width: min(490px, 100%); max-height: calc(100dvh - 24px); overflow-x: hidden; overflow-y: auto; padding: 0; border: 1px solid rgba(255,255,255,.9); border-radius: 23px; background: linear-gradient(135deg, rgba(255,255,255,.85), rgba(255,247,230,.75)); box-shadow: 0 32px 90px rgba(42, 25, 102, .28), inset 0 1px 0 rgba(255,255,255,.9); backdrop-filter: blur(24px); }
.modal.winning-modal::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% -8%, rgba(255,208,114,.42), transparent 45%), radial-gradient(circle at 7% 80%, rgba(164,132,255,.18), transparent 40%); pointer-events: none; }
.winning-notice { position: relative; z-index: 1; padding: 42px 32px 30px; }
.winning-notice-close { top: 14px; right: 14px; z-index: 3; border-color: rgba(255,255,255,.75); background: rgba(255,255,255,.55); }
.winning-sparkles { position: absolute; inset: 0; pointer-events: none; color: #d69b38; }
.winning-sparkles i { position: absolute; filter: drop-shadow(0 3px 8px rgba(201,141,41,.22)); }
.winning-sparkles i:nth-child(1) { top: 44px; left: 44px; font-size: 23px; }
.winning-sparkles i:nth-child(2) { top: 105px; right: 55px; font-size: 14px; }
.winning-sparkles i:nth-child(3) { top: 181px; left: 25px; font-size: 15px; }
.winning-sparkles i:nth-child(4) { top: 34px; right: 94px; font-size: 11px; }
.winning-notice-icon { width: 88px; height: 88px; margin: 0 auto 16px; border: 6px solid rgba(255,255,255,.72); background: linear-gradient(145deg, #ffe8ad, #f4ad45); color: #8b4f10; font-size: 42px; box-shadow: 0 14px 35px rgba(230,164,57,.27), inset 0 2px 8px rgba(255,255,255,.45); }
.winning-eyebrow { width: fit-content; margin: 0 auto; padding: 6px 11px; border: 1px solid rgba(219,173,87,.36); border-radius: 999px; background: rgba(255,248,229,.55); color: #9c6b23; font-size: 10px; letter-spacing: 2px; }
.winning-notice h2 { margin: 13px 0 10px; color: #271b3a; font-size: 33px; letter-spacing: -1px; }
.winning-notice p { margin: 0 auto 15px; color: #655973; font-size: 14px; line-height: 1.7; }
.winning-notice p strong { color: #302044; overflow-wrap: anywhere; }
.winning-prize-value { width: fit-content; max-width: 100%; margin: 0 auto 20px; padding: 8px 13px; border: 1px solid rgba(214,196,235,.65); border-radius: 10px; background: rgba(255,255,255,.58); color: #6b5d7e; display: flex; align-items: center; gap: 6px; font-size: 12px; }
.winning-prize-value i { color: #bd8131; font-size: 17px; }
.winning-prize-value strong { color: #6b43d7; font-size: 14px; }
.winning-claim-action { border-color: #6944d7; background: linear-gradient(120deg, #7551e8, #8a63ed); box-shadow: 0 11px 25px rgba(103, 68, 206, .24); }
.winning-claim-action:hover { background: linear-gradient(120deg, #6844dc, #7952e4); }
.winning-notice-status { border: 1px solid rgba(110,188,158,.25); border-radius: 10px; background: rgba(229,248,239,.6); }

@media (max-width: 760px) {
  .topbar-inner { gap: 10px; }
  .top-actions { gap: 6px; }
  .balance-chip { min-height: 39px; padding: 4px 8px 4px 4px; gap: 6px; }
  .balance-chip-icon { width: 29px; height: 29px; font-size: 16px; }
  .balance-chip strong { font-size: 12px; }
  .avatar-button { width: 39px; height: 39px; font-size: 19px; }
  .wallet-benefits-panel { margin-top: 14px; padding: 16px; border-radius: 15px; }
  .wallet-benefits-heading h2 { font-size: 19px; }
  .wallet-benefit-item { padding: 12px; }
  .winning-notice { padding: 38px 22px 24px; }
  .winning-notice h2 { font-size: 29px; }
}

/* Mail operations: configuration, delivery check, and broadcast composer. */
.admin-messaging-page { min-width: 0; display: grid; gap: 18px; }
.admin-messaging-intro { min-width: 0; padding: 23px 25px; border: 1px solid #e8e1f7; border-radius: 18px; background: linear-gradient(115deg, #f0ebff, #fff 72%); display: flex; align-items: center; gap: 15px; }
.admin-messaging-mark { width: 54px; height: 54px; flex: 0 0 auto; border-radius: 14px; background: #7450e4; box-shadow: 0 10px 22px rgba(112,66,244,.18); color: #fff; display: grid; place-items: center; font-size: 25px; }
.admin-messaging-intro > div { min-width: 0; }
.admin-messaging-intro h2 { margin: 2px 0 5px; font-size: 27px; }
.admin-messaging-intro p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.admin-mail-status { flex: 0 0 auto; margin-left: auto; padding: 7px 10px; border: 1px solid #e5e0ee; border-radius: 999px; background: #f7f5fa; color: #77708a; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 750; }
.admin-mail-status.is-on { border-color: #cceee2; background: #edfaf4; color: #087d5d; }
.admin-mail-layout { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 278px; gap: 18px; align-items: start; }
.admin-mail-settings, .admin-mail-test, .admin-broadcast-panel { min-width: 0; border-radius: 17px; box-shadow: 0 8px 28px rgba(48,32,95,.045); }
.admin-mail-settings { padding: 23px 25px; }
.admin-mail-section-head { display: flex; align-items: start; gap: 11px; margin-bottom: 18px; }
.admin-mail-section-head > span { width: 32px; height: 32px; flex: 0 0 auto; border-radius: 9px; background: #efeaff; color: #7042f4; display: grid; place-items: center; font-size: 12px; font-weight: 900; }
.admin-mail-section-head h3 { margin: 0 0 3px; font-size: 18px; }
.admin-mail-section-head p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.admin-mail-toggle { position: relative; min-height: 66px; margin-bottom: 18px; padding: 11px 14px; border: 1px solid #e8e1f7; border-radius: 12px; background: #faf8ff; display: flex; align-items: center; gap: 10px; cursor: pointer; }
.admin-mail-toggle-icon { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 9px; background: #eee8ff; color: #754edc; display: grid; place-items: center; font-size: 19px; }
.admin-mail-toggle-copy { min-width: 0; display: grid; gap: 3px; }
.admin-mail-toggle-copy strong { font-size: 12px; }
.admin-mail-toggle-copy small { color: var(--muted); font-size: 10px; }
.admin-mail-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.admin-mail-switch { width: 36px; height: 21px; flex: 0 0 auto; margin-left: auto; padding: 2px; border-radius: 999px; background: #c8c2d5; transition: background .18s; }
.admin-mail-switch::after { content: ""; display: block; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.12); transition: transform .18s; }
.admin-mail-toggle input:checked + .admin-mail-switch { background: #7042f4; }
.admin-mail-toggle input:checked + .admin-mail-switch::after { transform: translateX(15px); }
.admin-mail-toggle input:focus-visible + .admin-mail-switch { outline: 3px solid rgba(112,66,244,.45); outline-offset: 3px; }
.admin-mail-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.admin-mail-fields .field { min-width: 0; margin: 0; }
.admin-mail-fields .field label { color: #4b445f; font-size: 11px; font-weight: 750; }
.admin-mail-fields .field input, .admin-mail-fields .field select { min-height: 43px; background: #fff; font-size: 12px; }
.admin-mail-fields .field-span { grid-column: 1 / -1; }
.admin-mail-secure { padding: 11px 12px; border: 1px solid #eeebf6; border-radius: 10px; background: #fbfaff; display: flex; align-items: center; gap: 8px; cursor: pointer; }
.admin-mail-secure input { width: 17px; height: 17px; flex: 0 0 auto; margin: 0; accent-color: var(--purple); }
.admin-mail-secure span { display: grid; gap: 2px; }
.admin-mail-secure strong { font-size: 11px; }
.admin-mail-secure small { color: var(--muted); font-size: 10px; }
.admin-mail-divider { margin-top: 3px; padding-top: 13px; border-top: 1px solid #efebf6; color: #6e6485; font-size: 11px; font-weight: 800; }
.admin-mail-save-row { margin-top: 20px; padding-top: 17px; border-top: 1px solid #efebf6; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-mail-save-row > span { max-width: 260px; color: #8a819f; font-size: 10px; line-height: 1.5; }
.admin-mail-save-row .btn { min-height: 40px; border-radius: 10px; padding-inline: 15px; white-space: nowrap; }
.admin-mail-side { min-width: 0; display: grid; gap: 12px; }
.admin-mail-test { padding: 21px; }
.admin-mail-side-icon { width: 42px; height: 42px; margin-bottom: 16px; border-radius: 11px; background: #eee8ff; color: #7042f4; display: grid; place-items: center; font-size: 20px; }
.admin-mail-test h3 { margin: 4px 0 8px; font-size: 18px; }
.admin-mail-test p { color: var(--muted); font-size: 11px; line-height: 1.65; }
.admin-mail-test form { display: grid; gap: 8px; margin-top: 18px; }
.admin-mail-test label { color: #4b445f; font-size: 11px; font-weight: 750; }
.admin-mail-test input { width: 100%; min-height: 43px; padding: 10px 11px; border: 1px solid #ddd7eb; border-radius: 10px; background: #fff; font-size: 12px; }
.admin-mail-test .btn { min-height: 41px; border-radius: 10px; }
.admin-mail-note { padding: 13px 14px; border: 1px solid #e7e2f4; border-radius: 11px; background: #f7f4ff; color: #6e6684; display: flex; align-items: start; gap: 8px; font-size: 10px; line-height: 1.6; }
.admin-mail-note i { flex: 0 0 auto; color: #7042f4; font-size: 16px; }
.admin-broadcast-panel { padding: 23px 25px; }
.admin-broadcast-layout { display: grid; grid-template-columns: minmax(0, 1fr) 264px; gap: 22px; }
.admin-broadcast-layout form { min-width: 0; }
.admin-broadcast-layout .field { margin-bottom: 15px; }
.admin-broadcast-layout .field label { color: #4b445f; font-size: 11px; font-weight: 750; }
.admin-broadcast-layout input, .admin-broadcast-layout textarea { background: #fff; font-size: 12px; }
.admin-broadcast-layout textarea { min-height: 213px; line-height: 1.7; }
.admin-broadcast-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-broadcast-actions > span { color: #8a819f; font-size: 10px; }
.admin-broadcast-actions .btn { min-height: 41px; border-radius: 10px; }
.admin-broadcast-aside { min-width: 0; padding: 16px; border: 1px solid #e8e1f7; border-radius: 13px; background: linear-gradient(145deg, #faf8ff, #f5f1ff); }
.admin-broadcast-audience { display: flex; align-items: center; gap: 10px; padding-bottom: 15px; border-bottom: 1px solid #e8e1f5; }
.admin-broadcast-audience > i { width: 35px; height: 35px; flex: 0 0 auto; border-radius: 9px; background: #ebe4ff; color: #7042f4; display: grid; place-items: center; font-size: 18px; }
.admin-broadcast-audience div { min-width: 0; display: grid; gap: 3px; }
.admin-broadcast-audience strong { font-size: 11px; }
.admin-broadcast-audience span { color: var(--muted); font-size: 10px; }
.admin-broadcast-preview { min-width: 0; display: grid; gap: 9px; margin-top: 15px; }
.admin-broadcast-preview > span { color: #827a9c; font-size: 10px; font-weight: 750; }
.admin-broadcast-preview strong { color: #2d2447; font-size: 12px; overflow-wrap: anywhere; }
.admin-broadcast-preview p { max-height: 165px; margin: 0; overflow: auto; color: #6b647f; font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; white-space: pre-wrap; }
.admin-broadcast-hint { margin: 18px 0 0; color: #847b9c; display: flex; align-items: start; gap: 5px; font-size: 10px; line-height: 1.5; }
.admin-broadcast-hint i { color: #7042f4; font-size: 15px; }

@media (max-width: 1140px) {
  .admin-mail-layout, .admin-broadcast-layout { grid-template-columns: 1fr; }
  .admin-mail-side { grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; }
}
@media (max-width: 680px) {
  .admin-messaging-intro { padding: 18px; flex-wrap: wrap; }
  .admin-messaging-intro h2 { font-size: 23px; }
  .admin-mail-status { margin-left: 0; }
  .admin-mail-settings, .admin-mail-test, .admin-broadcast-panel { padding: 18px; }
  .admin-mail-fields, .admin-mail-side { grid-template-columns: 1fr; }
  .admin-mail-save-row { align-items: stretch; flex-direction: column; }
  .admin-mail-save-row .btn, .admin-broadcast-actions .btn { width: 100%; }
  .admin-broadcast-actions { align-items: stretch; flex-direction: column; }
}
