/* ========================================
   PAYMENT PAGE - PROFESSIONAL STYLES
   ======================================== */

/* ============================================
   1. PAGE HERO SECTION
   ============================================ */

.page-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 8rem 2rem 5rem;
    background: linear-gradient(135deg, 
        rgba(108, 99, 255, 0.03) 0%, 
        rgba(0, 212, 255, 0.02) 100%);
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, 
        rgba(108, 99, 255, 0.1) 0%, 
        transparent 70%);
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
    margin: 0 auto;
}

.page-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin: 1rem 0;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.page-hero-desc {
    color: var(--text-secondary);
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.8;
    max-width: 620px;
    margin: 1.5rem auto 0;
}

/* ============================================
   2. PAYMENT METHODS SECTION
   ============================================ */

.payment-section {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
}

.payment-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 20px;
}

/* Payment Card Base */
.payment-method-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* Top Border Animation */
.payment-method-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #6c63ff, #00d4ff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Hover Effects */
.payment-method-card:hover {
    transform: translateY(-12px);
    border-color: rgba(108, 99, 255, 0.5);
    box-shadow: 0 30px 70px rgba(108, 99, 255, 0.18);
}

.payment-method-card:hover::before {
    transform: scaleX(1);
}

/* Featured Card */
.payment-method-card.featured-payment {
    background: linear-gradient(135deg, 
        rgba(108, 99, 255, 0.08) 0%, 
        rgba(0, 212, 255, 0.05) 100%);
    border-color: rgba(108, 99, 255, 0.5);
    padding-top: 3.2rem;
    box-shadow: 0 10px 40px rgba(108, 99, 255, 0.15);
}

.payment-method-card.featured-payment::before {
    transform: scaleX(1);
}

/* Payment Badges */
.payment-badge {
    display: inline-block;
    background: rgba(108, 99, 255, 0.1);
    color: #6c63ff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 25px;
    letter-spacing: 1.8px;
    border: 1px solid rgba(108, 99, 255, 0.25);
    text-transform: uppercase;
}

.payment-badge.featured {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #6c63ff, #00d4ff);
    color: white;
    border: none;
    box-shadow: 0 6px 20px rgba(108, 99, 255, 0.45);
    z-index: 10;
    white-space: nowrap;
    padding: 9px 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: translateX(-50%) scale(1); }
    50% { transform: translateX(-50%) scale(1.05); }
}

/* Payment Icon */
.payment-icon {
    width: 85px;
    height: 85px;
    background: linear-gradient(135deg, 
        rgba(108, 99, 255, 0.12), 
        rgba(0, 212, 255, 0.08));
    border: 2px solid rgba(108, 99, 255, 0.25);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: #6c63ff;
    margin: 0 auto 1.8rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.payment-method-card:hover .payment-icon {
    background: linear-gradient(135deg, #6c63ff, #00d4ff);
    color: white;
    transform: rotate(-8deg) scale(1.12);
    box-shadow: 0 15px 40px rgba(108, 99, 255, 0.4);
    border-color: transparent;
}

/* Custom Icon Colors */
.payoneer-icon { color: #FF4800 !important; }
.wise-icon { color: #9FE870 !important; }
.bank-icon { color: #00d4ff !important; }

.payment-method-card:hover .payoneer-icon,
.payment-method-card:hover .wise-icon,
.payment-method-card:hover .bank-icon {
    color: white !important;
}

/* Card Title */
.payment-method-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

/* Description */
.payment-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.8rem;
}

/* Features List */
.payment-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    text-align: left;
    flex-grow: 1;
}

.payment-features li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
    line-height: 1.6;
}

.payment-features li i {
    color: #00d4ff;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Payment Button */
.payment-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    width: 100%;
    padding: 1.1rem 1.8rem;
    background: linear-gradient(135deg, #6c63ff, #00d4ff);
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.payment-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255,255,255,0.3), 
        transparent);
    transition: left 0.7s ease;
}

.payment-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(108, 99, 255, 0.45);
}

.payment-btn:hover::before {
    left: 100%;
}

.payment-btn:active {
    transform: translateY(-1px);
}

/* Info Note */
.payment-info-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1.2rem;
    padding: 1rem;
    background: rgba(0, 212, 255, 0.06);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

.payment-info-note i {
    color: #00d4ff;
    flex-shrink: 0;
}

/* ============================================
   3. CURRENCIES SECTION
   ============================================ */

.currencies-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.currencies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.8rem;
    max-width: 950px;
    margin: 0 auto;
}

.currency-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.8rem 1.5rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.currency-card:hover {
    transform: translateY(-8px);
    border-color: rgba(108, 99, 255, 0.5);
    box-shadow: 0 20px 40px rgba(108, 99, 255, 0.12);
}

.currency-flag {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, 
        rgba(108, 99, 255, 0.1), 
        rgba(0, 212, 255, 0.05));
    border: 1px solid rgba(108, 99, 255, 0.25);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    padding: 8px;
    overflow: hidden;
    transition: all 0.4s ease;
}

.currency-card:hover .currency-flag {
    background: linear-gradient(135deg, #6c63ff, #00d4ff);
    border-color: transparent;
    transform: scale(1.1) rotate(-5deg);
}

.currency-flag .fi {
    width: 100% !important;
    height: 100% !important;
    border-radius: 8px;
    background-size: cover !important;
    background-position: center !important;
}

.currency-card h4 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.currency-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================================
   4. PAYMENT PROCESS SECTION
   ============================================ */

.payment-process-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.process-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.process-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.2rem 1.8rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.process-card:hover {
    transform: translateY(-10px);
    border-color: rgba(108, 99, 255, 0.5);
    box-shadow: 0 20px 45px rgba(108, 99, 255, 0.12);
}

.process-num {
    position: absolute;
    top: 12px;
    right: 18px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, 
        rgba(108, 99, 255, 0.25), 
        rgba(0, 212, 255, 0.15));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.6;
    line-height: 1;
}

.process-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, 
        rgba(108, 99, 255, 0.12), 
        rgba(0, 212, 255, 0.08));
    border: 2px solid rgba(108, 99, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: #6c63ff;
    margin: 0 auto 1.5rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.process-card:hover .process-icon {
    background: linear-gradient(135deg, #6c63ff, #00d4ff);
    color: white;
    transform: rotate(-8deg) scale(1.15);
    box-shadow: 0 10px 30px rgba(108, 99, 255, 0.35);
    border-color: transparent;
}

.process-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.7rem;
    font-weight: 600;
}

.process-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ============================================
   5. PAYMENT TERMS SECTION
   ============================================ */

.payment-terms-section {
    padding: 100px 0;
    background: var(--bg-primary);
}

.terms-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 5rem;
    align-items: start;
}

.terms-content .section-title {
    text-align: left;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    margin-bottom: 1rem;
}

.terms-content .section-desc {
    text-align: left;
    margin: 0 0 2.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

.terms-list {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}

.term-item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1.4rem 1.3rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.term-item:hover {
    transform: translateX(8px);
    border-color: rgba(108, 99, 255, 0.5);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.1);
}

.term-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, 
        rgba(108, 99, 255, 0.15), 
        rgba(0, 212, 255, 0.08));
    border: 1px solid rgba(108, 99, 255, 0.25);
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #6c63ff;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.term-item:hover .term-icon {
    background: linear-gradient(135deg, #6c63ff, #00d4ff);
    color: white;
    transform: scale(1.1);
}

.term-text h4 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
    font-weight: 600;
}

.term-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Security Card */
.security-card {
    background: linear-gradient(135deg, 
        rgba(108, 99, 255, 0.08), 
        rgba(0, 212, 255, 0.04));
    border: 1px solid rgba(108, 99, 255, 0.35);
    border-radius: var(--radius-lg);
    padding: 2.8rem 2.3rem;
    position: sticky;
    top: 100px;
    box-shadow: 0 10px 40px rgba(108, 99, 255, 0.08);
}

.security-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.8rem;
    padding-bottom: 1.8rem;
    border-bottom: 1px solid rgba(108, 99, 255, 0.25);
}

.security-header i {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #6c63ff, #00d4ff);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: white;
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.3);
}

.security-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
}

.security-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.security-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    border-bottom: 1px solid rgba(108, 99, 255, 0.12);
    transition: all 0.3s ease;
}

.security-list li:last-child {
    border-bottom: none;
}

.security-list li:hover {
    color: var(--text-primary);
    padding-left: 0.5rem;
}

.security-list li i {
    color: #00d4ff;
    font-size: 1rem;
    width: 22px;
    flex-shrink: 0;
}

/* ============================================
   6. FAQ SECTION
   ============================================ */

.faq-section {
    padding: 100px 0;
    background: var(--bg-secondary);
}

.faq-grid {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.faq-item:hover {
    border-color: rgba(108, 99, 255, 0.4);
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.08);
}

.faq-item.active {
    border-color: rgba(108, 99, 255, 0.6);
    background: linear-gradient(135deg, 
        rgba(108, 99, 255, 0.06), 
        transparent);
    box-shadow: 0 12px 35px rgba(108, 99, 255, 0.12);
}

.faq-question {
    padding: 1.5rem 1.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 500;
    transition: all 0.3s ease;
    user-select: none;
}

.faq-question:hover {
    color: #6c63ff;
}

.faq-question i {
    color: #6c63ff;
    font-size: 1rem;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                padding 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 1.8rem 1.8rem;
}

.faq-answer p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.8;
}

/* ============================================
   7. RESPONSIVE DESIGN
   ============================================ */

/* Tablets and Below */
@media (max-width: 1024px) {
    .payment-methods-grid {
        grid-template-columns: 1fr;
        max-width: 550px;
        margin: 0 auto;
    }
    
    .currencies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .terms-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .security-card {
        position: static;
    }
    
    .terms-content .section-title {
        text-align: center;
    }
    
    .terms-content .section-desc {
        text-align: center;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .page-hero {
        padding: 6rem 1.5rem 3rem;
        min-height: 40vh;
    }
    
    .payment-section,
    .currencies-section,
    .payment-process-section,
    .payment-terms-section,
    .faq-section {
        padding: 60px 0;
    }
    
    .payment-method-card {
        padding: 2rem 1.5rem;
    }
    
    .process-steps-grid {
        grid-template-columns: 1fr;
    }
    
    .currencies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
    
    .currency-card {
        padding: 1.3rem 1rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .page-hero-title {
        font-size: 2rem;
    }
    
    .payment-badge.featured {
        font-size: 0.65rem;
        padding: 7px 14px;
    }
    
    .payment-icon {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .payment-method-card h3 {
        font-size: 1.4rem;
    }
    
    .currencies-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-question {
        font-size: 0.95rem;
        padding: 1.2rem 1.3rem;
    }
}

/* ============================================
   8. UTILITY ANIMATIONS
   ============================================ */

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(108, 99, 255, 0.3); }
    50% { box-shadow: 0 0 40px rgba(108, 99, 255, 0.6); }
}

/* Add subtle float to featured card */
.payment-method-card.featured-payment {
    animation: float 4s ease-in-out infinite;
}

/* ============================================
   9. ACCESSIBILITY IMPROVEMENTS
   ============================================ */

.payment-btn:focus,
.faq-question:focus {
    outline: 2px solid #6c63ff;
    outline-offset: 3px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   10. PRINT STYLES
   ============================================ */

@media print {
    .payment-btn,
    .payment-badge.featured {
        display: none;
    }
    
    .payment-method-card,
    .currency-card,
    .process-card,
    .term-item {
        break-inside: avoid;
    }
}