:root {
    --blue: #0a57e8;
    --blue2: #103cc8;
    --blue-soft: #eef5ff;
    --navy: #0d1b3d;
    --text: #101828;
    --muted: #667085;
    --line: #e4e8ef;
    --surface: #fff;
    --bg: #f6f8fc;
    --green: #12a66a;
    --green-soft: #ecfdf3;
    --red: #e5484d;
    --red-soft: #fff1f2;
    --amber: #d99500;
    --shadow: 0 12px 35px rgba(18, 42, 89, .08);
    --radius: 18px;
    --radius-sm: 12px;
    --sidebar: 248px;
    --app-max: 1320px
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased
}

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

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

button,
input,
select,
textarea {
    font: inherit
}

button {
    cursor: pointer
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto
}

.public-body {
    background: #fff
}

.public-header {
    height: 76px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 40
}

.public-header .inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px
}

.brand img {
    width: 205px;
    height: auto
}

.public-nav {
    display: flex;
    gap: 26px;
    color: #46536b;
    font-size: 14px;
    font-weight: 650
}

.header-actions {
    display: flex;
    gap: 10px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 750;
    transition: .18s ease;
    background: #fff;
    color: var(--text)
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--blue), var(--blue2));
    color: #fff;
    box-shadow: 0 8px 20px rgba(10, 87, 232, .18)
}

.btn-outline {
    border-color: #d7e0ed;
    color: var(--navy)
}

.btn-danger {
    background: var(--red);
    color: #fff
}

.btn-success {
    background: var(--green);
    color: #fff
}

.btn-sm {
    min-height: 36px;
    padding: 7px 11px;
    border-radius: 9px;
    font-size: 13px
}

.btn-block {
    width: 100%
}

.hero {
    padding: 72px 0 58px;
    background: radial-gradient(circle at 80% 0, #dbeaff 0, transparent 34%), linear-gradient(180deg, #fff, #f7faff)
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.04fr .96fr;
    gap: 54px;
    align-items: center
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--blue-soft);
    color: var(--blue);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800
}

.hero h1 {
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1.03;
    margin: 20px 0 20px;
    letter-spacing: -2.8px;
    color: var(--navy)
}

.hero h1 span {
    color: var(--blue)
}

.hero p {
    font-size: 18px;
    line-height: 1.7;
    color: var(--muted);
    max-width: 650px
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin: 30px 0
}

.trust-row {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    color: #59657a;
    font-size: 13px;
    font-weight: 650
}

.trust-row span:before {
    content: "✓";
    color: var(--green);
    font-weight: 900;
    margin-right: 7px
}

.terminal-card {
    background: linear-gradient(155deg, #0c1b3d, #102964);
    border-radius: 28px;
    color: #fff;
    padding: 24px;
    box-shadow: 0 35px 75px rgba(20, 58, 130, .25);
    position: relative;
    overflow: hidden
}

.terminal-card:before {
    content: "";
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    right: -90px;
    top: -100px;
    background: rgba(35, 117, 255, .34);
    filter: blur(4px)
}

.terminal-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative
}

.market-badge {
    padding: 7px 10px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .1);
    font-size: 12px
}

.terminal-price {
    font-size: 42px;
    font-weight: 850;
    margin: 24px 0 4px
}

.positive {
    color: var(--green) !important
}

.negative {
    color: var(--red) !important
}

.terminal-chart {
    height: 170px;
    margin: 24px 0 10px;
    position: relative
}

.terminal-chart svg {
    width: 100%;
    height: 100%
}

.trade-quote-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px
}

.quote-btn {
    padding: 16px;
    border-radius: 14px;
    text-align: center;
    font-weight: 800;
    background: rgba(255, 255, 255, .08)
}

.quote-btn.buy {
    border: 1px solid rgba(18, 166, 106, .5);
    color: #80f5c3
}

.quote-btn.sell {
    border: 1px solid rgba(229, 72, 77, .5);
    color: #ff9699
}

.section {
    padding: 72px 0
}

.section.alt {
    background: #f8faff
}

.section-heading {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 38px
}

.section-heading h2 {
    font-size: 38px;
    letter-spacing: -1.2px;
    margin: 12px 0;
    color: var(--navy)
}

.section-heading p {
    color: var(--muted);
    line-height: 1.7
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px
}

.feature-card,
.tier-card,
.news-card,
.stat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 4px 18px rgba(20, 50, 100, .04)
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--blue-soft);
    color: var(--blue);
    display: grid;
    place-items: center;
    font-weight: 900;
    margin-bottom: 20px
}

.feature-card h3 {
    margin: 0 0 10px
}

.feature-card p,
.tier-card p {
    color: var(--muted);
    line-height: 1.65
}

.tiers-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px
}

.tier-card {
    padding: 20px
}

.tier-card .tier-rate {
    font-size: 28px;
    font-weight: 850;
    color: var(--blue);
    margin: 12px 0
}

.tier-card small {
    color: var(--muted)
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px
}

.stat-card strong {
    font-size: 30px;
    color: var(--navy);
    display: block
}

.stat-card span {
    font-size: 13px;
    color: var(--muted)
}

.faq-list {
    max-width: 820px;
    margin: auto
}

.faq-item {
    border-bottom: 1px solid var(--line);
    padding: 18px 0
}

.faq-item summary {
    font-weight: 750;
    cursor: pointer
}

.faq-item p {
    color: var(--muted);
    line-height: 1.7
}

.footer {
    padding: 48px 0 28px;
    background: #09152f;
    color: #d4def0
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 36px
}

.footer h4 {
    color: #fff
}

.footer a {
    display: block;
    margin: 10px 0;
    color: #aebbd1;
    font-size: 14px
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    margin-top: 34px;
    padding-top: 22px;
    font-size: 12px;
    color: #91a1bd
}

.risk-box {
    background: #fff8e7;
    border: 1px solid #f3d183;
    color: #77570f;
    border-radius: 14px;
    padding: 16px;
    line-height: 1.6;
    font-size: 13px
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    background: #fff
}

.auth-art {
    background: linear-gradient(145deg, #071630, #0a57e8);
    padding: 58px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative
}

.auth-art:after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    right: -210px;
    bottom: -130px
}

.auth-art img {
    width: 220px;
    filter: brightness(0) invert(1)
}

.auth-art h2 {
    font-size: 46px;
    line-height: 1.08;
    max-width: 620px;
    margin: 0
}

.auth-art p {
    max-width: 580px;
    color: #d5e4ff;
    line-height: 1.7
}

.auth-form-wrap {
    display: grid;
    place-items: center;
    padding: 40px
}

.auth-card {
    width: min(440px, 100%)
}

.auth-card .mobile-logo {
    display: none;
    width: 200px;
    margin-bottom: 34px
}

.auth-card h1 {
    font-size: 32px;
    margin: 0 0 8px
}

.auth-card>p {
    color: var(--muted);
    margin-bottom: 26px
}

.form-group {
    margin-bottom: 16px
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 750;
    color: #344054;
    margin-bottom: 7px
}

.form-control,
.form-select,
.form-textarea {
    width: 100%;
    border: 1px solid #d4dbe6;
    border-radius: 11px;
    background: #fff;
    color: var(--text);
    padding: 12px 13px;
    min-height: 46px;
    outline: none;
    transition: .16s
}

.form-control:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(10, 87, 232, .1)
}

.form-textarea {
    min-height: 110px;
    resize: vertical
}

.form-help {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px
}

.field-error {
    font-size: 12px;
    color: var(--red);
    margin-top: 6px
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px
}

.alert {
    padding: 13px 15px;
    border-radius: 11px;
    margin-bottom: 16px;
    font-size: 14px
}

.alert-success {
    background: var(--green-soft);
    color: #087247;
    border: 1px solid #b7efd7
}

.alert-error {
    background: var(--red-soft);
    color: #a9272c;
    border: 1px solid #f5c1c3
}

.alert-warning {
    background: #fff8e8;
    color: #7c5800;
    border: 1px solid #f4d28b
}

.app-body {
    background: #f5f7fb
}

.app-shell {
    min-height: 100vh
}

.app-sidebar {
    width: var(--sidebar);
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    background: #fff;
    border-right: 1px solid var(--line);
    padding: 24px 16px;
    z-index: 45;
    display: flex;
    flex-direction: column
}

.app-sidebar .brand {
    padding: 4px 8px 26px
}

.app-sidebar .brand img {
    width: 188px
}

.side-nav {
    display: flex;
    flex-direction: column;
    gap: 5px
}

.side-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 11px;
    color: #5a667a;
    font-size: 14px;
    font-weight: 650
}

.side-link:hover,
.side-link.active {
    background: var(--blue-soft);
    color: var(--blue)
}

.nav-ico {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: #eef2f7;
    font-size: 11px;
    font-weight: 850
}

.active .nav-ico {
    background: #dce9ff
}

.sidebar-footer {
    margin-top: auto;
    border-top: 1px solid var(--line);
    padding-top: 16px
}

.app-main {
    margin-left: var(--sidebar);
    min-height: 100vh
}

.app-topbar {
    height: 74px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 35;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.mobile-brand {
    display: none
}

.page-title {
    font-size: 20px;
    font-weight: 800
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 10px
}

.balance-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    background: #f8fafc;
    border-radius: 999px;
    padding: 7px 12px;
    font-weight: 780;
    font-size: 14px
}

.avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #50c894, #0a57e8);
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 900;
    overflow: hidden
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--navy);
    position: relative
}

.icon-btn .dot {
    width: 7px;
    height: 7px;
    background: var(--red);
    border-radius: 50%;
    position: absolute;
    right: 8px;
    top: 7px
}

.app-content {
    padding: 26px 28px 100px;
    max-width: var(--app-max);
    margin: auto
}

.mobile-bottom-nav {
    display: none
}

.dashboard-hero {
    background: linear-gradient(135deg, #0b2a69, #0a57e8);
    border-radius: 24px;
    padding: 28px;
    color: #fff;
    display: grid;
    grid-template-columns: 1fr .75fr;
    gap: 18px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 16px 36px rgba(18, 69, 161, .16)
}

.dashboard-hero:after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    right: -70px;
    top: -170px;
    background: rgba(255, 255, 255, .1)
}

.dashboard-hero h2 {
    font-size: 30px;
    margin: 3px 0 8px;
    position: relative
}

.dashboard-hero p {
    color: #d9e7ff;
    max-width: 560px;
    line-height: 1.6;
    margin: 0 0 20px
}

.hero-metric {
    display: flex;
    align-items: end;
    justify-content: flex-end;
    gap: 18px;
    position: relative
}

.hero-metric>div {
    background: rgba(255, 255, 255, .11);
    border: 1px solid rgba(255, 255, 255, .14);
    padding: 16px;
    border-radius: 16px;
    min-width: 150px
}

.hero-metric span {
    display: block;
    font-size: 12px;
    color: #c9dbff
}

.hero-metric strong {
    font-size: 22px
}

.section-block {
    margin-top: 24px
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 13px
}

.section-title-row h2,
.section-title-row h3 {
    margin: 0;
    font-size: 20px
}

.text-link {
    color: var(--blue);
    font-size: 13px;
    font-weight: 750
}

.card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 4px 18px rgba(21, 48, 97, .035)
}

.balance-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px
}

.balance-card {
    padding: 18px
}

.balance-card span {
    font-size: 12px;
    color: var(--muted);
    display: block;
    margin-bottom: 8px
}

.balance-card strong {
    font-size: 20px;
    letter-spacing: -.4px
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px
}

.quick-action {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 15px;
    padding: 16px 10px;
    text-align: center;
    transition: .16s
}

.quick-action:hover {
    border-color: #c1d5fb;
    transform: translateY(-2px);
    box-shadow: var(--shadow)
}

.quick-action .qicon {
    width: 43px;
    height: 43px;
    border-radius: 13px;
    background: var(--blue-soft);
    display: grid;
    place-items: center;
    color: var(--blue);
    font-weight: 900;
    margin: 0 auto 10px
}

.quick-action span {
    font-size: 12px;
    font-weight: 700
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px
}

.market-card {
    padding: 18px;
    min-height: 174px;
    position: relative;
    overflow: hidden
}

.market-symbol {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px
}

.asset-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--blue-soft);
    color: var(--blue);
    font-weight: 900;
    font-size: 11px
}

.asset-icon.gold {
    background: #fff5d6;
    color: #b27700
}

.market-card h4 {
    margin: 0;
    font-size: 15px
}

.market-card small {
    color: var(--muted)
}

.market-price {
    font-size: 21px;
    font-weight: 850
}

.market-change {
    font-size: 13px;
    font-weight: 750;
    margin-top: 3px
}

.sparkline {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    height: 43px
}

.sparkline svg {
    width: 100%;
    height: 100%
}

.content-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 18px
}

.feed-card {
    padding: 18px
}

.feed-item {
    padding: 15px 0;
    border-bottom: 1px solid var(--line)
}

.feed-item:last-child {
    border: 0
}

.feed-meta {
    font-size: 11px;
    color: var(--muted);
    display: flex;
    gap: 8px;
    margin-bottom: 7px
}

.feed-title {
    font-size: 15px;
    font-weight: 750;
    line-height: 1.4
}

.signal-card {
    padding: 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    border-bottom: 1px solid var(--line)
}

.signal-card:last-child {
    border: 0
}

.signal-direction {
    font-size: 11px;
    font-weight: 900;
    padding: 6px 8px;
    border-radius: 8px
}

.signal-direction.buy {
    background: var(--green-soft);
    color: var(--green)
}

.signal-direction.sell {
    background: var(--red-soft);
    color: var(--red)
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    background: #eef2f7;
    color: #5d697b
}

.status-badge.approved,
.status-badge.active,
.status-badge.open,
.status-badge.completed,
.status-badge.published {
    background: var(--green-soft);
    color: #087247
}

.status-badge.pending,
.status-badge.scheduled,
.status-badge.warning {
    background: #fff7df;
    color: #8a6200
}

.status-badge.rejected,
.status-badge.cancelled,
.status-badge.expired,
.status-badge.failed,
.status-badge.suspended {
    background: var(--red-soft);
    color: #ad3034
}

.table-card {
    overflow: hidden
}

.table-toolbar {
    padding: 16px;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap
}

.filter-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.table-wrap {
    overflow: auto
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px
}

.data-table th {
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #667085;
    padding: 12px 14px;
    background: #fafbfc;
    border-bottom: 1px solid var(--line)
}

.data-table td {
    padding: 13px 14px;
    border-bottom: 1px solid #eef1f5;
    font-size: 13px;
    vertical-align: middle
}

.data-table tr:last-child td {
    border-bottom: 0
}

.data-table tr:hover td {
    background: #fbfdff
}

.amount-pos {
    color: var(--green);
    font-weight: 780
}

.amount-neg {
    color: var(--red);
    font-weight: 780
}

.empty-state {
    text-align: center;
    padding: 42px 20px;
    color: var(--muted)
}

.tabs {
    display: flex;
    gap: 7px;
    overflow: auto;
    padding-bottom: 2px
}

.tab {
    white-space: nowrap;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 13px;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
    color: #647085
}

.tab.active {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy)
}

.market-list-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px
}

.mover-card {
    padding: 18px
}

.mover-card .top {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.mini-chart {
    height: 58px;
    margin-top: 14px
}

.mini-chart svg {
    width: 100%;
    height: 100%
}

.provider-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 750;
    padding: 6px 9px;
    border-radius: 999px;
    background: #eef2f7;
    color: #647085
}

.provider-badge.demo {
    background: #fff7df;
    color: #8b6200
}

.trade-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(310px, .55fr);
    gap: 18px
}

.trade-terminal {
    overflow: hidden
}

.trade-head {
    padding: 18px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    border-bottom: 1px solid var(--line)
}

.asset-selector {
    display: flex;
    gap: 12px;
    align-items: center
}

.asset-selector h2 {
    margin: 0;
    font-size: 20px
}

.trade-price {
    font-size: 28px;
    font-weight: 850;
    margin: 10px 0 3px
}

.timeframes {
    display: flex;
    gap: 3px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--line);
    overflow: auto
}

.timeframe {
    border: 0;
    background: transparent;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 12px;
    color: #667085;
    font-weight: 750
}

.timeframe.active {
    background: var(--blue-soft);
    color: var(--blue)
}

#trade-chart {
    height: 430px;
    background: #fff
}

.trade-side {
    display: flex;
    flex-direction: column;
    gap: 14px
}

.trade-panel {
    padding: 18px
}

.trade-panel h3 {
    margin: 0 0 14px;
    font-size: 17px
}

.signal-option,
.tier-option {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 8px
}

.signal-option.active,
.tier-option.active {
    border-color: var(--blue);
    background: #f7faff
}

.buy-sell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px
}

.trade-action {
    border: 0;
    border-radius: 12px;
    padding: 15px;
    color: #fff;
    font-weight: 850;
    font-size: 15px
}

.trade-action.sell {
    background: var(--red)
}

.trade-action.buy {
    background: var(--green)
}

.bottom-sheet {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    background: rgba(4, 12, 30, .38);
    align-items: flex-end
}

.bottom-sheet.open {
    display: flex
}

.sheet-panel {
    width: 100%;
    max-height: 72vh;
    background: #fff;
    border-radius: 24px 24px 0 0;
    padding: 14px 18px 28px;
    overflow: auto
}

.sheet-handle {
    width: 44px;
    height: 4px;
    background: #cfd6e2;
    border-radius: 99px;
    margin: 0 auto 16px
}

.sheet-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 5px;
    border-bottom: 1px solid var(--line)
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px
}

.portfolio-summary {
    padding: 24px
}

.big-balance {
    font-size: 38px;
    font-weight: 860;
    color: var(--navy);
    letter-spacing: -1.4px
}

.summary-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 18px
}

.summary-box {
    padding: 13px;
    background: #f8fafc;
    border-radius: 12px
}

.summary-box span {
    font-size: 11px;
    color: var(--muted);
    display: block
}

.summary-box strong {
    font-size: 15px
}

.chart-box {
    height: 240px;
    padding: 16px
}

.form-card {
    padding: 22px
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px
}

.method-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    cursor: pointer
}

.method-card.active {
    border-color: var(--blue);
    background: #f6f9ff
}

.copy-box {
    display: flex;
    gap: 8px
}

.copy-box .form-control {
    font-family: ui-monospace, monospace;
    font-size: 12px
}

.qr-image {
    width: 160px;
    height: 160px;
    object-fit: contain;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    padding: 8px
}

.profile-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 18px
}

.profile-side,
.profile-main {
    padding: 22px
}

.profile-avatar {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, #52d5a0, #0a57e8);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 30px;
    font-weight: 900;
    overflow: hidden
}

.profile-side {
    text-align: center
}

.profile-side h3 {
    margin: 0
}

.profile-side p {
    color: var(--muted);
    font-size: 13px
}

.menu-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px
}

.menu-item {
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 12px
}

.menu-item:hover {
    border-color: #c5d8fc
}

.menu-item .qicon {
    margin: 0
}

.pagination {
    display: flex;
    list-style: none;
    gap: 5px;
    padding: 14px
}

.page-link {
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 12px;
    background: #fff
}

.page-item.active .page-link {
    background: var(--blue);
    color: #fff
}

.page-item.disabled .page-link {
    opacity: .4
}

.admin-body {
    background: #f4f6fa
}

.admin-sidebar {
    background: #0b1730;
    border-right: 0
}

.admin-sidebar .brand img {
    filter: brightness(0) invert(1)
}

.admin-sidebar .side-link {
    color: #aeb9cc
}

.admin-sidebar .side-link:hover,
.admin-sidebar .side-link.active {
    background: rgba(31, 106, 255, .16);
    color: #fff
}

.admin-sidebar .nav-ico {
    background: rgba(255, 255, 255, .08);
    color: #c7d3e8
}

.admin-topbar {
    background: #fff
}

.admin-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px
}

.kpi {
    padding: 18px
}

.kpi .label {
    font-size: 12px;
    color: var(--muted)
}

.kpi .value {
    font-size: 25px;
    font-weight: 850;
    margin: 8px 0 2px
}

.kpi .hint {
    font-size: 11px;
    color: #8590a2
}

.admin-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    place-items: center;
    background: rgba(4, 12, 30, .44);
    padding: 20px
}

.modal.open {
    display: grid
}

.modal-card {
    background: #fff;
    border-radius: 18px;
    width: min(560px, 100%);
    max-height: 85vh;
    overflow: auto;
    padding: 22px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .18)
}

.toast-stack {
    position: fixed;
    right: 18px;
    top: 88px;
    z-index: 100;
    display: grid;
    gap: 8px
}

.toast {
    min-width: 280px;
    max-width: 380px;
    padding: 13px 15px;
    border-radius: 12px;
    background: #101828;
    color: #fff;
    box-shadow: var(--shadow);
    font-size: 13px;
    animation: toastIn .2s ease
}

.toast.success {
    background: #087247
}

.toast.error {
    background: #a9272c
}

.toast.warning {
    background: #7c5800
}

@keyframes toastIn {
    from {
        transform: translateY(-8px);
        opacity: 0
    }

    to {
        transform: none;
        opacity: 1
    }
}

.mobile-menu-toggle {
    display: none
}

.desktop-only {
    display: block
}

.mobile-only {
    display: none
}

@media(max-width:1100px) {
    .tiers-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .balance-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .quick-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .market-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .admin-kpi-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .market-list-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .trade-layout {
        grid-template-columns: 1fr
    }

    .trade-side {
        display: grid;
        grid-template-columns: 1fr 1fr
    }

    .public-nav {
        display: none
    }
}

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

    .hero {
        padding-top: 48px
    }

    .terminal-card {
        max-width: 600px
    }

    .grid-3 {
        grid-template-columns: 1fr 1fr
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr
    }

    .auth-shell {
        grid-template-columns: 1fr
    }

    .auth-art {
        display: none
    }

    .auth-card .mobile-logo {
        display: block
    }

    .app-sidebar {
        transform: translateX(-100%);
        transition: .2s
    }

    .app-sidebar.open {
        transform: translateX(0);
        box-shadow: 0 20px 50px rgba(0, 0, 0, .2)
    }

    .app-main {
        margin-left: 0
    }

    .app-topbar {
        padding: 0 18px;
        height: 66px
    }

    .page-title {
        display: none
    }

    .mobile-brand {
        display: block
    }

    .mobile-brand img {
        width: 145px
    }

    .mobile-menu-toggle {
        display: grid
    }

    .app-content {
        padding: 18px 16px 94px
    }

    .dashboard-hero {
        grid-template-columns: 1fr
    }

    .hero-metric {
        justify-content: flex-start
    }

    .content-grid,
    .portfolio-grid,
    .profile-grid,
    .admin-grid-2 {
        grid-template-columns: 1fr
    }

    .mobile-bottom-nav {
        position: fixed;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        left: 0;
        right: 0;
        bottom: 0;
        height: 72px;
        background: #fff;
        border-top: 1px solid var(--line);
        z-index: 60;
        padding-bottom: env(safe-area-inset-bottom)
    }

    .bottom-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        color: #687488;
        font-size: 10px;
        font-weight: 700
    }

    .bottom-link .nav-ico {
        background: transparent;
        font-size: 12px
    }

    .bottom-link.active {
        color: var(--blue)
    }

    .trade-side {
        grid-template-columns: 1fr
    }

    .desktop-only {
        display: none
    }

    .mobile-only {
        display: block
    }
}

@media(max-width:600px) {
    .container {
        width: min(100% - 24px, 1180px)
    }

    .public-header {
        height: 66px
    }

    .public-header .brand img {
        width: 172px
    }

    .header-actions .btn-outline {
        display: none
    }

    .hero h1 {
        font-size: 44px;
        letter-spacing: -2px
    }

    .hero p {
        font-size: 16px
    }

    .hero-actions {
        flex-direction: column
    }

    .hero-actions .btn {
        width: 100%
    }

    .section {
        padding: 54px 0
    }

    .section-heading h2 {
        font-size: 31px
    }

    .grid-3,
    .tiers-grid,
    .stats-grid,
    .footer-grid {
        grid-template-columns: 1fr
    }

    .auth-form-wrap {
        padding: 28px 20px
    }

    .auth-card h1 {
        font-size: 27px
    }

    .form-row {
        grid-template-columns: 1fr
    }

    .dashboard-hero {
        padding: 20px;
        border-radius: 20px
    }

    .dashboard-hero h2 {
        font-size: 24px
    }

    .hero-metric {
        display: grid;
        grid-template-columns: 1fr 1fr
    }

    .hero-metric>div {
        min-width: 0
    }

    .balance-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .balance-card strong {
        font-size: 17px
    }

    .quick-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .quick-action {
        padding: 13px 6px
    }

    .market-grid,
    .market-list-grid {
        display: flex;
        overflow: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 4px
    }

    .market-card,
    .mover-card {
        min-width: 76vw;
        scroll-snap-align: start
    }

    .content-grid {
        gap: 12px
    }

    .app-content {
        padding-left: 12px;
        padding-right: 12px
    }

    .top-actions .balance-pill {
        font-size: 12px;
        padding: 6px 9px
    }

    .top-actions .icon-btn {
        width: 36px;
        height: 36px
    }

    .mobile-brand img {
        width: 125px
    }

    .trade-head {
        padding: 14px
    }

    .trade-price {
        font-size: 24px
    }

    #trade-chart {
        height: 360px
    }

    .method-grid {
        grid-template-columns: 1fr
    }

    .summary-row {
        grid-template-columns: 1fr 1fr
    }

    .big-balance {
        font-size: 31px
    }

    .menu-list {
        grid-template-columns: 1fr
    }

    .table-toolbar {
        align-items: stretch
    }

    .table-toolbar>.form-control,
    .table-toolbar form {
        width: 100%
    }

    .admin-kpi-grid {
        grid-template-columns: 1fr 1fr
    }

    .kpi {
        padding: 14px
    }

    .kpi .value {
        font-size: 20px
    }

    .modal-card {
        padding: 18px
    }

    .toast-stack {
        left: 12px;
        right: 12px;
        top: 74px
    }

    .toast {
        min-width: 0;
        width: 100%
    }
}

@media(max-width:360px) {
    .quick-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .balance-grid {
        grid-template-columns: 1fr 1fr
    }

    .admin-kpi-grid {
        grid-template-columns: 1fr
    }

    .hero-metric {
        grid-template-columns: 1fr
    }

    .bottom-link {
        font-size: 9px
    }

    .app-content {
        padding-left: 9px;
        padding-right: 9px
    }

    .mobile-brand img {
        width: 112px
    }
}

/* =========================================================
   WORLDTRADE EXCHANGE
   APP UI V2
   ========================================================= */

.app-v2 {
    --app-blue: #075fe8;
    --app-blue-dark: #0644c9;
    --app-blue-soft: #edf5ff;
    --app-ink: #101828;
    --app-muted: #778296;
    --app-border: #e7ebf2;
    --app-bg: #f7f9fc;
    --app-card: #ffffff;
    --app-green: #0ca66b;
    --app-red: #e44950;
    --app-radius: 18px;
    background: var(--app-bg);
}

.app-v2 .wtx-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-v2 .app-shell {
    min-height: 100vh;
}

.app-v2 .app-sidebar {
    width: 248px;
    padding: 22px 15px 16px;
    background: #fff;
    border-right: 1px solid var(--app-border);
}

.app-v2 .app-brand {
    min-height: 66px;
    padding: 3px 9px 23px;
    display: flex;
    align-items: center;
}

.app-v2 .app-brand img {
    width: 185px;
    max-height: 47px;
    object-fit: contain;
    object-position: left center;
}

.app-v2 .side-nav {
    gap: 3px;
}

.app-v2 .side-link {
    min-height: 46px;
    padding: 9px 11px;
    border-radius: 12px;
    gap: 12px;
    font-size: 13px;
    font-weight: 680;
    color: #5f6b7d;
    transition:
        background .16s ease,
        color .16s ease,
        transform .16s ease;
}

.app-v2 .side-link:hover {
    background: #f5f8fd;
    color: var(--app-blue);
}

.app-v2 .side-link.active {
    color: var(--app-blue);
    background: var(--app-blue-soft);
}

.app-v2 .side-link.active::before {
    content: "";
    width: 3px;
    height: 22px;
    border-radius: 5px;
    background: var(--app-blue);
    position: absolute;
    left: 0;
}

.app-v2 .side-link {
    position: relative;
}

.app-v2 .nav-ico {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #f5f7fb;
    color: #667085;
}

.app-v2 .side-link.active .nav-ico {
    color: var(--app-blue);
    background: #dfeeff;
}

.app-v2 .sidebar-button {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
}

.app-v2 .sidebar-footer {
    padding-top: 12px;
}

.app-v2 .app-main {
    margin-left: 248px;
}

.app-v2 .app-topbar {
    height: 72px;
    padding: 0 28px;
    border-bottom: 1px solid rgba(225, 230, 239, .9);
    background: rgba(255, 255, 255, .94);
}

.app-v2 .topbar-left {
    display: flex;
    align-items: center;
    gap: 11px;
}

.app-v2 .page-title {
    font-size: 19px;
    font-weight: 780;
    letter-spacing: -.25px;
}

.app-v2 .top-actions {
    gap: 9px;
}

.app-v2 .balance-pill {
    height: 46px;
    padding: 5px 12px 5px 6px;
    border-radius: 13px;
    background: #fff;
    border-color: var(--app-border);
}

.app-v2 .balance-token {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background:
        linear-gradient(145deg,
            #1681ff,
            #0648cf);
    font-size: 12px;
    font-weight: 900;
}

.app-v2 .balance-pill-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.app-v2 .balance-pill-copy small {
    color: var(--app-muted);
    font-size: 9px;
    font-weight: 600;
    margin-bottom: 3px;
}

.app-v2 .balance-pill-copy strong {
    font-size: 13px;
}

.app-v2 .icon-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #fff;
    border-color: var(--app-border);
}

.app-v2 .avatar {
    width: 40px;
    height: 40px;
    border: 3px solid #eef4ff;
    background:
        linear-gradient(145deg,
            #377fff,
            #0b49c4);
}

.app-v2 .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-v2 .app-content {
    width: 100%;
    max-width: 1420px;
    padding: 26px 30px 110px;
}

.sidebar-scrim {
    display: none;
}


/* =========================================================
   DASHBOARD
   ========================================================= */

.wtx-dashboard {
    width: 100%;
}

.wtx-dashboard-hero {
    min-height: 252px;
    display: grid;
    grid-template-columns:
        minmax(0, 1.05fr) minmax(330px, .95fr);
    overflow: hidden;
    position: relative;
    padding: 34px 38px;
    border-radius: 24px;
    color: #fff;
    background:
        radial-gradient(circle at 80% 30%,
            rgba(51, 149, 255, .54),
            transparent 27%),
        linear-gradient(125deg,
            #071b4d 0%,
            #063baf 52%,
            #0877ef 100%);
    box-shadow:
        0 16px 38px rgba(20, 70, 160, .16);
}

.wtx-dashboard-hero::before {
    content: "";
    position: absolute;
    width: 370px;
    height: 370px;
    border-radius: 50%;
    right: -50px;
    top: -160px;
    border: 1px solid rgba(255, 255, 255, .13);
}

.wtx-hero-copy {
    z-index: 2;
    position: relative;
}

.wtx-hero-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 1px;
    color: #c9e0ff;
}

.wtx-dashboard-hero h1 {
    max-width: 530px;
    margin: 0 0 12px;
    font-size: clamp(29px, 3vw, 43px);
    line-height: 1.06;
    letter-spacing: -1.4px;
}

.wtx-dashboard-hero p {
    max-width: 500px;
    margin: 0 0 22px;
    color: #d7e7ff;
    font-size: 14px;
    line-height: 1.6;
}

.wtx-hero-button {
    min-height: 43px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 9px 16px;
    border-radius: 10px;
    color: #fff;
    background: #0871f5;
    border: 1px solid rgba(255, 255, 255, .18);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .14);
    font-size: 12px;
    font-weight: 760;
}

.wtx-hero-button:hover {
    background: #1680ff;
}

.wtx-hero-visual {
    position: relative;
    min-height: 180px;
}

.hero-globe {
    position: absolute;
    width: 330px;
    height: 220px;
    right: 8px;
    bottom: -13px;
    border-radius: 50%;
    background:
        radial-gradient(circle,
            rgba(44, 149, 255, .39),
            rgba(4, 57, 161, .18) 55%,
            transparent 56%);
}

.globe-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(179, 221, 255, .22);
}

.ring-one {
    inset: 18px 25px;
}

.ring-two {
    inset: 48px 62px;
}

.hero-globe svg {
    position: absolute;
    inset: 31px 4px 10px;
    width: 100%;
    height: 145px;
    overflow: visible;
}

.hero-globe svg path {
    fill: none;
    stroke: #a4e2ff;
    stroke-width: 4;
    stroke-linecap: round;
    filter:
        drop-shadow(0 0 8px rgba(95, 205, 255, .65));
}

.hero-bar {
    position: absolute;
    bottom: 16px;
    width: 22px;
    border-radius: 6px 6px 0 0;
    background:
        linear-gradient(180deg,
            #54dfff,
            #0d6bff);
}

.hero-bar.b1 {
    right: 170px;
    height: 46px;
}

.hero-bar.b2 {
    right: 138px;
    height: 69px;
}

.hero-bar.b3 {
    right: 106px;
    height: 91px;
}

.hero-bar.b4 {
    right: 74px;
    height: 119px;
}

.hero-bar.b5 {
    right: 42px;
    height: 151px;
}


/* ASSET OVERVIEW */

.asset-overview-card {
    margin-top: 18px;
    padding: 22px;
    border-radius: 20px;
    border-color: var(--app-border);
    box-shadow:
        0 8px 28px rgba(21, 48, 97, .045);
}

.asset-overview-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.overview-label {
    display: block;
    margin-bottom: 5px;
    color: var(--app-muted);
    font-size: 12px;
    font-weight: 650;
}

.overview-balance {
    color: var(--app-ink);
    font-size: 29px;
    font-weight: 850;
    letter-spacing: -.7px;
}

.overview-deposit-btn {
    min-width: 128px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    color: #fff;
    background:
        linear-gradient(135deg,
            #0869ef,
            #0648d0);
    box-shadow:
        0 8px 18px rgba(8, 89, 223, .18);
    font-size: 13px;
    font-weight: 760;
}

.overview-deposit-btn .wtx-icon {
    width: 17px;
    height: 17px;
}

.wallet-mini-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 18px;
    border-top: 1px solid var(--app-border);
    border-bottom: 1px solid var(--app-border);
}

.wallet-mini-stats>div {
    padding: 13px 16px;
    border-right: 1px solid var(--app-border);
}

.wallet-mini-stats>div:first-child {
    padding-left: 0;
}

.wallet-mini-stats>div:last-child {
    border-right: 0;
}

.wallet-mini-stats span {
    display: block;
    color: var(--app-muted);
    font-size: 10px;
    margin-bottom: 4px;
}

.wallet-mini-stats strong {
    font-size: 13px;
}

.overview-market-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 16px;
}

.overview-market {
    min-width: 0;
    padding: 13px 14px 9px;
    position: relative;
    overflow: hidden;
    border: 1px solid #edf0f5;
    border-radius: 13px;
    background: #fbfcfe;
}

.overview-market>strong {
    display: block;
    font-size: 12px;
    margin-bottom: 10px;
}

.overview-market-price {
    display: block;
    font-size: 14px;
    font-weight: 800;
}

.overview-market-change {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    font-weight: 750;
}

.overview-spark {
    width: 75px;
    height: 27px;
    position: absolute;
    right: 9px;
    bottom: 8px;
}

.overview-spark path {
    fill: none;
    stroke: var(--app-green);
    stroke-width: 1.8;
}


/* QUICK ACTIONS */

.dashboard-quick-actions {
    display: grid;
    grid-template-columns: repeat(5, minmax(90px, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.dashboard-action {
    min-height: 93px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 9px;
    padding: 12px 8px;
    border: 1px solid var(--app-border);
    border-radius: 16px;
    background: #fff;
    transition:
        transform .17s ease,
        border-color .17s ease,
        box-shadow .17s ease;
}

.dashboard-action:hover {
    transform: translateY(-2px);
    border-color: #c7d9fb;
    box-shadow:
        0 10px 28px rgba(20, 70, 150, .08);
}

.dashboard-action-icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--app-blue);
    background:
        linear-gradient(145deg,
            #f1f7ff,
            #e7f1ff);
}

.dashboard-action-icon .wtx-icon {
    width: 22px;
    height: 22px;
}

.dashboard-action>span:last-child {
    color: #27364d;
    font-size: 11px;
    font-weight: 720;
}


/* DASHBOARD SECTIONS */

.dashboard-section {
    margin-top: 27px;
}

.dashboard-section-heading,
.dashboard-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.dashboard-section-heading {
    margin-bottom: 13px;
}

.dashboard-section-heading h2 {
    margin: 0 0 5px;
    font-size: 20px;
    letter-spacing: -.4px;
}

.dashboard-card-head {
    padding-bottom: 13px;
    border-bottom: 1px solid var(--app-border);
}

.dashboard-card-head h3 {
    margin: 0;
    font-size: 16px;
}

.dashboard-market-tabs {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 13px;
}

.dashboard-market-tab {
    min-width: 83px;
    height: 36px;
    padding: 6px 16px;
    border: 1px solid #e3e8f0;
    border-radius: 999px;
    color: #606d80;
    background: #fff;
    font-size: 11px;
    font-weight: 720;
}

.dashboard-market-tab.active {
    color: #fff;
    border-color: var(--app-blue);
    background: var(--app-blue);
    box-shadow:
        0 6px 14px rgba(7, 95, 232, .18);
}

.dashboard-market-table {
    overflow: hidden;
    border-radius: 18px;
}

.dashboard-market-header,
.dashboard-market-row {
    display: grid;
    grid-template-columns:
        minmax(185px, 1.4fr) minmax(110px, .8fr) minmax(90px, .65fr) 100px;
    align-items: center;
    gap: 13px;
}

.dashboard-market-header {
    min-height: 43px;
    padding: 0 18px;
    border-bottom: 1px solid var(--app-border);
    color: #8a94a5;
    background: #fafbfd;
    font-size: 10px;
}

.dashboard-market-row {
    min-height: 69px;
    padding: 9px 18px;
    border-bottom: 1px solid #eff2f6;
    transition: background .14s ease;
}

.dashboard-market-row:last-child {
    border-bottom: 0;
}

.dashboard-market-row:hover {
    background: #f9fbff;
}

.dashboard-market-row[hidden] {
    display: none;
}

.market-row-asset {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 11px;
}

.market-row-icon {
    width: 37px;
    height: 37px;
    flex: 0 0 37px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--app-blue);
    background: var(--app-blue-soft);
    font-size: 9px;
    font-weight: 850;
}

.market-row-asset strong {
    display: block;
    font-size: 12px;
}

.market-row-asset small {
    display: block;
    margin-top: 2px;
    color: var(--app-muted);
    font-size: 9px;
}

.market-row-price {
    font-size: 12px;
}

.market-row-change {
    font-size: 11px;
    font-weight: 760;
}

.market-row-chart {
    width: 88px;
    height: 31px;
}

.market-row-chart path {
    fill: none;
    stroke-width: 1.8;
}

.market-row-chart.chart-up path {
    stroke: var(--app-green);
}

.market-row-chart.chart-down path {
    stroke: var(--app-red);
}


/* NEWS + SIGNALS */

.dashboard-secondary-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.08fr) minmax(0, .92fr);
    gap: 16px;
    margin-top: 24px;
}

.dashboard-feed,
.dashboard-signals {
    padding: 18px;
}

.dashboard-news-item {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 12px;
    align-items: start;
    padding: 15px 0;
    border-bottom: 1px solid var(--app-border);
}

.dashboard-news-item:last-child {
    border-bottom: 0;
}

.dashboard-news-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--app-blue);
    background: var(--app-blue-soft);
    font-size: 11px;
    font-weight: 850;
}

.dashboard-news-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
    color: var(--app-muted);
    font-size: 9px;
}

.dashboard-news-item strong {
    display: block;
    font-size: 12px;
    line-height: 1.45;
}

.dashboard-signal-row {
    display: flex;
    gap: 11px;
    align-items: center;
    min-height: 67px;
    padding: 11px 0;
    border-bottom: 1px solid var(--app-border);
}

.dashboard-signal-row:last-child {
    border-bottom: 0;
}

.dashboard-signal-copy {
    min-width: 0;
    flex: 1;
}

.dashboard-signal-copy strong {
    display: block;
    font-size: 12px;
}

.dashboard-signal-copy small {
    display: block;
    margin-top: 3px;
    color: var(--app-muted);
    font-size: 9px;
}

.dashboard-announcements {
    margin-top: 20px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .wtx-dashboard-hero {
        grid-template-columns: 1.1fr .9fr;
    }

    .hero-globe {
        right: -50px;
    }

}


/* =========================================================
   MOBILE APP
   ========================================================= */

@media (max-width: 850px) {

    body.app-v2 {
        background: #fff;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    .app-v2 .app-sidebar {
        width: min(310px, 84vw);
        transform: translateX(-105%);
        z-index: 80;
        padding-top: max(18px,
                env(safe-area-inset-top));
        box-shadow: none;
    }

    .app-v2 .app-sidebar.open {
        transform: translateX(0);
        box-shadow:
            20px 0 60px rgba(10, 25, 60, .18);
    }

    .sidebar-scrim {
        position: fixed;
        inset: 0;
        z-index: 70;
        border: 0;
        background: rgba(10, 22, 45, .34);
        opacity: 0;
        pointer-events: none;
        transition: opacity .2s ease;
        display: block;
    }

    body.sidebar-open .sidebar-scrim {
        opacity: 1;
        pointer-events: auto;
    }

    .app-v2 .app-main {
        margin-left: 0;
    }

    .app-v2 .app-topbar {
        height: 65px;
        padding:
            0 max(14px, env(safe-area-inset-right)) 0 max(14px, env(safe-area-inset-left));
        border-bottom: 0;
        background: rgba(255, 255, 255, .97);
    }

    .app-v2 .mobile-menu-toggle {
        width: 35px;
        height: 35px;
        display: grid;
        border: 0;
        background: transparent;
    }

    .app-v2 .mobile-brand {
        display: block;
    }

    .app-v2 .mobile-brand img {
        width: 126px;
        max-height: 34px;
        object-fit: contain;
    }

    .app-v2 .page-title {
        display: none;
    }

    .app-v2 .balance-pill {
        display: none;
    }

    .app-v2 .notification-button {
        width: 35px;
        height: 35px;
        border: 0;
    }

    .app-v2 .avatar {
        width: 35px;
        height: 35px;
        border-width: 2px;
    }

    .app-v2 .app-content {
        max-width: none;
        padding:
            8px 14px calc(90px + env(safe-area-inset-bottom));
    }

    .app-v2 .mobile-bottom-nav {
        height:
            calc(68px + env(safe-area-inset-bottom));
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        padding-bottom:
            env(safe-area-inset-bottom);
        border-top: 1px solid #e9edf3;
        background: rgba(255, 255, 255, .98);
        box-shadow:
            0 -8px 24px rgba(25, 45, 80, .04);
    }

    .app-v2 .bottom-link {
        position: relative;
        gap: 4px;
        color: #8791a1;
        font-size: 9px;
        font-weight: 650;
    }

    .app-v2 .bottom-icon {
        width: 29px;
        height: 29px;
        display: grid;
        place-items: center;
        border-radius: 10px;
    }

    .app-v2 .bottom-icon .wtx-icon {
        width: 20px;
        height: 20px;
    }

    .app-v2 .bottom-link.active {
        color: var(--app-blue);
    }

    .app-v2 .bottom-link.active .bottom-icon {
        background: var(--app-blue-soft);
    }

    .app-v2 .bottom-link.active::before {
        content: "";
        width: 24px;
        height: 3px;
        position: absolute;
        top: 0;
        border-radius: 0 0 5px 5px;
        background: var(--app-blue);
    }


    /* MOBILE HERO */

    .wtx-dashboard-hero {
        min-height: 190px;
        grid-template-columns: 1fr .68fr;
        padding: 21px 19px;
        border-radius: 16px;
        box-shadow:
            0 9px 24px rgba(18, 70, 160, .14);
    }

    .wtx-hero-eyebrow {
        font-size: 8px;
        letter-spacing: .7px;
        margin-bottom: 6px;
    }

    .wtx-dashboard-hero h1 {
        margin-bottom: 8px;
        font-size: 23px;
        letter-spacing: -.8px;
    }

    .wtx-dashboard-hero p {
        max-width: 310px;
        margin-bottom: 14px;
        font-size: 10px;
        line-height: 1.45;
    }

    .wtx-hero-button {
        min-height: 34px;
        padding: 6px 11px;
        border-radius: 8px;
        font-size: 9px;
    }

    .hero-globe {
        width: 200px;
        height: 170px;
        right: -65px;
        bottom: -14px;
    }

    .hero-globe svg {
        inset: 40px 5px auto;
        height: 90px;
    }

    .hero-bar {
        width: 13px;
        bottom: 18px;
    }

    .hero-bar.b1 {
        right: 111px;
        height: 25px;
    }

    .hero-bar.b2 {
        right: 91px;
        height: 39px;
    }

    .hero-bar.b3 {
        right: 71px;
        height: 53px;
    }

    .hero-bar.b4 {
        right: 51px;
        height: 68px;
    }

    .hero-bar.b5 {
        right: 31px;
        height: 87px;
    }


    /* MOBILE ASSET CARD */

    .asset-overview-card {
        margin-top: 13px;
        padding: 17px 15px 14px;
        border-radius: 16px;
        box-shadow: none;
    }

    .overview-label {
        font-size: 10px;
    }

    .overview-balance {
        font-size: 23px;
    }

    .overview-deposit-btn {
        min-width: 102px;
        height: 39px;
        font-size: 11px;
        border-radius: 8px;
    }

    .overview-deposit-btn .wtx-icon {
        width: 15px;
        height: 15px;
    }

    .wallet-mini-stats {
        grid-template-columns: repeat(2, 1fr);
        margin-top: 14px;
    }

    .wallet-mini-stats>div {
        padding: 10px 8px;
        border-bottom: 1px solid var(--app-border);
    }

    .wallet-mini-stats>div:nth-child(2) {
        border-right: 0;
    }

    .wallet-mini-stats>div:nth-child(3),
    .wallet-mini-stats>div:nth-child(4) {
        border-bottom: 0;
    }

    .wallet-mini-stats>div:nth-child(3) {
        padding-left: 0;
    }

    .wallet-mini-stats span {
        font-size: 8px;
    }

    .wallet-mini-stats strong {
        font-size: 11px;
    }

    .overview-market-grid {
        gap: 7px;
        margin-top: 12px;
    }

    .overview-market {
        min-height: 90px;
        padding: 11px 8px 7px;
    }

    .overview-market>strong {
        margin-bottom: 8px;
        font-size: 9px;
    }

    .overview-market-price {
        font-size: 11px;
    }

    .overview-market-change {
        font-size: 8px;
    }

    .overview-spark {
        width: 52px;
        height: 20px;
        right: 4px;
        bottom: 5px;
    }


    /* MOBILE QUICK ACTIONS */

    .dashboard-quick-actions {
        grid-template-columns: repeat(5, 1fr);
        gap: 4px;
        margin: 12px -3px 0;
    }

    .dashboard-action {
        min-width: 0;
        min-height: 77px;
        padding: 6px 2px;
        gap: 6px;
        border: 0;
        border-radius: 12px;
        background: transparent;
    }

    .dashboard-action:hover {
        transform: none;
        box-shadow: none;
    }

    .dashboard-action-icon {
        width: 42px;
        height: 42px;
        border-radius: 13px;
    }

    .dashboard-action-icon .wtx-icon {
        width: 20px;
        height: 20px;
    }

    .dashboard-action>span:last-child {
        width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 9px;
        white-space: nowrap;
    }


    /* MOBILE MOVERS */

    .dashboard-section {
        margin-top: 20px;
    }

    .dashboard-section-heading {
        margin-bottom: 10px;
    }

    .dashboard-section-heading h2 {
        font-size: 16px;
    }

    .dashboard-market-tabs {
        gap: 7px;
        margin-bottom: 10px;
    }

    .dashboard-market-tab {
        min-width: 75px;
        height: 32px;
        padding: 5px 13px;
        font-size: 9px;
    }

    .dashboard-market-table {
        border-left: 0;
        border-right: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .dashboard-market-header,
    .dashboard-market-row {
        grid-template-columns:
            minmax(115px, 1.25fr) minmax(78px, .75fr) 65px;
    }

    .dashboard-market-header {
        min-height: 37px;
        padding: 0 4px;
    }

    .dashboard-market-header>span:last-child {
        display: none;
    }

    .dashboard-market-row {
        min-height: 62px;
        padding: 7px 4px;
        gap: 7px;
    }

    .market-row-icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
        font-size: 8px;
    }

    .market-row-asset {
        gap: 8px;
    }

    .market-row-asset strong,
    .market-row-price {
        font-size: 10px;
    }

    .market-row-asset small {
        font-size: 8px;
    }

    .market-row-change {
        text-align: right;
        font-size: 9px;
    }

    .market-row-chart {
        display: none;
    }


    /* MOBILE NEWS */

    .dashboard-secondary-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 19px;
    }

    .dashboard-feed,
    .dashboard-signals {
        padding: 15px;
    }

}


/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 520px) {

    .app-v2 .app-content {
        padding-left: 11px;
        padding-right: 11px;
    }

    .wtx-dashboard-hero {
        grid-template-columns: minmax(0, 1fr) 105px;
        min-height: 178px;
    }

    .wtx-dashboard-hero h1 {
        font-size: 20px;
    }

    .wtx-dashboard-hero p {
        font-size: 9px;
    }

    .asset-overview-card {
        padding-left: 13px;
        padding-right: 13px;
    }

    .overview-balance {
        font-size: 21px;
    }

    .overview-deposit-btn {
        min-width: 92px;
        height: 37px;
    }

}


/* =========================================================
   EXTRA SMALL
   ========================================================= */

@media (max-width: 370px) {

    .wtx-dashboard-hero {
        grid-template-columns: 1fr;
    }

    .wtx-hero-visual {
        display: none;
    }

    .dashboard-action-icon {
        width: 38px;
        height: 38px;
    }

    .dashboard-action>span:last-child {
        font-size: 8px;
    }

    .overview-market {
        padding-left: 6px;
        padding-right: 6px;
    }

}

/* =========================================================
   WTX SIGNAL CYCLE / TRADE PACKAGE UI
   ========================================================= */

.trade-package-mobile {
    display: none;
    margin-bottom: 10px;
}

.trade-package-trigger {
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: var(--text);
    text-align: left;
}

.trade-package-trigger small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    margin-bottom: 3px;
}

.trade-package-trigger strong {
    font-size: 14px;
}

.selected-signal-strip {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 14px;
    border-bottom: 1px solid var(--line);
    background: #fafcff;
    font-size: 12px;
}

.selected-signal-strip>div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.tier-package-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.tier-package-range {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

.tier-package-rate {
    color: var(--blue);
    font-size: 17px;
}

.tier-package-status {
    margin-top: 8px;
    font-size: 11px;
    color: var(--muted);
}

.selected-signal-detail {
    display: grid;
    gap: 8px;
}

.selected-signal-detail>div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.selected-signal-detail>div:last-child {
    border-bottom: 0;
}

.selected-signal-detail span {
    color: var(--muted);
    font-size: 11px;
}

.selected-signal-detail strong {
    text-align: right;
    font-size: 12px;
}

@media (max-width: 850px) {
    .trade-package-mobile {
        display: block;
    }

    .package-panel-desktop {
        display: none;
    }

    .selected-signal-strip {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* =========================
   TRADE PAGE UI UPGRADE
   ========================= */

.trade-page {
    padding-bottom: 90px;
}

.trade-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, .9fr);
    gap: 24px;
    align-items: start;
}

.trade-terminal,
.trade-panel {
    border-radius: 24px;
    overflow: hidden;
}

.trade-head-responsive {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.trade-head-left,
.trade-head-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.trade-head-right {
    margin-left: auto;
    text-align: right;
    min-width: 180px;
}

.asset-selector {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 0;
    background: transparent;
    padding: 0;
    text-align: left;
    cursor: pointer;
}

.asset-selector h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
}

.asset-selector small {
    color: var(--muted);
    font-size: 12px;
}

.trade-selected-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.trade-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: #eef4ff;
    color: #175cd3;
}

.trade-chip.active {
    background: #e7f0ff;
    color: #155eef;
}

.trade-top-stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
}

.trade-stat-mini {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 11px;
    color: var(--muted);
}

.trade-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.trade-balance-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid #e9eef5;
    border-radius: 16px;
    background: #f8fbff;
    margin-bottom: 14px;
}

.trade-balance-box small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 4px;
}

.trade-balance-box strong {
    font-size: 20px;
    color: var(--navy);
}

.trade-balance-side {
    text-align: right;
}

.trade-primary-cta {
    margin-top: 16px;
}

.trade-action.large {
    width: 100%;
    min-height: 74px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-weight: 800;
    font-size: 18px;
}

.trade-action-main {
    font-size: 18px;
    line-height: 1.2;
}

.trade-action-sub {
    font-size: 12px;
    opacity: .95;
    font-weight: 600;
}

.trade-action.buy {
    background: linear-gradient(135deg, #16a34a, #12b76a);
    color: #fff;
    border: none;
}

.trade-action.sell {
    background: linear-gradient(135deg, #dc2626, #f04438);
    color: #fff;
    border: none;
}

.trade-action.disabled,
.trade-action:disabled {
    background: #e9edf3 !important;
    color: #8a94a6 !important;
    border: none;
    cursor: not-allowed;
    opacity: 1;
}

.tier-option-list {
    display: grid;
    gap: 12px;
}

.tier-option {
    display: block;
    border: 1px solid #e7ebf1;
    border-radius: 18px;
    padding: 14px 15px;
    background: #fff;
    transition: .2s ease;
    text-decoration: none;
    color: inherit;
}

.tier-option:hover {
    border-color: #cdd8ea;
    transform: translateY(-1px);
}

.tier-option.active {
    border-color: #2f6fed;
    background: #f5f9ff;
    box-shadow: 0 0 0 3px rgba(47, 111, 237, .08);
}

.trade-sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96);
    border-top: 1px solid #e6ebf2;
    backdrop-filter: blur(12px);
}

.trade-sticky-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.trade-sticky-meta strong {
    font-size: 13px;
    color: var(--navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trade-sticky-meta small {
    color: var(--muted);
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trade-action.sticky {
    min-width: 132px;
    min-height: 48px;
    border-radius: 14px;
    padding: 0 18px;
    font-weight: 800;
    font-size: 15px;
}

.trade-package-mobile {
    display: none;
    margin-bottom: 16px;
}

.trade-package-trigger {
    width: 100%;
    border: 1px solid #e7ebf1;
    background: #fff;
    border-radius: 18px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    cursor: pointer;
}

.trade-package-trigger small {
    display: block;
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 4px;
}

.trade-package-trigger strong {
    color: var(--navy);
    font-size: 16px;
}

#trade-chart {
    width: 100%;
    min-height: 430px;
}

@media (max-width: 1100px) {
    .trade-layout {
        grid-template-columns: 1fr;
    }

    .trade-side {
        display: grid;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .trade-page {
        padding-bottom: 110px;
    }

    .trade-package-mobile {
        display: block;
    }

    .package-panel-desktop {
        display: none;
    }

    .trade-head-right {
        width: 100%;
        text-align: left;
        min-width: 0;
        margin-left: 0;
    }

    .trade-top-stats {
        align-items: flex-start;
    }

    .trade-summary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .trade-sticky-bar {
        display: flex;
    }

    #trade-chart {
        min-height: 300px;
    }

    .asset-selector h2 {
        font-size: 20px;
    }

    .trade-price {
        font-size: 30px;
        line-height: 1.1;
    }
}

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

    .trade-balance-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .trade-balance-side {
        text-align: left;
    }

    .trade-action.large {
        min-height: 68px;
        font-size: 16px;
    }

    .trade-action-main {
        font-size: 16px;
    }

    .trade-action-sub {
        font-size: 11px;
    }
}