/* Start Reset */
@import url(https://fonts.googleapis.com/css?family=Kanit:100,100italic,200,200italic,300,300italic,regular,italic,500,500italic,600,600italic,700,700italic,800,800italic,900,900italic);
@import url(https://fonts.googleapis.com/css?family=Heebo:100,200,300,regular,500,600,700,800,900);

:root{
    --bg-image-swap: url("../img/bg.jpg");
    --swap-bg-color: rgba(21, 25, 32, 0.94);
}

a, body, div, h1, h2, h3, h4, h5, h6, header, html, img, p {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline
}

header {
    display: block
}

body {
    line-height: 1;
    margin: 0;
    padding: 0;
    justify-content: center;
    display: flex;
    align-items: center;
    align-content: center;
    align-self: center;
    background: #0A1022;
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: var(--bg-image-swap);
    background-repeat: no-repeat;
    background-size: cover;
    z-index: 0;
}

h1, h2, h3, h4, h5, h6, p {
    margin: 0;
    padding: 0
}

* {
    box-sizing: border-box
}

/* End Reset */

h3 {
    font-family: Kanit;
    color: #fff;
    font-size: 2.5rem;
    font-weight: 600;
}

p {
    font-family: Heebo;
    color: #fff;
    font-size: 16px;
    line-height: 1.5;
}

.header-left p {
    font-family: Heebo, sans-serif !important;
    font-size: 16px;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.header-right img {
    background-color: #1a1c29;
    border: .1px solid #1a1c29;
    border-radius: 10px
}

.main-container {
    position: relative;
    z-index: 1;
    width: 700px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    background: var(--swap-bg-color);
    padding: 40px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.second-container {
    padding: 30px;
    background: rgba(20, 23, 32, 0.9);
    border-radius: 15px;
    margin-top: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.first-row {
    display: flex;
    border-radius: 12px;
    padding: 15px;
    background: rgba(20, 23, 32, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 15px;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.row-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 140px;
    position: relative;
    padding-right: 30px;
}

.row-left img {
    width: 42px;
    height: 42px;
    background-color: #141720;
    border: transparent;
    box-shadow: rgba(0, 0, 0, .075) 0 6px 10px;
    border-radius: 10px;
}

.row-left-text {
    margin-top: 0;
    margin-left: 0;
}

.row-left-text p {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.6) !important;
    margin-bottom: 4px;
}

.row-left-text h3 {
    font-size: 20px;
    font-weight: 600;
    line-height: 1;
}

.row-right {
    flex: 1;
    margin-left: 20px;
}

.row-right input {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    text-align: right;
    outline: none;
}

.row-right input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.row-right input:focus, select:focus {
    outline: 0
}

div.first-row:nth-child(2) {
    margin-top: 40px
}

div.first-row:nth-child(2) > div:nth-child(1) > div:nth-child(2) p {
    line-height: 15px;
    color: rgba(127, 127, 127);
    font-weight: 900
}

div.first-row:nth-child(2) > div:nth-child(1) > div:nth-child(2) {
    padding-bottom: 8px
}

div.first-row:nth-child(2) > div:nth-child(1) > div:nth-child(1) {
    border: 2px solid #fff;
    border-radius: 50%;
    width: 54px;
    height: 54px;
    color: #fff;
    position: relative
}

div.first-row:nth-child(2) > div:nth-child(1) > div:nth-child(1) > p:nth-child(1) {
    position: absolute;
    font-size: 45px;
    left: 30%;
    top: -10px;
    font-family: Kanit
}

div.first-row:nth-child(2) > div:nth-child(2) > input:nth-child(1) {
    left: 80px;
    width: 348px;
    max-width: 348px
}

hr {
    color: #30333e;
    margin-top: 10px;
    margin-bottom: 20px;
    width: 100%
}

.tab {
    height: 0;
    transition: 0.3s height ease-in-out;
    overflow: hidden;
}

.tab .row-right {
    opacity: 0;
    pointer-events: none;
    transition: 0.3s opacity ease-in-out;
}

.tab.active .row-right {
    opacity: 1;
    pointer-events: auto;
}

.other-payment-tab {
    background: rgba(20, 23, 32, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    margin-top: 30px;
    display: none;
}

.other-payment-tab.active {
    display: block;
}

.other-payment-tab p {
    color: rgba(255, 255, 255, 0.8);
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.other-payment-tab a {
    color: #73D0FF;
    text-decoration: none;
    transition: all 0.3s ease;
}

.other-payment-tab a:hover {
    color: #1582B9;
}

.other-payment-tab input {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    font-family: "Poppins", sans-serif;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff;
    margin: 20px 0;
}

.instructions {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.instructions p {
    color: rgba(255, 255, 255, 0.8);
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.instructions a {
    color: #73D0FF;
    text-decoration: none;
}

.instructions a:hover {
    text-decoration: underline;
}

#caddress {
    width: 100% !important;
    padding: 15px;
    background: rgba(20, 23, 32, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #fff !important;
    font-family: monospace;
    font-size: 10px !important;
    margin: 15px 0;
    user-select: all;
    word-break: break-all;
}

.new-stepper-button {
    background-size: 200% auto;
    background-image: linear-gradient(90deg, #0A1022 0%, #1E3A8A 50%, #0A1022 100%);
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    width: 100%;
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.5s ease;
}

.new-stepper-button:hover {
    background-position: right center;
}

.new-stepper-button.secondary {
    background: linear-gradient(90deg, #0A1022 0%, #1E3A8A 100%);
}

.new-stepper-button.secondary:hover {
    background: linear-gradient(90deg, #1E3A8A 0%, #0A1022 100%);
}

.notice {
    font-style: italic;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    line-height: 1.8;
    margin: 20px 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mb-0 {
    margin-bottom: 0;
}

.swap-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}

.swap-actions > div {
    flex: 1;
}

.swap-actions .wallet-btn {
    margin-right: 0;
    margin-top: 0;
}

.other-options-btn {
    margin-top: 0;
}

.wallet-btn button, .other-options-btn button {
    background-size: 200% auto;
    background-image: linear-gradient(90deg, #0A1022 0%, #1E3A8A 50%, #0A1022 100%);
    border: none;
    cursor: pointer;
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    width: 100%;
    padding: 16px 32px;
    font-family: "Poppins", sans-serif;
    border-radius: 12px;
    transition: all 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.wallet-btn button:hover, .other-options-btn button:hover {
    background-position: right center;
}

.other-options-btn button {
    background-size: 200% auto;
    background-image: linear-gradient(90deg, #0A1022 0%, #1E3A8A 50%, #0A1022 100%);
}

.other-options-btn button:hover {
    background-position: right center;
}

.list p {
    position: relative;
    left: 45px;
    font-size: 12px;
    font-weight: lighter;
    bottom: 35px;
}

.down-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.down-arrow img {
    width: 20px !important;
    height: 20px !important;
    opacity: 0.4;
    margin-top: 10px;
    transition: opacity 0.3s ease;
}

.first-row:hover .down-arrow img {
    opacity: 0.7;
}

.guide-arrow {
    display: block;
    width: 16px;
    height: 16px;
    margin: 4px auto;
    opacity: 0.4;
}

.overlay {
    width: 360px;
    color: #fff;
    background: rgba(20, 23, 32, 0.98);
    border-radius: 16px;
    padding: 20px;
    height: auto;
    max-height: 520px;
    overflow: auto;
    position: fixed;
    z-index: 1000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.overlay-header h4 {
    font-family: Heebo;
    font-weight: 600;
    font-size: 18px;
    color: #fff;
}

.overlay-header .close {
    cursor: pointer;
    opacity: 0.6;
    font-size: 18px;
}

.list {
    display: grid;
    gap: 2px;
}

.crypto-list {
    display: flex;
    align-items: center;
    padding: 12px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.crypto-list:hover {
    background: rgba(255, 255, 255, 0.05);
}

.list-image {
    margin-right: 12px;
    flex-shrink: 0;
}

.list-image img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.crypto-text {
    flex: 1;
}

.crypto-text h5 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #fff;
}

.crypto-text p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin: 0;
    position: static;
    left: auto;
    bottom: auto;
}

.list p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    margin: 0;
    position: static;
    left: auto;
    bottom: auto;
}

.hidden {
    display: none;
}

/* Стилизация скроллбара */
.overlay::-webkit-scrollbar {
    width: 4px;
}

.overlay::-webkit-scrollbar-track {
    background: transparent;
}

.overlay::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.please2 {
    font-size: 20px;
    margin-top: 5px;
    font-weight: bolder !important
}

.please {
    font-size: 20px;
    margin-top: 5px;
    font-weight: bolder !important
}

.swap {
    width: 416px;
    color: #fff;
    background-color: #30333e;
    border-radius: 10px;
    padding: 20px;
    height: 680px;
    overflow: scroll;
    position: absolute;
    z-index: 1;
    top: 10%;
    left: 40%
}

.swap-list {
    display: flex;
    font-family: Heebo;
    margin-bottom: 15px;
    cursor: pointer
}

.swap-text h5 {
    font-weight: bolder
}

.crypto-list p {
    font-size: 12px;
    font-weight: lighter;
    color: #6c7284
}

.crypto-list h5 {
    font-size: 16px;
    font-weight: 600
}

.swap-list p {
    font-size: 12px;
    font-weight: lighter;
    color: #6c7284
}

.swap-list h5 {
    font-size: 16px;
    font-weight: 600
}

.swap-image {
    margin-top: 5px;
    margin-right: 15px
}

.swap-image img {
    width: 30px;
    height: 30px
}

.close {
    cursor: pointer
}

/* Below section is for the mobile portions */

@media only screen and (max-width: 767px) {
    .main-container {
        width: 100%;
        padding: 20px;
        margin: 10px;
    }

    .second-container {
        padding: 20px;
    }

    .row-left {
        min-width: 120px;
    }

    .row-left img {
        width: 40px;
        height: 40px;
    }

    .row-right input {
        font-size: 16px;
    }

    .overlay {
        width: 100%;
        height: 100vh;
        top: 0;
        left: 0;
        transform: none;
        border-radius: 0;
        border: none;
    }

    .list {
        padding: 20px;
        max-width: 500px;
        margin: 0 auto;
    }

    .overlay-header {
        padding: 20px;
        position: sticky;
        top: 0;
        background: rgba(10, 16, 34, 0.98);
        z-index: 2;
    }

    .crypto-list {
        padding: 10px;
    }

    .list-image img {
        width: 24px;
        height: 24px;
    }

    .crypto-text h5 {
        font-size: 14px;
        margin-bottom: 2px;
    }

    .crypto-text p {
        font-size: 12px;
    }
    
    .list p {
        margin: 0;
        font-size: 12px;
    }

    .other-payment-tab {
        padding: 20px;
    }

    .other-payment-tab p {
        font-size: 14px;
    }

    #caddress {
        padding: 12px;
    }

    .new-stepper-button {
        padding: 12px 24px;
        font-size: 14px;
        text-align: center;
        justify-content: center;
    }

    .wallet-btn button, .other-options-btn button {
        padding: 12px 24px;
        font-size: 14px;
    }

    [style*="background-color:#262626b0"] {
        font-size: 14px !important;
        padding: 15px !important;
        line-height: 1.8 !important;
    }
}

@media only screen and (max-width: 480px) {
    .main-container {
        margin: 0;
        border-radius: 0;
    }

    .second-container {
        border-radius: 10px;
    }

    .header-left h3 {
        font-size: 2rem;
    }

    .header-left p {
        font-size: 14px;
    }

    .row-left-text h3 {
        font-size: 16px;
    }

    .row-left-text p {
        font-size: 12px;
    }

    .swap-actions {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    #copybutton {
        width: 100%;
        max-width: 180px;
    }

    #caddress {
        padding: 10px;
    }
}

@media only screen and (max-width: 688px) {
    .swap-actions {
        flex-direction: column;
    }

    .swap-actions .wallet-btn {
        margin: 32px 0 16px 0;
    }

    .other-options-btn {
        margin: 0;
    }
}

@media only screen and (max-width: 375px) {
    .main-container {
        width: 100vw;
    }

    .row-right input {
        left: 130px;
        width: 87px;
    }

    div.first-row:nth-child(2) > div:nth-child(2) > input:nth-child(1) {
        left: 130px;
        width: 87px;
        font-size: 20px;
        top: 10px;
    }

    .overlay {
        left: 45px;
        width: 80%;
    }

    .body {
        overflow: hidden;
    }
}

@media only screen and (max-width: 688px) and (min-width: 376px) {
    .main-container {
        width: 414px;
    }

    .row-right input {
        left: 130px;
        width: 140px;
    }

    div.first-row:nth-child(2) > div:nth-child(2) > input:nth-child(1) {
        left: 130px;
        width: 140px;
    }
}

[style*="background-color:#262626b0"] {
    line-height: 2 !important;
    padding: 20px !important;
    font-family: "Heebo", sans-serif !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 15px !important;
}

#copybutton {
    padding: 10px;
    width: 180px;
    background-color: #1582B9;
    margin-top: 15px;
}

#caddress{
    color: #fff !important;
}