*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:'Inter',sans-serif;
    background:#031b14;
    color:white;
    overflow-x:hidden;
}



/* HERO */

.hero{
    position:relative;
    min-height:100vh;
    padding:30px 20px 80px;
}

.hero-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(
        rgba(0,0,0,0.4),
        rgba(0,0,0,0.7)
    );
}

.hero-content{
    position:relative;
    z-index:2;
    max-width:1200px;
    margin:auto;
}



/* TOP BAR */

.top-bar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:40px;
}

.top-left{
    display:flex;
    gap:20px;
    font-size:14px;
    flex-wrap:wrap;
}

.help-btn{
    background:#22c55e;
    border:none;
    padding:12px 20px;
    border-radius:12px;
    color:white;
    cursor:pointer;
    transition:0.3s ease;
}

.help-btn:hover{
    background:#16a34a;
}



/* LOGO */

.logo-wrapper{
    text-align:center;
    margin-bottom:30px;
}

.logo{
    width:100px;
    max-width:100%;
}



/* HERO TEXT */

.hero-text{
    text-align:center;
    max-width:800px;
    margin:auto;
}

.hero-text h1{
    font-size:30px;
    margin-bottom:20px;
    font-weight:500;
}

.hero-text h2{
    font-size:18px;
    margin-bottom:20px;
    color:#22c55e;
}

.hero-text p{
    color:#d1d5db;
    line-height:1.8;
    font-size:18px;
}



/* SEARCH CARD */

.search-card{
    max-width:600px;
    margin:50px auto;
    background:rgba(255,255,255,0.05);
    padding:40px;
    border-radius:25px;
    text-align:center;
    backdrop-filter:blur(10px);
}

.meter-icon{
    font-size:25px;
    margin-bottom:20px;
}

.search-card h3{
    font-size:20px;
    margin-bottom:10px;
}

.search-card p{
    color:#d1d5db;
    margin-bottom:30px;
}

.search-card form{
    width:100%;
}

.search-card input{
    width:100%;
    padding:18px;
    border:none;
    border-radius:12px;
    margin-bottom:20px;
    font-size:16px;
    outline:none;
}

.search-card button{
    width:100%;
    padding:18px;
    border:none;
    border-radius:12px;
    background:#22c55e;
    color:white;
    font-size:18px;
    cursor:pointer;
    transition:0.3s ease;
}

.search-card button:hover{
    background:#16a34a;
}

.search-card small{
    display:block;
    margin-top:20px;
    color:#9ca3af;
}



/* ERROR */

.error-box{
    max-width:700px;
    margin:30px auto;
    background:#dc2626;
    padding:20px;
    border-radius:15px;
    text-align:center;
}



/* CUSTOMER CARD */

.customer-card{
    max-width:1100px;
    margin:50px auto;
    background:rgba(255,255,255,0.04);
    padding:50px;
    border-radius:30px;
    backdrop-filter:blur(10px);
}

.customer-card h3{
    margin-bottom:40px;
    text-align:center;
    font-size:25px;
    font-weight:500;
}

.customer-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:30px;
}

.customer-grid div{
    background:rgba(255,255,255,0.05);
    padding:35px;
    border-radius:25px;
}

.customer-grid label{
    display:block;
    margin-bottom:15px;
    color:#22c55e;
    font-size:15px;
}

.customer-grid span{
    font-size:18px;
    font-weight:300;
    word-break:break-word;
}



/* TOPUP BUTTON */

.topup-btn{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    margin-top:40px;
    padding:22px;
    border:none;
    border-radius:15px;
    background:#22c55e;
    color:white;
    font-size:15px;
    font-weight:400;
    cursor:pointer;
    text-decoration:none;
    transition:0.3s ease;
}

.topup-btn:hover{
    background:#16a34a;
    transform:translateY(-2px);
}



/* STEPS */

.steps{
    margin-top:100px;
}

.steps h2{
    text-align:center;
    margin-bottom:40px;
    font-size:40px;
}

.steps-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
}

.step-card{
    background:rgba(255,255,255,0.05);
    padding:30px;
    border-radius:20px;
    text-align:center;
}

.step-number{
    width:50px;
    height:50px;
    border-radius:50%;
    background:#22c55e;
    display:flex;
    align-items:center;
    justify-content:center;
    margin:auto auto 20px;
    font-weight:bold;
}



/* FEATURES */

.features{
    margin-top:100px;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
}

.feature-box{
    background:rgba(255,255,255,0.05);
    padding:30px;
    border-radius:20px;
    text-align:center;
}



/* TOPUP PAGE */

.topup-page{
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:40px 20px;
}

.topup-card{
    width:100%;
    max-width:650px;
    background:rgba(255,255,255,0.05);
    backdrop-filter:blur(10px);
    padding:50px;
    border-radius:30px;
}

.topup-card h2{
    text-align:center;
    margin-bottom:40px;
    font-size:30px;
}

.customer-summary{
    margin-bottom:30px;
}

.customer-summary p{
    margin-bottom:18px;
    font-size:22px;
}

.customer-summary strong{
    color:#22c55e;
}

.topup-card form{
    display:flex;
    flex-direction:column;
    gap:20px;
}

.topup-card input{
    width:100%;
    padding:18px;
    border:none;
    border-radius:12px;
    font-size:18px;
    outline:none;
}

.topup-card button{
    width:100%;
    padding:20px;
    border:none;
    border-radius:15px;
    background:#22c55e;
    color:white;
    font-size:15px;
    cursor:pointer;
    transition:0.3s ease;
}

.topup-card button:hover{
    background:#16a34a;
}




/* RESPONSIVE */

@media(max-width:900px){

    .hero-text h1{
        font-size:45px;
    }

    .hero-text h2{
        font-size:22px;
    }

    .steps-grid,
    .features,
    .customer-grid{
        grid-template-columns:1fr;
    }

    .top-bar{
        flex-direction:column;
        gap:20px;
    }

    .customer-card{
        padding:30px;
    }

    .customer-card h3{
        font-size:40px;
    }

    .customer-grid span{
        font-size:22px;
    }

    .topup-card{
        padding:35px 25px;
    }

    .topup-card h2{
        font-size:35px;
    }

    .topup-btn{
        font-size:18px;
        padding:18px;
    }
}




@media(max-width:600px){

    .hero{
        padding:20px 15px 60px;
    }

    .hero-text h1{
        font-size:35px;
    }

    .hero-text p{
        font-size:16px;
    }

    .search-card{
        padding:30px 20px;
    }

    .search-card h3{
        font-size:24px;
    }

    .customer-card h3{
        font-size:32px;
    }

    .customer-grid div{
        padding:25px;
    }

    .customer-grid span{
        font-size:20px;
    }

    .topup-card h2{
        font-size:30px;
    }

    .customer-summary p{
        font-size:18px;
    }
}



/* SUCCESS PAGE */

.success-page{

    min-height:100vh;

    display:flex;

    align-items:center;

    justify-content:center;

    padding:40px 20px;
}

.success-card{

    width:100%;

    max-width:600px;

    background:rgba(255,255,255,0.05);

    backdrop-filter:blur(10px);

    border-radius:25px;

    padding:45px 30px;

    text-align:center;
}

.success-icon{

    font-size:50px;

    margin-bottom:15px;
}

.success-card h1{

    font-size:28px;

    font-weight:600;

    margin-bottom:10px;
}

.success-message{

    color:#d1d5db;

    margin-bottom:30px;

    line-height:1.6;

    font-size:15px;
}

.success-details{

    display:flex;

    flex-direction:column;

    gap:15px;

    margin-bottom:30px;
}

.success-item{

    background:rgba(255,255,255,0.05);

    padding:18px;

    border-radius:15px;
}

.success-item label{

    display:block;

    margin-bottom:8px;

    color:#22c55e;

    font-size:14px;
}

.success-item span{

    font-size:18px;

    font-weight:500;

    word-break:break-word;
}

.token-display{

    letter-spacing:2px;

    color:#22c55e;
}



@media(max-width:768px){

    .success-card{

        padding:35px 20px;
    }

    .success-card h1{

        font-size:24px;
    }

    .success-item span{

        font-size:16px;
    }
}

/* =========================
   PROFESSIONAL RECEIPT UI
========================= */

.receipt-wrapper{

    margin-top:45px;

    display:flex;

    justify-content:center;

    width:100%;
}



/* MAIN COLLAPSE */

.receipt-collapse{

    width:100%;

    max-width:1400px;

    background:#ffffff;

    border-radius:28px;

    overflow:hidden;

    border:none;

    box-shadow:
        0 10px 40px rgba(0,0,0,0.25);
}



/* HEADER */

.receipt-collapse summary{

    list-style:none;

    cursor:pointer;

    padding:35px 40px;

    font-size:22px;

    font-weight:800;

    color:#111827;

    text-align:center;

    position:relative;

    user-select:none;

    transition:0.3s ease;

    border-bottom:
        1px solid #e5e7eb;
}

.receipt-collapse summary:hover{

    background:#f9fafb;
}

.receipt-collapse summary::-webkit-details-marker{

    display:none;
}



/* DROPDOWN ICON */

.receipt-collapse summary::after{

    content:"⌄";

    position:absolute;

    right:35px;

    top:50%;

    transform:translateY(-50%);

    font-size:24px;

    color:#111827;

    transition:0.3s ease;
}

.receipt-collapse[open] summary::after{

    transform:
        translateY(-50%)
        rotate(180deg);
}



/* CONTENT */

.payload-preview{

    padding:40px;

    background:#ffffff;
}



/* GRID */

.preview-grid{

    display:grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(280px,1fr)
        );

    gap:24px;
}



/* BOX */

.preview-grid div{

    background:#fafafa;

    border:1px solid #e5e7eb;

    border-radius:18px;

    padding:28px;

    text-align:left;

    transition:0.3s ease;
}

.preview-grid div:hover{

    transform:translateY(-2px);

    box-shadow:
        0 5px 15px rgba(0,0,0,0.06);
}



/* LABEL */

.preview-grid label{

    display:block;

    margin-bottom:14px;

    font-size:15px;

    font-weight:600;

    color:#6b7280;
}



/* VALUE */

.preview-grid span{

    font-size:20px;

    font-weight:700;

    color:#111827;

    line-height:1.6;

    word-break:break-word;
}



/* TOKEN */

.token-box{

    grid-column:1/-1;
}

.token-value{

    font-size:40px !important;

    font-weight:800 !important;

    letter-spacing:4px;

    color:#111827 !important;

    text-align:center;

    display:block;

    line-height:1.8;
}



/* MOBILE */

@media(max-width:768px){

    .receipt-collapse summary{

        font-size:26px;

        padding:25px 20px;
    }

    .receipt-collapse summary::after{

        font-size:24px;

        right:20px;
    }

    .payload-preview{

        padding:25px 20px;
    }

    .preview-grid{

        grid-template-columns:1fr;
    }

    .token-value{

        font-size:28px !important;

        letter-spacing:2px;
    }

    .preview-grid span{

        font-size:18px;
    }
}

/*=======================================
PAYMENT PROCESSING
======================================*/
.processing-container{

    min-height:100vh;

    display:flex;

    justify-content:center;

    align-items:center;

    background:#001f16;

    padding:20px;
}



.processing-card{

    width:100%;

    max-width:650px;

    background:linear-gradient(
        145deg,
        #03251d,
        #021a14
    );

    border-radius:30px;

    padding:50px 35px;

    text-align:center;

    color:white;

    box-shadow:
        0 0 40px rgba(0,0,0,0.35);
}



.loader-wrapper{

    display:flex;

    justify-content:center;

    margin-bottom:30px;
}



.loader{

    width:90px;

    height:90px;

    border:8px solid rgba(255,255,255,0.1);

    border-top:8px solid #1ecb5d;

    border-radius:50%;

    animation:spin 1s linear infinite;
}



@keyframes spin{

    100%{
        transform:rotate(360deg);
    }
}



.processing-title{

    font-size:42px;

    margin-bottom:20px;

    color:#ffffff;
}



.processing-subtitle{

    font-size:20px;

    line-height:1.7;

    color:#d2ddd7;

    margin-bottom:40px;
}



.processing-reference{

    background:rgba(255,255,255,0.05);

    border-radius:20px;

    padding:25px;

    margin-bottom:30px;
}



.processing-reference span{

    display:block;

    color:#1ecb5d;

    font-size:17px;

    margin-bottom:12px;
}



.processing-reference h3{

    font-size:24px;

    word-break:break-word;
}



.processing-status{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:12px;

    font-size:18px;

    color:#cfe7d8;
}



.status-dot{

    width:14px;

    height:14px;

    background:#1ecb5d;

    border-radius:50%;

    animation:pulse 1s infinite;
}



@keyframes pulse{

    0%{
        opacity:0.3;
        transform:scale(0.9);
    }

    50%{
        opacity:1;
        transform:scale(1.1);
    }

    100%{
        opacity:0.3;
        transform:scale(0.9);
    }
}



@media(max-width:768px){

    .processing-card{

        padding:35px 22px;
    }

    .processing-title{

        font-size:34px;
    }

    .processing-subtitle{

        font-size:18px;
    }
}