:root {
    --anim-fast: .18s;
    --anim: .36s;
    --anim-slow: .7s;
    --ease-out: cubic-bezier(.22,.61,.36,1);
    --ease-std: cubic-bezier(.4,0,.2,1);
    --brand-rgb: 108,92,231
}

@keyframes fadeIn {
    0% {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translate3d(0,10px,0)
    }

    to {
        opacity: 1;
        transform: translateZ(0)
    }
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translate3d(0,-10px,0)
    }

    to {
        opacity: 1;
        transform: translateZ(0)
    }
}

@keyframes slideInR {
    0% {
        opacity: 0;
        transform: translate3d(10px,0,0)
    }

    to {
        opacity: 1;
        transform: translateZ(0)
    }
}

@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(.96)
    }

    to {
        opacity: 1;
        transform: scale(1)
    }
}

@keyframes softPop {
    0% {
        transform: scale(.98) rotate(.001deg);
        opacity: 0
    }

    to {
        transform: scale(1) rotate(0);
        opacity: 1
    }
}

@keyframes glowPulse {
    0% {
        box-shadow: 0 0 rgba(var(--brand-rgb),0)
    }

    50% {
        box-shadow: 0 8px 24px rgba(var(--brand-rgb),.28)
    }

    to {
        box-shadow: 0 0 rgba(var(--brand-rgb),0)
    }
}

@keyframes subtleShimmer {
    0% {
        background-position: -200% 0
    }

    to {
        background-position: 200% 0
    }
}

.fade-in {
    animation: fadeIn var(--anim) var(--ease-std) both;
    will-change: opacity
}

.fade-in-up {
    animation: fadeInUp var(--anim) var(--ease-out) both;
    will-change: transform,opacity
}

.fade-in-down {
    animation: fadeInDown var(--anim) var(--ease-out) both;
    will-change: transform,opacity
}

.slide-in-r {
    animation: slideInR var(--anim) var(--ease-out) both;
    will-change: transform,opacity
}

.zoom-in {
    animation: zoomIn var(--anim) var(--ease-out) both;
    will-change: transform,opacity
}

.pop {
    animation: softPop .25s var(--ease-out) both;
    will-change: transform,opacity
}

.glow {
    animation: glowPulse 2s ease-in-out infinite
}

.skeleton {
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg,#ffffff0f 25%,#ffffff24 37%,#ffffff0f 63%);
    background-size: 200% 100%;
    animation: subtleShimmer 1.2s linear infinite;
    border-radius: 12px
}

.skel-line {
    height: 14px
}

.skel-box {
    background-clip: padding-box
}

.hover-lift {
    transition: transform var(--anim-fast) var(--ease-std),box-shadow var(--anim-fast) var(--ease-std)
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px #00000040,0 0 0 1px #ffffff0f inset
}

.pressable {
    transition: transform .12s var(--ease-std)
}

.pressable:active {
    transform: translateY(1px) scale(.995)
}

.dur-fast {
    animation-duration: var(--anim-fast)!important
}

.dur {
    animation-duration: var(--anim)!important
}

.dur-slow {
    animation-duration: var(--anim-slow)!important
}

.delay-0 {
    animation-delay: 0ms!important
}

.delay-100 {
    animation-delay: .1s!important
}

.delay-200 {
    animation-delay: .2s!important
}

.delay-300 {
    animation-delay: .3s!important
}

.once {
    animation-iteration-count: 1!important
}

.loop {
    animation-iteration-count: infinite!important
}

.linear {
    animation-timing-function: linear!important
}

.stagger>* {
    --stagger: 70ms;
    animation-delay: calc(var(--stagger) * var(--i, 0))
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none!important;
        transition: none!important
    }
}

:root {
    --bg-dark: #0f1b2a;
    --surface-1: rgba(255,255,255,.08);
    --surface-2: rgba(255,255,255,.06);
    --surface-3: rgba(255,255,255,.04);
    --txt: #f5f8fa;
    --muted: #94a3b8;
    --muted-2: #7b8aa1;
    --accent1: #00e0ff;
    --accent2: #24829e;
    --gold: #e9d68f;
    --success: #19c37d;
    --warning: #ffb020;
    --error: #ff4d4f;
    --info: #3aa0ff;
    --accent: var(--accent1);
    --accent-hover: #15c7e0;
    --border: 1px solid rgba(255,255,255,.08);
    --shadow-sm: 0 4px 16px rgba(0,0,0,.25);
    --shadow: 0 8px 28px rgba(0,0,0,.35);
    --r-card: 16px;
    --r-btn: 12px;
    --r-pill: 999px;
    --space: 16px;
    --container: 1200px;
    --bottom-nav-h: 56px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --font-ui: "Chakra Petch", system-ui, sans-serif;
    --font-display: "Quantico", "Chakra Petch", system-ui, sans-serif;
    --glow-cyan: 0 0 0 1px rgba(0,224,255,.25), 0 0 32px rgba(0,224,255,.18);
    --glow-amber: 0 0 0 1px rgba(255,176,32,.25), 0 0 32px rgba(255,176,32,.18);
    --ease: cubic-bezier(.2,.7,.2,1);
    --t-fast: .12s;
    --t-med: .18s;
    --t-slow: .35s;
    color-scheme: dark
}

* {
    box-sizing: border-box
}

html,body {
    height: 100%
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility
}

body {
    margin: 0;
    background: var(--bg-dark);
    color: var(--txt);
    font-family: var(--font-ui);
    font-size: 18px;
    line-height: 1.45
}

img {
    max-width: 100%;
    display: block
}

a {
    color: inherit;
    text-decoration: none
}

button {
    font: inherit
}

hr {
    border: 0;
    border-top: 1px solid rgba(255,255,255,.08);
    margin: 14px 0
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 20px
}

.muted {
    color: var(--muted)
}

.row {
    display: flex;
    gap: var(--space);
    align-items: center
}

.grid {
    display: grid;
    gap: var(--space)
}

.grid.cols-3 {
    grid-template-columns: repeat(auto-fit,minmax(260px,1fr))
}

.stack {
    display: grid;
    gap: 12px
}

.stack-lg {
    display: grid;
    gap: 16px
}

.hidden {
    display: none!important
}

.center {
    display: grid;
    place-items: center
}

.w100 {
    width: 100%
}

.mt {
    margin-top: var(--space)
}

.mb {
    margin-bottom: var(--space)
}

.vstack {
    display: grid;
    gap: var(--space)
}

.vstack-lg {
    display: grid;
    gap: calc(var(--space) * 1.25)
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0
}

h1,h2,h3,.btn,.kpi-value {
    font-family: var(--font-display);
    letter-spacing: .5px;
    text-transform: uppercase
}

h1,h2,h3 {
    margin: .2rem 0 .6rem
}

h1 {
    font-size: clamp(22px,3vw,28px);
    letter-spacing: .2px
}

h2 {
    font-size: 22px
}

h3 {
    font-size: 18px
}

.price,.kpi-value {
    font-variant-numeric: tabular-nums
}

.card {
    background: var(--surface-1);
    border: var(--border);
    border-radius: var(--r-card);
    padding: 16px;
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: saturate(110%) blur(6px);
    backdrop-filter: saturate(110%) blur(6px);
    transition: transform var(--t-med) var(--ease),box-shadow var(--t-med) var(--ease),background .2s var(--ease);
    will-change: transform
}

.card:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 30px #0000006b
}

@media (hover: none) {
    .card:hover {
        transform:none
    }
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #0f1b2a8c;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: var(--border)
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: .3px
}

.logo {
    height: 24px;
    width: auto
}

.nav {
    display: flex;
    gap: 14px;
    flex-wrap: wrap
}

.nav a {
    color: var(--muted);
    padding: 8px 6px;
    border-bottom: 2px solid transparent;
    transition: color var(--t-fast) var(--ease),border-color var(--t-fast) var(--ease)
}

.nav a:hover {
    color: var(--txt)
}

.nav a.active,[aria-current=page] {
    color: var(--txt);
    border-color: var(--accent2)
}

@media (max-width: 760px) {
    .topbar {
        display:none
    }

    .container {
        padding-bottom: max(calc(var(--bottom-nav-h) + 16px),var(--safe-bottom))
    }
}

.btn,.btn-primary,.btn-connect {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(90deg,var(--accent1),var(--accent2));
    color: #041218;
    border: 0;
    border-radius: var(--r-btn);
    padding: 4px 6px;
    font-weight: 700;
    font-size: 15px;
    min-height: 40px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform var(--t-fast) var(--ease),opacity var(--t-fast) var(--ease),filter var(--t-fast) var(--ease)
}

.btn:hover,.btn-primary:hover,.btn-connect:hover {
    transform: translateY(-1px)
}

.btn:active,.btn-primary:active,.btn-connect:active {
    transform: translateY(0) scale(.99)
}

.btn.connected,.btn-primary.connected,.btn-connect.connected {
    filter: saturate(95%);
    opacity: .9;
    cursor: default
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    border: var(--border);
    color: var(--txt);
    border-radius: var(--r-btn);
    padding: 4px 6px;
    min-height: 40px;
    cursor: pointer;
    transition: background var(--t-med) var(--ease),transform var(--t-fast) var(--ease),border-color var(--t-med) var(--ease)
}

.btn-outline:hover {
    background: var(--surface-2);
    transform: translateY(-1px)
}

.btn-sm {
    padding: 6px 10px;
    border-radius: 10px;
    font-weight: 600;
    min-height: 34px
}

.btn-lg {
    padding: 12px 18px;
    font-size: 15px;
    min-height: 44px
}

.btn-success {
    background: linear-gradient(90deg,#32e0a5,#19c37d);
    color: #041218
}

.btn-warn {
    background: linear-gradient(90deg,#ffd479,#ffb020);
    color: #3a2a00
}

.btn-danger {
    background: linear-gradient(90deg,#ff7a7c,#ff4d4f);
    color: #2a0e0f
}

.btn-ghost {
    background: transparent;
    border: 1px dashed rgba(255,255,255,.18);
    color: var(--muted)
}

.btn:disabled,.btn-primary:disabled,.btn-outline:disabled {
    opacity: .6;
    cursor: not-allowed
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 10px;
    display: inline-grid;
    place-items: center
}

.btn i,.btn-outline i,.btn-primary i {
    font-size: 18px
}

.pod {
    position: relative;
    display: grid;
    place-items: center;
    height: 180px;
    background: var(--bg-dark);
    border-radius: 14px;
    border: var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm)
}

.pod:after {
    content: "";
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translate(-50%);
    width: 62%;
    height: 10px;
    border-radius: var(--r-pill);
    filter: blur(10px);
    background: radial-gradient(circle at 50% 50%,#6c5ce759,#0000)
}

.machine-gif {
    max-width: 100%;
    max-height: 160px;
    object-fit: contain
}

.machine-gif.sm {
    max-height: 80px
}

.halo {
    position: absolute;
    inset: -2px;
    border-radius: 16px;
    pointer-events: none;
    box-shadow: inset 0 0 42px #00e0ff2e,var(--glow-cyan);
    opacity: .65
}

.halo-boost {
    box-shadow: inset 0 0 44px #ffb02038,var(--glow-amber)
}

.halo-oclock {
    animation: oclockPulse 1.6s ease-in-out infinite;
    box-shadow: inset 0 0 46px #ffb02047,0 0 60px #ffb02029
}

@keyframes oclockPulse {
    0%,to {
        opacity: .55;
        filter: saturate(100%)
    }

    50% {
        opacity: .92;
        filter: saturate(130%)
    }
}

.plans-grid {
    grid-template-columns: repeat(auto-fit,minmax(240px,1fr))
}

.plan-card h3 {
    margin: 10px 0 4px
}

.specs {
    list-style: none;
    margin: 0 0 12px;
    padding: 0;
    color: var(--muted);
    font-size: 13px
}

.specs li {
    display: flex;
    justify-content: space-between;
    margin: 2px 0
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 8px;
    font-size: 12px;
    border: 1px solid rgba(255,255,255,.12)
}

.badge.success {
    background: #19c37d26;
    border-color: #19c37d59
}

.badge.warn {
    background: #ffb02026;
    border-color: #ffb02059
}

.badge.error {
    background: #ff4d4f26;
    border-color: #ff4d4f59
}

.badge.info {
    background: #3aa0ff26;
    border-color: #3aa0ff59
}

.badge-phase {
    color: #0a2b33;
    background: linear-gradient(90deg,#9af2ff,#55dfff);
    border-color: transparent;
    font-weight: 700
}

.badge-buyback {
    color: #3a2100;
    background: linear-gradient(90deg,#ffd08a,#ffb65c);
    border-color: transparent;
    font-weight: 700
}

.miner-card {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 12px;
    align-items: center
}

.progress {
    height: 8px;
    background: #ffffff0f;
    border-radius: 8px;
    overflow: hidden;
    margin: 8px 0 2px
}

.progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg,#a3964c,#e9d68f)
}

.claimable {
    color: var(--gold)
}

.value-hint {
    color: var(--muted-2);
    font-size: 12px
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    justify-content: flex-end
}

.radial {
    --p: 0deg;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: conic-gradient(var(--accent1) var(--p),rgba(255,255,255,.1) 0),radial-gradient(circle at 50% 50%,#0000 60%,#00000059 61%);
    border: 1px solid rgba(255,255,255,.1)
}

.radial.small {
    width: 72px;
    height: 72px
}

.radial>span {
    font-weight: 800;
    font-size: 14px;
    color: #e9f9ff;
    text-shadow: 0 1px 0 rgba(0,0,0,.35)
}

.radial.warn {
    --accent1: #ffcc66
}

.radial.danger {
    --accent1: #ff6b6b
}

.meter {
    height: 10px;
    border-radius: 999px;
    overflow: hidden;
    background: #ffffff0f;
    border: 1px solid rgba(255,255,255,.08)
}

.meter>i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg,var(--accent1),var(--accent2));
    width: var(--val, 50%);
    transition: width .4s var(--ease)
}

.market-row {
    display: grid;
    gap: 12px;
    align-items: center;
    grid-template-columns: 80px 1fr auto
}

.filter-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px
}

.chip {
    padding: 3px 5px;
    border-radius: var(--r-pill);
    border: var(--border);
    color: var(--muted);
    cursor: pointer;
    font-size: 12px;
    transition: background var(--t-med) var(--ease),color var(--t-med) var(--ease),border-color var(--t-med) var(--ease),transform var(--t-fast) var(--ease)
}

.chip:hover {
    transform: translateY(-1px)
}

.chip.active {
    background: #6c5ce726;
    border-color: #6c5ce759;
    color: #cfd8ff
}

.listing {
    border: var(--border);
    background: var(--surface-1);
    border-radius: 16px;
    padding: 12px;
    display: grid;
    gap: 10px;
    transition: box-shadow var(--t-med) var(--ease),transform var(--t-fast) var(--ease)
}

.listing:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px #00000059
}

.listing .price {
    font-weight: 700;
    font-size: 18px
}

.listing.floor-ok .price {
    color: var(--success)
}

.listing.floor-at .price {
    color: #e0e0e0
}

.listing.floor-below .price {
    color: #ff7a7c
}

.levels {
    margin-top: 8px
}

.levels .chip {
    display: inline-block;
    margin: 4px 6px 0 0
}

.levels .chip.on {
    background: #a3964c26;
    color: #e9d68f;
    border-color: #e9d68f59
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: var(--surface-1);
    border: var(--border);
    border-radius: 12px;
    overflow: hidden
}

.table th,.table td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(255,255,255,.06)
}

.table th {
    text-align: left;
    color: var(--muted);
    font-weight: 600;
    background: var(--surface-2)
}

.table tr:hover td {
    background: var(--surface-3)
}

#toastHost {
    position: fixed;
    right: 16px;
    display: grid;
    gap: 8px;
    z-index: 40;
    bottom: 16px
}

@media (max-width: 760px) {
    #toastHost {
        bottom:calc(16px + var(--bottom-nav-h) + var(--safe-bottom))
    }
}

.toast {
    background: #191f2eeb;
    color: var(--txt);
    padding: 10px 12px;
    border-radius: 12px;
    border: var(--border);
    box-shadow: var(--shadow)
}

.toast.success {
    border-color: #19c37d59
}

.toast.warn {
    border-color: #ffb02059
}

.toast.error {
    border-color: #ff4d4f59
}

.toast.info {
    border-color: #3aa0ff59
}

.toast.out {
    opacity: 0;
    transform: translateY(6px);
    transition: all .2s var(--ease)
}

@media (max-width: 760px) {
    .modal-backdrop {
        place-items:end center
    }

    .modal {
        width: 100vw;
        max-width: 100vw;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border-top-left-radius: var(--r-card);
        border-top-right-radius: var(--r-card);
        max-height: calc(96vh - env(safe-area-inset-top));
        padding-bottom: max(16px,var(--safe-bottom));
        transform: translateY(18px);
        animation: sheetSlideUp var(--t-med) var(--ease) both
    }

    .modal:before {
        content: "";
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translate(-50%);
        width: 44px;
        height: 4px;
        border-radius: 999px;
        background: #ffffff2e
    }
}

.skeleton {
    background: linear-gradient(90deg,#ffffff0f 25%,#ffffff1f 37%,#ffffff0f 63%);
    background-size: 400% 100%;
    animation: subtleShimmer 1.2s var(--ease) infinite;
    border-radius: 10px
}

.skel-line {
    height: 12px;
    margin: 6px 0
}

.skel-box {
    height: 120px
}

@keyframes subtleShimmer {
    0% {
        background-position: 100% 0
    }

    to {
        background-position: 0 0
    }
}

#bottomNav {
    position: fixed;
    inset: auto 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(0,1fr));
    background: #0f1b2af5;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: var(--border);
    z-index: 26;
    min-height: var(--bottom-nav-h);
    padding-bottom: var(--safe-bottom)
}

#bottomNav a,#bottomNav button {
    display: grid;
    place-items: center;
    padding: 10px 0;
    color: var(--muted);
    text-decoration: none;
    font-size: 12px;
    background: transparent;
    border: 0;
    cursor: pointer
}

#bottomNav a.active,#bottomNav a:hover,#bottomNav button:hover {
    color: #fff
}

#bottomNav .bn-btn.connected {
    color: #cfd8ff;
    cursor: default
}

@media (min-width: 761px) {
    #bottomNav {
        display:none
    }
}

#mobileNavBackdrop {
    position: fixed;
    inset: 0;
    background: #060a12a6;
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-med) var(--ease);
    z-index: 25
}

#mobileNavBackdrop.on {
    opacity: 1;
    pointer-events: auto
}

input,select,textarea {
    width: 100%;
    background: var(--surface-2);
    border: var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    color: var(--txt)
}

label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 6px
}

.input-group {
    display: flex;
    gap: 8px;
    align-items: center
}

.input-inline {
    display: flex;
    align-items: center;
    gap: 8px
}

.segmented {
    display: inline-flex;
    background: var(--surface-2);
    border: var(--border);
    font-size: 12px;
    border-radius: 12px;
    padding: 4px
}

.segmented button {
    background: transparent;
    border: 0;
    color: var(--muted);
    padding: 3px 5px;
    border-radius: 10px;
    cursor: pointer
}

.segmented button.active {
    background: var(--surface-1);
    color: #fff
}

[data-tooltip] {
    position: relative
}

[data-tooltip]:after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translate(-50%);
    background: #101623f2;
    color: #fff;
    font-size: 12px;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,.12);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--t-fast) var(--ease);
    z-index: 50
}

[data-tooltip]:hover:after {
    opacity: 1
}

:focus-visible {
    outline: 2px solid var(--accent2);
    outline-offset: 2px
}

@media (prefers-reduced-motion: reduce) {
    *,*:before,*:after {
        animation: none!important;
        transition: none!important
    }
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px
}

::-webkit-scrollbar-thumb {
    background: #ffffff1f;
    border-radius: 999px
}

::-webkit-scrollbar-track {
    background: #ffffff0a
}

.fade-in {
    animation: fadeInUp var(--t-slow) var(--ease) both
}

.pop {
    animation: softPop var(--t-med) var(--ease) both
}

.glow {
    animation: glowPulse 2s ease infinite
}

.glass-hover:hover {
    background: var(--surface-2)
}

.price {
    font-variant-numeric: tabular-nums
}

.kpi-grid {
    display: grid;
    gap: var(--space);
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr))
}

.kpi {
    display: grid;
    place-items: center;
    text-align: center;
    padding: 22px 16px;
    min-height: 120px;
    transition: transform var(--t-med) var(--ease),background var(--t-med) var(--ease)
}

.kpi .kpi-label {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 6px
}

.kpi .kpi-value {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: .2px;
    line-height: 1
}

.kpi:hover {
    transform: translateY(-2px)
}

.icon,.bx {
    vertical-align: middle;
    line-height: 1
}

.with-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px
}

.nav a i {
    font-size: 18px;
    opacity: .9
}

#bottomNav a i,#bottomNav button i {
    font-size: 20px
}

#marketToolbar {
    margin-bottom: 10px
}

.btn-confirm {
    background: var(--accent);
    color: #00161f;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: filter var(--t-fast) var(--ease),transform var(--t-fast) var(--ease),background var(--t-fast) var(--ease)
}

.btn-confirm:hover {
    background: var(--accent-hover);
    transform: translateY(-1px)
}

.btn-confirm:active {
    transform: translateY(0)
}

.trust-card {
    position: relative;
    overflow: hidden
}

.trust-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    min-width: 0
}

.trust-hero .note {
    color: var(--muted);
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(180px,1fr));
    gap: 12px;
    min-width: 0
}

@media (max-width: 520px) {
    .trust-grid {
        grid-template-columns:1fr
    }
}

@media (max-width: 920px) {
    .trust-wrap {
        grid-template-columns:minmax(0,1fr)
    }
}

.tile {
    position: relative;
    padding: 14px;
    border-radius: 14px;
    text-decoration: none;
    background: var(--surface-2);
    border: 1px solid rgba(255,255,255,.12);
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    max-width: 100%;
    transition: transform var(--t-med) var(--ease),box-shadow var(--t-med) var(--ease),border-color var(--t-med) var(--ease);
    color: inherit
}

.tile:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px #00000052;
    border-color: #00d4ff47
}

.tile.disabled {
    opacity: .55;
    cursor: not-allowed
}

.tile.disabled:hover {
    transform: none;
    box-shadow: none;
    border-color: #ffffff1f
}

.tile .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: .2px;
    min-width: 0
}

.tile .brand img {
    height: 40px;
    width: auto;
    flex: 0 0 auto
}

.tile .brand span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.tile .status,.tile .meta {
    font-size: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block
}

.ok {
    background: #2ed573
}

.warn {
    background: #ffa502
}

.idle {
    background: #7f8c8d
}

@media (max-width: 640px) {
    .header {
        max-height:none;
        padding: 6px 0
    }

    .header__row {
        display: grid;
        grid-template-areas: "brand actions" "countdown countdown";
        grid-template-columns: 1fr auto;
        row-gap: 6px;
        min-height: auto
    }

    .brand {
        grid-area: brand
    }

    .header__center {
        grid-area: countdown;
        justify-content: flex-start
    }

    .header__right {
        grid-area: actions;
        justify-content: flex-end
    }

    .header__right .btn {
        min-width: 40px;
        padding: 6px 10px
    }

    .header__right .btn span {
        display: none
    }
}

:root {
    --fx-aurora: .24;
    --fx-glow: .9
}

body {
    position: relative;
    z-index: 0
}

body:before {
    content: "";
    position: fixed;
    inset: -20%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(60% 40% at 20% 10%,rgba(0,224,255,.18),transparent 60%),radial-gradient(50% 35% at 80% 0%,rgba(36,130,158,.22),transparent 60%),radial-gradient(50% 50% at 50% 100%,rgba(233,214,143,.16),transparent 60%);
    filter: blur(42px) saturate(135%);
    opacity: var(--fx-aurora);
    animation: auroraPan 18s linear infinite alternate
}

@keyframes auroraPan {
    0% {
        transform: translateY(-2%) rotate(.6deg)
    }

    to {
        transform: translateY(2%) rotate(-.6deg)
    }
}

.card:hover:before {
    opacity: var(--fx-glow);
    filter: blur(.2px)
}

.card:hover {
    box-shadow: 0 16px 40px #00000073
}

.kpi:hover {
    transform: translateY(-3px)
}

.nav a.active,[aria-current=page] {
    color: #fff;
    border-color: transparent;
    position: relative;
    text-shadow: 0 0 8px rgba(0,224,255,.35)
}

.nav a.active:after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg,var(--accent1),var(--accent2));
    box-shadow: 0 0 14px #00e0ffa6
}

.btn,.btn-primary,.btn-connect {
    position: relative;
    overflow: hidden
}

.btn:after,.btn-primary:after,.btn-connect:after {
    content: "";
    position: absolute;
    inset: -120% -40% auto;
    height: 200%;
    background: linear-gradient(60deg,transparent 30%,rgba(255,255,255,.38) 50%,transparent 70%);
    transform: translate(-120%) rotate(8deg);
    transition: transform .6s var(--ease)
}

.btn:hover:after,.btn-primary:hover:after,.btn-connect:hover:after {
    transform: translate(120%) rotate(8deg)
}

.chip.active {
    background: radial-gradient(120% 120% at 50% 120%,#00e0ff33,#6c5ce729 60%);
    border-color: #00e0ff6b;
    box-shadow: inset 0 0 24px #00e0ff38
}

.listing .price {
    background: linear-gradient(90deg,#c7f7ff,#e9d68f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.listing.floor-below .price {
    background: none;
    color: #ff7a7c
}

.listing.floor-ok .price {
    background: none;
    color: var(--success)
}

.pod .halo {
    opacity: .5;
    transition: opacity .25s var(--ease)
}

.pod:hover .halo {
    opacity: .9
}

#bottomNav a.active,#bottomNav button.active {
    color: #e7faff;
    text-shadow: 0 0 10px rgba(0,224,255,.45)
}

[data-tooltip]:after {
    box-shadow: 0 8px 24px #00000073,0 0 0 1px #ffffff0f inset
}

:root {
    --modal-sheet-height: 90dvh;
    --safe-bottom: env(safe-area-inset-bottom, 12px)
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: #0000008c;
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    display: grid;
    place-items: center;
    z-index: 100;
    opacity: 0;
    transition: opacity var(--t-med) var(--ease)
}

.modal-backdrop.fade-in {
    opacity: 1
}

.modal {
    position: relative;
    max-width: 720px;
    width: min(92vw,720px);
    max-height: min(86vh,720px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-top: 38px;
    outline: none
}

.modal-close {
    position: absolute;
    right: 8px;
    top: 8px;
    background: transparent;
    border: 0;
    color: var(--muted);
    font-size: 18px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    transition: background var(--t-fast) var(--ease),color var(--t-fast) var(--ease),transform var(--t-fast) var(--ease)
}

.modal-close:hover {
    background: var(--surface-2);
    color: #fff;
    transform: translateY(-1px)
}

.modal-close:active {
    transform: translateY(0)
}

.modal-close:focus-visible {
    outline: 2px solid var(--accent2);
    outline-offset: 2px
}

.modal-body {
    display: block
}

@media (max-width: 760px) {
    .modal-backdrop {
        place-items:end center
    }

    .modal {
        width: 100vw;
        max-width: 100vw;
        height: var(--modal-sheet-height);
        max-height: var(--modal-sheet-height);
        overflow-y: hidden;
        border-bottom-left-radius: 0;
        border-bottom-right-radius: 0;
        border-top-left-radius: var(--r-card);
        border-top-right-radius: var(--r-card);
        padding-bottom: calc(16px + var(--safe-bottom));
        transform: translateY(18px);
        animation: sheetSlideUp var(--t-med) var(--ease) both
    }

    .modal:before {
        content: "";
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translate(-50%);
        width: 44px;
        height: 4px;
        border-radius: 999px;
        background: #ffffff2e
    }

    .modal-body {
        height: 100%;
        max-height: 100%;
        overflow: clip
    }
}

@keyframes sheetSlideUp {
    0% {
        transform: translateY(18px);
        opacity: .98
    }

    to {
        transform: translateY(0);
        opacity: 1
    }
}

@media (prefers-reduced-motion: reduce) {
    .modal-backdrop {
        transition: none!important
    }

    .modal {
        animation: none!important
    }
}
