/* assets/css/process.css */

/* Custom Scrollbar */
::-webkit-scrollbar{ width:8px; background:transparent; }
::-webkit-scrollbar-track{ background:#0a1929; }
::-webkit-scrollbar-thumb{ background:linear-gradient(180deg, rgba(25,118,210,0.5), rgba(21,101,192,0.6)); border-radius:8px; }
html{ scrollbar-width:thin; scrollbar-color:rgba(25,118,210,0.5) #0a1929; }

.process-page{
    min-height:100vh;
    padding-bottom:60px;
}

.process-page .container{
    max-width:1200px;
    margin:0 auto;
    padding:0 20px;
}

/* Progress Stepper */
.progress-stepper{
    padding:20px 0;
    background:transparent;
    border-bottom:1px solid rgba(25,118,210,0.12);
    margin-bottom:24px;
}

.progress-stepper .container{
    max-width:1200px;
    margin:0 auto;
    padding:0 20px;
}

.stepper-wrapper{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    max-width:100%;
    margin:0 auto;
    padding:0 30px;
}

.step{
    display:flex;
    flex-direction:column;
    align-items:center;
    flex:0 0 auto;
    text-align:center;
    position:relative;
}

.step:first-child{
    margin-left:0;
}

.step:last-child{
    margin-right:0;
}

.step-icon{
    width:22px;
    height:22px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(19,47,76,0.8);
    border:2px solid rgba(25,118,210,0.3);
    color:rgba(144,202,249,0.5);
    margin-bottom:6px;
    transition:all 0.3s ease;
}

.step-icon svg{
    width:10px;
    height:10px;
}

.step.active .step-icon{
    background:linear-gradient(135deg, #1976d2, #1e88e5);
    border-color:#1976d2;
    color:#fff;
    box-shadow:0 0 10px rgba(25,118,210,0.4);
}

.step.completed .step-icon{
    background:#2e7d32;
    border-color:#4caf50;
    color:#fff;
}

.step-circle{
    width:10px;
    height:10px;
    border-radius:50%;
    background:transparent;
    border:2px solid rgba(60,120,180,0.35);
    position:relative;
}

.step-circle::after{
    content:'';
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    width:4px;
    height:4px;
    border-radius:50%;
    background:rgba(60,120,180,0.4);
}

.step-content{
    display:flex;
    flex-direction:column;
    gap:2px;
}

.step-title{
    font-size:10px;
    color:rgba(227,242,253,0.75);
    font-weight:400;
    max-width:100px;
    line-height:1.3;
}

.step-status{
    font-size:8px;
    padding:2px 6px;
    border-radius:3px;
    font-weight:500;
    letter-spacing:0.2px;
}

.step-status.in-progress{
    background:rgba(13,92,168,0.8);
    color:#fff;
}

.step-status.awaited,
.step-status.pending{
    background:rgba(0,30,60,0.6);
    color:rgba(126,184,232,0.6);
    border:1px solid rgba(60,120,180,0.15);
}

.step-status.completed{
    background:#2e7d32;
    color:#fff;
}

.step-line{
    flex:1;
    height:2px;
    background:rgba(60,80,120,0.3);
    margin:11px 0 0;
    min-width:20px;
    align-self:flex-start;
}

.step-line.completed-line{
    background:linear-gradient(90deg, rgba(25,118,210,0.6), rgba(60,120,180,0.4));
}

/* Main Grid */
.process-grid{
    display:grid;
    grid-template-columns:1.4fr 1fr;
    gap:30px;
    max-width:1100px;
    margin:0 auto;
    padding:0 20px;
    align-items:start;
}

/* Panels */
.transaction-form-panel,
.transaction-info-panel{
    background:linear-gradient(180deg, rgba(19,47,76,0.75) 0%, rgba(10,25,41,0.8) 100%);
    border:1px solid rgba(25,118,210,0.18);
    border-radius:16px;
    padding:32px;
    backdrop-filter:blur(20px);
    position:relative;
}

.transaction-form-panel::after,
.transaction-info-panel::after{
    content:'';
    position:absolute;
    bottom:0;
    left:0;
    right:0;
    height:1px;
    background:linear-gradient(90deg, transparent, rgba(25,118,210,0.3), transparent);
}

.panel-title{
    font-size:16px;
    font-weight:600;
    color:#fff;
    margin:0 0 20px;
}

.transaction-info-panel .panel-title{
    font-size:14px;
    font-weight:500;
    color:#fff;
    margin:0 0 16px;
}

/* Mode Tabs */
.mode-tabs{
    display:flex;
    gap:0;
    margin-bottom:28px;
    background:rgba(0,20,45,0.6);
    border-radius:10px;
    padding:4px;
    border:1px solid rgba(60,120,180,0.1);
}

.mode-tab{
    flex:1;
    padding:12px 24px;
    border:none;
    background:transparent;
    color:rgba(126,184,232,0.7);
    font-size:13px;
    font-weight:700;
    border-radius:8px;
    cursor:default;
    transition:all 0.2s ease;
    text-transform:uppercase;
    letter-spacing:0.5px;
    pointer-events:none;
}

.mode-tab:hover{
    color:rgba(126,184,232,0.7);
    background:transparent;
}

.mode-tab.active{
    background:linear-gradient(135deg, #1976d2, #1565c0);
    color:#fff;
    box-shadow:0 4px 12px rgba(25,118,210,0.4);
}

/* Amount Sections */
.amount-section{
    background:rgba(0,25,55,0.5);
    border:1px solid rgba(60,120,180,0.12);
    border-radius:10px;
    padding:12px 16px;
    margin-bottom:10px;
}

.section-label{
    display:block;
    font-size:11px;
    color:rgba(126,184,232,0.55);
    font-weight:400;
    margin-bottom:6px;
    text-transform:uppercase;
    letter-spacing:0.4px;
}

.amount-row{
    display:flex;
    align-items:center;
    gap:16px;
}

.amount-input{
    flex:1;
    background:transparent;
    border:none;
    font-size:22px;
    font-weight:600;
    color:#fff;
    outline:none;
    padding:0;
}

.amount-input::-webkit-outer-spin-button,
.amount-input::-webkit-inner-spin-button{
    -webkit-appearance:none;
    margin:0;
}

/* Hide dropdown arrow */
.dropdown-arrow{
    display:none;
}

.currency-selector{
    cursor:default;
    padding:8px 14px;
    background:rgba(0,40,80,0.5);
    border:1px solid rgba(60,120,180,0.15);
    border-radius:10px;
    min-width:100px;
    transition:all 0.2s ease;
    display:flex;
    justify-content:center;
    align-items:center;
}

.currency-selector:hover{
    background:rgba(0,50,100,0.5);
    border-color:rgba(60,120,180,0.25);
}

.selected-currency{
    display:flex;
    align-items:center;
    justify-content:center;
}

.currency-code{
    font-size:15px;
    font-weight:600;
    color:#fff;
    text-align:center;
}

.currency-network{
    font-size:10px;
    background:#0d5ca8;
    color:#fff;
    padding:2px 6px;
    border-radius:4px;
    font-weight:600;
}

.dropdown-arrow{
    margin-left:auto;
    color:rgba(126,184,232,0.7);
}

/* Swap Icon */
.swap-icon-wrapper{
    display:flex;
    justify-content:center;
    margin:-6px 0;
    position:relative;
    z-index:2;
}

.swap-btn{
    width:40px;
    height:40px;
    border-radius:50%;
    background:linear-gradient(135deg, #0d5ca8, #1976d2);
    border:3px solid rgba(0,30,60,0.9);
    color:#fff;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:all 0.2s ease;
    box-shadow:0 4px 15px rgba(13,92,168,0.4);
}

.swap-btn:hover{
    transform:rotate(180deg);
    box-shadow:0 6px 20px rgba(13,92,168,0.5);
}

/* Best Rate Section */
.best-rate-section{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:16px 0;
    border-bottom:1px solid rgba(60,120,180,0.1);
    margin-bottom:20px;
}

/* Fee Info Section */
.fee-info-section{
    padding:12px 16px;
    background:rgba(0,20,45,0.4);
    border-radius:10px;
    margin-bottom:20px;
    border:1px solid rgba(60,120,180,0.1);
}

.fee-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.fee-label{
    font-size:13px;
    color:rgba(126,184,232,0.7);
}

.fee-value{
    font-size:13px;
    color:#ff6b6b;
    font-weight:600;
}

.rate-toggle{
    display:flex;
    align-items:center;
    gap:12px;
}

.toggle-switch{
    position:relative;
    width:44px;
    height:24px;
}

.toggle-switch input{
    opacity:0;
    width:0;
    height:0;
}

.toggle-slider{
    position:absolute;
    cursor:pointer;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background:rgba(60,120,180,0.3);
    border-radius:24px;
    transition:0.3s;
}

.toggle-slider:before{
    position:absolute;
    content:"";
    height:18px;
    width:18px;
    left:3px;
    bottom:3px;
    background:#fff;
    border-radius:50%;
    transition:0.3s;
}

input:checked + .toggle-slider{
    background:linear-gradient(135deg, #0d5ca8, #1976d2);
}

input:checked + .toggle-slider:before{
    transform:translateX(20px);
}

.toggle-label{
    font-size:14px;
    color:#fff;
    font-weight:600;
}

.rate-info{
    display:flex;
    align-items:center;
    gap:8px;
    font-size:13px;
    color:rgba(126,184,232,0.7);
}

/* Payment Methods */
.payment-methods-section,
.payment-providers-section{
    margin-bottom:20px;
}

.payment-methods{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
}

.payment-method{
    padding:10px 18px;
    background:rgba(0,30,60,0.6);
    border:1px solid rgba(60,120,180,0.15);
    border-radius:8px;
    color:rgba(126,184,232,0.8);
    font-size:13px;
    font-weight:600;
    cursor:pointer;
    transition:all 0.2s ease;
    display:flex;
    align-items:center;
    gap:6px;
}

.payment-method:hover{
    background:rgba(0,40,80,0.6);
    color:#fff;
}

.payment-method.active{
    background:linear-gradient(135deg, #0d5ca8, #084a8a);
    color:#fff;
    border-color:transparent;
}

/* Payment Providers */
.payment-providers{
    display:flex;
    gap:12px;
}

.payment-provider{
    padding:16px 24px;
    background:rgba(0,30,60,0.6);
    border:2px solid rgba(60,120,180,0.15);
    border-radius:10px;
    cursor:pointer;
    transition:all 0.2s ease;
    text-align:left;
}

.payment-provider:hover{
    border-color:rgba(60,120,180,0.3);
}

.payment-provider.active{
    border-color:#ffa726;
    background:rgba(255,167,38,0.1);
}

.provider-name{
    display:block;
    font-size:14px;
    font-weight:700;
    color:#fff;
    margin-bottom:4px;
}

.provider-amount{
    font-size:12px;
    color:rgba(126,184,232,0.7);
}

/* Wallet Section */
.wallet-section{
    margin-bottom:20px;
}

.wallet-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:12px;
}

.wallet-link{
    font-size:13px;
    color:#ffa726;
    text-decoration:none;
    font-weight:500;
}

.wallet-link:hover{
    text-decoration:underline;
}

.wallet-input{
    width:100%;
    padding:16px 20px;
    background:rgba(0,25,55,0.5);
    border:1px solid rgba(60,120,180,0.15);
    border-radius:10px;
    color:#fff;
    font-size:14px;
    outline:none;
    transition:all 0.2s ease;
}

.wallet-input::placeholder{
    color:rgba(126,184,232,0.5);
}

.wallet-input:focus{
    border-color:rgba(60,120,180,0.4);
    background:rgba(0,30,60,0.5);
}

/* Terms Section */
.terms-section{
    margin-bottom:24px;
}

.terms-checkbox{
    display:flex;
    align-items:flex-start;
    gap:12px;
    cursor:pointer;
    font-size:13px;
    color:rgba(126,184,232,0.8);
    line-height:1.5;
}

.terms-checkbox input{
    display:none;
}

.checkmark{
    width:18px;
    height:18px;
    border:2px solid rgba(60,120,180,0.4);
    border-radius:4px;
    flex-shrink:0;
    margin-top:2px;
    position:relative;
    transition:all 0.2s ease;
}

.terms-checkbox input:checked + .checkmark{
    background:#0d5ca8;
    border-color:#0d5ca8;
}

.terms-checkbox input:checked + .checkmark::after{
    content:'';
    position:absolute;
    left:5px;
    top:2px;
    width:4px;
    height:8px;
    border:solid #fff;
    border-width:0 2px 2px 0;
    transform:rotate(45deg);
}

.terms-text a{
    color:#ffa726;
    text-decoration:none;
}

.terms-text a:hover{
    text-decoration:underline;
}

/* Submit Button */
.submit-btn{
    width:100%;
    padding:18px 32px;
    background:linear-gradient(135deg, #1976d2, #1565c0);
    border:none;
    border-radius:12px;
    color:#fff;
    font-size:16px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:1px;
    cursor:pointer;
    transition:all 0.2s ease;
    box-shadow:0 8px 24px rgba(25,118,210,0.4);
}

.submit-btn:hover{
    background:linear-gradient(135deg, #1e88e5, #1976d2);
    box-shadow:0 10px 30px rgba(25,118,210,0.5);
    transform:translateY(-1px);
}

.submit-btn:disabled{
    opacity:0.5;
    cursor:not-allowed;
}

/* Transaction Info Panel */
.transaction-info-panel{
    height:fit-content;
    position:sticky;
    top:90px;
    align-self:flex-start;
}

.info-content{
    display:flex;
    flex-direction:column;
    gap:14px;
}

.info-row{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:12px;
}

.info-label{
    font-size:11px;
    color:#fff;
    font-weight:400;
    text-align:left;
    white-space:nowrap;
}

.info-value{
    font-size:13px;
    color:#fff;
    font-weight:500;
    display:flex;
    align-items:center;
    gap:8px;
    text-align:right;
    flex-shrink:0;
}

.info-value.highlight{
    font-size:14px;
    color:#fff;
    font-weight:600;
}

.info-value svg{
    color:rgba(126,184,232,0.6);
    cursor:help;
}

.info-warning{
    margin-top:16px;
    padding:12px;
    background:rgba(25,118,210,0.08);
    border-radius:8px;
    border-left:2px solid rgba(25,118,210,0.5);
}

.info-warning p{
    font-size:11px;
    color:#fff;
    line-height:1.5;
    margin:0;
}

/* Popup Modal */
.popup-overlay{
    position:fixed;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background:rgba(0,10,25,0.85);
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:9999;
    opacity:0;
    visibility:hidden;
    transition:all 0.3s ease;
}

.popup-overlay.active{
    opacity:1;
    visibility:visible;
}

.popup-box{
    background:linear-gradient(180deg, rgba(0,35,70,0.95) 0%, rgba(0,25,50,0.98) 100%);
    border:1px solid rgba(60,120,180,0.2);
    border-radius:12px;
    padding:24px 32px;
    text-align:center;
    max-width:320px;
    box-shadow:0 20px 60px rgba(0,0,0,0.5);
    transform:scale(0.9);
    transition:all 0.3s ease;
}

.popup-overlay.active .popup-box{
    transform:scale(1);
}

.popup-icon{
    width:48px;
    height:48px;
    margin:0 auto 16px;
    background:rgba(255,152,0,0.15);
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
}

.popup-icon svg{
    width:24px;
    height:24px;
    color:#ff9800;
}

.popup-message{
    font-size:14px;
    color:#e3f2fd;
    font-weight:500;
    margin-bottom:20px;
}

.popup-close{
    padding:10px 28px;
    background:linear-gradient(135deg, #1976d2, #1565c0);
    border:none;
    border-radius:8px;
    color:#fff;
    font-size:13px;
    font-weight:600;
    cursor:pointer;
    transition:all 0.2s ease;
}

.popup-close:hover{
    background:linear-gradient(135deg, #1e88e5, #1976d2);
    box-shadow:0 4px 15px rgba(25,118,210,0.4);
}

/* Responsive */
@media (max-width:1000px){
    .process-grid{
        grid-template-columns:1fr;
        gap:24px;
    }
    
    .transaction-info-panel{
        position:static;
    }
    
    .stepper-wrapper{
        max-width:100%;
        padding:0 15px;
    }
}

@media (max-width:768px){
    .progress-stepper{
        padding:16px 0;
    }
    
    .stepper-wrapper{
        flex-wrap:wrap;
        gap:16px;
        justify-content:center;
    }
    
    .step-line{
        display:none;
    }
    
    .step{
        flex:0 0 22%;
        min-width:70px;
    }
    
    .step:first-child,
    .step:last-child{
        margin:0;
    }
    
    .step-icon{
        width:22px;
        height:22px;
    }
    
    .step-icon svg{
        width:10px;
        height:10px;
    }
    
    .step-title{
        font-size:9px;
        max-width:80px;
    }
    
    .step-status{
        font-size:7px;
        padding:2px 5px;
    }
    
    .transaction-form-panel,
    .transaction-info-panel{
        padding:20px 16px;
        border-radius:12px;
    }
    
    .panel-title{
        font-size:15px;
        margin-bottom:16px;
    }
    
    .transaction-info-panel .panel-title{
        font-size:13px;
    }
    
    .amount-input{
        font-size:20px;
    }
    
    .amount-section{
        padding:10px 14px;
    }
    
    .mode-tabs{
        padding:3px;
    }
    
    .mode-tab{
        padding:10px 16px;
        font-size:12px;
    }
    
    .payment-methods{
        gap:6px;
    }
    
    .payment-method{
        padding:8px 12px;
        font-size:11px;
    }
    
    .wallet-input{
        padding:12px 14px;
        font-size:13px;
    }
    
    .submit-btn{
        padding:14px 24px;
        font-size:14px;
    }
    
    .info-row{
        gap:4px;
    }
    
    .info-label{
        font-size:10px;
    }
    
    .info-value{
        font-size:12px;
    }
    
    .info-value.highlight{
        font-size:14px;
    }
}

@media (max-width:480px){
    .progress-stepper{
        padding:14px 0;
        margin-bottom:20px;
    }
    
    .stepper-wrapper{
        gap:12px;
        padding:0 10px;
    }
    
    .step{
        flex:0 0 20%;
        min-width:60px;
    }
    
    .step-icon{
        width:20px;
        height:20px;
        margin-bottom:6px;
    }
    
    .step-circle{
        width:8px;
        height:8px;
    }
    
    .step-circle::after{
        width:3px;
        height:3px;
    }
    
    .step-title{
        font-size:8px;
        max-width:65px;
    }
    
    .step-status{
        font-size:6px;
        padding:1px 4px;
    }
    
    .process-grid{
        gap:16px;
    }
    
    .transaction-form-panel,
    .transaction-info-panel{
        padding:16px 14px;
    }
    
    .panel-title{
        font-size:14px;
        margin-bottom:14px;
    }
    
    .mode-tabs{
        flex-direction:column;
        gap:4px;
    }
    
    .mode-tab{
        padding:10px;
        font-size:11px;
    }
    
    .amount-section{
        padding:10px 12px;
        margin-bottom:8px;
    }
    
    .section-label{
        font-size:10px;
        margin-bottom:4px;
    }
    
    .amount-row{
        flex-direction:column;
        align-items:stretch;
        gap:10px;
    }
    
    .amount-input{
        font-size:18px;
    }
    
    .currency-selector{
        width:100%;
        justify-content:center;
    }
    
    .currency-code{
        font-size:14px;
    }
    
    .swap-icon-wrapper{
        margin:4px 0;
    }
    
    .swap-btn{
        width:32px;
        height:32px;
    }
    
    .payment-methods-section{
        margin-bottom:16px;
    }
    
    .payment-methods{
        flex-wrap:wrap;
        gap:6px;
    }
    
    .payment-method{
        padding:8px 10px;
        font-size:10px;
        flex:1 1 auto;
        min-width:calc(50% - 6px);
        justify-content:center;
    }
    
    .payment-method svg{
        width:14px;
        height:14px;
    }
    
    .wallet-section{
        margin-bottom:16px;
    }
    
    .wallet-input{
        padding:12px;
        font-size:12px;
    }
    
    .terms-section{
        margin-bottom:16px;
    }
    
    .terms-checkbox{
        font-size:11px;
        gap:10px;
    }
    
    .checkmark{
        width:16px;
        height:16px;
    }
    
    .submit-btn{
        padding:14px 20px;
        font-size:13px;
        border-radius:10px;
    }
    
    .info-content{
        gap:12px;
    }
    
    .info-warning{
        padding:10px;
        margin-top:12px;
    }
    
    .info-warning p{
        font-size:10px;
    }
    
    .popup-box{
        padding:20px 24px;
        margin:0 20px;
        max-width:280px;
    }
    
    .popup-icon{
        width:40px;
        height:40px;
    }
    
    .popup-message{
        font-size:13px;
    }
    
    .popup-close{
        padding:10px 24px;
        font-size:12px;
    }
}

/* Extra Large Screens */
@media (min-width:1400px){
    .stepper-wrapper{
        max-width:1000px;
    }
    
    .process-grid{
        max-width:1200px;
        gap:40px;
    }
    
    .transaction-form-panel,
    .transaction-info-panel{
        padding:36px;
    }
}
