*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Inter',sans-serif;
}

body{
    width:100%;
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:flex-start;
    background:#f6f7fb;
    overflow-x:hidden;
    position:relative;
}

/* Background Glow */

.background{
    position:fixed;
    inset:0;
    z-index:-1;
    background:
    radial-gradient(circle at 18% 18%,rgba(160,255,165,.65),transparent 22%),
    radial-gradient(circle at 72% 25%,rgba(255,247,145,.55),transparent 22%),
    radial-gradient(circle at 28% 75%,rgba(181,255,255,.55),transparent 25%),
    radial-gradient(circle at 78% 70%,rgba(255,205,232,.45),transparent 22%),
    #f8f9fc;
    filter:blur(18px);
}

/* Main Container */

.container{
    width:min(452px, calc(100% - 24px));
    margin:18px auto 50px;
}

/* Advertisement */

.ad-card{
    width:100%;
    min-height:58px;
    background:#fff;
    border-radius:16px;
    display:flex;
    align-items:center;
    padding:10px 14px;
    box-shadow:0 8px 20px rgba(0,0,0,.06);
    margin-bottom:12px;
}

.ad-card img{
    width:42px;
    height:42px;
    border-radius:10px;
    object-fit:cover;
}

.ad-text{
    margin-left:12px;
    flex:1;
}

.ad-text h3{
    font-size:15px;
    font-weight:600;
    color:#232323;
}

.ad-text p{
    margin-top:4px;
    color:#707070;
    font-size:13px;
}

.dots{
    font-size:22px;
    color:#999;
    cursor:pointer;
}

/* Exchange Card */

.exchange-card{
    width:100%;
    background:#fff;
    border-radius:10px;
    box-shadow:0 15px 35px rgba(0,0,0,.08);
    overflow:hidden;
}

/* Tabs */

.tabs{
    display:flex;
    height:50px;
    background:#f3f3f6;
}

.tabs button{
    flex:1;
    border:none;
    background:transparent;
    font-size:15px;
    cursor:pointer;
    color:#666;
    font-weight:500;
}

.tabs button.active{
    background:#fff;
    color:#000;
    border-top-left-radius:18px;
    border-top-right-radius:18px;
}

/* Header */

.header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 20px 12px;
}

.title{
    display:flex;
    align-items:center;
    gap:8px;
}

.title span{
    color:#7d73ff;
    font-size:18px;
    font-weight:700;
}

.title h2{
    font-size:22px;
    font-weight:700;
    color:#171717;
    line-height:1.2;
}

.help{
    width:28px;
    height:28px;
    border-radius:50%;
    border:2px solid #888;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:14px;
    color:#666;
    font-weight:700;
}

/* Progress */

.progress{
    display:flex;
    gap:4px;
    padding:0 20px 18px;
}

.line{
    flex:1;
    height:4px;
    background:#ececf4;
    border-radius:50px;
}

.line.active{
    background:#7b70ff;
}

/* Coin Cards */

.coin-card{
    margin:0 20px;
    border:1px solid #dedee8;
    border-radius:12px;
    padding:16px;
    background:#fff;
    transition:transform .3s ease, opacity .3s ease;
}

.coin-card.is-swapping{
    opacity:.9;
}

.coin-card.swap-left{
    transform:translateX(-24px);
}

.coin-card.swap-right{
    transform:translateX(24px);
}

.coin-card small{
    color:#7b7b7b;
    font-size:13px;
    display:block;
    margin-bottom:14px;
}

.coin-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.coin-left{
    display:flex;
    align-items:center;
}

.coin-left img{
    width:42px;
    height:42px;
    margin-right:12px;
    border-radius:50%;
}

.coin-left h3{
    font-size:20px;
    font-weight:700;
    color:#222;
    display:flex;
    align-items:center;
    gap:6px;
}

.coin-arrow{
    width:14px;
    height:14px;
    display:inline-block;
    stroke:currentColor;
    stroke-width:2;
    fill:none;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.coin-left p{
    color:#888;
    font-size:14px;
    margin-top:2px;
}

.badge{
    margin-left:12px;
    background:#f6d79d;
    color:#805e00;
    padding:3px 8px;
    border-radius:5px;
    font-size:12px;
    font-weight:600;
}

.badge.btc{
    background:#f6d79d;
    color:#805e00;
}

.badge.usd{
    background:#d8e3ff;
    color:#4762d9;
}

.amount{
    font-size:34px;
    font-weight:200;
    color:#111;
    outline:none;
    min-width:0;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    display:inline-block;
    max-width:100%;
    line-height:1.2;
}

.amount:focus{
    outline:none;
    border:none;
}

/* ===========================
   Swap Button
=========================== */

.swap-btn{
    width:44px;
    height:44px;
    background:#ffffff;
    border:none;
    border-radius:50%;
    margin:-18px auto;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:18px;
    font-weight:700;
    color:#666;
    box-shadow:0 8px 20px rgba(0,0,0,.08);
    position:relative;
    z-index:10;
    cursor:pointer;
    transition:transform .3s ease, box-shadow .3s ease;
}

.swap-btn:hover{
    box-shadow:0 10px 24px rgba(0,0,0,.12);
}

.swap-btn.rotated{
    transform:rotate(180deg);
}

/* Space below second card */

.receive{
    margin-top:18px;
}

/* ===========================
   Withdrawal Destination Card
=========================== */

.withdrawal-card{
    margin:18px 20px 0;
    padding:16px;
    border:1px solid #e5e7eb;
    border-radius:12px;
    background:#fff;
    box-shadow:0 8px 20px rgba(0,0,0,.04);
    opacity:0;
    transform:translateY(8px);
    transition:all .35s ease;
}

.withdrawal-card.fade-in{
    opacity:1;
    transform:translateY(0);
}

.withdrawal-header{
    margin-bottom:12px;
}

.withdrawal-title{
    display:flex;
    align-items:center;
    gap:8px;
}

.withdrawal-title h3{
    font-size:15px;
    font-weight:700;
    color:#232323;
}

.withdrawal-icon{
    font-size:15px;
}

.withdrawal-row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
    padding:10px 0;
    border-top:1px solid #f1f3f6;
}

@media (max-width:480px){
    .container{
        width:calc(100% - 16px);
        margin:12px auto 30px;
    }

    .ad-card,
    .exchange-card{
        border-radius:14px;
    }

    .coin-card,
    .withdrawal-card{
        margin:0 12px;
        padding:14px;
    }

    .coin-row,
    .withdrawal-row{
        flex-direction:column;
        align-items:flex-start;
    }

    .amount{
        font-size:28px;
        margin-top:8px;
    }

    .withdrawal-value{
        text-align:left;
    }

    .bonus{
        flex-direction:column;
        align-items:flex-start;
        gap:12px;
    }

    .signin{
        width:100%;
    }

    .next{
        width:calc(100% - 24px);
        margin:0 12px 18px;
    }
}

.withdrawal-row:first-of-type{
    border-top:none;
    padding-top:0;
}

.withdrawal-label{
    display:flex;
    align-items:center;
    gap:8px;
    font-size:13px;
    color:#6b7280;
}

.withdrawal-dot{
    font-size:13px;
}

.withdrawal-value{
    font-size:13px;
    font-weight:600;
    color:#111827;
    text-align:right;
}

.withdrawal-caption{
    margin-top:10px;
    font-size:12px;
    color:#9ca3af;
    line-height:1.5;
}

/* ===========================
   Fixed Rate
=========================== */

.fixed{
    display:flex;
    align-items:center;
    gap:10px;
    padding:18px 20px;
}

.toggle{
    width:36px;
    height:22px;
    border-radius:30px;
    background:#e8e8ef;
    position:relative;
}

.toggle::before{
    content:"";
    width:16px;
    height:16px;
    background:#fff;
    border-radius:50%;
    position:absolute;
    left:3px;
    top:3px;
    box-shadow:0 2px 6px rgba(0,0,0,.2);
}

.fixed span{
    font-size:15px;
    font-weight:500;
    color:#222;
}

.fixed small{
    width:18px;
    height:18px;
    border-radius:50%;
    background:#f2f2f7;
    display:flex;
    justify-content:center;
    align-items:center;
    color:#777;
    font-size:11px;
}

/* ===========================
   Bonus Card
=========================== */

.bonus{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin:0 20px 18px;
}

.bonus-left{
    display:flex;
    align-items:flex-start;
    gap:12px;
}

.bonus-left img{
    width:34px;
    height:34px;
    border-radius:50%;
}

.bonus-left p{
    font-size:12px;
    line-height:1.45;
    color:#444;
}

.bonus-left strong{
    font-weight:700;
    color:#222;
}

.bonus-left span{
    color:#6f74ff;
    font-weight:600;
}

.signin{
    border:none;
    background:#f2f2f7;
    color:#222;
    font-size:14px;
    font-weight:600;
    padding:11px 22px;
    border-radius:28px;
    cursor:pointer;
    transition:.3s;
}

.signin:hover{
    background:#e7e7ef;
}

/* ===========================
   Next Button
=========================== */

.next{
    width:calc(100% - 40px);
    height:46px;
    margin:0 20px 22px;
    border:none;
    border-radius:4px;
    background:#7066E0;
    font-size:18px;
    font-weight:600;
    color:#FFF;
    cursor:pointer;
    transition:.3s;
}



/* ===========================
   Responsive
=========================== */

@media(max-width:500px){

    .container{
        width:95%;
    }

    .ad-card,
    .exchange-card{
        width:100%;
    }

    .title h2{
        font-size:24px;
    }

    .coin-left h3{
        font-size:24px;
    }

    .amount{
        font-size:28px;
    }

    .signin{
        padding:10px 18px;
        font-size:13px;
    }

    .bonus-left p{
        font-size:11px;
    }

    .next{
        font-size:16px;
    }
}
