html {
    height: 100%;
    margin: 0;
    padding: 0;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #555 #1a1a1a;
}

body {
    margin: 0px;
    font-family: Montserrat, sans-serif;
    -webkit-font-smoothing: antialiased;
    background-color: #161616;
    color: #ebebeb;
    overflow-y: scroll;
    height: 100%;
}

.act-button {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 100%;
    color: #ebebeb;
    background-color: #282828;
    display: flex;
    justify-content: center;
    align-items: center;
}

.act {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 65px;
    text-align: center;
    user-select: none;
    -webkit-user-select: none;
}

.act span {
    color: #aaaaaa;
    font-style: normal;
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 16px;
}

.acts {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    user-select: none;
    -webkit-user-select: none;
}

.balance {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 32px;
}

.balance::before {
    content: "";
    height: 26px;
    text-align: center;
    width: 100%;
}

.balance .value {
    font-style: normal;
    font-weight: 600;
    font-size: 3rem;
    line-height: 3rem;
}

.balance .address {
    color: #aaaaaa;
    font-style: normal;
    font-weight: 500;
    font-size: 1rem;
    line-height: 2rem;
    cursor: pointer;
    user-select: none;
}

.wallets {
    flex-shrink: 0;
    user-select: none;
    top: 0px;
    z-index: 4;
    width: 100%;
    padding: 24px 1rem 1rem;
    display: flex;
    box-sizing: border-box;
    justify-content: center;
    overflow: visible !important;
    -webkit-user-select: none;
}


.wallets h3 {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    font-style: normal;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 28px;
    margin: 0px 0px 0.25rem;
    user-select: none;
    -webkit-user-select: none;
    cursor: pointer;
}

.wallets span {
    display: inline-block;
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wallets svg {
    color: #aaaaaa;
}

.wallet-drop {
    transition: opacity 0.15s ease-in-out;
    opacity: 1;
    position: absolute;
    width: 240px;
    left: 50%;
    margin-left: -120px;
    z-index: 1;
    background-color: rgb(46, 56, 71);
    border-radius: 16px;
    max-height: 368px;
    overflow: auto;
    opacity: 0;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 4px 16px;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.wallet-drop.active {
    opacity: 1;
    visibility: visible;
}


.wallet-drop .el {
    position: relative;
    display: flex;
    transition: background-color 0.1s;
    background-color: rgb(46, 56, 71);
    cursor: pointer;
    flex-grow: 1;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1rem 1rem 1rem;
    box-sizing: border-box;
    gap: 10px;
    width: 100%;
    user-select: none;
}

.wallet-drop .el:not(:first-child) {
    border-top: 1px solid rgba(90, 90, 90, 0.24);
    padding-top: 15px;
}

.wallet-drop .el:hover {
    background-color: #5a5a5a3d;
}

.wallet-drop .el .info {
    flex-grow: 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}


.wallet-drop .el svg {
    padding-left: 0.5rem;
    color: #40b4f0;
    display: flex;
    margin-left: auto;
}

.wallet-drop .el span {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
}

.wallet-drop .el span.address {
    color: #969696;
    white-space: nowrap;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
}

.history {
    flex-shrink: 0;
    user-select: none;
    top: 0px;
    z-index: 4;
    width: 100%;
    padding: 12px 1rem 0.75rem;
    display: flex;
    box-sizing: border-box;
    overflow: visible !important;
    flex-direction: column;
}

.history h3 {
    font-style: normal;
    font-weight: 600;
    font-size: 1.8rem;
    line-height: 4rem;
    margin: 0px;
    user-select: text;
}

.tx {
    display: grid;
    grid-template-columns: min-content 1fr min-content;
    gap: 0.5rem 0.8rem;
    background-color: #282828;
    padding: 0.8rem;
    align-items: center;
    margin: 2px 0;
    cursor: pointer;
}

.tx .icon {
    width: 44px;
    height: 44px;
    border-radius: 100%;
    color: #aaaaaa;
    background: #313131;
    display: flex;
    justify-content: center;
    align-items: center;

}

.tx .info {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}

.tx .info span.dir {
    font-style: normal;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
}

.tx .info span.address {
    font-style: normal;
    font-weight: 500;
    font-size: 0.8rem;
    color: #aaaaaa;
}

.tx .sum {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
}

.tx .sum .number {
    font-style: normal;
    font-weight: 600;
    font-size: 18px;
    white-space: nowrap;
}

.tx .sum .date {
    font-style: normal;
    font-weight: 500;
    font-size: 12px;
    color: #aaaaaa;
    white-space: nowrap;
}

.confirm {
    color: #61BD67 !important;
}

.get-started .center {
    min-width: 300px;
    max-width: 550px;
    margin: 0px auto;
    display: flex;
    flex-direction: column;
    white-space: pre-wrap;
}

.get-started {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1rem;
    box-sizing: border-box;
    position: relative;
    justify-content: center;
}

.get-started button {
    position: relative;
    border: 0px;
    outline: 0px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-style: normal;
    transition: background-color 0.1s, color 0.1s;
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 3rem;
    width: 100%;
    height: 56px;
    padding: 0px 24px;
    font-size: 16px;
    line-height: 24px;
    border-radius: 16px;
    color: rgb(255, 255, 255);
    background-color: rgb(69, 174, 245);
}

.get-started h1 {
    margin-bottom: 4rem;
    user-select: none;
    font-style: normal;
    font-weight: 700;
    font-size: 32px;
    line-height: 40px;
    margin: 0px;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    display: flex;
    width: 85%;
    max-width: 520px;
    background: #161616;
    padding: 1.5rem;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 6px rgba(0, 0, 0, 0.3);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    height: 90%;
    flex-direction: column;
    gap: 0.5rem;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal .close-btn {
    color: #cccccc;
    background-color: #262626;
    transition: background-color 0.1s;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    flex-shrink: 0;
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    border-radius: 100%;
    user-select: none;
}

.modal .back-btn:hover {
    background-color: #313131;
}

.modal .back-btn {
    color: #ffffff;
    background-color: #262626;
    transition: background-color 0.1s;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    flex-shrink: 0;
    cursor: pointer;
    width: 2rem;
    height: 2rem;
    border-radius: 100%;
    user-select: none;
}

.modal .close-btn:hover {
    background-color: #313131;
}

.modal .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.modal .header .title {
    font-style: normal;
    font-weight: 600;
    font-size: 1.3rem;
    white-space: nowrap;
}

.modal .input {
    width: 100%;
    min-height: 4rem;
    padding: 0px 3.5rem 0px 1rem;
    border-radius: 16px;
    display: flex;
    gap: 0.5rem;
    box-sizing: border-box;
    position: relative;
    transition: border-color 0.15s ease-in-out, background-color 0.10s ease-in-out;
    border: 1px solid rgb(38, 38, 38);
    background: rgb(38, 38, 38);
    align-items: start;
    overflow: hidden;
}

.modal .input.invalid {
    border: 1px solid rgb(255, 71, 102) !important;
    background: rgba(255, 80, 80, 0.08);
}

.modal .input .txtarea,
.modal .input input {
    outline: none;
    border: none;
    background: transparent;
    flex-grow: 1;
    flex-shrink: 0;
    box-sizing: border-box;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    font-family: Montserrat, sans-serif;
    -webkit-font-smoothing: antialiased;
    color: rgb(235, 235, 235);
    padding: 30px 0px 10px;
    resize: none;
    word-break: break-all;
    overflow: hidden;
    max-width: 100%;
}

.modal .input label {
    user-select: none;
    position: absolute;
    pointer-events: none;
    transform: translate(0px, 23px) scale(1);
    transform-origin: left top;
    color: rgb(148, 148, 152);
    font-size: 16px;
    line-height: 1;
    left: 1rem;
    transition: 200ms cubic-bezier(0, 0, 0.2, 1);
}

.modal .input label.c {
    user-select: none;
    position: absolute;
    pointer-events: none;
    transform-origin: left top;
    color: rgb(148, 148, 148);
    font-size: 16px;
    line-height: 1;
    left: 1rem;
    transform: translate(0px, 12px) scale(0.7);
    transition: 200ms cubic-bezier(0, 0, 0.2, 1);
}

.modal .input:focus-within label {
    transform: translate(0px, 12px) scale(0.7);
}

.modal .confirm {
    padding: 1rem 0px;
    box-sizing: border-box;
    width: 100%;
    bottom: 1rem;
    margin-top: auto;
}

.modal button.select {
    display: flex;
    gap: 16px;
    padding: 16px;
    background: rgb(40, 40, 40);
    border: none;
    align-items: center;
    border-radius: 16px;
    text-align: left;
    cursor: pointer;
}

.modal .select svg {
    color: rgb(64, 180, 240);
    flex-shrink: 0;
}

.modal .select svg.arrow {
    color: rgb(100, 100, 100) !important;
    flex-shrink: 0;
}

.modal .select .text {
    display: flex;
    flex-direction: column;
}

.modal .select svg:last-child {
    margin-left: auto;
}

.modal .select .text .name {
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
    color: #ebebeb;
}

.modal .select .text .desc {
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 20px;
    color: #969696;
}

.modal .confirm button {
    position: relative;
    border: 0px;
    outline: 0px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-style: normal;
    transition: background-color 0.1s, color 0.1s;
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    width: 100%;
    height: 56px;
    padding: 0px 24px;
    font-size: 16px;
    line-height: 24px;
    border-radius: 16px;
    color: rgb(255, 255, 255);
    background-color: rgb(64, 150, 240);
    user-select: none;
}

.modal .confirm button:disabled {
    cursor: not-allowed;
    background-color: #1f1f1f;
}

.modal .confirm-list {
    display: flex;
    flex-direction: column;
    background: rgb(29, 38, 51);
    padding: 0px;
    width: 100%;
    border-radius: 16px;
}

.modal .confirm-list>div:first-child {
    border-top-right-radius: 16px;
    border-top-left-radius: 16px;
}

.modal .confirm-list>div:last-child {
    border-bottom-right-radius: 16px;
    border-bottom-left-radius: 16px;
}

.modal .confirm-list .el {
    position: relative;
    display: flex;
    padding: 1rem 1rem 1rem 1rem;
    transition: background-color 0.1s;
    background-color: #282828;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
    flex-grow: 1;
}

.modal .confirm-list .el.copy {
    cursor: pointer;
}

.modal .confirm-list .el:not(:first-child) {
    border-top: 1px solid rgba(100, 100, 100, 0.24);
    padding-top: 15px;
}

.modal .confirm-list .el span.name {
    user-select: none;
    color: rgb(137, 148, 163);
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
}

.modal .confirm-list .el span.value {
    word-break: break-word;
    font-style: normal;
    font-weight: 600;
    font-size: 16px;
    line-height: 24px;
}

.modal .transfer {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal .transfer span {
    user-select: none;
    text-align: center;
    font-style: normal;
    font-weight: 700;
    font-size: 20px;
    line-height: 28px;
    margin: 0px 0px 2rem;
    user-select: none;
}

*::selection {
    background: #0088cc33;
}

.modal .sqr-cont {
    margin: 0px -1rem;
    width: calc(100% + 2rem);
}

.modal .sqr-cont .vid-cont {
    aspect-ratio: 1 / 1;
    width: 100%;
    position: relative;
}

.modal .sqr-cont .vid-cont::before {
    z-index: 0;
    content: "";
    display: block;
    position: absolute;
    inset: 0px;
    background: #969696;
}

.modal .sqr-cont .vid-cont video {
    z-index: 1;
    position: relative;
    display: inline-block;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.modal .sqr-cont .vid-cont::after {
    z-index: 2;
    content: "";
    display: block;
    position: absolute;
    inset: 0px;
    border: 50px solid rgba(0, 0, 0, 0.48);
    box-shadow: #646464 0px 0px 0px 5px inset;
}

.modal .qr-btn {
    position: absolute;
    right: 1rem;
    height: 100%;
    display: flex;
    align-items: center;
    cursor: pointer;
    color: rgb(64, 180, 240);
}

.modal .receive {
    display: flex;
    padding-bottom: 16px;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.modal .hint {
    text-align: center;
    color: #969696;
    font-style: normal;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    width: 16rem;
}


.modal .receive button {
    position: relative;
    border: 0px;
    outline: 0px;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-style: normal;
    transition: background-color 0.1s, color 0.1s;
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    width: auto;
    height: 48px;
    padding: 0px 20px;
    font-size: 16px;
    line-height: 24px;
    border-radius: 24px;
    color: rgb(235, 235, 235);
    background-color: #262626;
}

.modal .receive .qr-container {
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
    border-radius: 20px;
    background: white;
    max-width: 320px;
    overflow: hidden;
    margin: 2rem 0;
}

.modal .receive .qr-container canvas {
    width: 100%;
    height: auto;
    display: block;
    max-height: 320px;
    max-width: 320px;
}

.modal .receive .qr-container span {
    display: inline-block;
    word-break: break-all;
    color: black;
    margin: 16px 4px 0px;
    text-align: center;
    font-family: ui-monospace, "SF Mono", monospace, "Roboto Mono", Menlo, Consolas, Courier;
}

.modal .receive button:hover {
    background-color: #2c2c2c;
}

.modal .receive h2 {
    text-align: center;
    color: rgb(235, 235, 235);
    word-break: break-word;
    overflow-wrap: break-word;
}

.modal .receive h2.mono {
    margin: 3rem 0;
    font-size: 1.75rem;
    font-family: ui-monospace, "SF Mono", monospace, "Roboto Mono", Menlo, Consolas, Courier;
}

.modal .input-act {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal .input-act .right {
    display: flex;
    text-align: right;
    justify-content: flex-end;
    align-items: center;
}

.modal .input-act span {
    color: #aaaaaa;
    font-weight: 500;
    font-size: 12px;
}

.modal .input-act.invalid span {
    color: rgb(255, 71, 82);
    font-weight: 600;
    font-size: 12px;
}

.modal .input-act a {
    color: #2288ff;
    margin-left: 8px;
    cursor: pointer;
    font-weight: 600;
}

.modal .input-act.invalid a {
    display: none;
}

.modal .done {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    color: rgb(57, 204, 131);
    height: 56px;
    width: 100%;
}

.modal .done span {
    font-style: normal;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
}

.modal .failed {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    color: rgb(204, 57, 32);
    height: 56px;
    width: 100%;
}

.modal .failed span {
    font-style: normal;
    font-weight: 600;
    font-size: 13px;
    line-height: 20px;
}

.spinner {
    animation: 1s linear 0s infinite normal none running rotate;
    width: 1em;
    height: 1em;
    position: absolute;
    top: calc(50% - 0.5rem);
    left: calc(50% - 0.5rem);
}

.spinner .path {
    stroke: currentcolor;
    stroke-linecap: round;
    animation: 1.5s ease-in-out 0s infinite normal none running dash;
}

.spinner.big {
    width: 4em;
    height: 4em;
    top: calc(50% - 2em);
    left: calc(50% - 2em);
}

.shimmer {
    display: inline-block;
    animation-duration: 2s;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
    animation-name: placeHolderShimmer;
    animation-timing-function: linear;
    opacity: 0.1;
    position: relative;
    background: linear-gradient(to right, rgb(90, 90, 112) 8%, rgb(187, 187, 187) 18%, rgb(90, 90, 112) 33%) 0% 0% / 800px 104px;
}

.shimmer.p1 {
    border-radius: 4px;
    width: 120px;
    height: 1.5rem;
    margin-bottom: 4px;
}

.shimmer.p2 {
    border-radius: 4px;
    width: 120px;
    height: 1rem;
}

.shimmer.c1 {
    border-radius: 100%;
    width: 44px;
    height: 44px;
}


.swap-input {
    position: relative;
    background: #262626;
    border-radius: 16px;
    padding: 6px 12px;
    font-size: 14px;
}

.swap-input .label {
    color: #949494;
    gap: 8px;
    display: flex;
    padding: 4px 0px;
}

.swap-input .label>* {
    cursor: default;
}

.swap-input .label> :first-child {
    margin-right: auto;
}

.swap-input .label .lcontent {
    display: flex;
    height: 16px;
    align-items: center;
}

.swap-input .currency {
    flex-shrink: 0;
    border: none;
    display: flex;
    align-items: center;
    background: none;
    padding: 0px;
    gap: 6px;
    height: 36px;
    width: fit-content;
}

.swap-input .mrgn {
    display: flex;
    gap: 8px;
    padding: 4px 0px;
    align-items: center;
    min-height: 16px;
    color: #949494;
    font-size: 1rem;
}

.swap-input .currency span {
    display: block;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
    color: rgb(235, 235, 235);
    transition: color 0.15s ease-in-out;
    font-weight: 600;
}

.swap-input .currency svg {
    height: 24px;
    width: 24px;
    border-radius: 100%;
    flex-shrink: 0;
}

.swap-input .content {
    display: flex;
    gap: 8px;
    padding: 6px 0px;
}

.swap-input .content span.c {
    font-style: normal;
    font-weight: 600;
    font-size: 28px;
    line-height: 36px;
    text-align: right;
}

.swap-input .grid {
    display: grid;
    grid-template-rows: 1fr;
    overflow: visible;
    width: 100%;
}

.swap-input .grid .el {
    position: relative;
    display: flex;
    padding: 4px 0px;
    gap: 6px;
    align-items: center;
}

.swap-input .grid .el .last {
    margin-left: auto;
    font-style: normal;
    font-weight: 500;
    line-height: 16px;
    color: #ffffff;
}

.swap-input input {
    border: none;
    background: none;
    text-align: right;
    outline: none;
    width: 30px;
    color: rgb(235, 235, 235);
    font-family: inherit;
    font-style: normal;
    font-weight: 600;
    font-size: 28px;
    line-height: 36px;
    flex: 1 1 0%;
}

.swap-input .not-input span.p {
    color: #616161;
}

.modal .swap-btn {
    height: 32px;
    width: 32px;
    position: absolute;
    right: calc(50% - 16px);
    bottom: -20px;
    border: none;
    background-color: rgb(56, 56, 56);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    padding: 2px;
    color: rgb(235, 235, 235);
    transition: background-color 0.1s;
    z-index: 2;
}

.modal .swap-btn:hover {
    background-color: #404040;
}

.swap-input .not-input {
    font-style: normal;
    font-weight: 600;
    font-size: 28px;
    line-height: 36px;
    flex: 1 1 0%;
    text-align: right;
}

.swap-input .lcontent a {
    color: #2288ff;
    margin-left: 8px;
    cursor: pointer;
    font-weight: 600;
}

@keyframes placeHolderShimmer {
    0% {
        background-position: -800px 0px;
    }

    100% {
        background-position: 800px 0px;
    }
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }

    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}