/* ═══════════════════════════════════════════════════════════════════════════
   METHOD SELECTION BUTTONS (بله / پیامک)
   ═══════════════════════════════════════════════════════════════════════════ */

.method-selection {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
    animation: fadeIn 0.4s ease-out;
}

.method-selection.hidden {
    display: none;
}

.btn-method {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    height: 52px;
    padding: 0 1.5rem;
    border: 2px solid transparent;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    overflow: hidden;
}

.btn-method .btn-loader {
    position: absolute;
    display: none;
}

.btn-method.loading .btn-text-inner {
    opacity: 0;
}

.btn-method.loading .btn-icon-method {
    opacity: 0;
}

.btn-method.loading .btn-loader {
    display: block;
}

/* Bale Button — Primary style (blue/teal) */
.btn-method-bale {
    background: linear-gradient(135deg, #00b894);
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 180, 216, 0.3);
}

.btn-method-bale:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 180, 216, 0.4);
}

.btn-method-bale:active:not(:disabled) {
    transform: translateY(0);
}

.btn-method-bale:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-method-bale .btn-icon-method {
    font-size: 1.2rem;
}

/* SMS Button — Secondary style */
.btn-method-sms {
    background: var(--gray-50);
    color: var(--gray-700);
    border-color: var(--gray-200);
}

.btn-method-sms:hover:not(:disabled) {
    background: var(--gray-100);
    border-color: var(--gray-300);
    transform: translateY(-1px);
}

.btn-method-sms:active:not(:disabled) {
    transform: translateY(0);
}

.btn-method-sms:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-method-sms .btn-icon-method {
    font-size: 1.1rem;
    color: var(--gray-500);
}

/* Method divider */
.method-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--gray-400);
}

.method-divider::before,
.method-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

/* Free badge on Bale button */
.badge-free {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-right: 0.25rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   METHOD BADGE (shown in OTP step)
   ═══════════════════════════════════════════════════════════════════════════ */

.method-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.method-badge.hidden {
    display: none;
}

.method-badge.method-bale {
    background: rgba(0, 180, 216, 0.1);
    color: #0096c7;
    border: 1px solid rgba(0, 180, 216, 0.2);
}

.method-badge.method-sms {
    background: rgba(100, 116, 139, 0.1);
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
}

.method-badge i {
    font-size: 0.85rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   FALLBACK AREA (shown after 30 seconds)
   ═══════════════════════════════════════════════════════════════════════════ */

.fallback-area {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border: 1px dashed var(--gray-200);
    border-radius: var(--radius-md);
    text-align: center;
    animation: fadeIn 0.4s ease-out;
}

.fallback-area.hidden {
    display: none;
}

.fallback-text {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
}

.fallback-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-fallback {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 42px;
    padding: 0 1rem;
    border: none;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    overflow: hidden;
}

.btn-fallback .btn-loader {
    position: absolute;
    display: none;
}

.btn-fallback.loading .btn-text-inner,
.btn-fallback.loading .btn-icon-method {
    opacity: 0;
}

.btn-fallback.loading .btn-loader {
    display: block;
}

.btn-fallback.hidden {
    display: none;
}

.btn-fallback i {
    font-size: 1rem;
}

/* Fallback Bale */
.btn-fallback-bale {
    background: linear-gradient(135deg, #00b4d8, #0096c7);
    color: var(--white);
}

.btn-fallback-bale:hover:not(:disabled) {
    opacity: 0.9;
}

/* Fallback SMS */
.btn-fallback-sms {
    background: var(--gradient-gold);
    color: var(--primary-900);
}

.btn-fallback-sms:hover:not(:disabled) {
    opacity: 0.9;
}

/* Fallback Call */
.btn-fallback-call {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-fallback-call:hover:not(:disabled) {
    background: var(--gray-300);
}

/* Spinner for method/fallback buttons */
.btn-method .spinner,
.btn-fallback .spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--white);
    animation: spin 0.8s linear infinite;
}

.btn-method-sms .spinner {
    border-color: rgba(0, 0, 0, 0.15);
    border-top-color: var(--gray-700);
}

.btn-fallback-sms .spinner {
    border-color: rgba(0, 0, 0, 0.15);
    border-top-color: var(--primary-900);
}

.btn-fallback-call .spinner {
    border-color: rgba(0, 0, 0, 0.15);
    border-top-color: var(--gray-700);
}
