/* ===== 弹窗 ===== */
    .modal {
        display: none;
        position: fixed;
        top: 0; left: 0; right: 0; bottom: 0;
        background: rgba(0,0,0,0.4);
        z-index: 200;
        align-items: center;
        justify-content: center;
        padding: 20px;
        backdrop-filter: blur(4px);
    }
    .modal.show { display: flex; }
    .modal-content {
        background: var(--card);
        border-radius: var(--radius-lg);
        padding: 0;
        max-width: 480px;
        width: 100%;
        max-height: 90vh;
        overflow-y: auto;
        box-shadow: var(--shadow-xl);
        border: 1px solid var(--border);
    }
    .recharge-modal {
        padding: 0 28px 28px;
    }
    .recharge-modal .modal-header {
        padding: 24px 0 16px;
    }

/* ===== 登录/注册弹窗 ===== */
    .auth-modal {
        padding: 0 32px 32px;
    }
    .auth-modal .modal-header {
        padding: 24px 0 16px;
    }
    .auth-modal .auth-subtitle {
        text-align: center;
        margin-bottom: 24px;
        color: #666;
        font-size: 14px;
    }
    .auth-modal .input-group {
        margin-bottom: 20px;
    }
    .auth-modal .input-group input {
        width: 100%;
        padding: 12px 14px;
        border: 2px solid #e0e0e0;
        border-radius: 8px;
        font-size: 14px;
        outline: none;
        transition: border-color 0.2s;
        box-sizing: border-box;
    }
    .auth-modal .input-group input:focus {
        border-color: var(--brand);
    }
    .auth-modal .input-group input:not(:last-child) {
        margin-bottom: 12px;
    }
    .sms-code-row {
        display: flex;
        gap: 10px;
        align-items: center;
    }
    .sms-code-row input {
        flex: 1;
        margin-bottom: 0 !important;
    }
    .sms-code-row .btn {
        white-space: nowrap;
        padding: 12px 16px;
        font-size: 13px;
    }
    .auth-modal .auth-footer {
        text-align: center;
        font-size: 14px;
        margin-top: 4px;
    }
    .modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px 24px 0;
    }
    .modal-title {
        font-size: 18px;
        font-weight: 600;
        color: var(--text);
    }
    .modal-close {
        font-size: 24px;
        color: var(--text-muted);
        cursor: pointer;
        background: none;
        border: none;
        line-height: 1;
        padding: 4px;
    }
    .modal-close:hover { color: var(--text); }

/* ===== 充值区域 ===== */
    .recharge-options {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
        margin-bottom: 24px;
    }
    @media (max-width: 480px) {
        .recharge-options { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    }
    .recharge-option {
        border: 2px solid var(--border);
        border-radius: var(--radius);
        padding: 20px 10px;
        text-align: center;
        cursor: pointer;
        transition: all 0.2s;
        position: relative;
    }
    .recharge-option:hover,
    .recharge-option.selected {
        border-color: var(--brand);
        background: var(--brand-light);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
    }
    .recharge-amount {
        font-size: 18px;
        font-weight: 700;
        color: var(--text);
    }
    .recharge-gift {
        font-size: 12px;
        color: var(--success);
        font-weight: 600;
        margin-top: 6px;
    }
    .recharge-custom {
        margin-bottom: 24px;
    }
    .recharge-custom-label {
        font-size: 14px;
        color: var(--text-secondary);
        margin-bottom: 10px;
    }
    .recharge-custom-input-wrap {
        display: flex;
        align-items: center;
        border: 1px solid var(--border);
        border-radius: var(--radius);
        overflow: hidden;
    }
    .recharge-custom-prefix {
        padding: 12px 16px;
        background: var(--bg);
        color: var(--text-secondary);
        font-weight: 600;
        border-right: 1px solid var(--border);
        font-size: 16px;
    }
    .recharge-custom-input {
        flex: 1;
        border: none;
        padding: 12px 16px;
        font-size: 16px;
        outline: none;
    }
    .recharge-custom-input:focus {
        background: var(--brand-light);
    }
    .pay-methods {
        display: flex; gap: 16px;
        margin-bottom: 24px;
    }
    .pay-method {
        flex: 1;
        border: 2px solid var(--border);
        border-radius: var(--radius);
        padding: 16px;
        text-align: center;
        cursor: pointer;
        font-size: 14px;
        color: var(--text-secondary);
        transition: all 0.2s;
    }
    .pay-method.selected {
        border-color: var(--brand);
        background: var(--brand-light);
        color: var(--brand);
        font-weight: 600;
    }
    .pay-method:hover {
        border-color: var(--brand);
    }

/* ===== 广告弹窗 ===== */
    .ad-container { text-align: center; padding: 20px; }
    .ad-video {
        width: 100%; height: 240px;
        background: #1F2937;
        border-radius: var(--radius-sm);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 16px;
        margin-bottom: 16px;
    }
    .ad-timer {
        font-size: 16px; color: var(--brand);
        font-weight: 600;
    }