/* ===== RUT TIEN PAGE ===== */

.withdraw-page {
    padding: 40px 0 80px;
}

.withdraw-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
}

@media (max-width: 900px) {
    .withdraw-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .withdraw-page {
        padding: 24px 0 60px;
    }

    .withdraw-page-header h1 {
        font-size: 1.3rem;
    }

    .balance-card {
        padding: 18px 20px;
    }

    .balance-amount {
        font-size: 1.7rem;
    }

    .wd-card {
        padding: 16px 16px;
    }
}

@media (max-width: 480px) {
    .balance-amount {
        font-size: 1.4rem;
    }

    .method-options {
        flex-direction: column;
    }

    .method-option {
        min-width: auto;
    }
}

/* ---- Page header ---- */
.withdraw-page-header {
    margin-bottom: 28px;
}

.withdraw-page-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.withdraw-page-header p {
    color: var(--text-soft);
    font-size: 0.92rem;
}

/* ---- Balance card ---- */
.balance-card {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #1e3a5f 100%);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.balance-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(99,102,241,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.balance-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 8px;
}

.balance-amount {
    font-size: 2.2rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.balance-avail {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
}

.balance-avail strong { color: #a5b4fc; }

/* ---- Section title ---- */
.section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 20px 0 12px;
}

/* ---- Card blocks ---- */
.wd-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    margin-bottom: 14px;
}

.wd-card h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text-main);
}

/* ---- Method selector ---- */
.method-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.method-option {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 130px;
    padding: 12px 16px;
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    background: var(--bg-elevated-soft);
}

.method-option:hover { border-color: var(--accent); }

.method-option.selected {
    border-color: var(--accent);
    background: var(--accent-soft);
}

.method-option input[type="radio"] { display: none; }

.method-logo {
    width: 40px;
    height: 28px;
    border-radius: 5px;
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.method-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
}

/* ---- Method detail panels ---- */
.method-panel { display: none; }
.method-panel.active { display: block; }

/* ---- Form elements ---- */
.form-group {
    margin-bottom: 14px;
}

.form-group:last-child { margin-bottom: 0; }

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 13px;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.9rem;
    transition: var(--transition-fast);
    font-family: inherit;
}

.form-group textarea { resize: vertical; }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-soft); }

.form-group select option { background: var(--bg-elevated); }

.form-hint {
    font-size: 0.78rem;
    color: var(--text-soft);
    margin-top: 6px;
    line-height: 1.6;
}

/* ---- Amount chips ---- */
.amount-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.amount-chip {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-elevated-soft);
    color: var(--text-soft);
    font-size: 0.82rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.amount-chip:hover,
.amount-chip.active {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

/* ---- Submit button ---- */
.btn-withdraw {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--accent), var(--accent-alt));
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    font-family: inherit;
}

.btn-withdraw:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

/* ---- Right sidebar cards ---- */
.info-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px 22px;
    margin-bottom: 14px;
}

.info-card h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 7px;
}

.info-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.info-card ul li {
    font-size: 0.83rem;
    color: var(--text-muted);
    padding-left: 14px;
    position: relative;
    line-height: 1.55;
}

.info-card ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* ---- History table ---- */
.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.history-table th {
    text-align: left;
    padding: 8px 0;
    color: var(--text-soft);
    font-weight: 500;
    border-bottom: 1px solid var(--border-subtle);
}

.history-table td {
    padding: 9px 0;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.history-table tbody tr:last-child td { border-bottom: none; }

.history-empty {
    text-align: center;
    padding: 20px 0;
    color: var(--text-soft);
    font-size: 0.82rem;
}

/* ---- Status badge ---- */
.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
}

.status-badge.pending {
    background: rgba(245,158,11,0.15);
    color: #f59e0b;
}

.status-badge.done {
    background: rgba(16,185,129,0.15);
    color: #10b981;
}

.status-badge.rejected {
    background: rgba(239,68,68,0.15);
    color: #ef4444;
}
