
/* =========================================================
   SYVON EXCHANGE — PREMIUM DARK / GOLD THEME
   File: wwwroot/assets/css/style.css
========================================================= */

:root {
    --bg: #080807;
    --bg-soft: #0d0d0b;
    --panel: rgba(19, 19, 16, 0.94);
    --panel-strong: #141410;
    --panel-hover: #191913;
    --border: rgba(222, 181, 88, 0.15);
    --border-hover: rgba(222, 181, 88, 0.38);
    --gold: #dfb65b;
    --gold-bright: #f1d58a;
    --gold-dark: #99752d;
    --text: #f5f3ec;
    --muted: #929187;
    --green: #69d6a0;
    --red: #ff7777;
    --blue: #88aaff;
    --radius: 20px;
    --shadow: 0 16px 55px rgba(0, 0, 0, 0.24);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background: radial-gradient(ellipse at 50% -15%, rgba(184, 140, 49, 0.10), transparent 45%), linear-gradient(180deg, #090908 0%, #080807 65%, #0b0b09 100%);
    color: var(--text);
    font-family: "Inter", Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: var(--gold-bright);
    text-decoration: none;
}

    a:hover {
        color: #fff0c4;
    }

::selection {
    color: #0a0906;
    background: var(--gold);
}

:focus-visible {
    outline: 2px solid var(--gold-bright);
    outline-offset: 3px;
}

[hidden] {
    display: none !important;
}

/* -------------------- BACKGROUND -------------------- */

.market-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.perspective-grid {
    position: absolute;
    left: -30%;
    right: -30%;
    bottom: -27%;
    height: 65%;
    opacity: 0.14;
    background-image: linear-gradient(rgba(213, 170, 74, 0.20) 1px, transparent 1px), linear-gradient(90deg, rgba(213, 170, 74, 0.20) 1px, transparent 1px);
    background-size: 62px 62px;
    transform: perspective(360px) rotateX(57deg);
    transform-origin: center top;
    mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 70%, transparent);
}

.orb {
    position: absolute;
    display: block;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.07;
}

.orb-1 {
    top: 18%;
    left: -240px;
    background: #c58c22;
}

.orb-2 {
    top: 52%;
    right: -250px;
    background: #7b642c;
}

#candles {
    position: absolute;
    inset: 0;
    opacity: 0.06;
}

/* -------------------- NAVBAR -------------------- */

.main-nav {
    z-index: 100;
    border-bottom: 1px solid rgba(222, 181, 88, 0.13);
    background: rgba(8, 8, 7, 0.88);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

    .main-nav .container-xl {
        min-height: 76px;
    }

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 120px;
    color: var(--gold-bright);
    font-family: "Space Grotesk", sans-serif;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: 2px;
}

    .navbar-brand:hover {
        color: #fff0c4;
    }

    .navbar-brand img {
        display: block;
        max-width: 145px;
        max-height: 44px;
        object-fit: contain;
    }

.brand-fallback {
    display: none;
}

.navbar-brand img:not([src]),
.navbar-brand img[src=""] {
    display: none;
}

.live-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #c7c5bb;
    font-size: 12px;
    white-space: nowrap;
}

    .live-status i {
        display: inline-block;
        width: 7px;
        height: 7px;
        flex: 0 0 7px;
        border-radius: 50%;
        background: #7b7b70;
        box-shadow: 0 0 10px rgba(123, 123, 112, 0.2);
    }

#connectionText {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn {
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

    .btn:disabled {
        cursor: not-allowed;
        opacity: 0.5;
        transform: none;
        box-shadow: none;
    }

.btn-gold {
    border: 1px solid #e7c46f;
    background: linear-gradient(135deg, #f0d488 0%, #d5a847 100%);
    color: #171207;
    box-shadow: 0 5px 22px rgba(213, 168, 71, 0.10);
}

    .btn-gold:hover,
    .btn-gold:focus {
        border-color: #ffebaf;
        background: linear-gradient(135deg, #ffe5a0 0%, #e3b957 100%);
        color: #100e08;
        box-shadow: 0 7px 26px rgba(213, 168, 71, 0.18);
        transform: translateY(-1px);
    }

.btn-outline-gold {
    border: 1px solid rgba(222, 181, 88, 0.42);
    background: rgba(222, 181, 88, 0.045);
    color: var(--gold-bright);
}

    .btn-outline-gold:hover {
        border-color: var(--gold);
        background: rgba(222, 181, 88, 0.12);
        color: #fff0c4;
    }

.btn-outline-muted {
    border: 1px solid #36362e;
    background: transparent;
    color: #c1bfb4;
}

    .btn-outline-muted:hover {
        border-color: #777568;
        color: white;
    }

/* -------------------- MAIN LAYOUT -------------------- */

#dashboard {
    position: relative;
    z-index: 1;
    max-width: 1280px;
}

.hero-section {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 0.8fr);
    align-items: stretch;
    gap: 28px;
    padding: 34px 0 25px;
}

.hero-content {
    align-self: center;
    padding: 10px 0;
}

.eyebrow,
.section-kicker {
    color: var(--gold);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 20px;
}

.eyebrow-dot,
.network-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 11px rgba(105, 214, 160, 0.38);
}

.hero-content h1 {
    margin: 0;
    color: #f7f4eb;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(35px, 4.8vw, 59px);
    font-weight: 700;
    letter-spacing: -2.4px;
    line-height: 1.12;
}

.gold-text {
    color: var(--gold-bright);
    background: linear-gradient(100deg, #fff0bb 0%, #e6bd64 50%, #bd8e37 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    max-width: 550px;
    margin: 20px 0;
    color: #a6a49a;
    font-size: 14px;
    line-height: 1.9;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 23px;
}

.network-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border: 1px solid rgba(222, 181, 88, 0.15);
    border-radius: 8px;
    background: rgba(222, 181, 88, 0.045);
    color: #d4d0c3;
    font-size: 10px;
    font-weight: 600;
}

.network-dot {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
}

.hero-price-card {
    align-self: center;
    padding: 27px;
    border: 1px solid rgba(222, 181, 88, 0.24);
    border-radius: var(--radius);
    background: radial-gradient(ellipse at 100% 0%, rgba(222, 181, 88, 0.10), transparent 55%), linear-gradient(145deg, rgba(27, 26, 19, 0.97), rgba(14, 14, 11, 0.98));
    box-shadow: var(--shadow);
}

.muted-label {
    display: block;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.hero-price {
    margin-top: 12px;
    color: var(--gold-bright);
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(32px, 3.4vw, 44px);
    font-weight: 700;
    letter-spacing: -1.5px;
    overflow-wrap: anywhere;
}

.price-subtitle {
    color: #a09d90;
    font-size: 12px;
}

.price-divider {
    height: 1px;
    margin: 22px 0 17px;
    background: var(--border);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 5px 9px;
    border: 1px solid rgba(222, 181, 88, 0.18);
    border-radius: 7px;
    background: rgba(222, 181, 88, 0.07);
    color: var(--gold-bright);
    font-size: 10px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

/* -------------------- PANELS -------------------- */

.panel,
.stat-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
}

.panel {
    padding: 25px;
}

.section-block {
    margin-top: 34px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 17px;
}

    .section-heading h2 {
        margin: 7px 0 0;
        color: #f0eee6;
        font-family: "Space Grotesk", sans-serif;
        font-size: clamp(20px, 2.5vw, 25px);
        font-weight: 700;
        letter-spacing: -0.6px;
    }

    .section-heading > .muted-label {
        text-align: right;
    }

.section-kicker {
    font-size: 9px;
    letter-spacing: 1.7px;
}

/* -------------------- WALLET PANEL -------------------- */

.wallet-panel {
    padding: 25px;
}

.wallet-connection-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(222, 181, 88, 0.12);
}

.wallet-avatar {
    display: grid;
    width: 47px;
    height: 47px;
    flex: 0 0 47px;
    place-items: center;
    border: 1px solid rgba(222, 181, 88, 0.25);
    border-radius: 14px;
    background: linear-gradient(135deg, #2b2517, #15140f);
    color: var(--gold-bright);
    font-family: "Space Grotesk", sans-serif;
    font-size: 20px;
    font-weight: 700;
}

.wallet-info {
    min-width: 0;
    flex: 1;
}

.wallet-info-title {
    color: #f0eee6;
    font-size: 14px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.wallet-info .muted-label {
    margin-top: 5px;
    font-size: 9px;
    letter-spacing: 0.5px;
    text-transform: none;
}

.wallet-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

    .wallet-actions .btn {
        padding: 8px 12px;
    }

.wallet-balance-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding-top: 22px;
}

.mini-stat {
    min-width: 0;
    padding: 5px 19px;
    border-right: 1px solid rgba(222, 181, 88, 0.11);
}

    .mini-stat:first-child {
        padding-left: 0;
    }

    .mini-stat:last-child {
        padding-right: 0;
        border-right: 0;
    }

    .mini-stat strong {
        display: block;
        margin: 9px 0 5px;
        color: #f3e8c7;
        font-family: "Space Grotesk", sans-serif;
        font-size: clamp(17px, 2vw, 23px);
        font-weight: 700;
        overflow-wrap: anywhere;
    }

/* -------------------- STATS -------------------- */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.stat-card {
    min-width: 0;
    padding: 20px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

    .stat-card:hover {
        border-color: var(--border-hover);
        transform: translateY(-2px);
    }

.stat-card-top {
    display: flex;
    align-items: center;
    gap: 9px;
}

    .stat-card-top .muted-label {
        font-size: 9px;
        letter-spacing: 0.8px;
    }

.stat-icon {
    display: grid;
    width: 31px;
    height: 31px;
    flex: 0 0 31px;
    place-items: center;
    border: 1px solid rgba(222, 181, 88, 0.20);
    border-radius: 9px;
    background: rgba(222, 181, 88, 0.08);
    color: var(--gold-bright);
    font-size: 17px;
}

.stat-value {
    margin: 17px 0 6px;
    color: #f0e5c6;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(19px, 2.1vw, 26px);
    font-weight: 700;
    letter-spacing: -0.7px;
    overflow-wrap: anywhere;
}

.stat-foot {
    color: #77766d;
    font-size: 10px;
    line-height: 1.6;
}

/* -------------------- ACTION CARDS -------------------- */

.action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.action-card {
    min-width: 0;
    padding: 25px;
}

.card-heading {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 23px;
}

.action-icon {
    display: grid;
    width: 43px;
    height: 43px;
    flex: 0 0 43px;
    place-items: center;
    border: 1px solid rgba(222, 181, 88, 0.23);
    border-radius: 13px;
    font-size: 21px;
    font-weight: 700;
}

.gold-icon {
    background: rgba(222, 181, 88, 0.09);
    color: var(--gold-bright);
}

.blue-icon {
    border-color: rgba(115, 151, 255, 0.24);
    background: rgba(115, 151, 255, 0.08);
    color: var(--blue);
}

.red-icon {
    border-color: rgba(255, 119, 119, 0.23);
    background: rgba(255, 119, 119, 0.08);
    color: var(--red);
}

.card-heading h3 {
    margin: 1px 0 5px;
    color: #f0eee6;
    font-family: "Space Grotesk", sans-serif;
    font-size: 18px;
    font-weight: 700;
}

.card-heading p {
    margin: 0;
    color: #8f8d83;
    font-size: 11px;
    line-height: 1.7;
}

.form-label {
    display: block;
    margin-bottom: 9px;
    color: #d6d2c5;
    font-size: 11px;
    font-weight: 600;
}

.input-with-unit {
    display: flex;
    align-items: center;
    min-height: 54px;
    gap: 10px;
    padding: 5px 15px;
    border: 1px solid #323127;
    border-radius: 11px;
    background: #0c0c0a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .input-with-unit:focus-within {
        border-color: rgba(222, 181, 88, 0.65);
        box-shadow: 0 0 0 3px rgba(222, 181, 88, 0.07);
    }

.dark-input.form-control {
    min-width: 0;
    min-height: 42px;
    padding: 10px 0;
    border: 0;
    outline: none;
    background: transparent;
    box-shadow: none;
    color: #f6f2e7;
    font-family: "Space Grotesk", sans-serif;
    font-size: 17px;
    font-weight: 600;
}

    .dark-input.form-control::placeholder {
        color: #56554d;
    }

    .dark-input.form-control:focus {
        border: 0;
        background: transparent;
        color: white;
        box-shadow: none;
    }

    .dark-input.form-control:disabled {
        color: #77766d;
    }

.input-with-unit > span {
    flex: 0 0 auto;
    padding: 6px 9px;
    border: 1px solid rgba(222, 181, 88, 0.15);
    border-radius: 6px;
    background: rgba(222, 181, 88, 0.06);
    color: var(--gold-bright);
    font-size: 10px;
    font-weight: 800;
}

input[type="number"] {
    color-scheme: dark;
}

.quick-amounts {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 12px 0 17px;
}

.quick-amount {
    padding: 6px 12px;
    border: 1px solid #302f27;
    border-radius: 7px;
    background: #14140f;
    color: #b7b3a5;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.18s ease;
}

    .quick-amount:hover {
        border-color: rgba(222, 181, 88, 0.48);
        background: rgba(222, 181, 88, 0.09);
        color: var(--gold-bright);
    }

.estimate-box {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 17px;
    padding: 4px 14px;
    border: 1px solid rgba(222, 181, 88, 0.12);
    border-radius: 11px;
    background: rgba(8, 8, 7, 0.58);
}

    .estimate-box > div {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 15px;
        padding: 12px 0;
        border-bottom: 1px solid rgba(222, 181, 88, 0.09);
    }

        .estimate-box > div:last-child {
            border-bottom: 0;
        }

    .estimate-box span {
        color: #929086;
        font-size: 10px;
        line-height: 1.7;
    }

    .estimate-box strong {
        color: #e6d4a6;
        font-family: "Space Grotesk", sans-serif;
        font-size: 12px;
        font-weight: 700;
        text-align: right;
        overflow-wrap: anywhere;
    }

.notice {
    margin-top: 17px;
    padding: 12px 14px;
    border: 1px solid rgba(222, 181, 88, 0.12);
    border-radius: 9px;
    background: rgba(222, 181, 88, 0.045);
    color: #a7a394;
    font-size: 10px;
    line-height: 1.8;
}

.notice-gold {
    border-color: rgba(222, 181, 88, 0.21);
    background: rgba(222, 181, 88, 0.055);
}

.notice-red {
    border-color: rgba(255, 119, 119, 0.19);
    background: rgba(255, 119, 119, 0.045);
    color: #c3a6a0;
}

.btn-action {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    margin-top: 17px;
    padding: 12px 16px;
    text-align: left;
}

    .btn-action span {
        font-size: 17px;
    }

.btn-outline-gold.btn-action {
    background: rgba(222, 181, 88, 0.035);
}

.btn-danger-action {
    border: 1px solid rgba(255, 119, 119, 0.55);
    background: linear-gradient(135deg, #a43c3c, #792a2a);
    color: #fff0ef;
}

    .btn-danger-action:hover {
        border-color: #ff9999;
        background: linear-gradient(135deg, #bb4c4c, #8e3030);
        color: white;
        box-shadow: 0 5px 22px rgba(255, 80, 80, 0.10);
    }

.available-balance {
    margin-top: 15px;
    color: #89877d;
    font-size: 10px;
}

    .available-balance strong {
        color: #d8d1bf;
        font-weight: 700;
    }

/* -------------------- SELL PANEL -------------------- */

.sell-card {
    border-color: rgba(255, 119, 119, 0.17);
}

.sell-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 23px;
}

.sell-estimate {
    margin-top: 0;
}

/* -------------------- ADMIN PANEL -------------------- */

#adminSection {
    scroll-margin-top: 100px;
}

.subsection-title {
    margin: 0 0 10px;
    color: #e9e3d3;
    font-family: "Space Grotesk", sans-serif;
    font-size: 17px;
    font-weight: 700;
}

.divider-line {
    height: 1px;
    background: rgba(222, 181, 88, 0.13);
}

/* -------------------- CONTRACT DETAILS -------------------- */

.contract-panel {
    padding: 5px 25px;
}

.contract-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 57px;
    padding: 13px 0;
    border-bottom: 1px solid rgba(222, 181, 88, 0.10);
}

    .contract-row:last-child {
        border-bottom: 0;
    }

    .contract-row > strong {
        color: #e4dfd0;
        font-size: 12px;
        font-weight: 600;
        text-align: right;
        overflow-wrap: anywhere;
    }

    .contract-row .muted-label {
        flex: 0 0 auto;
        font-size: 9px;
        letter-spacing: 0.8px;
    }

.address-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 0;
}

    .address-actions code {
        color: var(--gold-bright);
        font-size: 11px;
        overflow-wrap: anywhere;
        word-break: break-all;
    }

.explorer-link {
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 700;
}

/* -------------------- DISCLAIMER AND FOOTER -------------------- */

.dashboard-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 25px 0 35px;
    padding: 16px;
    border: 1px solid rgba(222, 181, 88, 0.11);
    border-radius: 12px;
    background: rgba(222, 181, 88, 0.025);
}

.disclaimer-icon {
    color: var(--gold);
    font-size: 17px;
    line-height: 1.4;
}

.dashboard-disclaimer p {
    margin: 0;
    color: #8e8b80;
    font-size: 10px;
    line-height: 1.9;
}

.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid rgba(222, 181, 88, 0.11);
    background: rgba(7, 7, 6, 0.72);
}

.footer-logo {
    display: block;
    width: auto;
    max-width: 145px;
    max-height: 42px;
    margin-right: auto;
    margin-left: auto;
    object-fit: contain;
}

.footer p {
    margin: 0 0 10px;
    color: #a9a596;
    font-size: 11px;
}

.footer small {
    display: block;
    color: #706f65;
    font-size: 10px;
    line-height: 1.8;
}

.footer .mt-3 {
    color: #706f65;
    font-size: 10px;
}

/* -------------------- TOAST -------------------- */

.dark-toast {
    border: 1px solid rgba(222, 181, 88, 0.23);
    border-radius: 12px;
    background: #171711;
    color: #f4efdf;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.45);
}

    .dark-toast .toast-body {
        padding: 15px 18px;
        font-size: 12px;
        line-height: 1.7;
    }

    .dark-toast.toast-success {
        border-color: rgba(105, 214, 160, 0.42);
    }

    .dark-toast.toast-error {
        border-color: rgba(255, 119, 119, 0.45);
    }

/* -------------------- RESPONSIVE: TABLET -------------------- */

@media (max-width: 991.98px) {
    .hero-section {
        grid-template-columns: minmax(0, 1fr) minmax(250px, 0.8fr);
        gap: 18px;
    }

    .hero-price-card {
        padding: 21px;
    }

    .wallet-balance-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 19px;
    }

    .mini-stat:nth-child(2) {
        border-right: 0;
    }

    .mini-stat:nth-child(3) {
        padding-left: 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .action-grid {
        gap: 12px;
    }

    .action-card {
        padding: 20px;
    }

    .sell-layout {
        grid-template-columns: 1fr;
    }

    .sell-estimate {
        margin-top: 3px;
    }
}

/* -------------------- RESPONSIVE: MOBILE -------------------- */

@media (max-width: 767.98px) {
    .main-nav .container-xl {
        min-height: 67px;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    .navbar-brand {
        min-width: 0;
        font-size: 19px;
        letter-spacing: 1.5px;
    }

        .navbar-brand img {
            max-width: 100px;
            max-height: 35px;
        }

    .live-status {
        gap: 6px;
        font-size: 10px;
    }

    #connectionText {
        max-width: 76px;
    }

    #connectBtn {
        padding: 9px 12px !important;
        font-size: 10px;
    }

    #dashboard {
        padding-top: 14px !important;
    }

    .hero-section {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-top: 24px;
    }

    .hero-content {
        padding: 0;
    }

        .hero-content h1 {
            font-size: clamp(36px, 10vw, 50px);
            letter-spacing: -1.8px;
        }

    .hero-description {
        margin: 15px 0;
        font-size: 12px;
    }

    .hero-price-card {
        width: 100%;
    }

    .panel {
        padding: 18px;
        border-radius: 15px;
    }

    .wallet-panel {
        padding: 18px;
    }

    .wallet-connection-row {
        flex-wrap: wrap;
        gap: 12px;
    }

    .wallet-info {
        flex-basis: calc(100% - 65px);
    }

    .wallet-actions {
        width: 100%;
        padding-left: 0;
    }

        .wallet-actions .btn {
            flex: 1;
        }

    .wallet-balance-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        row-gap: 18px;
        padding-top: 18px;
    }

    .mini-stat {
        padding: 4px 12px;
    }

        .mini-stat:nth-child(odd) {
            padding-left: 0;
            border-right: 1px solid rgba(222, 181, 88, 0.11);
        }

        .mini-stat:nth-child(even) {
            padding-right: 0;
            border-right: 0;
        }

        .mini-stat strong {
            font-size: 19px;
        }

    .stats-grid {
        gap: 10px;
    }

    .stat-card {
        padding: 15px;
        border-radius: 14px;
    }

    .stat-card-top {
        align-items: flex-start;
        gap: 7px;
    }

        .stat-card-top .muted-label {
            padding-top: 5px;
            font-size: 8px;
            line-height: 1.6;
        }

    .stat-icon {
        width: 27px;
        height: 27px;
        flex-basis: 27px;
        font-size: 14px;
    }

    .stat-value {
        margin-top: 13px;
        font-size: clamp(17px, 4.8vw, 22px);
    }

    .stat-foot {
        font-size: 9px;
    }

    .section-block {
        margin-top: 27px;
    }

    .section-heading {
        align-items: flex-start;
    }

        .section-heading h2 {
            font-size: 21px;
        }

        .section-heading > .muted-label {
            max-width: 130px;
            font-size: 8px;
            line-height: 1.7;
        }

    .action-grid {
        grid-template-columns: 1fr;
    }

    .action-card {
        padding: 19px;
    }

    .card-heading {
        margin-bottom: 18px;
    }

    .contract-panel {
        padding: 5px 16px;
    }

    .contract-row {
        align-items: flex-start;
        gap: 10px;
    }

        .contract-row .muted-label {
            max-width: 42%;
            white-space: normal;
        }

        .contract-row > strong {
            font-size: 11px;
        }

    .contract-address-row {
        flex-direction: column;
        gap: 9px;
    }

    .address-actions {
        width: 100%;
        justify-content: space-between;
    }

        .address-actions code {
            min-width: 0;
            font-size: 10px;
        }

    .dashboard-disclaimer {
        padding: 13px;
    }
}

/* -------------------- SMALL MOBILE -------------------- */

@media (max-width: 380px) {
    .main-nav .container-xl {
        gap: 8px;
    }

    .navbar-brand {
        font-size: 16px;
    }

        .navbar-brand img {
            max-width: 75px;
        }

    #connectBtn {
        padding: 8px !important;
        font-size: 9px;
    }

    .live-status {
        font-size: 9px;
    }

    #connectionText {
        max-width: 54px;
    }

    .stats-grid {
        gap: 8px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-value {
        font-size: 17px;
    }

    .section-heading h2 {
        font-size: 18px;
    }

    .wallet-balance-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* -------------------- ACCESSIBILITY -------------------- */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
