/**
 * SOFI Transfer Screen Styles - PalmPay Design
 * Clean, modern, professional
 */

.sofi-transfer-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f8f9fa;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sofi-transfer-screen.visible {
    transform: translateX(0);
}

/* Header */
.sofi-transfer-header {
    background: white;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e0e0e0;
}

.sofi-transfer-header h1 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    flex: 1;
    text-align: center;
}

.sofi-transfer-header .back-btn,
.sofi-transfer-header .menu-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Content */
.sofi-transfer-content {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Transfer Section */
.transfer-section {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
}

.section-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    font-size: 14px;
    color: #666;
}

.instant-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #00d09c;
    font-size: 12px;
    font-weight: 500;
}

/* Account Input */
.account-input-wrapper {
    position: relative;
    margin-bottom: 16px;
}

.account-input-wrapper input {
    width: 100%;
    padding: 18px 50px 18px 20px;
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: #f8f9fa;
    outline: none;
    transition: all 0.2s;
}

.account-input-wrapper input:focus {
    border-color: #5f27cd;
    background: white;
}

.clear-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Recipient Info */
.recipient-info {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f0f9ff;
    border: 2px solid #00d09c;
    border-radius: 12px;
    margin-bottom: 16px;
}

.recipient-info svg {
    width: 24px;
    height: 24px;
}

.recipient-info span {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

/* Primary Button */
.primary-btn {
    width: 100%;
    padding: 18px;
    background: #5f27cd;
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.primary-btn:hover {
    background: #4c1fb3;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(95, 39, 205, 0.3);
}

.primary-btn:active {
    transform: translateY(0);
}

.primary-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Section Header (Tabs) */
.section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 12px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.tab-btn.active {
    color: #5f27cd;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -13px;
    left: 0;
    right: 0;
    height: 2px;
    background: #5f27cd;
}

.search-btn {
    margin-left: auto;
    background: none;
    border: none;
    padding: 8px;
    color: #666;
    cursor: pointer;
}

/* Transfers List */
.transfers-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.transfer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
}

.transfer-item:hover {
    background: #f8f9fa;
}

.transfer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 700;
    flex-shrink: 0;
}

.transfer-details {
    flex: 1;
}

.transfer-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.transfer-phone {
    font-size: 13px;
    color: #666;
}

.loading, .empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #999;
    font-size: 14px;
}

/* Amount Screen */
.amount-screen {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

.recipient-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: 16px;
    margin-bottom: 32px;
}

.recipient-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 28px;
    font-weight: 700;
}

.recipient-name {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.recipient-phone {
    font-size: 14px;
    color: #666;
}

.amount-input-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
}

.amount-input-section .currency {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
}

.amount-input-section input {
    font-size: 48px;
    font-weight: 700;
    color: #1a1a1a;
    border: none;
    outline: none;
    text-align: center;
    max-width: 300px;
    background: transparent;
}

.quick-amounts {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.quick-amounts button {
    padding: 16px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-amounts button:hover {
    border-color: #5f27cd;
    color: #5f27cd;
}

.transfer-note input {
    width: 100%;
    padding: 16px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    margin-bottom: 24px;
}

/* PIN Screen */
.pin-screen {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

.pin-header {
    text-align: center;
    margin-bottom: 32px;
}

.pin-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.pin-header p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.transaction-summary {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 32px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.summary-row:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

.summary-row span:first-child {
    font-size: 14px;
    color: #666;
}

.summary-row span:last-child {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.summary-row .amount {
    font-size: 18px;
    font-weight: 700;
    color: #5f27cd;
}

.summary-row .free {
    color: #00d09c;
}

.pin-dots {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.pin-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    transition: all 0.2s;
}

.pin-dot.filled {
    background: #5f27cd;
    border-color: #5f27cd;
}

/* Numeric Keypad */
.numeric-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.numeric-keypad button {
    height: 64px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.1s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.numeric-keypad button:active {
    background: #f8f9fa;
    transform: scale(0.95);
}

.numeric-keypad button.empty {
    background: transparent;
    border: none;
    cursor: default;
}

.text-btn {
    width: 100%;
    padding: 16px;
    background: none;
    border: none;
    color: #5f27cd;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

/* Success Screen */
.success-screen {
    max-width: 500px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.success-icon {
    margin-bottom: 24px;
    animation: successPop 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.success-screen h2 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.success-amount {
    font-size: 36px;
    font-weight: 700;
    color: #5f27cd;
    margin: 0 0 8px 0;
}

.success-recipient {
    font-size: 16px;
    color: #666;
    margin: 0 0 32px 0;
}

.transaction-details {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
}

.detail-row:not(:last-child) {
    border-bottom: 1px solid #f0f0f0;
}

.detail-row span:first-child {
    font-size: 14px;
    color: #666;
}

.detail-row span:last-child {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.secondary-btn {
    width: 100%;
    padding: 18px;
    background: white;
    border: 2px solid #5f27cd;
    border-radius: 12px;
    color: #5f27cd;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.2s;
}

.secondary-btn:hover {
    background: #f8f9fa;
}

/* Processing State */
.sofi-transfer-screen.processing::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .amount-input-section input {
        font-size: 36px;
    }
    
    .success-amount {
        font-size: 32px;
    }
}
