.withdrawal-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.withdrawal-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.withdrawal-modal {
    background: var(--bg, #faf5f6);
    border: 1px solid var(--border, rgba(255,255,255,0.15));
    border-radius: var(--radius, 16px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-width: 420px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.95) translateY(10px);
    transition: all 0.25s ease;
    position: relative;
}

.withdrawal-modal-overlay.active .withdrawal-modal {
    transform: scale(1) translateY(0);
}

.withdrawal-modal-header {
    padding: 24px 24px 0;
    text-align: center;
    position: relative;
}

.withdrawal-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 20px;
    color: var(--muted, #6b7280);
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    line-height: 1;
}

.withdrawal-modal-close:hover {
    background: rgba(0,0,0,0.05);
    color: var(--text);
}

.withdrawal-modal h2 {
    font-family: var(--font-display, 'Poppins', sans-serif);
    font-size: 1.05rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f87171, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.withdrawal-modal .modal-subtitle {
    color: var(--muted, #6b7280);
    font-family: var(--font-body, 'DM Sans', sans-serif);
    font-size: 0.85rem;
    margin-bottom: 0;
    line-height: 1.5;
}

.withdrawal-modal-body {
    padding: 20px 24px 24px;
}

.withdrawal-modal .form-group {
    margin-bottom: 16px;
}

.withdrawal-modal label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted, #374151);
    margin-bottom: 6px;
    font-family: var(--font-body, 'DM Sans', sans-serif);
    letter-spacing: -0.01em;
}

.withdrawal-modal input,
.withdrawal-modal select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: var(--radius-sm, 10px);
    font-size: 0.88rem;
    font-family: var(--font-body, 'DM Sans', sans-serif);
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    background: #ffffff;
    color: var(--text, #1f2937);
}

.withdrawal-modal input:focus,
.withdrawal-modal select:focus {
    outline: none;
    border-color: rgba(124,58,237,0.4);
    box-shadow: 0 0 0 3px rgba(124,58,237,0.08);
}

.withdrawal-modal .btn-withdraw {
    width: 100%;
    background: linear-gradient(135deg, #f87171, #ef4444);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: var(--radius-sm, 10px);
    font-size: 0.92rem;
    font-weight: 600;
    font-family: var(--font-body, 'DM Sans', sans-serif);
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
    letter-spacing: -0.01em;
}

.withdrawal-modal .btn-withdraw:hover {
    box-shadow: 0 4px 16px rgba(248,113,113,0.3);
    transform: translateY(-1px);
}

.withdrawal-modal .btn-withdraw:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.withdrawal-modal .btn-withdraw .loading {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: withdrawal-spin 1s ease-in-out infinite;
    margin-right: 6px;
    vertical-align: middle;
}

@keyframes withdrawal-spin {
    to { transform: rotate(360deg); }
}

.withdrawal-modal .error-message {
    background: oklch(0.6 0.2 25 / 0.08);
    border: 1px solid oklch(0.6 0.2 25 / 0.2);
    color: oklch(0.55 0.2 25);
    padding: 10px 14px;
    border-radius: var(--radius-sm, 10px);
    margin-bottom: 14px;
    font-size: 0.82rem;
    font-family: var(--font-body, 'DM Sans', sans-serif);
    display: none;
    font-weight: 500;
}

.withdrawal-modal .success-content {
    text-align: center;
    padding: 16px 0;
}

.withdrawal-modal .success-content .success-icon {
    width: 52px;
    height: 52px;
    background: rgba(74,222,128,0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    color: #22c55e;
}

.withdrawal-modal .success-content .success-icon svg {
    width: 28px;
    height: 28px;
}

.withdrawal-modal .success-content h3 {
    font-family: var(--font-display, 'Poppins', sans-serif);
    font-size: 1.05rem;
    font-weight: 700;
    background: linear-gradient(135deg, #4ade80, #22c55e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.withdrawal-modal .success-content p {
    color: var(--muted, #6b7280);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 6px;
    font-family: var(--font-body, 'DM Sans', sans-serif);
}

.withdrawal-modal .success-content .note {
    background: rgba(251,191,36,0.08);
    border: 1px solid rgba(251,191,36,0.15);
    border-radius: var(--radius-sm, 10px);
    padding: 10px 14px;
    font-size: 0.78rem;
    color: var(--muted, #92400e);
    margin-top: 14px;
    line-height: 1.5;
}

.withdrawal-modal .legal-note {
    font-size: 0.75rem;
    color: var(--muted, #9ca3af);
    line-height: 1.5;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(0,0,0,0.06);
    font-family: var(--font-body, 'DM Sans', sans-serif);
}

@media (max-width: 480px) {
    .withdrawal-modal {
        width: 95%;
        margin: 16px;
    }

    .withdrawal-modal-header,
    .withdrawal-modal-body {
        padding-left: 18px;
        padding-right: 18px;
    }

    .withdrawal-modal-close {
        top: 10px;
        right: 10px;
    }
}