:root {
    color-scheme: dark;
    --bg: #050a12;
    --panel: #0b1423;
    --panel-strong: #101b2d;
    --surface: #142036;
    --text: #f7f9ff;
    --muted: #94a4bd;
    --soft: #c7d0df;
    --positive: #20e08a;
    --negative: #ff5f57;
    --warning: #ffb22e;
    --accent: #20e08a;
    --accent-2: #2f82ff;
    --purple: #a95cff;
    --border: rgba(255, 255, 255, 0.09);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

[hidden] {
    display: none !important;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 78% 12%, rgba(47, 130, 255, 0.12), transparent 28%),
        radial-gradient(circle at 10% 85%, rgba(32, 224, 138, 0.10), transparent 26%),
        var(--bg);
    color: var(--text);
}

button,
input,
select,
a {
    font: inherit;
}

button {
    color: inherit;
}

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

.app-shell {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 30px 20px;
    background: rgba(5, 11, 20, 0.94);
    border-right: 1px solid var(--border);
}

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

.brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: conic-gradient(from 140deg, #23e28b, #2f82ff, #23e28b);
    position: relative;
}

.brand-mark::after {
    content: "";
    position: absolute;
    inset: 9px 7px 9px 13px;
    border-radius: 4px 9px 9px 4px;
    background: var(--bg);
}

.brand-name {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0;
}

.sidebar-collapse,
.ghost-icon,
.modal-close,
.notification-dot {
    border: 0;
    background: transparent;
    cursor: pointer;
}

.sidebar-collapse {
    margin-left: auto;
    width: 28px;
    height: 28px;
    position: relative;
}

.sidebar-collapse::before,
.sidebar-collapse::after {
    content: "";
    position: absolute;
    top: 8px;
    width: 10px;
    height: 10px;
    border-left: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
}

.sidebar-collapse::before {
    left: 8px;
}

.sidebar-collapse::after {
    left: 15px;
}

.sidebar-nav {
    display: grid;
    gap: 10px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 58px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--soft);
    transition: background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.sidebar-nav a::before {
    content: "";
    width: 22px;
    height: 22px;
    border: 2px solid currentColor;
    border-radius: 6px;
    opacity: 0.9;
}

.sidebar-nav a[data-icon="markets"]::before {
    border-radius: 3px;
    transform: skewY(-10deg);
}

.sidebar-nav a[data-icon="portfolio"]::before {
    border-radius: 50%;
}

.sidebar-nav a[data-icon="settings"]::before {
    border-radius: 50%;
    outline: 2px dotted currentColor;
    outline-offset: 2px;
}

.sidebar-nav a.active,
.sidebar-nav a:hover {
    color: var(--text);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035));
    border-color: var(--border);
}

.sidebar-nav a.active::before {
    color: var(--accent);
    background: rgba(32, 224, 138, 0.18);
}

.sidebar-is-collapsed .app-shell {
    grid-template-columns: 92px 1fr;
}

.sidebar-is-collapsed .sidebar {
    padding-left: 16px;
    padding-right: 16px;
}

.sidebar-is-collapsed .brand-name,
.sidebar-is-collapsed .sidebar-nav a,
.sidebar-is-collapsed .sidebar-footer {
    font-size: 0;
}

.sidebar-is-collapsed .sidebar-nav a {
    justify-content: center;
    padding: 0;
}

.sidebar-footer {
    margin-top: auto;
    display: grid;
    gap: 18px;
}

.security-card,
.theme-toggle,
.panel,
.asset-card,
.plan-card,
.wallet-card,
.market-card,
.settings-card {
    background: linear-gradient(145deg, rgba(19, 32, 53, 0.94), rgba(8, 17, 30, 0.94));
    border: 1px solid var(--border);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.security-card {
    padding: 20px;
    border-radius: 14px;
}

.security-visual {
    width: 100%;
    height: 126px;
    margin-bottom: 14px;
    border-radius: 10px;
    background:
        linear-gradient(150deg, rgba(32, 224, 138, 0.25), transparent 45%),
        repeating-linear-gradient(150deg, rgba(47, 130, 255, 0.18) 0 1px, transparent 1px 18px);
    position: relative;
}

.security-visual::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 28px;
    width: 54px;
    height: 62px;
    transform: translateX(-50%);
    border-radius: 18px 18px 22px 22px;
    background: linear-gradient(135deg, rgba(32, 224, 138, 0.9), rgba(47, 130, 255, 0.4));
    box-shadow: 0 0 28px rgba(32, 224, 138, 0.38);
}

.security-card strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 7px;
}

.security-card p,
.page-title p,
.panel p {
    color: var(--muted);
    line-height: 1.5;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    cursor: pointer;
    font-weight: 700;
}

.button-primary {
    color: var(--accent);
    border-color: rgba(32, 224, 138, 0.2);
    background: linear-gradient(135deg, rgba(32, 224, 138, 0.28), rgba(32, 224, 138, 0.08));
}

.button-secondary {
    color: var(--text);
    background: rgba(255, 255, 255, 0.055);
}

.theme-toggle {
    min-height: 56px;
    border-radius: 24px;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.theme-toggle span::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 10px;
    border-radius: 50%;
    box-shadow: -5px 2px 0 var(--soft);
}

.theme-toggle small,
.logout-link {
    color: var(--muted);
}

.logout-link {
    text-align: center;
    font-weight: 700;
}

.main-panel {
    min-width: 0;
    padding: 18px 26px 26px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: 60px;
    margin-bottom: 18px;
}

.page-title h1 {
    margin: 0 0 6px;
    font-size: 1.8rem;
}

.search-box {
    width: min(420px, 100%);
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(18, 29, 48, 0.9);
}

.search-icon {
    width: 18px;
    height: 18px;
    border: 2px solid var(--muted);
    border-radius: 50%;
    position: relative;
}

.search-icon::after {
    content: "";
    position: absolute;
    right: -6px;
    bottom: -4px;
    width: 8px;
    height: 2px;
    background: var(--muted);
    transform: rotate(45deg);
}

.search-box input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
}

.search-box kbd {
    min-width: 44px;
    padding: 5px 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-size: 0.8rem;
    text-align: center;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-menu {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.profile-chip {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #7a7cff, #365df5);
    font-weight: 800;
}

.notification-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    position: relative;
}

.notification-dot::before {
    content: "";
    position: absolute;
    inset: 9px 11px 7px;
    border: 2px solid var(--soft);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.notification-dot::after {
    content: "";
    position: absolute;
    top: 3px;
    right: 5px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(360px, 1.25fr);
    gap: 18px;
    align-items: start;
}

.panel {
    border-radius: 14px;
    padding: 22px;
    min-width: 0;
}

.panel-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.panel-title > span {
    font-weight: 800;
    font-size: 1.05rem;
}

.panel-title a,
.rebalance-link {
    color: var(--accent);
    font-weight: 700;
    font-size: 0.92rem;
}

.balance-card {
    min-height: 190px;
    position: relative;
    overflow: hidden;
}

.balance-card::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 54%;
    height: 82%;
    background: linear-gradient(180deg, rgba(32, 224, 138, 0.2), rgba(32, 224, 138, 0));
    clip-path: polygon(0 82%, 12% 78%, 20% 69%, 29% 67%, 38% 58%, 47% 62%, 55% 50%, 64% 42%, 72% 39%, 82% 28%, 92% 26%, 100% 16%, 100% 100%, 0 100%);
    pointer-events: none;
}

.hero-balance {
    display: block;
    font-size: clamp(2.3rem, 5vw, 3.35rem);
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: 0;
}

.hero-subtext,
.panel-metric {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--muted);
}

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

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

.ghost-icon {
    width: 22px;
    height: 22px;
    border: 2px solid var(--muted);
    border-radius: 50%;
    position: relative;
}

.ghost-icon::after {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: var(--muted);
}

.sparkline {
    position: absolute;
    right: 26px;
    bottom: 26px;
    width: 46%;
    height: 100px;
    background: linear-gradient(135deg, transparent 8%, var(--accent) 9% 11%, transparent 12% 20%, var(--accent) 21% 23%, transparent 24% 36%, var(--accent) 37% 39%, transparent 40% 48%, var(--accent) 49% 51%, transparent 52%);
    filter: drop-shadow(0 0 10px rgba(32, 224, 138, 0.55));
}

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

.summary-grid div {
    min-height: 90px;
    padding: 18px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.055);
}

.summary-grid span,
.asset-card span,
.transaction-row span,
.plan-card dt {
    color: var(--muted);
}

.summary-grid strong {
    display: block;
    margin-top: 10px;
    font-size: 1.3rem;
}

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

.asset-card {
    min-height: 152px;
    border-radius: 14px;
    padding: 18px;
    position: relative;
    overflow: hidden;
}

.asset-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.asset-head div {
    display: grid;
    gap: 2px;
}

.asset-card > strong {
    display: block;
    font-size: 1.35rem;
    margin-bottom: 4px;
}

.coin-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    font-weight: 900;
    color: white;
}

.coin-icon.btc {
    background: linear-gradient(135deg, #ffb22e, #ff7a00);
}

.coin-icon.eth {
    background: linear-gradient(135deg, #8394ff, #365df5);
}

.coin-icon.usdt {
    background: linear-gradient(135deg, #43dca4, #158766);
}

.mini-sparkline {
    position: absolute;
    right: 16px;
    bottom: 14px;
    width: 120px;
    height: 48px;
    opacity: 0.95;
    background: linear-gradient(150deg, transparent 10%, currentColor 11% 13%, transparent 14% 24%, currentColor 25% 27%, transparent 28% 42%, currentColor 43% 45%, transparent 46% 60%, currentColor 61% 63%, transparent 64%);
}

.mini-sparkline.btc,
.mini-sparkline.usdt {
    color: var(--accent);
}

.mini-sparkline.eth {
    color: var(--accent-2);
}

.quick-action-card {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    align-items: center;
    min-height: 104px;
    padding: 18px 20px;
}

.quick-action-card button {
    display: grid;
    justify-items: center;
    align-content: center;
    gap: 9px;
    min-height: 68px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.1;
    border-radius: 10px;
    transition: background 0.18s ease, transform 0.18s ease;
}

.quick-action-card button:hover {
    background: rgba(255, 255, 255, 0.045);
    transform: translateY(-1px);
}

.action-icon,
.button-icon {
    display: inline-block;
    position: relative;
}

.button-icon {
    width: 16px;
    height: 16px;
}

.action-icon {
    width: 38px;
    height: 38px;
    border: 2px solid currentColor;
    border-radius: 9px;
    box-shadow: 0 0 18px color-mix(in srgb, currentColor 22%, transparent);
}

.action-icon::before,
.action-icon::after,
.button-icon::before,
.button-icon::after {
    content: "";
    position: absolute;
    background: currentColor;
}

.plus,
.down {
    color: var(--accent);
}

.sell {
    color: var(--negative);
}

.up {
    color: var(--accent-2);
}

.swap {
    color: var(--purple);
}

.plus::before,
.sell::before {
    width: 16px;
    height: 2px;
    left: 8px;
    top: 15px;
}

.plus::after {
    width: 2px;
    height: 16px;
    left: 15px;
    top: 8px;
}

.down::before,
.up::before {
    width: 2px;
    height: 16px;
    left: 15px;
    top: 7px;
}

.down::after,
.up::after {
    width: 12px;
    height: 12px;
    left: 10px;
    top: 14px;
    background: transparent;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
}

.up::after {
    top: 7px;
    transform: rotate(225deg);
}

.swap::before,
.swap::after {
    width: 18px;
    height: 2px;
    left: 8px;
    top: 12px;
}

.swap::after {
    top: 22px;
}

.action-icon.swap::before {
    box-shadow: 8px 4px 0 -3px currentColor;
}

.action-icon.swap::after {
    box-shadow: -8px -4px 0 -3px currentColor;
}

.action-icon.swap {
    transform: rotate(0deg);
}

.performance-card {
    grid-column: 1;
}

.segmented-control {
    display: flex;
    gap: 4px;
}

.segmented-control button,
.time-frame-btn {
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    min-width: 36px;
    min-height: 32px;
    cursor: pointer;
}

.segmented-control button.active,
.time-frame-btn.active {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--text) !important;
}

.panel-metric {
    margin-bottom: 20px;
}

.panel-metric strong {
    font-size: 1.7rem;
}

.performance-chart {
    height: 190px;
    display: grid;
    grid-template-rows: repeat(5, 1fr);
    position: relative;
    padding-left: 46px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.performance-chart > span {
    color: var(--muted);
    font-size: 0.82rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.chart-sparkline {
    left: 56px;
    right: 24px;
    top: 22px;
    width: auto;
    height: auto;
    bottom: 20px;
}

.performance-chart em {
    position: absolute;
    right: 8px;
    top: 22px;
    padding: 7px 9px;
    border-radius: 6px;
    background: rgba(32, 224, 138, 0.75);
    font-style: normal;
    font-size: 0.82rem;
}

.allocation-card {
    grid-column: 2;
}

.allocation-layout {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 22px;
    align-items: center;
}

.donut {
    width: 190px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: conic-gradient(var(--warning) 0 var(--btc), var(--accent-2) var(--btc) calc(var(--btc) + var(--eth)), #2bc890 calc(var(--btc) + var(--eth)) 100%);
    display: grid;
    place-items: center;
    position: relative;
}

.donut::after {
    content: "";
    position: absolute;
    inset: 44px;
    border-radius: 50%;
    background: var(--panel);
}

.donut span {
    position: relative;
    z-index: 1;
    display: grid;
    text-align: center;
    color: var(--muted);
}

.donut strong {
    color: var(--text);
    margin-top: 5px;
}

.allocation-list.compact {
    display: grid;
    gap: 16px;
}

.allocation-list.compact div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 20px;
    border: 0;
    padding: 0;
}

.allocation-list.compact em {
    grid-column: 2;
    color: var(--muted);
    font-style: normal;
}

.legend {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin-right: 9px;
    border-radius: 50%;
}

.legend.btc {
    background: var(--warning);
}

.legend.eth {
    background: var(--accent-2);
}

.legend.usdt {
    background: #2bc890;
}

.rebalance-link {
    display: inline-block;
    margin-top: 20px;
}

.transactions-card {
    grid-column: 2;
    grid-row: span 2;
}

.transaction-list,
.plan-list,
.wallet-grid,
.market-grid,
.settings-grid,
.plan-grid {
    display: grid;
    gap: 14px;
}

.transaction-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 0 0 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.transaction-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.transaction-row div {
    min-width: 0;
}

.transaction-row strong,
.transaction-row span {
    display: block;
}

.transaction-amount {
    text-align: right;
    font-weight: 800;
}

.transaction-amount small {
    display: block;
    color: var(--muted);
    font-weight: 500;
    margin-top: 4px;
}

.invest-card {
    grid-column: 1;
}

.plan-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    border-radius: 12px;
    padding: 16px;
    min-width: 0;
}

.plan-card header {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}

.plan-card em {
    padding: 4px 8px;
    border-radius: 7px;
    background: rgba(32, 224, 138, 0.18);
    color: var(--accent);
    font-size: 0.75rem;
    font-style: normal;
    white-space: nowrap;
}

.plan-card p {
    margin: 5px 0 12px;
}

.plan-card dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 12px;
}

.plan-card dd {
    margin: 3px 0 0;
}

.plan-card button,
.wallet-actions button,
.settings-card button {
    border: 1px solid rgba(32, 224, 138, 0.65);
    background: rgba(32, 224, 138, 0.08);
    color: var(--accent);
    border-radius: 8px;
    min-height: 34px;
    cursor: pointer;
    font-weight: 700;
}

.grid-two,
.grid-three {
    display: grid;
    gap: 22px;
    margin-bottom: 22px;
}

.grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-three {
    grid-template-columns: 1.5fr 1fr 1fr;
}

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

.portfolio-summary div,
.investment-summary div,
.wallet-balance {
    padding: 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}

.portfolio-summary span,
.wallet-balance p,
.wallet-header small,
.plan-details span,
.market-price span {
    color: var(--muted);
}

.portfolio-summary strong,
.wallet-balance strong {
    display: block;
    margin-top: 8px;
    font-size: 1.4rem;
}

.wallet-grid,
.market-grid,
.plan-grid,
.settings-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wallet-card,
.market-card,
.settings-card {
    border-radius: 14px;
    padding: 18px;
}

.wallet-header,
.market-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.wallet-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
}

.badge {
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
}

.badge.positive,
.badge.badge-primary {
    background: rgba(32, 224, 138, 0.16);
    color: var(--accent);
}

.badge.neutral,
.badge.secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--soft);
}

.badge.warning {
    background: rgba(255, 178, 46, 0.16);
    color: var(--warning);
}

.table-head,
.table-row {
    display: grid;
    grid-template-columns: 1.8fr 0.8fr 0.9fr 0.9fr 1fr 0.9fr;
    gap: 12px;
    align-items: center;
    padding: 16px;
}

.table-head {
    color: var(--muted);
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0;
}

.table-row {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
}

.chart-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
    color: var(--muted);
}

.chart-info strong {
    color: var(--text);
    font-size: 1.25rem;
}

.action-modal[hidden] {
    display: none;
}

.action-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 20px;
    overflow-y: auto;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.68);
}

.modal-panel {
    position: relative;
    z-index: 1;
    width: min(430px, 100%);
    display: grid;
    gap: 14px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--panel);
    box-shadow: var(--shadow);
    box-sizing: border-box;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    overflow-wrap: anywhere;
}

.modal-panel h2,
.modal-panel p {
    margin: 0;
}

.modal-panel label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-weight: 700;
}

.modal-panel label[hidden],
.modal-panel [hidden] {
    display: none !important;
}

.modal-panel input,
.modal-panel select,
.modal-panel textarea {
    width: 100%;
    min-height: 46px;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.055);
    color: var(--text);
    padding: 0 12px;
}

.modal-panel textarea {
    min-height: 92px;
    padding: 12px;
    resize: vertical;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.modal-panel select {
    appearance: none;
    padding-right: 42px;
    background:
        linear-gradient(45deg, transparent 50%, var(--muted) 50%) right 18px center / 7px 7px no-repeat,
        linear-gradient(135deg, var(--muted) 50%, transparent 50%) right 13px center / 7px 7px no-repeat,
        rgba(255, 255, 255, 0.055);
    cursor: pointer;
}

.modal-panel select:focus,
.modal-panel input:focus,
.modal-panel textarea:focus {
    outline: none;
    border-color: rgba(32, 224, 138, 0.6);
    box-shadow: 0 0 0 3px rgba(32, 224, 138, 0.12);
}

.modal-panel option {
    background: var(--panel);
}

.deposit-address-card {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid rgba(32, 224, 138, 0.22);
    border-radius: 10px;
    background: rgba(32, 224, 138, 0.08);
}

.deposit-address-card span {
    color: var(--muted);
    font-weight: 700;
}

.deposit-address-card strong {
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.address-copy-button {
    width: fit-content;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    border: 1px solid rgba(32, 224, 138, 0.34);
    background: rgba(32, 224, 138, 0.12);
    color: var(--accent);
    font-weight: 800;
    cursor: pointer;
}

.address-copy-button:hover {
    border-color: rgba(32, 224, 138, 0.7);
    background: rgba(32, 224, 138, 0.18);
}

.payment-notice {
    margin: 0 0 20px;
    padding: 16px;
    border-radius: 10px;
    border: 1px solid rgba(32, 224, 138, 0.2);
    background: rgba(32, 224, 138, 0.08);
}

.payment-address-card {
    margin: 20px 0;
}

.payment-address-card strong {
    font-size: 1rem;
}

.payment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.payout-panel {
    max-height: calc(100vh - 40px);
    overflow: auto;
}

.payout-method-form {
    display: grid;
    gap: 12px;
}

.payout-method-list {
    display: grid;
    gap: 10px;
}

.payout-method-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.045);
}

.payout-method-item div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.payout-method-item span,
.empty-state,
.modal-panel small {
    color: var(--muted);
}

.withdraw-minimum-notice {
    display: grid;
    gap: 4px;
    color: var(--accent);
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.35;
}

.withdraw-fee-notice {
    display: grid;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(255, 178, 46, 0.35);
    border-radius: 12px;
    background: rgba(255, 178, 46, 0.1);
    color: var(--soft);
}

.withdraw-fee-notice[hidden] {
    display: none !important;
}

.withdraw-fee-notice p {
    margin: 0;
}

.withdraw-fee-ack {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    color: var(--text);
    font-weight: 800;
}

.withdraw-fee-ack input {
    margin-top: 3px;
}

.payout-method-item button {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 9px;
    border: 1px solid rgba(32, 224, 138, 0.35);
    background: rgba(32, 224, 138, 0.1);
    color: var(--accent);
    font-weight: 800;
    cursor: pointer;
}

.processing-page {
    min-height: 100vh;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    display: block;
    padding: 16px 16px 96px;
    background:
        radial-gradient(circle at 50% 0%, rgba(32, 224, 138, 0.16), transparent 34%),
        var(--bg);
    overflow-x: hidden;
}

.processing-card {
    width: 100%;
    box-sizing: border-box;
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--panel);
    box-shadow: var(--shadow);
    overflow-wrap: anywhere;
}

.withdrawal-processing-card {
    width: 100%;
}

.processing-card h1,
.processing-card p {
    margin: 0;
}

.processing-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(32, 224, 138, 0.28), rgba(32, 224, 138, 0.08)),
        rgba(255, 255, 255, 0.04);
    position: relative;
}

.processing-icon::before {
    content: "";
    position: absolute;
    inset: 15px;
    border: 3px solid var(--accent);
    border-top-color: transparent;
    border-radius: 50%;
}

.processing-details {
    display: grid;
    gap: 10px;
}

.processing-details div {
    display: grid;
    gap: 6px;
    padding: 13px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.045);
}

.processing-details span {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.processing-details strong {
    overflow-wrap: anywhere;
}

.processing-empty {
    color: var(--warning);
}

.processing-status-notice {
    display: grid;
    gap: 6px;
    padding: 13px;
    border-radius: 12px;
    border: 1px solid rgba(32, 224, 138, 0.28);
    background: rgba(32, 224, 138, 0.09);
    color: var(--soft);
    font-weight: 800;
    line-height: 1.45;
}

.notice-card,
.withdrawal-card,
.history-card {
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.notice-card {
    display: grid;
    gap: 8px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(32, 224, 138, 0.26);
    background: rgba(32, 224, 138, 0.075);
}

.notice-card h2 {
    margin: 0;
    color: var(--accent);
    font-size: 1rem;
}

.notice-card p {
    color: var(--soft);
    line-height: 1.5;
}

.current-withdrawal-card,
.withdrawal-history-panel {
    display: grid;
    gap: 14px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
}

.withdrawal-history-list {
    display: grid;
    gap: 10px;
}

.withdrawal-history-item {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: stretch;
    padding: 12px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.045);
}

.withdrawal-history-item div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.processing-details small,
.withdrawal-history-item div strong,
.txid-value {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.withdrawal-history-item span:not(.status-badge) {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.txid-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.txid-actions .button {
    min-height: 40px;
    padding: 0 12px;
}

.withdrawal-detail-panel {
    grid-column: 1 / -1;
    display: grid;
    gap: 10px;
    padding-top: 4px;
}

.withdrawal-detail-panel summary {
    color: var(--accent);
    cursor: pointer;
    font-weight: 900;
}

.admin-inline-check {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: var(--soft);
    font-weight: 800;
}

.status-badge {
    justify-self: start;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 178, 46, 0.35);
    background: rgba(255, 178, 46, 0.12);
    color: var(--warning);
    font-size: 0.78rem;
    font-weight: 900;
}

@media (min-width: 768px) {
    .processing-page {
        padding: 32px 32px 112px;
    }

    .processing-card {
        padding: 24px;
    }

    .processing-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .withdrawal-history-item {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: center;
    }

    .status-badge {
        justify-self: end;
    }
}

@media (min-width: 1024px) {
    .processing-page {
        padding: 40px 40px 120px;
    }

    .withdrawal-history-item {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 414px) {
    .action-modal {
        align-items: start;
        padding: 10px;
    }

    .modal-panel {
        width: 100%;
        padding: 18px 14px;
        max-height: calc(100vh - 20px);
    }

    .processing-page {
        padding: 10px 10px 88px;
    }

    .processing-card,
    .current-withdrawal-card,
    .withdrawal-history-panel {
        padding: 12px;
    }

    .processing-actions,
    .txid-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .processing-actions .button,
    .txid-actions .button {
        width: 100%;
    }
}

.status-completed {
    border-color: rgba(32, 224, 138, 0.35);
    background: rgba(32, 224, 138, 0.12);
    color: var(--positive);
}

.status-active,
.status-submitted {
    border-color: rgba(47, 130, 255, 0.35);
    background: rgba(47, 130, 255, 0.12);
    color: #61a2ff;
}

.status-failed,
.status-cancelled {
    border-color: rgba(255, 95, 87, 0.35);
    background: rgba(255, 95, 87, 0.12);
    color: var(--negative);
}

.status-pending {
    border-color: rgba(255, 178, 46, 0.35);
    background: rgba(255, 178, 46, 0.12);
    color: var(--warning);
}

.status-processing {
    border-color: rgba(255, 178, 46, 0.35);
    background: rgba(255, 178, 46, 0.12);
    color: var(--warning);
}

.activity-list {
    display: grid;
    gap: 10px;
}

.activity-row {
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.045);
    overflow: hidden;
}

.activity-row summary {
    list-style: none;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 13px;
    cursor: pointer;
}

.activity-row summary::-webkit-details-marker {
    display: none;
}

.activity-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: rgba(32, 224, 138, 0.12);
    color: var(--accent);
    font-weight: 1000;
}

.activity-row summary > span:nth-child(2),
.activity-meta {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.activity-row strong,
.activity-row small,
.activity-details p {
    overflow-wrap: anywhere;
}

.activity-row small {
    color: var(--muted);
    line-height: 1.35;
}

.activity-meta {
    justify-items: end;
    text-align: right;
}

.activity-meta strong {
    color: var(--text);
}

.activity-meta .status-badge {
    justify-self: end;
}

.activity-details {
    display: grid;
    gap: 6px;
    padding: 0 13px 13px 63px;
    color: var(--soft);
}

.activity-details p {
    margin: 0;
}

.processing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.alert {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 12px;
}

.alert-success {
    background: rgba(32, 224, 138, 0.12);
    color: var(--positive);
    border: 1px solid rgba(32, 224, 138, 0.24);
}

.alert-error {
    background: rgba(255, 95, 87, 0.12);
    color: var(--negative);
    border: 1px solid rgba(255, 95, 87, 0.24);
}

.admin-filter-bar {
    display: grid;
    grid-template-columns: 180px 1fr auto;
    gap: 12px;
    align-items: end;
}

.admin-filter-bar label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-weight: 800;
}

.admin-filter-bar input,
.admin-filter-bar select,
.admin-withdrawal-actions input,
.admin-withdrawal-actions select {
    min-height: 42px;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.055);
    color: var(--text);
    padding: 0 12px;
}

.admin-withdrawal-list {
    display: grid;
    gap: 14px;
}

.admin-withdrawal-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) 0.7fr auto;
    gap: 14px;
    align-items: start;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
}

.admin-withdrawal-card div {
    min-width: 0;
}

.admin-withdrawal-card span,
.admin-withdrawal-card p {
    color: var(--muted);
    overflow-wrap: anywhere;
}

.admin-withdrawal-card details,
.admin-withdrawal-actions {
    grid-column: 1 / -1;
}

.admin-withdrawal-card summary {
    cursor: pointer;
    color: var(--accent);
    font-weight: 900;
}

.admin-withdrawal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-withdrawal-actions form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

@media (max-width: 640px) {
    .withdrawal-history-item {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .status-badge {
        justify-self: start;
    }

    .admin-filter-bar,
    .admin-withdrawal-card {
        grid-template-columns: 1fr;
    }
}

.modal-close {
    position: absolute;
    right: 14px;
    top: 14px;
    width: 24px;
    height: 24px;
}

.modal-close::before,
.modal-close::after {
    content: "";
    position: absolute;
    left: 11px;
    top: 3px;
    width: 2px;
    height: 18px;
    background: var(--muted);
}

.modal-close::before {
    transform: rotate(45deg);
}

.modal-close::after {
    transform: rotate(-45deg);
}

output {
    min-height: 20px;
    color: var(--muted);
}

.is-hidden-by-search {
    display: none !important;
}

.dashboard-loader {
    position: fixed;
    inset: 0;
    z-index: 80;
    min-height: 100vh;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 16px;
    background: var(--bg);
    transition: opacity 0.18s ease;
}

.dashboard-loader[hidden],
.support-modal[hidden] {
    display: none;
}

.dashboard-is-preparing {
    opacity: 0.35;
    pointer-events: none;
}

.loader-mark {
    width: 46px;
    height: 46px;
    border: 4px solid rgba(255, 255, 255, 0.08);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce), (max-width: 760px) {
    .loader-mark {
        animation-duration: 1.2s;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
    }
}

.lite-dashboard {
    min-height: 100vh;
    padding: 24px 24px 92px;
}

.lite-main {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.lite-section {
    display: none;
}

.lite-section.is-active {
    display: grid;
    gap: 18px;
}

.lite-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0 8px;
}

.lite-header h1 {
    margin: 4px 0 6px;
    font-size: clamp(2rem, 5vw, 3.2rem);
}

.eyebrow {
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.78rem;
    letter-spacing: 0;
}

.lite-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.lite-summary .panel span {
    color: var(--muted);
}

.lite-summary .panel strong {
    display: block;
    margin-top: 10px;
    font-size: 1.7rem;
}

.earn-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.referral-box {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
}

.referral-box code {
    min-width: 0;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.05);
    color: var(--soft);
    overflow-wrap: anywhere;
}

.lite-nav {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    z-index: 30;
    width: min(560px, calc(100% - 28px));
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(10, 18, 31, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.lite-nav button,
.lite-nav a {
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-weight: 800;
    display: grid;
    place-items: center;
    text-align: center;
}

.lite-nav button.is-active,
.lite-nav a.is-active,
.lite-nav button:hover,
.lite-nav a:hover {
    color: var(--accent);
    background: rgba(32, 224, 138, 0.12);
}

.restricted-panel {
    min-height: calc(100vh - 48px);
    display: grid;
    place-items: center;
    align-content: center;
    gap: 16px;
    text-align: center;
    width: min(620px, 100%);
    margin: 0 auto;
}

.restricted-panel h1 {
    margin: 0;
    font-size: clamp(2.2rem, 7vw, 4rem);
}

.restricted-panel p {
    color: var(--muted);
    line-height: 1.6;
}

.status-icon {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    border: 2px solid rgba(255, 95, 87, 0.45);
    background: rgba(255, 95, 87, 0.12);
    position: relative;
}

.status-icon::before,
.status-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 18px;
    width: 4px;
    height: 28px;
    border-radius: 999px;
    background: var(--negative);
    transform: translateX(-50%);
}

.status-icon::after {
    top: 52px;
    height: 5px;
}

.support-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 20px;
}

.investment-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 8px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.045);
}

.investment-tabs button {
    min-height: 52px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-weight: 900;
}

.investment-tabs button.is-active {
    background: linear-gradient(135deg, rgba(32, 224, 138, 0.85), rgba(27, 160, 124, 0.95));
    color: white;
}

.investment-list {
    display: grid;
    gap: 14px;
    max-height: min(72vh, 780px);
    overflow-y: auto;
    padding-right: 4px;
    scroll-behavior: smooth;
}

.home-investment-panel {
    display: grid;
    gap: 14px;
}

.home-investment-list {
    display: grid;
    gap: 14px;
}

.recovery-notice-card {
    display: grid;
    gap: 14px;
    align-items: start;
    border-color: rgba(32, 224, 138, 0.22);
    background:
        linear-gradient(135deg, rgba(32, 224, 138, 0.10), rgba(47, 130, 255, 0.06)),
        rgba(255, 255, 255, 0.045);
}

.recovery-notice-card p {
    margin: 0;
    color: var(--soft);
    line-height: 1.55;
    font-weight: 750;
}

.recovery-notice-card .button {
    justify-self: start;
}

.recovery-panel {
    max-height: calc(100vh - 40px);
    overflow: auto;
}

.recovery-panel [data-recovery-step] {
    display: grid;
    gap: 14px;
}

.recovery-panel [data-recovery-step][hidden] {
    display: none !important;
}

.recovery-fee-amount {
    display: grid;
    place-items: center;
    min-height: 78px;
    border-radius: 14px;
    border: 1px solid rgba(32, 224, 138, 0.24);
    background: rgba(32, 224, 138, 0.1);
    color: var(--accent);
    font-size: 2rem;
    font-weight: 1000;
}

.upload-proof-field input[type="file"] {
    min-height: auto;
    padding: 13px;
    border-style: dashed;
    cursor: pointer;
}

.upload-proof-field input[type="file"]:hover {
    border-color: rgba(32, 224, 138, 0.5);
    background: rgba(32, 224, 138, 0.07);
}

.proof-file-preview {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(32, 224, 138, 0.22);
    border-radius: 10px;
    background: rgba(32, 224, 138, 0.08);
}

.proof-file-preview img {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    object-fit: cover;
}

.proof-file-preview div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.proof-file-preview strong,
.proof-file-preview span {
    overflow-wrap: anywhere;
}

.proof-file-preview span {
    color: var(--muted);
}

.proof-file-preview button {
    min-height: 34px;
    padding: 0 11px;
    border-radius: 8px;
    border: 1px solid rgba(255, 95, 87, 0.3);
    background: rgba(255, 95, 87, 0.1);
    color: var(--negative);
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 460px) {
    .proof-file-preview {
        grid-template-columns: 46px minmax(0, 1fr);
    }

    .proof-file-preview button {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

.investment-card {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    min-height: 134px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: linear-gradient(145deg, rgba(26, 33, 49, 0.98), rgba(16, 22, 35, 0.98));
    box-shadow: inset 4px 0 0 var(--card-accent, var(--accent)), 0 12px 30px rgba(0, 0, 0, 0.18);
}

.investment-card.is-teal { --card-accent: #20e08a; }
.investment-card.is-blue { --card-accent: #2f82ff; }
.investment-card.is-gold { --card-accent: #ffca2f; }
.investment-card.is-violet { --card-accent: #9b5cff; }
.investment-card.is-pink { --card-accent: #ff4fac; }

.plan-thumb {
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background:
        radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.9), transparent 16%),
        linear-gradient(135deg, rgba(32, 224, 138, 0.9), rgba(47, 130, 255, 0.65));
    color: white;
    font-size: 2rem;
    font-weight: 1000;
}

.plan-center h2 {
    margin: 0 0 8px;
    font-size: 1.08rem;
}

.plan-center {
    min-width: 0;
}

.plan-center h2,
.plan-center dd {
    overflow-wrap: anywhere;
}

.plan-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.plan-badges span {
    padding: 5px 9px;
    border-radius: 7px;
    background: rgba(32, 224, 138, 0.12);
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 900;
}

.plan-center dl,
.purchase-summary {
    display: grid;
    gap: 7px;
    margin: 0;
}

.plan-center dl div,
.purchase-summary div {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 10px;
}

.plan-center dt,
.purchase-summary span {
    color: var(--muted);
}

.plan-center dd {
    margin: 0;
    color: var(--accent);
    font-weight: 900;
}

.plan-side {
    display: grid;
    justify-items: end;
    gap: 14px;
    min-width: 0;
}

.plan-side strong {
    color: var(--accent);
    font-size: 1.55rem;
    white-space: nowrap;
}

.plan-side button,
.purchase-panel .button {
    min-width: 86px;
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #2fc89f, #159b78);
    color: white;
    cursor: pointer;
    font-weight: 900;
    position: relative;
    z-index: 1;
}

.purchase-summary {
    padding: 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.045);
}

.purchase-summary strong {
    color: var(--text);
}

.payment-plan-summary {
    margin: 0 0 18px;
}

.investment-empty {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 16px;
    color: var(--muted);
    text-align: center;
}

.mobile-profile {
    display: grid;
    gap: 18px;
    width: min(680px, 100%);
    margin: 0 auto;
    padding-top: 8px;
}

.profile-hero-card,
.profile-balance-card,
.profile-summary-strip article,
.quick-access-grid button,
.settings-list button,
.settings-list a {
    border: 1px solid var(--border);
    background: linear-gradient(145deg, rgba(19, 32, 53, 0.96), rgba(8, 17, 30, 0.96));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 12px 26px rgba(0,0,0,0.18);
}

.profile-hero-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: 20px;
}

.profile-avatar {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    font-size: 1.45rem;
    font-weight: 1000;
}

.profile-hero-card h1 {
    margin: 0 0 4px;
    font-size: 1.15rem;
}

.profile-hero-card p {
    margin: 0;
    color: var(--muted);
}

.profile-edit-button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 13px;
    background: rgba(32, 224, 138, 0.13);
    color: var(--accent);
    cursor: pointer;
    font-weight: 900;
}

.profile-balance-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
    border-radius: 22px;
    background:
        radial-gradient(circle at 88% 28%, rgba(32, 224, 138, 0.28), transparent 22%),
        linear-gradient(145deg, rgba(12, 43, 38, 0.95), rgba(9, 20, 31, 0.98));
}

.profile-balance-card span {
    color: var(--muted);
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 900;
}

.profile-balance-card strong {
    display: block;
    margin-top: 8px;
    font-size: 2.2rem;
}

.profile-money-icon {
    width: 64px;
    height: 64px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: rgba(32, 224, 138, 0.16);
    color: var(--accent);
    font-size: 2rem;
    font-weight: 1000;
}

.profile-summary-strip {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(138px, 1fr);
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.profile-summary-strip article {
    min-height: 96px;
    padding: 14px;
    border-radius: 17px;
}

.profile-summary-strip span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    font-weight: 900;
}

.profile-summary-strip em {
    margin-left: 4px;
    font-style: normal;
}

.profile-summary-strip strong {
    display: block;
    margin-top: 12px;
    font-size: 1.18rem;
}

.profile-section {
    display: grid;
    gap: 12px;
}

.profile-section h2 {
    margin: 0;
    font-size: 1.1rem;
}

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

.quick-access-grid button {
    min-height: 104px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    border-radius: 18px;
    color: var(--text);
    cursor: pointer;
    font-weight: 900;
}

.quick-access-grid a {
    min-height: 104px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 10px;
    border-radius: 18px;
    color: var(--text);
    cursor: pointer;
    font-weight: 900;
    border: 1px solid var(--border);
    background: linear-gradient(145deg, rgba(19, 32, 53, 0.96), rgba(8, 17, 30, 0.96));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 12px 26px rgba(0,0,0,0.18);
}

.quick-icon,
.settings-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(32, 224, 138, 0.13);
    color: var(--accent);
    position: relative;
}

.quick-icon::before,
.settings-icon::before {
    content: "";
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-radius: 5px;
}

.quick-icon.team::before {
    border-radius: 50%;
    box-shadow: -10px 7px 0 -6px currentColor, 10px 7px 0 -6px currentColor;
}

.quick-icon.earn::before {
    border-radius: 50%;
    border-top-color: transparent;
}

.quick-icon.trade::before {
    width: 22px;
    height: 14px;
    border-radius: 0;
    border-top: 0;
    border-right: 0;
    transform: skewX(-12deg);
}

.quick-icon.deposit::before {
    border-radius: 0;
    border-left: 0;
    border-top: 0;
    transform: rotate(45deg);
}

.settings-list {
    display: grid;
    gap: 10px;
}

.settings-list button,
.settings-list a {
    min-height: 62px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 10px 14px;
    border-radius: 17px;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    font-weight: 900;
}

.settings-list i {
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(-45deg);
}

.settings-list button {
    border: 1px solid var(--border);
}

.trade-page {
    width: min(620px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    padding: 16px 14px 110px;
    display: grid;
    gap: 14px;
    background:
        radial-gradient(circle at 50% 0%, rgba(32, 224, 138, 0.10), transparent 28%),
        linear-gradient(180deg, rgba(8, 14, 24, 0.96), rgba(5, 10, 18, 0.98));
}

.trade-topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) minmax(116px, 0.48fr);
    gap: 10px;
    align-items: center;
    padding: 8px 0;
    background: rgba(5, 10, 18, 0.86);
    backdrop-filter: blur(14px);
}

.trade-back {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.05);
    position: relative;
}

.trade-back::before {
    content: "";
    position: absolute;
    left: 17px;
    top: 14px;
    width: 11px;
    height: 11px;
    border-left: 2px solid var(--text);
    border-bottom: 2px solid var(--text);
    transform: rotate(45deg);
}

.trade-pair-select,
.trade-mode-select {
    display: grid;
    gap: 4px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
}

.trade-pair-select select,
.trade-mode-select select {
    width: 100%;
    min-height: 42px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.06);
    color: var(--text);
    padding: 0 11px;
    font-weight: 900;
}

.trade-price-panel,
.trade-chart-panel,
.copy-trade-section,
.trader-card,
.copy-trade-modal {
    border: 1px solid var(--border);
    background: linear-gradient(145deg, rgba(19, 32, 53, 0.96), rgba(8, 17, 30, 0.96));
    border-radius: 20px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 16px 32px rgba(0,0,0,0.22);
}

.trade-price-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 18px;
}

.trade-label,
.trade-timer-card span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.trade-price-panel > div:first-child strong {
    display: block;
    margin-top: 6px;
    font-size: clamp(2.25rem, 11vw, 4rem);
    line-height: 1;
    letter-spacing: 0;
}

.trade-price-panel em {
    display: inline-block;
    margin-top: 8px;
    font-style: normal;
    font-weight: 1000;
}

.trade-feed-status,
.trade-updated,
.trade-chart-note {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.4;
}

.trade-feed-status {
    margin-top: 10px;
}

.trade-feed-status[data-status="live"] {
    color: var(--positive);
}

.trade-feed-status[data-status="reconnecting"],
.trade-feed-status[data-status="connecting"] {
    color: var(--warning);
}

.trade-feed-status[data-status="unavailable"],
.trade-feed-status[data-status="error"] {
    color: var(--negative);
}

.trade-timer-card {
    min-width: 118px;
    display: grid;
    gap: 7px;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(32, 224, 138, 0.22);
    background: rgba(32, 224, 138, 0.08);
}

.trade-timer-card strong {
    color: var(--accent);
    font-size: 1.25rem;
}

.trade-timer-card small {
    color: var(--soft);
    line-height: 1.35;
}

.trade-chart-panel {
    display: grid;
    gap: 14px;
    padding: 14px;
}

.trade-interval-tabs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    overflow-x: auto;
}

.trade-interval-tabs button {
    min-height: 36px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255,255,255,0.045);
    color: var(--muted);
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
}

.trade-interval-tabs button.is-active {
    color: white;
    border-color: rgba(32, 224, 138, 0.5);
    background: rgba(32, 224, 138, 0.18);
}

.mock-candlestick-chart {
    min-height: 260px;
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    align-items: center;
    gap: 5px;
    padding: 18px 8px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.07);
    background:
        repeating-linear-gradient(to bottom, rgba(255,255,255,0.045) 0 1px, transparent 1px 52px),
        linear-gradient(180deg, rgba(255,255,255,0.035), rgba(255,255,255,0.015));
    overflow: hidden;
}

.trade-candle {
    align-self: center;
    justify-self: center;
    width: 9px;
    height: var(--candle-height);
    min-height: 18px;
    border-radius: 3px;
    position: relative;
}

.trade-candle::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2px;
    height: var(--wick-height);
    transform: translate(-50%, -50%);
    background: currentColor;
    opacity: 0.75;
}

.trade-candle.is-up {
    color: var(--positive);
    background: var(--positive);
}

.trade-candle.is-down {
    color: var(--negative);
    background: var(--negative);
}

.volume-bars {
    min-height: 70px;
    display: grid;
    grid-template-columns: repeat(24, 1fr);
    align-items: end;
    gap: 5px;
    padding: 0 8px 4px;
}

.volume-bars span {
    border-radius: 3px 3px 0 0;
    background: rgba(32, 224, 138, 0.36);
}

.volume-bars span.is-down {
    background: rgba(255, 95, 87, 0.36);
}

.copy-trade-section {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.copy-trade-section .panel-title {
    margin: 0;
}

.copy-trade-section .panel-title small {
    color: var(--muted);
    font-weight: 700;
}

.trader-card-list {
    display: grid;
    gap: 12px;
}

.trader-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
}

.trader-avatar {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(32, 224, 138, 0.9), rgba(47, 130, 255, 0.72));
    color: white;
    font-weight: 1000;
}

.trader-main {
    min-width: 0;
}

.trader-main h2 {
    margin: 0 0 10px;
    font-size: 1rem;
    overflow-wrap: anywhere;
}

.trader-main dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px 10px;
    margin: 0;
}

.trader-main div {
    min-width: 0;
}

.trader-main dt {
    color: var(--muted);
    font-size: 0.72rem;
}

.trader-main dd {
    margin: 2px 0 0;
    color: var(--soft);
    font-size: 0.84rem;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.trader-card > button {
    min-width: 78px;
    min-height: 44px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #2fc89f, #159b78);
    color: white;
    cursor: pointer;
    font-weight: 1000;
}

.copy-trade-modal [data-copy-trade-step] {
    display: grid;
    gap: 14px;
}

.copy-trade-modal [data-copy-trade-step][hidden] {
    display: none !important;
}

@media (max-width: 460px) {
    .trade-topbar {
        grid-template-columns: 40px minmax(0, 1fr) minmax(104px, 0.55fr);
    }

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

    .trade-timer-card {
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .trade-timer-card small {
        grid-column: 1 / -1;
    }

    .trade-interval-tabs {
        grid-template-columns: repeat(3, minmax(72px, 1fr));
    }

    .mock-candlestick-chart {
        gap: 4px;
        min-height: 230px;
    }

    .trade-candle {
        width: 7px;
    }

    .trader-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .trader-card > button {
        grid-column: 1 / -1;
        width: 100%;
    }
}

.modal-panel label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-weight: 700;
}

.modal-panel label[hidden],
.modal-panel [hidden] {
    display: none !important;
}

button:hover,
.button:hover {
    filter: brightness(1.08);
}

button:disabled,
.button[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.55;
}

@media (max-width: 1280px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .asset-strip,
    .performance-card,
    .allocation-card,
    .transactions-card,
    .invest-card {
        grid-column: 1;
    }

    .transactions-card {
        grid-row: auto;
    }
}

@media (max-width: 760px) {
    .lite-dashboard {
        padding: 16px 14px 92px;
    }

    .lite-header {
        align-items: stretch;
        flex-direction: column;
    }

    .lite-summary,
    .earn-grid,
    .referral-box {
        grid-template-columns: 1fr;
    }

    .lite-nav {
        bottom: 10px;
    }

    .investment-card {
        grid-template-columns: 76px minmax(0, 1fr) auto;
        gap: 12px;
        padding: 16px;
    }

    .plan-thumb {
        width: 66px;
        height: 66px;
    }

    .plan-side strong {
        font-size: 1.3rem;
    }
}

@media (max-width: 460px) {
    .investment-card {
        grid-template-columns: 66px minmax(0, 1fr);
        align-items: start;
    }

    .plan-side {
        grid-column: 1 / -1;
        grid-template-columns: 1fr auto;
        justify-items: stretch;
        align-items: center;
        gap: 10px;
        margin-top: 2px;
    }

    .plan-side strong {
        justify-self: start;
    }

    .plan-side button {
        justify-self: end;
        min-width: 112px;
    }
}

@media (max-width: 360px) {
    .investment-card {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 10px;
        padding: 14px;
    }

    .plan-thumb {
        width: 54px;
        height: 54px;
        border-radius: 14px;
        font-size: 1.5rem;
    }

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

    .plan-side button {
        width: 100%;
        justify-self: stretch;
    }
}

@media (max-width: 1024px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        z-index: 40;
        height: 76px;
        padding: 8px 16px 10px;
        border-right: 0;
        border-top: 1px solid var(--border);
        background: rgba(7, 13, 24, 0.96);
    }

    .brand,
    .sidebar-footer,
    .sidebar-nav a:nth-child(n+6) {
        display: none;
    }

    .sidebar-nav {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 4px;
    }

    .sidebar-nav a {
        min-height: 58px;
        padding: 4px;
        display: grid;
        justify-items: center;
        gap: 4px;
        font-size: 0.75rem;
        border: 0;
        background: transparent;
    }

    .sidebar-nav a::before {
        width: 22px;
        height: 22px;
    }

    .main-panel {
        padding: 18px 18px 96px;
    }

    .topbar {
        align-items: stretch;
        flex-direction: column;
    }

    .topbar-actions {
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .profile-menu span:last-child,
    .search-box kbd {
        display: none;
    }

    .asset-strip,
    .plan-list,
    .wallet-grid,
    .market-grid,
    .plan-grid,
    .settings-grid,
    .grid-two,
    .grid-three,
    .portfolio-summary,
    .investment-summary {
        grid-template-columns: 1fr;
    }

    .quick-action-card {
        grid-template-columns: repeat(5, minmax(64px, 1fr));
        overflow-x: auto;
    }
}

@media (max-width: 640px) {
    .main-panel {
        padding-left: 14px;
        padding-right: 14px;
    }

    .panel {
        padding: 16px;
    }

    .dashboard-topbar {
        display: grid;
        grid-template-columns: 1fr auto;
    }

    .dashboard-topbar .search-box {
        grid-column: 1 / -1;
        order: 2;
    }

    .dashboard-topbar .topbar-actions {
        grid-column: 1 / -1;
    }

    .topbar-actions .button {
        min-width: 120px;
    }

    .hero-balance {
        font-size: 2.45rem;
    }

    .sparkline {
        position: relative;
        width: 100%;
        right: auto;
        bottom: auto;
        height: 110px;
        margin-top: 10px;
    }

    .summary-grid,
    .allocation-layout {
        grid-template-columns: 1fr;
    }

    .donut {
        width: min(210px, 100%);
        margin: 0 auto;
    }

    .transaction-row {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .transaction-amount {
        grid-column: 2;
        text-align: left;
    }

    .activity-row summary {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .activity-meta {
        grid-column: 2;
        justify-items: start;
        text-align: left;
    }

    .activity-meta .status-badge {
        justify-self: start;
    }

    .activity-details {
        padding-left: 13px;
    }

    .plan-card {
        grid-template-columns: auto 1fr;
    }

    .table-head {
        display: none;
    }

    .table-row {
        grid-template-columns: 1fr;
    }
}
