.transfer-hero {
    position: relative;
    min-height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    text-align: center;
    overflow: hidden;
}

.transfer-hero .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/hero/h3.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: 1;
}

.transfer-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(52, 70, 151, 0.85) 0%, 
        rgba(79, 172, 254, 0.75) 100%);
    z-index: 2;
}

.transfer-hero .container {
    position: relative;
    z-index: 3;
}

.transfer-hero .hero-icon {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.transfer-hero .hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.transfer-hero .hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.95;
    max-width: 650px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.search-section {
    padding: 5rem 0;
    background: var(--bg-color);
    position: relative;
}

.search-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, 
        rgba(52, 70, 151, 0.05) 0%, 
        transparent 100%);
}

.search-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 3.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
}

.search-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.search-form h3 {
    color: var(--text-color);
    margin-bottom: 2.5rem;
    font-size: 1.8rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 2.5rem;
    text-align: right;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--text-color);
    font-weight: 600;
    font-size: 1.1rem;
}

.form-group input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border: 2px solid var(--card-border);
    border-radius: 12px;
    font-size: 1.1rem;
    background: var(--input-bg);
    color: var(--text-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(52, 70, 151, 0.15), 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.search-btn {
    background: #344697 !important;
    color: #ffffff !important;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 8px 20px rgba(52, 70, 151, 0.3);
    position: relative;
    overflow: hidden;
}

.search-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.search-btn:hover::before {
    left: 100%;
}

.search-btn:hover {
    background: #253163 !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(52, 70, 151, 0.4);
}

.search-btn:active {
    transform: translateY(-1px);
}

.search-type-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.search-type-btn {
    flex: 1;
    max-width: 200px;
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 2px solid var(--card-border);
    background: var(--card-bg);
}

.search-type-btn input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.search-type-btn .btn-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.2rem 1rem;
    color: var(--text-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.search-type-btn .btn-content i {
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.search-type-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.search-type-btn:hover .btn-content i {
    color: var(--primary-color);
    transform: scale(1.1);
}

.search-type-btn.active {
    background: #344697;
    border-color: #344697;
    box-shadow: 0 8px 20px rgba(52, 70, 151, 0.3);
    transform: translateY(-2px);
}

.search-type-btn.active .btn-content {
    color: white;
}

.search-type-btn.active .btn-content i {
    color: white;
    transform: scale(1.1);
}

@media (max-width: 480px) {
    .search-type-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .search-type-btn {
        max-width: none;
    }
}

.results-section {
    padding: 2rem 0 4rem;
    background: var(--bg-color);
}

.results-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--card-border);
    animation: slideUp 0.5s ease-out;
}

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

.result-success {
    border-left: 5px solid #10b981;
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.1);
}

.result-error {
    border-left: 5px solid #ef4444;
    text-align: center;
    box-shadow: 0 20px 40px rgba(239, 68, 68, 0.1);
}

.result-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--card-border);
}

.result-icon {
    font-size: 2.5rem;
    color: #10b981;
    animation: bounce 1s ease-in-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.result-title {
    color: var(--text-color);
    font-size: 1.8rem;
    font-weight: 600;
    margin: 0;
}

.transfer-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.8rem;
}

.detail-item {
    background: var(--bg-color);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.detail-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.detail-item:hover::before {
    transform: scaleX(1);
}

.detail-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.detail-label {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 1.2rem;
    color: var(--text-color);
    font-weight: 700;
    word-break: break-word;
}

.amount-highlight {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--btn-text-color, white);
    text-align: center;
    transform: scale(1.05);
    box-shadow: 0 12px 25px var(--primary-shadow, rgba(52, 70, 151, 0.3));
}

.amount-highlight .detail-label {
    color: rgba(255,255,255,0.9);
}

.amount-highlight .detail-value {
    color: var(--btn-text-color, white);
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

.error-message {
    text-align: center;
    color: #ef4444;
    font-size: 1.2rem;
    padding: 2rem;
}

.error-message h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.error-icon {
    font-size: 4rem;
    color: #ef4444;
    margin-bottom: 1.5rem;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    color: var(--text-color);
}

.loading-spinner i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .transfer-hero .hero-title {
        font-size: 2rem;
    }
    
    .search-card {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .transfer-details {
        grid-template-columns: 1fr;
    }
    
    .results-card {
        margin: 0 1rem;
        padding: 1.5rem;
    }
}