/* ============== 登录 / 注册 双栏布局 ============== */
.auth-page {
    min-height: calc(100vh - 64px);
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    gap: 4rem;
    align-items: center;
}
@media (max-width: 880px) {
    .auth-page { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 1rem; }
    .auth-side { display: none; }
}
.auth-side .section-tag { margin-bottom: 1.25rem; }
.auth-side h2 {
    font-size: clamp(2rem, 4vw, 2.6rem);
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1rem;
}
.auth-side h2 .gradient {
    background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.auth-side .lead {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}
.benefit-list { list-style: none; padding: 0; }
.benefit-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 1rem;
    font-size: 0.97rem;
    color: var(--text-muted);
}
.benefit-list .check {
    flex-shrink: 0;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: rgba(16,185,129,0.16);
    color: var(--success);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    margin-top: 2px;
}
.benefit-list b { color: var(--text-main); font-weight: 700; }

/* 表单容器 */
.auth-shell {
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2.5rem 2.25rem;
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    box-shadow: 0 30px 70px -30px rgba(0,0,0,0.6);
}
.auth-shell h2 {
    font-size: 1.55rem;
    margin-bottom: 0.4rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}
.auth-shell .sub {
    color: var(--text-muted);
    margin-bottom: 1.75rem;
    font-size: 0.95rem;
}

/* 注册赠送提示条 */
.auth-gift {
    display: flex; align-items: center; gap: 0.85rem;
    padding: 0.9rem 1rem;
    background: linear-gradient(135deg, rgba(236,72,153,0.16), rgba(245,158,11,0.1));
    border: 1px solid rgba(236,72,153,0.32);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.92rem;
    color: var(--text-main);
}
.auth-gift .gift-icon { font-size: 1.6rem; line-height: 1; }
.auth-gift b { color: #fbcfe8; font-weight: 700; }

/* 表单元素 */
.form-group { margin-bottom: 1.1rem; }
.form-group label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
}
.form-group input, .form-group select {
    width: 100%;
    padding: 0.8rem 1rem;
    background-color: rgba(15, 23, 42, 0.6);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.98rem;
    font-family: inherit;
    outline: none;
    transition: all 0.2s;
}
.form-group input::placeholder { color: var(--text-dim); }
.form-group input:focus, .form-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.18);
    background-color: rgba(15, 23, 42, 0.85);
}
.turnstile-field {
    margin: 0.35rem 0 1.1rem;
    min-height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.turnstile-field .cf-turnstile {
    max-width: 100%;
}

.btn-block {
    width: 100%;
    padding: 0.9rem;
    background: var(--gradient);
    background-size: 200% 200%;
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s;
    font-family: inherit;
    box-shadow: 0 12px 25px -10px rgba(99,102,241,0.55);
}
.btn-block:hover {
    background-position: 100% 0;
    transform: translateY(-1px);
    box-shadow: 0 16px 35px -10px rgba(99,102,241,0.75);
}
.btn-block:disabled {
    background: #334155;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-tip {
    margin-top: 1.1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.auth-tip a { color: var(--primary); font-weight: 600; }
.auth-tip a:hover { color: var(--accent); }

/* alert */
.alert {
    display: none;
    align-items: center;
    gap: 0.65rem;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    margin-bottom: 1rem;
    font-size: 0.92rem;
    line-height: 1.5;
    border: 1px solid rgba(148,163,184,0.16);
    background: rgba(15,23,42,0.58);
    color: #dbeafe;
    box-shadow: 0 18px 45px -34px rgba(15,23,42,0.9);
    backdrop-filter: blur(12px);
}
.alert.show {
    display: flex;
    animation: alert-slide-in 0.22s ease-out;
}
.alert-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 1000;
}
.alert.error {
    background: linear-gradient(135deg, rgba(127,29,29,0.42), rgba(15,23,42,0.64));
    color: #fecaca;
    border-color: rgba(248,113,113,0.32);
}
.alert.error .alert-icon { background: rgba(248,113,113,0.18); color: #fecaca; }
.alert.success {
    background: linear-gradient(135deg, rgba(6,95,70,0.42), rgba(15,23,42,0.64));
    color: #a7f3d0;
    border-color: rgba(52,211,153,0.32);
}
.alert.success .alert-icon { background: rgba(52,211,153,0.18); color: #a7f3d0; }
@keyframes alert-slide-in {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ============== Dashboard ============== */
.dashboard-shell {
    max-width: 1000px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
}
.dashboard-hero {
    background:
        radial-gradient(circle at 100% 0%, rgba(99,102,241,0.2), transparent 50%),
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 2rem 2rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}
.dashboard-hero h2 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    letter-spacing: -0.3px;
}
.dashboard-hero .lead { color: var(--text-muted); }
.dashboard-hero .actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* 流量进度条 */
.traffic-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.6rem 1.75rem;
    margin-bottom: 1.5rem;
}
.traffic-card .traffic-head {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 0.7rem; flex-wrap: wrap; gap: 0.5rem;
}
.traffic-card .traffic-head h3 {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}
.traffic-card .traffic-head .number {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.traffic-bar {
    width: 100%;
    height: 10px;
    background: rgba(15,23,42,0.7);
    border-radius: 999px;
    overflow: hidden;
}
.traffic-bar .fill {
    height: 100%;
    background: var(--gradient);
    width: 0%;
    transition: width 0.6s ease;
    border-radius: 999px;
}
.traffic-card .traffic-foot {
    margin-top: 0.6rem;
    color: var(--text-dim);
    font-size: 0.85rem;
}

/* 信息网格 */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.info-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    border: 1px solid var(--border-color);
    padding: 1.3rem 1.4rem;
    border-radius: var(--radius);
    position: relative;
}
.info-card .label {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}
.info-card .value {
    font-size: 1.05rem;
    font-weight: 700;
    word-break: break-all;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    color: var(--text-main);
    padding-right: 2rem;
}
.info-card .copy-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    width: 30px; height: 30px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.9rem;
}
.info-card .copy-btn:hover { color: var(--primary); border-color: rgba(99,102,241,0.4); background: rgba(99,102,241,0.1); }

/* ============== 充值页 ============== */
.topup-shell {
    max-width: 760px;
    margin: 2.5rem auto;
    padding: 0 1.5rem;
}
.topup-shell h2 {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 0.4rem;
    letter-spacing: -0.5px;
}
.topup-shell .lead {
    color: var(--text-muted);
    margin-bottom: 2rem;
}
.topup-section {
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 1.75rem;
    margin-bottom: 1.25rem;
}
.topup-section h3 {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.topup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}
.topup-grid button {
    position: relative;
    padding: 1.1rem 0.8rem;
    background: rgba(15,23,42,0.5);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.05rem;
    font-family: inherit;
    transition: all 0.2s;
}
.topup-grid button .sub {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-dim);
    margin-top: 0.25rem;
}
.topup-grid button:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}
.topup-grid button.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(6,182,212,0.08));
    color: var(--text-main);
    box-shadow: 0 10px 25px -10px rgba(99,102,241,0.5);
}
.topup-grid button.selected .sub { color: #c7d2fe; }
.topup-grid button .save-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    padding: 0.22rem 0.52rem;
    background: linear-gradient(135deg, #fb7185, #f59e0b);
    color: white;
    font-size: 0.68rem;
    font-weight: 900;
    border-radius: 999px;
    letter-spacing: 0.02em;
    box-shadow: 0 10px 22px -12px rgba(251,113,133,0.95);
    pointer-events: none;
}
.discount-tip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: fit-content;
    padding: 0.32rem 0.68rem;
    border-radius: 999px;
    border: 1px solid rgba(245,158,11,0.28);
    background: rgba(245,158,11,0.12);
    color: #fde68a;
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}
.discount-tip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
}
.traffic-pack-grid button .save-tag {
    animation: discount-pop 2.4s ease-in-out infinite;
}
@keyframes discount-pop {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}

.method-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.method-row label {
    flex: 1;
    min-width: 160px;
    padding: 0.85rem 1rem;
    background: rgba(15,23,42,0.5);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    color: var(--text-muted);
    display: flex;
    align-items: center;
}
.method-row input[type="radio"] { display: none; }
.method-row label:has(input:checked) {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(6,182,212,0.08));
    color: var(--text-main);
    box-shadow: 0 10px 25px -10px rgba(99,102,241,0.5);
}
.method-row label:hover { border-color: rgba(99,102,241,0.4); }

.method-body {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
}
.method-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.5px;
    box-shadow: 0 4px 12px -4px rgba(0,0,0,0.45);
}
.method-icon-alipay { background: linear-gradient(135deg, #1677ff, #0a52cc); }
.method-icon-wxpay  { background: linear-gradient(135deg, #07c160, #04994a); }
.method-icon-usdt   { background: linear-gradient(135deg, #26a17b, #1a7a5b); }

.method-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    gap: 0.2rem;
    text-align: left;
}
.method-name { font-size: 0.98rem; }
.method-fee {
    font-size: 0.75rem;
    font-weight: 600;
    color: #f59e0b;
    background: rgba(245,158,11,0.12);
    padding: 1px 6px;
    border-radius: 4px;
    align-self: flex-start;
    letter-spacing: 0;
}
.method-fee-ok {
    color: var(--success);
    background: rgba(16,185,129,0.14);
}
.method-note {
    margin-top: 0.6rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.price-hint {
    padding: 1.1rem 1.25rem;
    background: linear-gradient(135deg, rgba(99,102,241,0.1), rgba(6,182,212,0.05));
    border: 1px solid rgba(99,102,241,0.2);
    border-radius: 12px;
    margin-bottom: 1.25rem;
    font-size: 1.05rem;
    text-align: center;
}
.price-hint.warn {
    background: linear-gradient(135deg, rgba(239,68,68,0.12), rgba(245,158,11,0.06));
    border-color: rgba(239,68,68,0.35);
    color: #fca5a5;
}
.price-hint.warn strong { color: #fecaca; font-size: 1rem; }
.price-hint b { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.5px; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price-hint .currency { color: var(--text-muted); margin-left: 0.3rem; font-size: 0.95rem; }
.price-hint .discount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: fit-content;
    margin: 0.45rem auto 0;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    border: 1px solid rgba(16,185,129,0.32);
    background: rgba(16,185,129,0.13);
    color: var(--success);
    font-size: 0.86rem;
    font-weight: 800;
}

/* dashboard 老类名兼容 */
.action-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.action-row .cta-button { padding: 0.7rem 1.5rem; font-size: 0.95rem; box-shadow: none; }

/* 代理生成器卡片 */
.generator-card {
    background: var(--bg-card, rgba(255,255,255,0.04));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px;
    padding: 1.5rem 1.5rem 1.25rem;
    margin-top: 1.5rem;
    backdrop-filter: blur(12px);
}
.generator-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}
.generator-head h3 {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
    font-weight: 700;
}
.generator-head .hint {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
    max-width: 540px;
}
.generator-card .hint code {
    background: rgba(99,102,241,0.12);
    color: var(--text-main);
    padding: 0.1rem 0.4rem;
    border-radius: 6px;
    font-size: 0.82rem;
}
.generator-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 0.85rem;
    align-items: end;
    margin-bottom: 1.1rem;
}
.generator-form label {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}
.generator-form select {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 0.7rem 0.85rem;
    color: var(--text-main);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
}
.generator-form select:focus {
    border-color: var(--primary);
    background: rgba(99,102,241,0.08);
}
.generator-form select option { background: #1a1b2e; color: var(--text-main); }
.generator-form #gen-refresh { padding: 0.7rem 1.1rem; font-size: 0.92rem; box-shadow: none; }
.generator-output {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    margin-bottom: 0.85rem;
}
.generator-output code {
    flex: 1;
    color: #e0e7ff;
    font-family: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
    font-size: 0.92rem;
    word-break: break-all;
    background: transparent;
    padding: 0;
}
.generator-output .copy-btn {
    background: rgba(99,102,241,0.12);
    border: 1px solid rgba(99,102,241,0.3);
    color: var(--primary);
    border-radius: 8px;
    padding: 0.35rem 0.7rem;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.15s;
}
.generator-output .copy-btn:hover { background: rgba(99,102,241,0.22); }

@media (max-width: 720px) {
    .generator-form { grid-template-columns: 1fr; }
    .generator-form #gen-refresh { width: 100%; }
}

/* generator-form 里的 .form-field 与 label 同样布局 */
.generator-form .form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}
.generator-form .form-field .form-label { display: block; }

/* 国家自定义下拉 */
.country-picker { position: relative; }
.country-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 0.6rem 0.85rem;
    color: var(--text-main);
    font-size: 0.95rem;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.country-trigger:hover { border-color: rgba(99,102,241,0.45); }
.country-picker[aria-expanded="true"] .country-trigger,
.country-trigger[aria-expanded="true"] {
    border-color: var(--primary);
    background: rgba(99,102,241,0.08);
}
.country-current {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    overflow: hidden;
}
.country-current .flag {
    width: 22px;
    height: 16px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
    flex-shrink: 0;
}
.country-current .zh {
    color: var(--text-main);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.country-current .code {
    color: var(--text-muted);
    font-size: 0.78rem;
    letter-spacing: 0.5px;
}
.country-trigger .caret { color: var(--text-muted); font-size: 0.9rem; }

.country-popover {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 30;
    background: #161827;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    box-shadow: 0 18px 48px rgba(0,0,0,0.55);
    overflow: hidden;
}
.country-search {
    padding: 0.6rem 0.7rem 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}
.country-search input {
    width: 100%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 0.45rem 0.7rem;
    color: var(--text-main);
    font-size: 0.9rem;
    outline: none;
}
.country-search input:focus { border-color: var(--primary); background: rgba(99,102,241,0.08); }
.country-list {
    list-style: none;
    margin: 0;
    padding: 0.3rem 0;
    max-height: 280px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.18) transparent;
}
.country-list::-webkit-scrollbar { width: 8px; }
.country-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 4px; }
.country-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.85rem;
    cursor: pointer;
    color: var(--text-main);
    font-size: 0.93rem;
    transition: background 0.12s;
}
.country-item:hover { background: rgba(99,102,241,0.12); }
.country-item.active { background: rgba(99,102,241,0.2); }
.country-item .flag {
    width: 22px;
    height: 16px;
    border-radius: 2px;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08);
    flex-shrink: 0;
}
.country-item .globe {
    width: 22px;
    text-align: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.country-item .name { flex: 1; }
.country-item .code {
    color: var(--text-muted);
    font-size: 0.78rem;
    letter-spacing: 0.5px;
    font-family: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
}
.country-empty {
    padding: 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.usdt-pay {
    margin-top: 1.25rem;
    padding: 1.5rem 1.5rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(34, 197, 94, 0.08), rgba(34, 197, 94, 0.02));
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.08);
}

.usdt-pay h3 {
    margin: 0 0 0.4rem;
    color: #4ade80;
    font-size: 1.1rem;
}

.usdt-pay .hint {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: 0 0 1rem;
    line-height: 1.6;
}

.usdt-pay .hint strong {
    color: #fde68a;
}

.usdt-row {
    display: grid;
    grid-template-columns: 6rem 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

.usdt-row .label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.usdt-row .value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.95rem;
    color: #f8fafc;
    word-break: break-all;
}

.usdt-row .usdt-unit {
    color: #4ade80;
    font-weight: 600;
    font-size: 0.85rem;
    margin-left: 0.2rem;
}

.usdt-row .copy-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f8fafc;
    border-radius: 8px;
    width: 2rem;
    height: 2rem;
    cursor: pointer;
    transition: background 0.15s;
}

.usdt-row .copy-btn:hover {
    background: rgba(74, 222, 128, 0.18);
}

@media (max-width: 560px) {
    .usdt-row {
        grid-template-columns: 1fr auto;
    }
    .usdt-row .label {
        grid-column: 1 / -1;
    }
}

.usdt-check-result {
    margin-top: 0.75rem;
    padding: 0.7rem 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
    border: 1px solid transparent;
}

.usdt-check-result.success {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(74, 222, 128, 0.35);
    color: #4ade80;
}

.usdt-check-result.pending {
    background: rgba(250, 204, 21, 0.08);
    border-color: rgba(250, 204, 21, 0.3);
    color: #fde68a;
}

.usdt-check-result.error {
    background: rgba(248, 113, 113, 0.12);
    border-color: rgba(248, 113, 113, 0.35);
    color: #fca5a5;
}

.usdt-qr-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 0.25rem 0 1rem;
}

.usdt-qr {
    width: 200px;
    height: 200px;
    padding: 10px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.usdt-qr svg {
    width: 100%;
    height: 100%;
    display: block;
    image-rendering: pixelated;
}

.usdt-qr.usdt-qr-empty {
    background: rgba(0, 0, 0, 0.25);
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
    padding: 1rem;
    box-shadow: none;
}

.usdt-qr-hint {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.usdt-row .value.usdt-address {
    letter-spacing: 0.5px;
}

.usdt-addr-hl {
    color: #f87171;
    font-weight: 700;
}

.usdt-addr-mid {
    color: #f8fafc;
}

.usdt-addr-tip {
    margin: -0.25rem 0 0.75rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.5;
}

.usdt-addr-tip strong {
    color: #f87171;
}

.manual-pay {
    margin-top: 1.25rem;
    padding: 1.5rem 1.5rem 1.25rem;
    border: 1px solid rgba(96, 165, 250, 0.22);
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0.025));
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(59, 130, 246, 0.08);
}

.manual-pay h3 {
    margin: 0 0 0.4rem;
    color: #93c5fd;
    font-size: 1.1rem;
}

.manual-pay .hint {
    color: var(--text-muted);
    font-size: 0.88rem;
    margin: 0 0 1rem;
    line-height: 1.6;
}

.manual-row {
    display: grid;
    grid-template-columns: 6rem 1fr;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    margin-bottom: 0.75rem;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}

.manual-row .label {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.manual-row .value {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.95rem;
    color: #f8fafc;
    word-break: break-all;
}

.manual-pay-link {
    width: 100%;
    justify-content: center;
    margin-top: 0.25rem;
    box-shadow: none;
}

/* ============== Admin Console ============== */
.admin-login-page .auth-shell {
    border-color: rgba(99, 102, 241, 0.28);
}

.admin-shell {
    max-width: 1320px;
    margin: 2.2rem auto 4rem;
    padding: 0 1.5rem;
}

.admin-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.8rem 2rem;
    margin-bottom: 1.25rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 100% 0%, rgba(99,102,241,0.2), transparent 45%),
        linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012));
}

.admin-hero h1 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin: 0.45rem 0 0.25rem;
    letter-spacing: -0.8px;
}

.admin-hero .lead {
    color: var(--text-muted);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.admin-stat {
    min-height: 104px;
    padding: 1.1rem 1.15rem;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
}

.admin-stat span {
    display: block;
    color: var(--text-muted);
    font-size: 0.84rem;
    margin-bottom: 0.55rem;
}

.admin-stat strong {
    display: block;
    font-size: 1.35rem;
    line-height: 1.25;
    word-break: break-word;
}

.admin-panel {
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.012));
    overflow: hidden;
}

.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    padding: 1rem 1rem 0;
}

.admin-tab {
    border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.035);
    color: var(--text-muted);
    border-radius: 999px;
    padding: 0.6rem 1rem;
    cursor: pointer;
    font: inherit;
    transition: all 0.18s;
}

.admin-tab:hover,
.admin-tab.active {
    color: #fff;
    border-color: rgba(99,102,241,0.55);
    background: rgba(99,102,241,0.22);
}

.admin-toolbar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-toolbar input,
.admin-toolbar select {
    min-height: 42px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.75);
    color: var(--text-main);
    padding: 0.7rem 0.85rem;
    font: inherit;
    outline: none;
}

.admin-toolbar input {
    flex: 1 1 360px;
}

.admin-toolbar input:focus,
.admin-toolbar select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.admin-table-wrap {
    overflow-x: auto;
}

.visitor-source-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.75rem;
    padding: 0 1rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.source-summary-card {
    padding: 0.85rem 0.9rem;
    border: 1px solid rgba(148,163,184,0.16);
    border-radius: 12px;
    background: rgba(15,23,42,0.42);
}

.source-summary-card strong {
    display: block;
    margin: 0.45rem 0 0.15rem;
    font-size: 1.25rem;
}

.source-summary-card small,
.source-type,
.source-detail {
    color: var(--text-dim);
    font-size: 0.78rem;
    line-height: 1.45;
}

.source-cell {
    display: grid;
    gap: 0.32rem;
    min-width: 120px;
}

.source-badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    padding: 0.22rem 0.58rem;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.22);
    background: rgba(148,163,184,0.12);
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.source-ads {
    color: #fecaca;
    border-color: rgba(248,113,113,0.38);
    background: rgba(248,113,113,0.14);
}

.source-search {
    color: #bfdbfe;
    border-color: rgba(96,165,250,0.38);
    background: rgba(96,165,250,0.14);
}

.source-social {
    color: #f0abfc;
    border-color: rgba(217,70,239,0.36);
    background: rgba(217,70,239,0.13);
}

.source-campaign {
    color: #fde68a;
    border-color: rgba(245,158,11,0.36);
    background: rgba(245,158,11,0.13);
}

.source-referral {
    color: #a7f3d0;
    border-color: rgba(16,185,129,0.34);
    background: rgba(16,185,129,0.12);
}

.source-direct,
.source-internal {
    color: #cbd5e1;
    border-color: rgba(148,163,184,0.24);
    background: rgba(148,163,184,0.11);
}

.source-detail {
    max-width: 220px;
    word-break: break-all;
}

.path-stack {
    display: grid;
    gap: 0.28rem;
    max-width: 360px;
}

.path-stack code {
    display: block;
    padding: 0.18rem 0;
}

.admin-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 0.82rem 0.95rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    vertical-align: top;
    font-size: 0.88rem;
}

.admin-table th {
    color: var(--text-muted);
    font-weight: 700;
    background: rgba(15,23,42,0.42);
    white-space: nowrap;
}

.admin-table td {
    color: var(--text-main);
}

.admin-table code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    color: #dbeafe;
    word-break: break-all;
}

.admin-empty {
    text-align: center !important;
    color: var(--text-muted) !important;
    padding: 2rem !important;
}

.admin-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.85rem;
    padding: 1rem;
}

.admin-pagination .cta-button {
    padding: 0.62rem 1rem;
    font-size: 0.9rem;
}

.admin-mini-btn {
    border: 1px solid rgba(99,102,241,0.4);
    background: rgba(99,102,241,0.16);
    color: #dbeafe;
    border-radius: 8px;
    padding: 0.45rem 0.65rem;
    cursor: pointer;
    font: inherit;
    white-space: nowrap;
}

.admin-mini-btn:hover {
    background: rgba(99,102,241,0.28);
}

.admin-mini-btn.danger {
    border-color: rgba(239,68,68,0.42);
    background: rgba(239,68,68,0.14);
    color: #fecaca;
}

.admin-mini-btn.danger:hover {
    background: rgba(239,68,68,0.24);
}

.admin-mini-btn.secondary {
    border-color: rgba(148,163,184,0.35);
    background: rgba(148,163,184,0.12);
    color: #cbd5e1;
}

.admin-mini-btn.secondary:hover {
    background: rgba(148,163,184,0.2);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid rgba(148,163,184,0.2);
    color: #cbd5e1;
    background: rgba(148,163,184,0.12);
}

.status-paid,
.status-200,
.status-304 {
    color: #86efac;
    border-color: rgba(34,197,94,0.35);
    background: rgba(34,197,94,0.12);
}

.status-pending {
    color: #fde68a;
    border-color: rgba(245,158,11,0.35);
    background: rgba(245,158,11,0.12);
}

.status-expired,
.status-cancelled,
.status-404,
.status-500 {
    color: #fca5a5;
    border-color: rgba(239,68,68,0.35);
    background: rgba(239,68,68,0.12);
}

.dim {
    color: var(--text-dim);
}

@media (max-width: 980px) {
    .admin-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .admin-shell {
        padding: 0 1rem;
    }
    .admin-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .admin-toolbar input,
    .admin-toolbar select,
    .admin-toolbar .cta-button,
    .admin-toolbar .admin-mini-btn {
        width: 100%;
        flex: 1 1 100%;
    }
}

/* ============== Wallet / Static IP ============== */
.balance-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(99,102,241,0.08));
    border: 1px solid rgba(16,185,129,0.22);
    border-radius: var(--radius);
    padding: 1.45rem 1.65rem;
    margin-bottom: 1.5rem;
}

.balance-card h3,
.static-buy-card h3,
.static-info-card h3 {
    margin: 0 0 0.35rem;
}

.balance-number {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 900;
    letter-spacing: -0.7px;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.static-shell {
    max-width: 1180px;
    margin: 2.5rem auto 4rem;
    padding: 0 1.5rem;
}

.static-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.static-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1rem;
}

.static-form-grid label {
    display: grid;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.88rem;
}

.static-form-grid input,
.static-form-grid select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.75);
    color: var(--text-main);
    padding: 0.7rem 0.85rem;
    font: inherit;
    outline: none;
}

.static-form-grid input:focus,
.static-form-grid select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

.static-actions,
.section-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.static-actions {
    margin-top: 1rem;
}

.static-stock-list {
    display: grid;
    gap: 0.55rem;
    margin: 0.8rem 0 1rem;
}

.static-stock-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(148,163,184,0.14);
    border-radius: 10px;
    background: rgba(15,23,42,0.38);
}

.static-stock-list span {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.static-table {
    min-width: 880px;
}

.static-proxy-list,
.admin-detail-block pre {
    margin: 0;
    padding: 1rem;
    white-space: pre-wrap;
    word-break: break-all;
    border: 1px solid rgba(148,163,184,0.14);
    border-radius: 12px;
    background: rgba(2,6,23,0.55);
    color: #dbeafe;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.86rem;
    line-height: 1.55;
}

.admin-detail-panel {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    background: rgba(15,23,42,0.24);
}

.admin-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 0.85rem;
}

.admin-detail-block h4 {
    margin: 0 0 0.45rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 860px) {
    .static-grid,
    .admin-detail-grid {
        grid-template-columns: 1fr;
    }
    .static-form-grid {
        grid-template-columns: 1fr;
    }
}

/* ============== 用户控制台专业版 ============== */
.dashboard-pro-shell {
    max-width: 1180px;
    margin: 2rem auto 3rem;
}

.dashboard-pro-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148,163,184,0.16);
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 1rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: stretch;
    background:
        radial-gradient(circle at 78% -20%, rgba(14,165,233,0.24), transparent 34%),
        radial-gradient(circle at 5% 15%, rgba(99,102,241,0.28), transparent 30%),
        linear-gradient(135deg, rgba(15,23,42,0.94), rgba(30,41,59,0.72));
    box-shadow: 0 24px 80px -55px rgba(59,130,246,0.85);
}

.dashboard-pro-hero::after {
    content: "";
    position: absolute;
    inset: auto -12% -44% 42%;
    height: 220px;
    background: radial-gradient(circle, rgba(16,185,129,0.18), transparent 60%);
    pointer-events: none;
}

.dashboard-pro-hero .hero-copy,
.dashboard-pro-hero .hero-action-panel {
    position: relative;
    z-index: 1;
}

.dashboard-pro-hero h2 {
    margin: 0.55rem 0 0.45rem;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.05;
    letter-spacing: -1.4px;
}

.dashboard-pro-hero .lead {
    max-width: 620px;
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.65;
}

.hero-user-line {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid rgba(148,163,184,0.2);
    border-radius: 999px;
    background: rgba(2,6,23,0.34);
    color: #e2e8f0;
    font-size: 0.88rem;
}

.status-dot {
    display: inline-block;
    width: 0.52rem;
    height: 0.52rem;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34,197,94,0.14);
}

.hero-action-panel {
    min-width: 220px;
    display: grid;
    gap: 0.75rem;
    align-content: center;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    background: rgba(2,6,23,0.28);
    backdrop-filter: blur(14px);
}

.dashboard-overview-grid {
    display: grid;
    grid-template-columns: 1.35fr repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.metric-card {
    min-height: 154px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.15rem;
    border: 1px solid rgba(148,163,184,0.16);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.014)),
        rgba(15,23,42,0.54);
    box-shadow: 0 20px 55px -45px rgba(15,23,42,0.9);
}

.metric-card-primary {
    background:
        radial-gradient(circle at 100% 0%, rgba(14,165,233,0.2), transparent 45%),
        linear-gradient(160deg, rgba(99,102,241,0.2), rgba(15,23,42,0.58));
    border-color: rgba(99,102,241,0.32);
}

.metric-topline {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 700;
}

.metric-topline small {
    color: #94a3b8;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.metric-card strong {
    display: block;
    margin-top: 1.2rem;
    color: #f8fafc;
    font-size: clamp(1.4rem, 3vw, 2rem);
    line-height: 1.1;
    letter-spacing: -0.8px;
}

.metric-card p {
    margin: 0.7rem 0 0;
    color: var(--text-dim);
    font-size: 0.82rem;
    line-height: 1.5;
}

.metric-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.05rem !important;
    word-break: break-all;
}

.metric-status {
    display: inline-flex !important;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.35rem !important;
}

.dashboard-module {
    border: 1px solid rgba(148,163,184,0.16);
    border-radius: 20px;
    padding: 1.25rem;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.012)),
        rgba(15,23,42,0.44);
}

.module-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.module-head h3 {
    margin: 0.18rem 0 0;
    font-size: 1.1rem;
    letter-spacing: -0.2px;
}

.module-kicker {
    display: block;
    color: #93c5fd;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.traffic-module {
    margin-bottom: 1rem;
}

.traffic-bar-pro {
    height: 14px;
    background: rgba(2,6,23,0.72);
    border: 1px solid rgba(148,163,184,0.12);
}

.traffic-bar-pro .fill {
    background: linear-gradient(90deg, #22c55e, #06b6d4, #6366f1);
    box-shadow: 0 0 18px rgba(34,211,238,0.32);
}

.dashboard-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.credential-list {
    display: grid;
    gap: 0.75rem;
}

.credential-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.95rem;
    border: 1px solid rgba(148,163,184,0.14);
    border-radius: 14px;
    background: rgba(2,6,23,0.32);
}

.credential-row .label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.credential-row strong {
    display: block;
    color: #e2e8f0;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.96rem;
    word-break: break-all;
}

.credential-row .copy-btn,
.generator-output-pro .copy-btn {
    min-width: 56px;
    height: 34px;
    border: 1px solid rgba(99,102,241,0.34);
    border-radius: 10px;
    background: rgba(99,102,241,0.12);
    color: #c7d2fe;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}

.credential-row .copy-btn:hover,
.generator-output-pro .copy-btn:hover {
    background: rgba(99,102,241,0.2);
    border-color: rgba(99,102,241,0.55);
}

.credential-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
}

.credential-meta-grid span {
    padding: 0.55rem 0.4rem;
    border-radius: 10px;
    background: rgba(16,185,129,0.1);
    color: #a7f3d0;
    text-align: center;
    font-size: 0.76rem;
    font-weight: 800;
}

.product-action-list {
    display: grid;
    gap: 0.75rem;
}

.product-action-card {
    display: grid;
    gap: 0.25rem;
    padding: 1rem;
    border: 1px solid rgba(148,163,184,0.14);
    border-radius: 15px;
    background: rgba(2,6,23,0.3);
    color: inherit;
    text-decoration: none;
    transition: transform 0.18s, border-color 0.18s, background 0.18s;
}

.product-action-card:hover {
    transform: translateY(-2px);
    border-color: rgba(99,102,241,0.45);
    background: rgba(99,102,241,0.11);
}

.product-action-card span {
    color: #93c5fd;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-action-card strong {
    color: #f8fafc;
    font-size: 1rem;
}

.product-action-card small {
    color: var(--text-muted);
    line-height: 1.45;
}

.generator-card-pro {
    margin-top: 0;
    backdrop-filter: blur(12px);
}

.generator-card-pro .generator-head {
    margin-bottom: 1rem;
}

.generator-output-pro {
    border-color: rgba(99,102,241,0.22);
    background: rgba(2,6,23,0.52);
}

.generator-output-pro code {
    color: #bfdbfe;
}

.compact-hint {
    margin: 0.75rem 0 0 !important;
    color: var(--text-muted);
}

@media (max-width: 980px) {
    .dashboard-pro-hero,
    .dashboard-layout-grid {
        grid-template-columns: 1fr;
    }
    .hero-action-panel {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .dashboard-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .dashboard-pro-shell {
        padding: 0 1rem;
        margin-top: 1rem;
    }
    .dashboard-pro-hero,
    .dashboard-module,
    .metric-card {
        border-radius: 16px;
    }
    .dashboard-pro-hero {
        padding: 1.25rem;
    }
    .hero-action-panel,
    .dashboard-overview-grid,
    .credential-meta-grid {
        grid-template-columns: 1fr;
    }
    .credential-row {
        grid-template-columns: 1fr;
    }
    .credential-row .copy-btn {
        width: 100%;
    }
    .generator-form {
        grid-template-columns: 1fr;
    }
}

/* ============== 业务购买页统一视觉升级 ============== */
.commerce-shell {
    max-width: 1180px;
    margin: 2rem auto 3rem;
}

.commerce-hero {
    position: relative;
    overflow: hidden;
    min-height: 310px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 1.5rem;
    align-items: center;
    padding: clamp(1.35rem, 4vw, 2.2rem);
    margin-bottom: 1rem;
    border: 1px solid rgba(148,163,184,0.16);
    border-radius: 26px;
    background:
        radial-gradient(circle at 12% 18%, rgba(99,102,241,0.25), transparent 34%),
        radial-gradient(circle at 86% 4%, rgba(6,182,212,0.22), transparent 32%),
        linear-gradient(135deg, rgba(15,23,42,0.94), rgba(30,41,59,0.68));
    box-shadow: 0 28px 90px -62px rgba(99,102,241,0.95);
}

.static-theme .commerce-hero {
    background:
        radial-gradient(circle at 8% 8%, rgba(16,185,129,0.22), transparent 32%),
        radial-gradient(circle at 82% 0%, rgba(34,211,238,0.22), transparent 32%),
        linear-gradient(135deg, rgba(15,23,42,0.96), rgba(8,47,73,0.62));
}

.wallet-theme .commerce-hero {
    background:
        radial-gradient(circle at 10% 12%, rgba(250,204,21,0.18), transparent 32%),
        radial-gradient(circle at 86% 8%, rgba(16,185,129,0.24), transparent 34%),
        linear-gradient(135deg, rgba(15,23,42,0.96), rgba(20,83,45,0.54));
}

.commerce-hero-copy h2 {
    margin: 0.6rem 0 0.55rem;
    font-size: clamp(2rem, 5vw, 3.15rem);
    line-height: 1.05;
    letter-spacing: -1.5px;
}

.commerce-hero-copy .lead {
    max-width: 640px;
    color: #cbd5e1;
    line-height: 1.72;
}

.commerce-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.35rem;
}

.commerce-badges span {
    padding: 0.48rem 0.72rem;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 999px;
    background: rgba(2,6,23,0.3);
    color: #e2e8f0;
    font-size: 0.8rem;
    font-weight: 800;
}

.commerce-visual,
.wallet-stack,
.static-hero-panel {
    position: relative;
    min-height: 250px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    background: rgba(2,6,23,0.28);
    backdrop-filter: blur(16px);
}

.commerce-visual {
    display: grid;
    place-items: center;
}

.orbit-ring {
    position: absolute;
    border: 1px solid rgba(125,211,252,0.22);
    border-radius: 999px;
    animation: commerce-spin 18s linear infinite;
}

.ring-a { width: 210px; height: 210px; }
.ring-b { width: 150px; height: 150px; animation-direction: reverse; animation-duration: 14s; }

.visual-core {
    z-index: 2;
    display: grid;
    place-items: center;
    width: 116px;
    height: 116px;
    border-radius: 999px;
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    color: white;
    font-weight: 900;
    box-shadow: 0 22px 55px -24px rgba(34,211,238,0.8);
}

.network-node {
    position: absolute;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(15,23,42,0.88);
    border: 1px solid rgba(255,255,255,0.14);
    box-shadow: 0 14px 35px -24px rgba(15,23,42,0.9);
    animation: float-node 4s ease-in-out infinite;
}

.network-node img,
.flag-cluster img,
.product-flag-row img,
.country-chip img,
.static-stock-polished img {
    width: 26px;
    height: 18px;
    object-fit: cover;
    border-radius: 4px;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.2);
}

.node-us { top: 32px; left: 54px; }
.node-gb { top: 50px; right: 48px; animation-delay: 0.4s; }
.node-de { bottom: 42px; left: 74px; animation-delay: 0.8s; }
.node-sg { bottom: 54px; right: 68px; animation-delay: 1.2s; }

@keyframes commerce-spin {
    to { transform: rotate(360deg); }
}

@keyframes float-node {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.commerce-grid,
.static-commerce-grid,
.wallet-layout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.55fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.commerce-main-card,
.commerce-side-card,
.commerce-pay-card,
.commerce-result-card,
.resources-card-polished {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(148,163,184,0.16);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.012)),
        rgba(15,23,42,0.48);
    box-shadow: 0 24px 70px -58px rgba(15,23,42,0.9);
}

.commerce-main-card,
.commerce-side-card {
    padding: 1.25rem;
}

.visual-pack-grid button {
    position: relative;
    overflow: hidden;
    min-height: 128px;
    text-align: left;
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0%, rgba(99,102,241,0.16), transparent 42%),
        rgba(2,6,23,0.34);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.visual-pack-grid button::after {
    content: "";
    position: absolute;
    inset: auto -30% -55% 30%;
    height: 92px;
    background: radial-gradient(circle, rgba(34,211,238,0.18), transparent 62%);
    transition: transform 0.25s ease;
}

.visual-pack-grid button:hover,
.visual-pack-grid button.selected {
    transform: translateY(-4px);
    border-color: rgba(96,165,250,0.55);
    background: rgba(99,102,241,0.13);
}

.visual-pack-grid button:hover::after,
.visual-pack-grid button.selected::after {
    transform: translateY(-12px) scale(1.15);
}

.visual-pack-grid strong {
    display: block;
    margin: 0.28rem 0;
    color: #f8fafc;
    font-size: 1.55rem;
    letter-spacing: -0.6px;
}

.pack-top {
    display: inline-flex;
    color: #93c5fd;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.polished-input input,
.polished-static-form input,
.polished-static-form select {
    border-color: rgba(96,165,250,0.18);
    background: rgba(2,6,23,0.52);
}

.scenario-list,
.flow-steps {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.scenario-list div,
.flow-steps div {
    padding: 0.9rem;
    border: 1px solid rgba(148,163,184,0.14);
    border-radius: 15px;
    background: rgba(2,6,23,0.32);
}

.scenario-list span,
.flow-steps span {
    display: inline-flex;
    margin-bottom: 0.35rem;
    color: #67e8f9;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.scenario-list strong,
.flow-steps strong {
    display: block;
    color: #f8fafc;
}

.flow-steps small {
    display: block;
    margin-top: 0.22rem;
    color: var(--text-muted);
}

.commerce-price-hint {
    border-radius: 18px;
    border: 1px solid rgba(34,211,238,0.2);
    background:
        radial-gradient(circle at 100% 0%, rgba(34,211,238,0.14), transparent 48%),
        rgba(2,6,23,0.48);
}

.commerce-submit {
    min-height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    box-shadow: 0 18px 42px -24px rgba(34,211,238,0.8);
}

.wallet-stack {
    padding: 1.2rem;
}

.wallet-card {
    position: absolute;
    left: 50%;
    width: min(280px, 78%);
    padding: 1.15rem;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(15,23,42,0.92), rgba(15,118,110,0.52));
    box-shadow: 0 22px 55px -30px rgba(16,185,129,0.8);
}

.wallet-card span {
    color: #bbf7d0;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.wallet-card strong {
    display: block;
    margin-top: 0.5rem;
    color: #fff;
    font-size: 2rem;
}

.card-a { top: 46px; transform: translateX(-48%) rotate(-4deg); }
.card-b { top: 126px; transform: translateX(-40%) rotate(5deg); }

.wallet-coin {
    position: absolute;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    background: linear-gradient(135deg, #facc15, #10b981);
    color: #052e16;
    font-weight: 1000;
    box-shadow: 0 16px 35px -18px rgba(250,204,21,0.85);
    animation: float-node 4s ease-in-out infinite;
}

.coin-a { right: 42px; top: 38px; }
.coin-b { left: 42px; bottom: 38px; animation-delay: 0.7s; }

.static-hero-panel {
    display: grid;
    align-content: center;
    gap: 1rem;
    padding: 1.25rem;
}

.static-hero-panel .balance-number {
    width: 100%;
    justify-content: center;
    font-size: 1.45rem;
}

.flag-cluster,
.product-flag-row,
.country-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}

.flag-cluster img {
    width: 38px;
    height: 27px;
    border-radius: 8px;
    animation: float-node 4s ease-in-out infinite;
}

.flag-cluster img:nth-child(2n) { animation-delay: 0.5s; }
.flag-cluster img:nth-child(3n) { animation-delay: 1s; }

.static-hero-panel p {
    color: var(--text-muted);
    text-align: center;
}

.country-strip {
    margin: 0.35rem 0 1rem;
}

.country-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.62rem;
    border: 1px solid rgba(148,163,184,0.16);
    border-radius: 999px;
    background: rgba(2,6,23,0.35);
    color: #dbeafe;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.country-chip:hover,
.country-chip.active {
    transform: translateY(-2px);
    border-color: rgba(34,211,238,0.48);
    background: rgba(14,165,233,0.12);
}

.country-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 999px;
    background: #38bdf8;
    box-shadow: 0 0 0 4px rgba(56,189,248,0.12);
}

.static-stock-polished div {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.45rem 0.65rem;
}

.static-stock-polished div span {
    grid-column: 2;
}

@media (max-width: 980px) {
    .commerce-hero,
    .commerce-grid,
    .static-commerce-grid,
    .wallet-layout-grid {
        grid-template-columns: 1fr;
    }
    .commerce-visual,
    .wallet-stack,
    .static-hero-panel {
        min-height: 230px;
    }
}

@media (max-width: 680px) {
    .commerce-shell {
        padding: 0 1rem;
        margin-top: 1rem;
    }
    .commerce-hero,
    .commerce-main-card,
    .commerce-side-card,
    .commerce-pay-card,
    .commerce-result-card,
    .resources-card-polished {
        border-radius: 17px;
    }
    .visual-pack-grid strong {
        font-size: 1.3rem;
    }
    .commerce-visual {
        display: none;
    }
    .wallet-card {
        width: 86%;
    }
    .section-head-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* ============== 统一美化弹层 ============== */
.moo-dialog-root {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
}

.moo-dialog-backdrop {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: rgba(2,6,23,0.66);
    backdrop-filter: blur(14px);
    pointer-events: auto;
    animation: moo-backdrop-in 0.18s ease-out;
}

.moo-dialog-backdrop.closing {
    animation: moo-backdrop-out 0.16s ease-in forwards;
}

.moo-dialog-card {
    position: relative;
    overflow: hidden;
    width: min(440px, 100%);
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid rgba(148,163,184,0.18);
    border-radius: 22px;
    background:
        radial-gradient(circle at 100% 0%, rgba(99,102,241,0.2), transparent 42%),
        linear-gradient(180deg, rgba(30,41,59,0.96), rgba(15,23,42,0.98));
    box-shadow: 0 34px 90px -38px rgba(0,0,0,0.9);
    animation: moo-card-in 0.2s ease-out;
}

.moo-dialog-backdrop.closing .moo-dialog-card {
    animation: moo-card-out 0.16s ease-in forwards;
}

.moo-dialog-orb {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    color: white;
    font-weight: 1000;
    box-shadow: 0 18px 38px -20px rgba(34,211,238,0.9);
}

.moo-dialog-error .moo-dialog-orb {
    background: linear-gradient(135deg, #ef4444, #f97316);
}

.moo-dialog-success .moo-dialog-orb {
    background: linear-gradient(135deg, #10b981, #06b6d4);
}

.moo-dialog-content h3 {
    margin: 0 0 0.35rem;
    color: #f8fafc;
    font-size: 1.08rem;
    letter-spacing: -0.2px;
}

.moo-dialog-content p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.65;
    white-space: pre-wrap;
}

.moo-dialog-input {
    width: 100%;
    margin-top: 0.9rem;
    padding: 0.82rem 0.9rem;
    border: 1px solid rgba(96,165,250,0.24);
    border-radius: 12px;
    background: rgba(2,6,23,0.55);
    color: #f8fafc;
    outline: none;
    font: inherit;
}

.moo-dialog-input:focus {
    border-color: rgba(96,165,250,0.58);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.16);
}

.moo-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-top: 1.1rem;
}

.moo-dialog-btn {
    min-width: 86px;
    height: 38px;
    padding: 0 0.95rem;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.18);
    color: #e2e8f0;
    background: rgba(15,23,42,0.72);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.moo-dialog-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(96,165,250,0.44);
}

.moo-dialog-btn.primary {
    border-color: transparent;
    background: linear-gradient(135deg, #6366f1, #06b6d4);
    color: white;
    box-shadow: 0 16px 36px -24px rgba(34,211,238,0.8);
}

.moo-dialog-btn.secondary {
    color: #94a3b8;
}

@keyframes moo-backdrop-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes moo-backdrop-out {
    to { opacity: 0; }
}

@keyframes moo-card-in {
    from { opacity: 0; transform: translateY(12px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes moo-card-out {
    to { opacity: 0; transform: translateY(8px) scale(0.985); }
}

.method-icon-wallet {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #ffffff;
}

.article-editor-form {
    display: grid;
    gap: 1rem;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.85rem;
}

.admin-form-grid label,
.admin-wide-label {
    display: grid;
    gap: 0.4rem;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.admin-form-grid input,
.admin-form-grid select,
.admin-wide-label input,
.admin-wide-label textarea {
    width: 100%;
    border: 1px solid rgba(148,163,184,0.18);
    border-radius: 14px;
    background: rgba(15,23,42,0.62);
    color: var(--text-main);
    padding: 0.78rem 0.9rem;
    outline: none;
    font: inherit;
}

.admin-wide-label textarea {
    resize: vertical;
    min-height: 72px;
}

#article-content-input {
    min-height: 300px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    line-height: 1.65;
}

.article-upload-row,
.article-editor-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.article-content {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
    color: #dbeafe;
    line-height: 1.8;
}

.article-content img {
    max-width: 100%;
    border-radius: 18px;
    border: 1px solid rgba(148,163,184,0.18);
}

.article-detail {
    max-width: 860px;
    margin: 0 auto;
    padding: 2rem;
    border: 1px solid rgba(148,163,184,0.16);
    border-radius: 28px;
    background: rgba(15,23,42,0.72);
}

@media (max-width: 560px) {
    .moo-dialog-card {
        grid-template-columns: 1fr;
    }
    .moo-dialog-actions {
        flex-direction: column-reverse;
    }
    .moo-dialog-btn {
        width: 100%;
    }
}
