/* ===========================================
   MANAGE LIQUIDITY
=========================================== */

.manage-liquidity-page{
    display:flex;
    justify-content:center;
    align-items:flex-start;
    padding:50px 20px 80px;
}

.manage-card{
    width:100%;
    max-width:760px;
    background:#111111;
    border:1px solid rgba(255,170,0,.18);
    border-radius:24px;
    overflow:hidden;
    box-shadow:
        0 20px 60px rgba(0,0,0,.55),
        inset 0 1px 0 rgba(255,255,255,.04);
}

/* ===========================================
   Tabs
=========================================== */

.manage-tabs{
    display:flex;
    background:#0b0b0b;
}

.tab-btn{
    flex:1;
    height:62px;
    border:none;
    background:transparent;
    color:#999;
    font-size:17px;
    font-weight:600;
    cursor:pointer;
    transition:.25s;
}

.tab-btn:hover{
    color:#fff;
}

.tab-btn.active{
    background:linear-gradient(
        180deg,
        #ffb11a,
        #ff9500
    );
    color:#111;
}

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

.manage-header{
    display:flex;
    align-items:center;
    gap:18px;
    padding:28px 34px;
}

.back-btn{
    width:42px;
    height:42px;
    border:none;
    background:transparent;
    color:#ffac00;
    font-size:28px;
    cursor:pointer;
}

.manage-header h2{
    flex:1;
    text-align:center;
    color:#fff;
    font-size:28px;
    font-weight:700;
    margin-right:40px;
}

/* ===========================================
   Panels
=========================================== */

.tab-panel{
    display:none;
    padding:0 28px;
}

.tab-panel.active{
    display:block;
}

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

.coin-input-card{

    position:relative;

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    padding:24px;

    background:#1b1b1b;

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

    border-radius:22px;

    margin-bottom:18px;

    transition:.25s;

}

.coin-input-card:hover{

    border-color:#ffac00;

}

.coin-left{

    display:flex;

    align-items:center;

    gap:20px;

}

.coin-logo{

    width:74px;

    height:74px;

    border-radius:50%;

    object-fit:cover;

    background:#000;

    padding:6px;

}

.lp-icon{

    width:74px;

    height:74px;

    border-radius:50%;

    background:#222;

    display:flex;

    justify-content:center;

    align-items:center;

    color:#fff;

    font-size:28px;

    font-weight:700;

}

/* ===========================================
   Inputs
=========================================== */

.coin-input{

    width:240px;

    border:none;

    background:transparent;

    outline:none;

    color:#fff;

    font-size:46px;

    font-weight:600;

}

.coin-input::placeholder{

    color:#666;

}

.coin-name{

    margin-top:6px;

    color:#999;

    font-size:15px;

}

.balance{

    color:#888;

    font-size:14px;

    font-weight:600;

}

/* ===========================================
   Divider
=========================================== */

.pair-divider{

    position:relative;

    height:28px;

    margin-top:-12px;

    margin-bottom:-2px;

}

.pair-divider::before{

    content:"";

    position:absolute;

    top:50%;

    left:0;

    right:0;

    height:2px;

    background:#333;

}

.switch-button{

    position:absolute;

    left:50%;

    top:50%;

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

    width:46px;

    height:46px;

    border-radius:12px;

    border:2px solid #111;

    background:#ffac00;

    color:#111;

    font-size:26px;

    font-weight:700;

    cursor:pointer;

    transition:.25s;

    z-index:5;

}

.switch-button:hover{

    transform:translate(-50%,-50%) scale(1.08);

}

/* ===========================================
   Withdraw Grid
=========================================== */

.withdraw-grid{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:18px;

}

.output-card{

    background:#1b1b1b;

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

    border-radius:18px;

    padding:18px;

}

.output-card label{

    display:block;

    color:#999;

    font-size:13px;

    margin-bottom:10px;

}

.output-card input{

    width:100%;

    border:none;

    background:none;

    outline:none;

    color:#fff;

    font-size:28px;

    font-weight:600;

}



/* ===========================================
   Reserve Section
=========================================== */

.reserve-section,
.balances{

    margin:30px 28px 0;

    padding:24px;

    background:#181818;

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

    border-radius:22px;

}

.reserve-section h3,
.balances h3{

    color:#ffb21a;

    font-size:18px;

    font-weight:700;

    margin-bottom:24px;

}

/* ===========================================
   Reserve Grid
=========================================== */

.reserve-grid{

    display:grid;

    grid-template-columns:1fr 1fr auto;

    gap:25px;

    align-items:end;

}

.reserve-grid>div{

    display:flex;

    flex-direction:column;

}

.reserve-grid h2{

    color:#fff;

    font-size:32px;

    font-weight:700;

    margin-bottom:6px;

}

.reserve-grid span{

    color:#888;

    font-size:14px;

}

/* ===========================================
   Slippage
=========================================== */

.slippage-box{

    align-self:flex-end;

}

.slippage-box label{

    display:block;

    margin-bottom:10px;

    color:#ffb21a;

    font-size:14px;

    font-weight:600;

}

.slippage-input{

    display:flex;

    align-items:center;

    background:#111;

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

    border-radius:12px;

    overflow:hidden;

    width:110px;

    height:46px;

}

.slippage-input input{

    width:100%;

    height:100%;

    border:none;

    outline:none;

    background:transparent;

    color:#fff;

    text-align:center;

    font-size:18px;

    font-weight:600;

}

.slippage-input span{

    width:38px;

    height:100%;

    display:flex;

    align-items:center;

    justify-content:center;

    color:#ffb21a;

    font-weight:700;

    background:#1c1c1c;

    border-left:1px solid rgba(255,170,0,.15);

}

/* ===========================================
   Balance Grid
=========================================== */

.balance-grid{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:24px;

}

.balance-grid>div{

    background:#111;

    border-radius:18px;

    padding:20px;

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

}

.balance-grid h2{

    color:#fff;

    font-size:30px;

    font-weight:700;

    margin-bottom:8px;

}

.balance-grid span{

    color:#888;

    font-size:14px;

}

/* ===========================================
   Advanced Row
=========================================== */

.advanced-row{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin:30px 28px;

    padding:18px 22px;

    background:#181818;

    border-radius:18px;

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

}

.advanced-row span{

    color:#fff;

    font-size:16px;

    font-weight:600;

}

/* ===========================================
   Toggle Switch
=========================================== */

.switch{

    position:relative;

    display:inline-block;

    width:62px;

    height:34px;

}

.switch input{

    display:none;

}

.slider{

    position:absolute;

    inset:0;

    border-radius:999px;

    cursor:pointer;

    background:#444;

    transition:.25s;

}

.slider:before{

    content:"";

    position:absolute;

    width:26px;

    height:26px;

    left:4px;

    top:4px;

    border-radius:50%;

    background:#fff;

    transition:.25s;

}

.switch input:checked + .slider{

    background:#ffac00;

}

.switch input:checked + .slider:before{

    transform:translateX(28px);

}

/* ===========================================
   Number Inputs
=========================================== */

.coin-input::-webkit-outer-spin-button,
.coin-input::-webkit-inner-spin-button,
.output-card input::-webkit-outer-spin-button,
.output-card input::-webkit-inner-spin-button,
.slippage-input input::-webkit-outer-spin-button,
.slippage-input input::-webkit-inner-spin-button{

    -webkit-appearance:none;

    margin:0;

}

.coin-input,
.output-card input,
.slippage-input input{

    appearance:textfield;
    -moz-appearance:textfield;

}

/* ===========================================
   Focus States
=========================================== */

.coin-input:focus,
.output-card input:focus,
.slippage-input input:focus{

    color:#ffcc55;

}

.output-card:hover,
.balance-grid>div:hover,
.reserve-section:hover{

    border-color:rgba(255,170,0,.28);

}


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

#depositButtons,
#withdrawButtons{

    margin:30px 28px 34px;

    display:flex;

    flex-direction:column;

    gap:16px;

}

/* ===========================================
   PRIMARY BUTTON
=========================================== */

.primary-btn{

    width:100%;

    height:60px;

    border:none;

    border-radius:16px;

    cursor:pointer;

    font-size:17px;

    font-weight:700;

    color:#111;

    background:linear-gradient(
        180deg,
        #ffc53d 0%,
        #ffac00 100%
    );

    transition:.25s;

    box-shadow:
        0 10px 25px rgba(255,172,0,.25);

}

.primary-btn:hover{

    transform:translateY(-2px);

    box-shadow:
        0 15px 35px rgba(255,172,0,.4);

}

.primary-btn:active{

    transform:scale(.98);

}

/* ===========================================
   SECONDARY BUTTON
=========================================== */

.secondary-btn{

    width:100%;

    height:56px;

    border-radius:16px;

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

    background:#1a1a1a;

    color:#ffb21a;

    cursor:pointer;

    font-size:16px;

    font-weight:600;

    transition:.25s;

}

.secondary-btn:hover{

    background:#222;

    border-color:#ffac00;

    color:#fff;

}

/* ===========================================
   ADVANCED MODE
=========================================== */

.advanced-only{

    display:none;

}

body.advanced-mode .advanced-only{

    display:block;

}

/* ===========================================
   WARNING CARD
=========================================== */

.withdraw-warning{

    padding:18px 22px;

    border-radius:16px;

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

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

    color:#ffcb69;

    font-size:14px;

    line-height:1.6;

}

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

.tab-panel{

    animation:fadeUp .25s ease;

}

@keyframes fadeUp{

    from{

        opacity:0;

        transform:translateY(10px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/* ===========================================
   CARD HOVER
=========================================== */

.manage-card{

    transition:.3s;

}

.manage-card:hover{

    border-color:rgba(255,172,0,.28);

}

.coin-input-card,
.output-card,
.balance-grid>div,
.reserve-section,
.balances{

    transition:.25s;

}

.coin-input-card:hover,
.output-card:hover,
.balance-grid>div:hover{

    transform:translateY(-2px);

}

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

.manage-card::-webkit-scrollbar{

    width:8px;

}

.manage-card::-webkit-scrollbar-thumb{

    background:#ffac00;

    border-radius:999px;

}

/* ===========================================
   DISABLED STATE
=========================================== */

button:disabled{

    opacity:.45;

    cursor:not-allowed;

    transform:none!important;

}

/* ===========================================
   MOBILE
=========================================== */

@media(max-width:768px){

.manage-liquidity-page{

    padding:25px 12px 60px;

}

.manage-header{

    padding:22px;

}

.manage-header h2{

    font-size:22px;

    margin-right:0;

}

.tab-btn{

    font-size:15px;

}

.coin-input-card{

    flex-direction:column;

    gap:18px;

}

.coin-left{

    width:100%;

}

.coin-input{

    width:100%;

    font-size:36px;

}

.balance{

    width:100%;

}

.withdraw-grid{

    grid-template-columns:1fr;

}

.reserve-grid{

    grid-template-columns:1fr;

    gap:20px;

}

.balance-grid{

    grid-template-columns:1fr;

}

.slippage-box{

    width:100%;

}

.slippage-input{

    width:100%;

}

.advanced-row{

    margin:24px 18px;

}

#depositButtons,
#withdrawButtons{

    margin:24px 18px 30px;

}

}

/* ===========================================
   SMALL MOBILE
=========================================== */

@media(max-width:480px){

.manage-tabs{

    height:54px;

}

.tab-btn{

    font-size:14px;

}

.coin-logo,
.lp-icon{

    width:58px;

    height:58px;

}

.coin-input{

    font-size:30px;

}

.reserve-grid h2,
.balance-grid h2{

    font-size:24px;

}

.primary-btn{

    height:56px;

}

.secondary-btn{

    height:52px;

}

}