/* =========================
   RESET
========================= */

* {
    box-sizing: border-box;
}


body {

    margin: 0;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    background:
        #0b0b0d;

    color:
        #ffffff;
}


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


.app {

    max-width:
        520px;

    margin:
        auto;

    padding:
        16px;

}


/* =========================
   CARDS
========================= */


.wallet-card,
.card {

    background:
        #18181b;

    border-radius:
        22px;

    padding:
        20px;

    margin-bottom:
        16px;

    box-shadow:
        0 8px 30px
        rgba(0,0,0,.35);

}


/* =========================
   HEADER
========================= */


h1 {

    font-size:
        24px;

    margin:
        0 0 15px;

}


h2 {

    font-size:
        20px;

}


/* =========================
   BALANCE
========================= */


.balance {

    font-size:
        36px;

    font-weight:
        700;

    letter-spacing:
        -1px;

    margin:
        15px 0;

}


.label {

    color:
        #8e8e93;

    font-size:
        14px;

}


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


button {

    width:
        100%;

    border:
        0;

    border-radius:
        16px;

    padding:
        15px;

    margin-top:
        10px;

    font-size:
        16px;

    font-weight:
        600;

    background:
        #29292d;

    color:
        white;

    cursor:
        pointer;

    transition:
        .2s;

}


button:active {

    transform:
        scale(.97);

}


/* Главная кнопка */

.primary {

    background:
        #2ea6ff;

}



/* Отправка */

#createTx {

    background:
        #ff9f0a;

}



/* Подключение */

#importWallet {

    background:
        #5856d6;

}



/* Получить */

#receive {

    background:
        #30d158;

}



/* История */

#history {

    background:
        #636366;

}



/* =========================
   BUTTON GROUP
========================= */


.grid {

    display:
        flex;

    flex-direction:
        column;

    gap:
        10px;

}



/* =========================
   INPUTS
========================= */


input,
textarea {

    width:
        100%;

    background:
        #242426;

    border:
        1px solid #333;

    border-radius:
        14px;

    padding:
        14px;

    color:
        white;

    font-size:
        16px;

    margin:
        8px 0 15px;

    outline:
        none;

}



input:focus,
textarea:focus {

    border-color:
        #2ea6ff;

}



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


.warning {

    color:
        #ffcc66;

    line-height:
        1.5;

    background:
        rgba(255,204,102,.1);

    padding:
        12px;

    border-radius:
        12px;

}



/* =========================
   TRANSACTIONS
========================= */


.transaction {

    background:
        #202023;

    border-radius:
        18px;

    padding:
        16px;

    margin-top:
        12px;

}



.row {

    display:
        flex;

    justify-content:
        space-between;

    gap:
        10px;

    margin:
        10px 0;

}



.row span {

    color:
        #aaa;

}


code {

    word-break:
        break-all;

    color:
        #8fd3ff;

}


/* =========================
   MODAL
========================= */


.modal {

    position:
        fixed;

    inset:
        0;

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

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    padding:
        20px;

}



.modal-box {

    background:
        #1c1c1e;

    border-radius:
        22px;

    padding:
        20px;

    width:
        100%;

    max-width:
        380px;

}



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


@media(max-width:520px){

    .app {

        padding:
            12px;

    }


    .balance {

        font-size:
            32px;

    }

}