/* =========================
   GLOBAL
========================= */

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

:root{
    --bg:#050816;
    --card:rgba(255,255,255,0.08);
    --border:rgba(255,255,255,0.15);
    --cyan:#00e5ff;
    --purple:#8b5cf6;
    --white:#ffffff;
    --text:#d9e7ff;
    --success:#00ff99;
}

body{
    font-family:'Poppins',sans-serif;
    background:var(--bg);
    color:var(--text);
    min-height:100vh;
    overflow-x:hidden;
    position:relative;
}

/* =========================
   BACKGROUND EFFECT
========================= */

.bg-circle{
    position:fixed;
    border-radius:50%;
    filter:blur(120px);
    opacity:0.4;
    z-index:-1;
}

.bg1{
    width:350px;
    height:350px;
    background:#00e5ff;
    top:-100px;
    left:-100px;
}

.bg2{
    width:300px;
    height:300px;
    background:#8b5cf6;
    right:-100px;
    top:200px;
}

.bg3{
    width:280px;
    height:280px;
    background:#00ff99;
    bottom:-100px;
    left:35%;
}

/* =========================
   CONTAINER
========================= */

.container{
    width:90%;
    max-width:1200px;
    margin:auto;
    padding:40px 0;
}

/* =========================
   HERO
========================= */

.hero{
    text-align:center;
    margin-bottom:40px;
}

.hero-badge{
    display:inline-block;
    padding:10px 18px;
    border:1px solid rgba(255,255,255,.15);
    border-radius:999px;
    background:rgba(255,255,255,.05);
    margin-bottom:20px;

    animation:float 4s ease-in-out infinite;
}

.hero h1{
    font-size:4rem;
    font-weight:700;

    background:linear-gradient(
        90deg,
        #00e5ff,
        #8b5cf6
    );
}
.hero h1{

    font-size:3rem;

    font-weight:800;

    background:linear-gradient(
        135deg,
        #00e5ff,
        #8b5cf6
    );

    -webkit-background-clip:text;
    background-clip:text;

    -webkit-text-fill-color:transparent;

    margin-bottom:10px;
}
/* =========================
   GLASS CARD
========================= */

.glass-card{
    background:var(--card);

    backdrop-filter:blur(18px);

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

    border-radius:24px;

    padding:30px;

    margin-bottom:25px;

    box-shadow:
    0 0 20px rgba(0,229,255,.08);
}

/* =========================
   TITLES
========================= */

h2{
    margin-bottom:25px;
    color:white;
}

.section-title{
    font-size:1.3rem;
    font-weight:600;
    margin-bottom:20px;
    color:white;
}

/* =========================
   FORM
========================= */

.form-group{
    margin-bottom:25px;
}

.form-group label{
    display:block;
    margin-bottom:10px;
    font-weight:500;
}

.form-group input{
    width:100%;
    padding:15px;

    border-radius:14px;

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

    background:rgba(255,255,255,.05);

    color:white;

    outline:none;

    transition:.3s;
}

.form-group input:focus{
    border-color:var(--cyan);

    box-shadow:
    0 0 20px rgba(0,229,255,.3);
}

/* =========================
   RADIO CARD
========================= */

.radio-group{
    display:flex;
    gap:20px;
    flex-wrap:wrap;
}

.radio-card{
    display:flex;
    align-items:center;
    gap:10px;

    padding:15px 20px;

    border-radius:14px;

    background:rgba(255,255,255,.05);

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

    cursor:pointer;
}

.radio-card:hover{
    border-color:var(--cyan);
}

.radio-card input{
    width:18px;
    height:18px;
}

/* =========================
   BUTTONS
========================= */

.button-group{
    display:flex;
    gap:15px;
    flex-wrap:wrap;
}

button{
    cursor:pointer;
    border:none;
    transition:.3s;
}

#submitBtn{
    flex:1;

    padding:16px;

    border-radius:14px;

    background:linear-gradient(
        135deg,
        #00e5ff,
        #8b5cf6
    );

    color:white;
    font-weight:600;
}

#submitBtn:hover{
    transform:translateY(-3px);

    box-shadow:
    0 0 30px rgba(0,229,255,.4);
}

#resetBtn{
    flex:1;

    padding:16px;

    border-radius:14px;

    background:rgba(255,255,255,.08);

    color:white;
}

#resetBtn:hover{
    background:rgba(255,255,255,.15);
}

/* =========================
   RESULT
========================= */

.result-text{
    font-size:1.4rem;
    font-weight:600;
    margin-bottom:25px;
    color:var(--success);
    word-break:break-all;
}

/* =========================
   BIT BOXES
========================= */

.bit-container{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}

.bit{
    width:60px;
    height:60px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:16px;

    font-size:1.5rem;
    font-weight:700;

    background:rgba(255,255,255,.05);

    border:1px solid rgba(0,229,255,.4);

    color:white;

    animation:pop .5s ease;
}

.bit:hover{
    transform:translateY(-4px);

    box-shadow:
    0 0 20px rgba(0,229,255,.4);
}

/* =========================
   TOGGLE BUTTON
========================= */

.toggle-btn{
    width:100%;

    padding:16px;

    border-radius:14px;

    background:rgba(255,255,255,.06);

    color:white;

    font-size:1rem;
}

.toggle-btn:hover{
    background:rgba(255,255,255,.12);
}

/* =========================
   STEP SECTION
========================= */

.hidden{
    display:none;
}

.step-category{
    margin-bottom:35px;
}

.step-category h3{
    margin-bottom:15px;

    color:var(--cyan);

    border-left:4px solid var(--cyan);

    padding-left:12px;
}

/* =========================
   STEP BOX
========================= */

.step-box{
    background:rgba(255,255,255,.04);

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

    border-radius:16px;

    padding:18px;

    margin-bottom:15px;
}

.step-box-title{
    color:white;
    font-weight:600;
    margin-bottom:10px;
}

.step-value{
    color:#9fe9ff;

    font-family:monospace;

    font-size:1rem;

    word-break:break-all;
}

/* =========================
   LOG PANEL
========================= */

#keyGenerationSteps,
#round1Steps,
#swapSteps,
#round2Steps,
#finalSteps{

    background:rgba(0,0,0,.25);

    border-radius:16px;

    padding:20px;

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

    font-family:monospace;

    white-space:pre-wrap;

    line-height:1.7;

    overflow:auto;
}

/* =========================
   FOOTER
========================= */

footer{
    text-align:center;
    margin-top:30px;
    color:#93a5c7;
}

/* =========================
   SCROLLBAR
========================= */

::-webkit-scrollbar{
    width:10px;
}

::-webkit-scrollbar-track{
    background:#07101f;
}

::-webkit-scrollbar-thumb{
    background:#00e5ff;
    border-radius:20px;
}

/* =========================
   ANIMATION
========================= */

@keyframes float{

    0%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(-8px);
    }

    100%{
        transform:translateY(0);
    }
}

@keyframes pop{

    from{
        transform:scale(.6);
        opacity:0;
    }

    to{
        transform:scale(1);
        opacity:1;
    }
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:768px){

    .hero h1{
        font-size:2.5rem;
    }

    .button-group{
        flex-direction:column;
    }

    .bit{
        width:50px;
        height:50px;
    }
}