.setup-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    margin-top: 80px;
}

.setup-card {
    max-width: 550px;
    width: 100%;
    background: white;
    border-radius: 32px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.setup-header {
    background: linear-gradient(135deg, #da0b4e, #4f46e5);
    padding: 32px;
    text-align: center;
    color: white;
}

.setup-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.setup-header p {
    font-size: 14px;
    opacity: 0.9;
}

.setup-content {
    padding: 32px;
}

.alert {
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.alert-success {
    background: #d1fae5;
    border-left: 4px solid #10b981;
    color: #065f46;
}

.alert-error {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.alert-info {
    background: #e0f2fe;
    border-left: 4px solid #3b82f6;
    color: #075985;
}

.alert-warning {
    background: #fed7aa;
    border-left: 4px solid #f59e0b;
    color: #92400e;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1e293b;
    font-size: 14px;
}

.form-group label i {
    color: #da0b4e;
    margin-right: 8px;
}

.country-select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s;
    cursor: pointer;
}

.country-select:focus {
    outline: none;
    border-color: #da0b4e;
    box-shadow: 0 0 0 3px rgba(218, 11, 78, 0.1);
}

.phone-input-group {
    display: flex;
    gap: 12px;
    align-items: center;
}

.country-code {
    background: #f1f5f9;
    padding: 14px 18px;
    border-radius: 16px;
    font-weight: 600;
    color: #1e293b;
    border: 2px solid #e2e8f0;
    font-size: 14px;
    min-width: 90px;
    text-align: center;
}

.phone-input-group input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 14px;
    transition: all 0.3s;
    font-family: 'Inter', sans-serif;
}

.phone-input-group input:focus {
    outline: none;
    border-color: #da0b4e;
    box-shadow: 0 0 0 3px rgba(218, 11, 78, 0.1);
}

.phone-input-group input.error {
    border-color: #ef4444;
}

.phone-input-group input.valid {
    border-color: #10b981;
}

.phone-helper {
    margin-top: 8px;
    font-size: 12px;
    color: #64748b;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.digit-counter {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.digit-counter.success {
    color: #10b981;
}

.digit-counter.error {
    color: #ef4444;
}

.validation-error {
    color: #ef4444;
    font-size: 12px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.toggle-group {
    background: #f8fafc;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.toggle-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.toggle-header h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    transition: 0.3s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background: linear-gradient(135deg, #da0b4e, #4f46e5);
}

input:checked + .toggle-slider:before {
    transform: translateX(24px);
}

.checkbox-group {
    margin: 16px 0;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    cursor: pointer;
}

.checkbox-item input {
    width: 18px;
    height: 18px;
    accent-color: #da0b4e;
    cursor: pointer;
}

.checkbox-item span {
    font-size: 14px;
    color: #334155;
}

.frequency-badge {
    background: #e8f4fd;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    color: #0c5460;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.frequency-badge.warning {
    background: #fee2e2;
    color: #991b1b;
}

.btn-group {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn_primary {
    flex: 1;
    background: linear-gradient(135deg, #da0b4e, #4f46e5);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn_primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn_primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px -8px rgba(218, 11, 78, 0.4);
}

.btn_secondary {
    flex: 1;
    background: white;
    border: 2px solid #e2e8f0;
    color: #64748b;
    padding: 14px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn_secondary:hover {
    border-color: #da0b4e;
    color: #da0b4e;
}

.legal-text {
    margin-top: 24px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 16px;
    font-size: 11px;
    color: #64748b;
    line-height: 1.5;
    text-align: center;
}

.legal-text i {
    color: #da0b4e;
    margin-right: 6px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top-color: #da0b4e;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

@media (max-width: 550px) {
    .setup-content {
        padding: 24px;
    }
    
    .phone-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .country-code {
        text-align: center;
    }
    
    .btn-group {
        flex-direction: column;
    }
}