﻿ 
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
    --bg: #060612;
    --surface: #0d0d22;
    --surface2: #141430;
    --border: rgba(120,100,255,.15);
    --accent: #7c5cfc;
    --accent2: #00e5ff;
    --text: #e8e6ff;
    --muted: #6b6890;
    --green: #00e676;
    --red: #ff4c6a;
    --gold: #f3ba2f;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

body {
    font-family: 'Space Grotesk',sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(124,92,252,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(124,92,252,.05) 1px,transparent 1px);
    background-size: 44px 44px;
    pointer-events: none
}

.bg-glow {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse 55% 45% at 15% 25%,rgba(124,92,252,.14) 0%,transparent 65%),radial-gradient(ellipse 45% 40% at 85% 75%,rgba(0,229,255,.09) 0%,transparent 60%);
    pointer-events: none
}

.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    animation: fl 11s ease-in-out infinite
}

.orb1 {
    width: 300px;
    height: 300px;
    background: rgba(124,92,252,.13);
    top: -70px;
    left: -70px
}

.orb2 {
    width: 240px;
    height: 240px;
    background: rgba(0,229,255,.09);
    bottom: -60px;
    right: -50px;
    animation-delay: -5s
}

@keyframes fl {
    0%,100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-28px)
    }
}

/* CARD */
.card {
    position: relative;
    z-index: 10;
    background: rgba(13,13,34,.9);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 36px 32px 32px;
    width: 440px;
    max-width: 100%;
    backdrop-filter: blur(28px);
    box-shadow: 0 28px 72px rgba(0,0,0,.65)
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px
}

.brand-ico {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg,var(--accent),var(--accent2));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    box-shadow: 0 0 18px rgba(124,92,252,.4)
}

.brand-name {
    font-family: 'Space Mono',monospace;
    font-weight: 700;
    font-size: 16px;
    background: linear-gradient(90deg,var(--text),var(--accent2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent
}

.brand-badge {
    margin-left: auto;
    font-size: 10px;
    font-family: 'Space Mono',monospace;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid rgba(0,229,255,.25);
    color: var(--accent2);
    background: rgba(0,229,255,.07);
    transition: all .3s
}

.card-title {
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -.4px;
    margin-bottom: 5px
}

.card-sub {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 24px;
    line-height: 1.6
}

#connectedView {
    display: none
}

.wallet-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0,230,118,.07);
    border: 1px solid rgba(0,230,118,.2);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 20px
}

.wdot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: blink 2s ease-in-out infinite;
    flex-shrink: 0
}

@keyframes blink {
    0%,100% {
        opacity: 1
    }

    50% {
        opacity: .3
    }
}

.wchip-info {
    flex: 1;
    min-width: 0
}

.wchip-name {
    font-size: 12px;
    color: var(--green);
    font-weight: 600;
    letter-spacing: .3px
}

.wchip-addr {
    font-family: 'Space Mono',monospace;
    font-size: 11px;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #38bdf8, #2563eb);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-family: 'Space Grotesk',sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s,box-shadow .15s;
    box-shadow: 0 4px 24px rgba(124,92,252,.38);
    display: flex;
    justify-content: center;
    align-items: center;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 32px rgba(124,92,252,.52)
    }

    .btn-primary:active {
        transform: translateY(0)
    }

    .btn-primary:disabled {
        opacity: .5;
        cursor: not-allowed;
        transform: none;
        box-shadow: none
    }

.btn-disconnect {
    width: 100%;
    padding: 13px;
    background: rgba(255,76,106,.08);
    border: 1px solid rgba(255,76,106,.25);
    border-radius: 14px;
    color: var(--red);
    font-family: 'Space Grotesk',sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    margin-top: 10px
}

    .btn-disconnect:hover {
        background: rgba(255,76,106,.15)
    }

.sec-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--muted);
    background: rgba(0,230,118,.05);
    border: 1px solid rgba(0,230,118,.12);
    border-radius: 8px;
    padding: 9px 12px;
    margin-top: 16px
}

.sdot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    flex-shrink: 0;
    box-shadow: 0 0 7px var(--green)
}

.err-box {
    background: rgba(255,76,106,.07);
    border: 1px solid rgba(255,76,106,.2);
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 12px;
    color: #ff8fa3;
    margin-bottom: 14px;
    display: none;
    line-height: 1.5
}

/* REGISTRATION FIELDS */
.field {
    margin-bottom: 16px
}

.field-label {
    font-size: 11px;
    color: var(--muted);
    font-weight: 600;
    letter-spacing: .4px;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.field-tag {
    font-size: 9px;
    padding: 2px 7px;
    border-radius: 20px;
    font-family: 'Space Mono',monospace;
    letter-spacing: .3px
}

.tag-auto {
    background: rgba(0,230,118,.1);
    color: var(--green);
    border: 1px solid rgba(0,230,118,.22)
}

.tag-manual {
    background: rgba(243,186,47,.1);
    color: var(--gold);
    border: 1px solid rgba(243,186,47,.22)
}

.input-wrap {
    position: relative
}

.f-input {
    width: 100%;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 40px 12px 14px;
    color: var(--text);
    font-family: 'Space Mono',monospace;
    font-size: 12.5px;
    outline: none;
    transition: border-color .2s
}

    .f-input:focus {
        border-color: var(--accent)
    }

    .f-input::placeholder {
        color: var(--muted);
        font-family: 'Space Grotesk',sans-serif
    }

    .f-input[readonly] {
        cursor: default;
        color: var(--text)
    }

    .f-input.err {
        border-color: var(--red)
    }

.input-icon-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    font-size: 14px;
    padding: 6px 8px;
    border-radius: 8px;
    transition: background .15s,color .15s
}

    .input-icon-btn:hover {
        background: rgba(255,255,255,.06);
        color: var(--text)
    }

.f-hint {
    font-size: 10.5px;
    color: var(--muted);
    margin-top: 5px;
    line-height: 1.4
}

/* custom select */
.select-wrap {
    position: relative
}

.f-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 38px 12px 14px;
    color: var(--text);
    font-family: 'Space Grotesk',sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    outline: none;
    cursor: pointer;
    transition: border-color .2s
}

    .f-select:focus {
        border-color: var(--accent)
    }

    .f-select:disabled {
        opacity: .75;
        cursor: default
    }

.select-arrow {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
    font-size: 11px
}

.pos-preview {
    display: flex;
    gap: 8px;
    margin-top: 8px
}

.pos-chip {
    flex: 1;
    text-align: center;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface2);
    font-size: 11px;
    font-family: 'Space Mono',monospace;
    color: var(--muted);
    transition: all .2s
}

    .pos-chip.active-left {
        border-color: rgba(0,229,255,.4);
        color: var(--accent2);
        background: rgba(0,229,255,.07)
    }

    .pos-chip.active-right {
        border-color: rgba(124,92,252,.4);
        color: var(--accent);
        background: rgba(124,92,252,.07)
    }

.spin-sm2 {
    width: 13px;
    height: 13px;
    border: 2px solid rgba(255,255,255,.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    display: inline-block;
    vertical-align: -2px;
    margin-right: 6px
}

/* MODAL */
.overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(6,6,18,.85);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s;
    padding: 16px
}

    .overlay.open {
        opacity: 1;
        pointer-events: all
    }

.modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    width: 450px;
    max-width: 100%;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 32px 80px rgba(0,0,0,.7);
    transform: translateY(22px) scale(.97);
    transition: transform .25s cubic-bezier(.34,1.56,.64,1)
}

.overlay.open .modal {
    transform: translateY(0) scale(1)
}

.modal-head {
    padding: 18px 20px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0
}

.mh-title {
    font-size: 16px;
    font-weight: 700
}

.mh-sub {
    font-size: 11px;
    color: var(--muted);
    margin-top: 2px
}

.btn-x {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 17px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s
}

    .btn-x:hover {
        background: rgba(255,255,255,.09);
        color: var(--text)
    }

.search-row {
    padding: 11px 16px 9px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    position: relative
}

.search-ico {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 13px;
    pointer-events: none
}

.search-inp {
    width: 100%;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 9px 12px 9px 32px;
    color: var(--text);
    font-family: 'Space Grotesk',sans-serif;
    font-size: 13px;
    outline: none;
    transition: border-color .2s
}

    .search-inp:focus {
        border-color: var(--accent)
    }

    .search-inp::placeholder {
        color: var(--muted)
    }

.mob-banner {
    margin: 10px 14px 0;
    padding: 9px 12px;
    background: rgba(0,229,255,.06);
    border: 1px solid rgba(0,229,255,.18);
    border-radius: 9px;
    font-size: 11px;
    color: var(--accent2);
    line-height: 1.5;
    display: none;
    flex-shrink: 0
}

.wlist {
    overflow-y: auto;
    padding: 8px 12px 14px;
    flex: 1
}

    .wlist::-webkit-scrollbar {
        width: 4px
    }

    .wlist::-webkit-scrollbar-thumb {
        background: var(--border);
        border-radius: 99px
    }

.sec-lbl {
    font-size: 10px;
    font-family: 'Space Mono',monospace;
    color: var(--muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 4px 8px;
    display: flex;
    align-items: center;
    gap: 8px
}

    .sec-lbl::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--border)
    }

.witem {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background .13s,border-color .13s,transform .1s
}

    .witem:hover, .witem:active {
        background: rgba(124,92,252,.09);
        border-color: rgba(124,92,252,.2)
    }

.wico {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    background: var(--surface2);
    overflow: hidden
}

    .wico img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 9px
    }

.winfo {
    flex: 1;
    min-width: 0
}

.wname {
    font-size: 13px;
    font-weight: 600
}

.wdesc {
    font-size: 11px;
    color: var(--muted);
    margin-top: 1px
}

.wbadge {
    font-size: 10px;
    font-family: 'Space Mono',monospace;
    padding: 3px 8px;
    border-radius: 6px;
    flex-shrink: 0;
    font-weight: 700;
    white-space: nowrap
}

.b-inst {
    background: rgba(0,230,118,.1);
    color: var(--green);
    border: 1px solid rgba(0,230,118,.22)
}

.b-deep {
    background: rgba(0,229,255,.09);
    color: var(--accent2);
    border: 1px solid rgba(0,229,255,.22)
}

.b-na {
    background: rgba(255,255,255,.04);
    color: var(--muted);
    border: 1px solid var(--border)
}

.warrow {
    color: var(--muted);
    font-size: 14px;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity .13s
}

.witem:hover .warrow, .witem:active .warrow {
    opacity: 1
}

.no-res {
    text-align: center;
    padding: 28px 16px;
    color: var(--muted);
    font-size: 13px
}

    .no-res a {
        color: var(--accent);
        font-size: 12px;
        margin-top: 6px;
        display: inline-block
    }

.conn-ov {
    position: fixed;
    inset: 0;
    z-index: 150;
    background: rgba(6,6,18,.93);
    backdrop-filter: blur(18px);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 18px
}

    .conn-ov.show {
        display: flex
    }

.big-spin {
    width: 52px;
    height: 52px;
    border: 3px solid rgba(124,92,252,.2);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin .75s linear infinite
}

.conn-name {
    font-size: 15px;
    font-weight: 600
}

.conn-sub {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
    padding: 0 20px
}

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.toast {
    position: fixed;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%) translateY(70px);
    background: var(--surface2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 11px 18px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 9px;
    z-index: 200;
    transition: transform .28s cubic-bezier(.34,1.56,.64,1),opacity .28s;
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 8px 32px rgba(0,0,0,.45);
    /*max-width: calc(100vw - 40px);*/
    max-width: max-content;
    width: 90%;
}

    .toast.show {
        transform: translateX(-50%) translateY(0);
        opacity: 1
    }

    .toast.success {
        border-color: rgba(0,230,118,.3)
    }

    .toast.error {
        border-color: rgba(255,76,106,.3)
    }

    .toast.info {
        border-color: rgba(0,229,255,.3)
    }

@media(max-width:480px) {
    .card {
        padding: 28px 20px 24px
    }

    .modal {
        border-radius: 20px 20px 0 0;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        max-height: 90vh;
        width: 100%
    }

    .overlay {
        align-items: flex-end;
        padding: 0
    }
}



.login-button {
    width: auto;
    padding: 8px 15px;
    background: rgba(0,230,118,.05);
    border: 1px solid rgb(60 247 62 / 25%);
    border-radius: 9px;
    color: #1cd367;
    font-family: 'Space Grotesk',sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    margin-right: auto;
}

    .login-button:hover {
        background: rgb(48 232 118 / 29%);
    }