﻿ 
/*@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;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: 'Poppins', 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: 'Poppins', sans-serif;
    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: 'Poppins', sans-serif;
    padding: 2px 8px;
    border-radius: 20px;
    border: 1px solid rgb(188 122 24);
    color: #f4a641;
    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: 'Poppins', sans-serif;
    font-size: 11px;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #f4a641, #e28610);
    border: none;
    border-radius: 14px;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .15s,box-shadow .15s;
    box-shadow: 0 4px 24px rgb(252 197 92 / 38%);
    display: flex;
    justify-content: center;
    align-items: center;
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 32px rgb(188 122 24 / 45%);
    }

    .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: 'Poppins', 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: 'Poppins', sans-serif;
    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: 'Poppins', sans-serif;
    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: 'Poppins', 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: 'Poppins', 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: 'Poppins', sans-serif;
    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: 'Poppins', 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: 'Poppins', sans-serif;
    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: 'Poppins', sans-serif;
    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;
        width: 100%;
    }

    .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: 'Poppins', 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%);
    }



/* ===== LOGIN + HOME BUTTONS ===== */
.homebtn {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    margin: 20px auto 0 !important;
    padding: 0 !important;
    flex-wrap: nowrap !important;
    position: relative;
    box-sizing: border-box;
}

    /* Common Button Properties */
    .homebtn .login-button,
    .homebtn .home-button {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 88px !important;
        height: 36px !important;
        margin: 0 !important;
        padding: 0 13px !important;
        border-radius: 8px !important;
        font-family: inherit !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        line-height: 1 !important;
        white-space: nowrap !important;
        cursor: pointer !important;
        box-shadow: none !important;
        transform: none;
        transition: all 0.2s ease !important;
    }

    /* LOGIN - Green */
    .homebtn .login-button {
        background: rgba(0, 254, 77, 0.06) !important;
        color: #00FE4D !important;
        border: 1px solid rgba(0, 254, 77, 0.40) !important;
    }

        .homebtn .login-button svg {
            width: 14px !important;
            height: 14px !important;
            display: inline-block !important;
            flex-shrink: 0 !important;
        }

        .homebtn .login-button:hover {
            background: rgba(0, 254, 77, 0.13) !important;
            border-color: #00FE4D !important;
            color: #00FE4D !important;
            box-shadow: 0 0 12px rgba(0, 254, 77, 0.12) !important;
        }

    /* HOME - Blue */
    .homebtn .home-button {
        background: rgba(245, 158, 11, 0.08) !important;
        color: #F5A623 !important;
        border: 1px solid rgba(245, 158, 11, 0.45) !important;
        box-shadow: none !important;
    }

        .homebtn .home-button svg {
            width: 14px !important;
            height: 14px !important;
            display: inline-block !important;
            flex-shrink: 0 !important;
        }

        .homebtn .home-button:hover {
            background: rgba(245, 158, 11, 0.15) !important;
            color: #FFB547 !important;
            border-color: #F5A623 !important;
            box-shadow: 0 0 12px rgba(245, 158, 11, 0.15) !important;
        }

        /* Click & Keyboard */
        .homebtn .login-button:active,
        .homebtn .home-button:active {
            transform: scale(0.98) !important;
        }

    .homebtn .login-button:focus-visible {
        outline: 2px solid #00FE4D !important;
        outline-offset: 3px !important;
    }

    .homebtn .home-button:focus-visible {
        outline: 2px solid #38BDF8 !important;
        outline-offset: 3px !important;
    }

/* Mobile */
@media (max-width: 480px) {
    .homebtn {
        gap: 10px !important;
        margin-top: 18px !important;
    }

        .homebtn .login-button,
        .homebtn .home-button {
            min-width: 84px !important;
            height: 35px !important;
            padding: 0 11px !important;
            font-size: 12px !important;
        }
}


/* ===== Registration Card Mobile Responsive Fix ===== */
@media screen and (max-width: 767px) {

    .card {
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 18px 14px;
        margin-left: auto;
        margin-right: auto;
        overflow: hidden;
    }

        .card *,
        .card *::before,
        .card *::after {
            box-sizing: border-box;
        }

        /* Logo and BSC Badge */
        .card .brand {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 10px;
            width: 100%;
            margin-bottom: 20px;
        }

            .card .brand img {
                height: 42px !important;
                width: auto !important;
                max-width: 65%;
                object-fit: contain;
            }

        .card .brand-badge {
            flex-shrink: 0;
            font-size: 10px;
            padding: 6px 9px;
            white-space: nowrap;
        }

        /* Register Heading */
        .card .card-title {
            font-size: 22px;
            line-height: 1.4;
            overflow-wrap: anywhere;
        }

        .card .card-sub {
            font-size: 13px;
            line-height: 1.6;
            margin-bottom: 16px;
            overflow-wrap: anywhere;
        }

        /* Connected Wallet Box */
        .card .wallet-chip {
            display: flex;
            align-items: center;
            gap: 9px;
            width: 100%;
            min-width: 0;
            padding: 12px 10px;
            margin-bottom: 16px;
        }

        .card .wchip-info {
            flex: 1;
            min-width: 0;
            overflow: hidden;
        }

        .card .wchip-name {
            font-size: 13px;
            overflow-wrap: anywhere;
        }

        .card .wchip-addr {
            max-width: 100%;
            font-size: 11px;
            line-height: 1.5;
            overflow-wrap: anywhere;
            word-break: break-all;
        }

        /* Form Fields */
        .card form {
            width: 100%;
            min-width: 0;
        }

        .card .field {
            width: 100%;
            min-width: 0;
            margin-bottom: 16px;
        }

        .card .field-label {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 6px;
            width: 100%;
            font-size: 13px;
        }

        .card .field-tag {
            max-width: 100%;
            overflow-wrap: anywhere;
        }

        /* Wallet and Referral Inputs */
        .card .input-wrap {
            display: flex;
            align-items: center;
            width: 100%;
            min-width: 0;
            gap: 6px;
        }

        .card .f-input {
            flex: 1;
            width: 100%;
            min-width: 0;
            max-width: 100%;
            height: 46px;
            padding: 10px 11px;
            font-size: 12px;
        }

        .card #loginAddrInput {
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .card #txtSponserID {
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .card .input-icon-btn {
            flex-shrink: 0;
            min-width: 40px;
            min-height: 40px;
            padding: 8px;
        }

        /* Referral Hint */
        .card .f-hint {
            font-size: 11px;
            line-height: 1.6;
            margin-top: 7px;
            overflow-wrap: anywhere;
            word-break: break-word;
        }

        /* Register and Disconnect Buttons */
        .card .btn-primary,
        .card .btn-disconnect {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            width: 100%;
            max-width: 100%;
            min-height: 46px;
            padding: 12px 14px;
            margin-top: 12px;
            font-size: 14px;
            line-height: 1.5;
            white-space: normal;
        }

            .card .btn-primary svg {
                flex-shrink: 0;
            }

        /* Security Note */
        .card .sec-note {
            display: flex;
            align-items: flex-start;
            justify-content: center;
            flex-wrap: wrap;
            gap: 7px;
            font-size: 11px;
            line-height: 1.5;
            text-align: center;
        }

        /* Error Message */
        .card .err-box {
            width: 100%;
            max-width: 100%;
            overflow-wrap: anywhere;
            word-break: break-word;
        }
}

/* ===== Small Mobile Screens ===== */
@media screen and (max-width: 380px) {

    .card {
        padding: 14px 10px;
    }

        .card .brand img {
            height: 36px !important;
        }

        .card .brand-badge {
            font-size: 9px;
            padding: 5px 7px;
        }

        .card .card-title {
            font-size: 20px;
        }

        .card .wallet-chip {
            padding: 10px 8px;
        }

        .card .wchip-addr {
            font-size: 10px;
        }

        .card .f-input {
            font-size: 11px;
            padding-left: 8px;
            padding-right: 8px;
        }
}