/* ==========================================
   FLUX-XD v2
   Premium WhatsApp Session Generator
========================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root{

    --bg:#070B14;
    --surface:#111827;
    --surface2:#1B2537;

    --text:#F9FAFB;
    --muted:#94A3B8;

    --green:#25D366;
    --cyan:#00D4FF;

    --border:rgba(255,255,255,.08);

    --radius:22px;

}

*{

    margin:0;
    padding:0;
    box-sizing:border-box;

}

html{

    scroll-behavior:smooth;

}

body{

    font-family:"Inter",sans-serif;

    background:var(--bg);

    color:var(--text);

    min-height:100vh;

    overflow-y:auto;
    overflow-x:hidden;

}

/* =========================
   Background
========================= */

.background{

    position:fixed;

    inset:0;

    z-index:-1;

    overflow:hidden;

    background:
    radial-gradient(circle at 15% 15%,#00d4ff22,transparent 35%),
    radial-gradient(circle at 85% 25%,#25D36622,transparent 30%),
    radial-gradient(circle at 50% 100%,#6D28D922,transparent 40%),
    #070B14;

}

.background::before{

    content:"";

    position:absolute;

    inset:-40%;

    background:
    repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 70px,
    rgba(255,255,255,.02) 71px);

    animation:gridMove 20s linear infinite;

}

@keyframes gridMove{

    from{

        transform:translateX(0);

    }

    to{

        transform:translateX(70px);

    }

}

/* =========================
   Header
========================= */

header{

    width:min(1200px,92%);

    margin:auto;

    padding:28px 0;

    display:flex;

    justify-content:space-between;

    align-items:center;

}

.logo{

    display:flex;

    align-items:center;

    gap:16px;

}

.logo img{

    width:60px;

    border-radius:18px;

}

.logo h2{

    font-size:28px;

    font-weight:800;

}

.logo p{

    color:var(--muted);

    font-size:14px;

}

.online{

    display:flex;

    align-items:center;

    gap:10px;

    padding:10px 18px;

    border-radius:999px;

    background:#0F172A;

    border:1px solid var(--border);

    font-size:14px;

}

.online span{

    width:10px;

    height:10px;

    border-radius:50%;

    background:var(--green);

    box-shadow:0 0 15px var(--green);

}

/* =========================
   Main
========================= */

main{

    width:min(1200px,92%);

    margin:auto;

    padding-bottom:80px;

}

.hero{

    margin:50px 0;

}

.hero h1{

    font-size:clamp(42px,6vw,70px);

    line-height:1.05;

    max-width:750px;

    font-weight:800;

}

.hero p{

    margin-top:18px;

    max-width:650px;

    color:var(--muted);

    font-size:18px;

    line-height:1.8;

}
/* =========================
   Generator Grid
========================= */

.generator{

    display:grid;

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

    gap:24px;

    margin-top:40px;

}

/* =========================
   Cards
========================= */

.box{

    position:relative;

    background:rgba(17,24,39,.85);

    border:1px solid rgba(255,255,255,.06);

    border-radius:24px;

    padding:24px;

    backdrop-filter:blur(20px);

    overflow:hidden;

    transition:.35s ease;

}

.box::before{

    content:"";

    position:absolute;

    top:0;
    left:0;

    width:100%;
    height:2px;

    background:linear-gradient(
        90deg,
        #25D366,
        #00D4FF
    );

}

.box:hover{

    transform:translateY(-8px);

    border-color:rgba(37,211,102,.35);

    box-shadow:
        0 20px 60px rgba(0,0,0,.35),
        0 0 30px rgba(37,211,102,.08);

}

.box h3{

    font-size:14px;

    letter-spacing:1px;

    text-transform:uppercase;

    color:var(--muted);

    margin-bottom:18px;

}

/* =========================
   Input
========================= */

input,
textarea{

    width:100%;

    background:#0B1220;

    border:1px solid rgba(255,255,255,.08);

    border-radius:16px;

    padding:18px;

    color:#fff;

    font-size:16px;

    outline:none;

    transition:.25s;

}

input:focus,
textarea:focus{

    border-color:#25D366;

    box-shadow:0 0 0 4px rgba(37,211,102,.15);

}

textarea{

    min-height:140px;

    resize:none;

    font-family:monospace;

    line-height:1.7;

}

/* =========================
   Buttons
========================= */

button{

    width:100%;

    margin-top:18px;

    border:none;

    border-radius:16px;

    padding:16px;

    font-size:16px;

    font-weight:700;

    color:#fff;

    cursor:pointer;

    background:linear-gradient(
        135deg,
        #25D366,
        #00D4FF
    );

    transition:.3s;

}

button:hover{

    transform:translateY(-3px);

    box-shadow:
        0 15px 40px rgba(37,211,102,.35);

}

button:active{

    transform:scale(.98);

}

button:disabled{

    opacity:.6;

    cursor:not-allowed;

    transform:none;

}

/* =========================
   Status
========================= */

#status{

    color:#25D366;

    font-weight:700;

    font-size:18px;

}

/* =========================
   Pair Code
========================= */

#pairCode{

    font-size:34px;

    text-align:center;

    font-family:monospace;

    letter-spacing:8px;

    color:#25D366;

    margin:15px 0;

    word-break:break-word;

}

/* =========================
   Hidden
========================= */

.hidden{

    display:none;

}
/* ==========================================
   Loader
========================================== */

.loader{

    position:fixed;

    inset:0;

    display:flex;

    justify-content:center;

    align-items:center;

    flex-direction:column;

    gap:20px;

    background:rgba(7,11,20,.92);

    backdrop-filter:blur(12px);

    z-index:9999;

    opacity:0;

    visibility:hidden;

    transition:.35s;

}

.loader.active{

    opacity:1;

    visibility:visible;

}

.spinner{

    width:65px;

    height:65px;

    border:5px solid rgba(255,255,255,.08);

    border-top:5px solid #25D366;

    border-radius:50%;

    animation:spin .8s linear infinite;

}

.loader h2{

    font-size:18px;

    font-weight:600;

}

.loader p{

    color:#94A3B8;

}

@keyframes spin{

    to{

        transform:rotate(360deg);

    }

}

/* ==========================================
   Toast
========================================== */

#toast{

    position:fixed;

    bottom:30px;

    left:50%;

    transform:translate(-50%,120px);

    background:#111827;

    color:#fff;

    padding:15px 22px;

    border-radius:14px;

    border:1px solid rgba(255,255,255,.08);

    box-shadow:0 15px 40px rgba(0,0,0,.45);

    transition:.35s ease;

    z-index:99999;

}

#toast.show{

    transform:translate(-50%,0);

}

/* ==========================================
   Fade Animation
========================================== */

.box{

    animation:fadeUp .6s ease both;

}

.box:nth-child(2){

    animation-delay:.1s;

}

.box:nth-child(3){

    animation-delay:.2s;

}

.box:nth-child(4){

    animation-delay:.3s;

}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(25px);

    }

    to{

        opacity:1;

        transform:none;

    }

}

/* ==========================================
   Scrollbar
========================================== */

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-thumb{

    background:#25D366;

    border-radius:999px;

}

::-webkit-scrollbar-track{

    background:#0B1220;

}

/* ==========================================
   Responsive
========================================== */

@media(max-width:900px){

    header{

        flex-direction:column;

        gap:20px;

        text-align:center;

    }

    .logo{

        flex-direction:column;

    }

    .hero{

        text-align:center;

    }

    .hero h1{

        font-size:42px;

    }

    .hero p{

        margin:auto;

        margin-top:18px;

    }

}

@media(max-width:600px){

    .generator{

        grid-template-columns:1fr;

    }

    .box{

        padding:20px;

    }

    button{

        font-size:15px;

        padding:15px;

    }

    #pairCode{

        font-size:24px;

        letter-spacing:4px;

    }

    textarea{

        min-height:110px;

    }

}
.loading{

    opacity:.8;

    pointer-events:none;

}

.footer{

    width:100%;

    text-align:center;

    padding:35px 15px;

    color:#6B7280;

    font-size:14px;

}

small{

    font-size:12px;

}