:root {
    --tracker-bg: #eef1f7;
    --tracker-surface: #ffffff;
    --tracker-surface-soft: #f7f8fc;
    --tracker-text: #161722;
    --tracker-muted: #8d8aa4;
    --tracker-purple-1: #7240f2;
    --tracker-purple-2: #5b23d9;
    --tracker-purple-3: #4714b8;
    --tracker-green: #24b86b;
    --tracker-red: #e65c71;
    --tracker-amber: #d89a1f;
    --tracker-shadow: 0 16px 36px rgba(59, 38, 110, 0.12);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: var(--tracker-bg);
    color: var(--tracker-text);
    font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

body {
    overflow-x: hidden;
}

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

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

.tracker-page-shell {
    min-height: 100vh;
    background:
        radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.14), transparent 28%),
        radial-gradient(circle at 84% 12%, rgba(255, 255, 255, 0.1), transparent 24%),
        linear-gradient(180deg, #6f31ff 0%, #5b22da 35%, #4a15ba 100%);
}

.tracker-container {
    width: min(1180px, calc(100vw - 48px));
    margin: 0 auto;
}

.tracker-hero {
    position: relative;
    overflow: hidden;
    padding: 26px 0 170px;
    color: #fff;
    background:
        linear-gradient(138deg, rgba(255, 255, 255, 0.08) 0%, transparent 38%),
        linear-gradient(180deg, #6f31ff 0%, #5b22da 45%, #4a15ba 100%);
}

.tracker-hero::before {
    content: "";
    position: absolute;
    inset: auto 8% -8% auto;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.13), transparent 64%);
    pointer-events: none;
}

.tracker-hero::after {
    content: "";
    position: absolute;
    left: -6%;
    right: -6%;
    bottom: -114px;
    height: 228px;
    border-radius: 50% 50% 0 0 / 100% 100% 0 0;
    background: var(--tracker-bg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.tracker-topbar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.tracker-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: auto;
}

.tracker-logo img {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    object-fit: cover;
}

.tracker-logo-word {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
}

.tracker-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 13px;
    line-height: 1;
}

.tracker-nav a {
    opacity: 0.88;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.tracker-nav a:hover,
.tracker-nav a.active {
    opacity: 1;
}

.tracker-nav a:hover {
    transform: translateY(-1px);
}

.tracker-signup-btn {
    padding: 10px 14px;
    border-radius: 10px;
    background: #fff;
    color: #4d18cb;
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(26, 12, 66, 0.18);
}

.tracker-hero-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 170px;
}

.tracker-hero-copy h1 {
    margin: 36px 0 0;
    font-family: "Outfit", "Inter", sans-serif;
    font-size: clamp(40px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -0.03em;
}

.tracker-hero-copy p {
    margin: 18px 0 0;
    max-width: 720px;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.88);
}

.tracker-main {
    position: relative;
    z-index: 2;
    background: var(--tracker-bg);
}

.tracker-worth-section {
    margin-top: -96px;
    padding-bottom: 28px;
}

.tracker-worth-grid {
    display: grid;
    grid-template-columns: 1.65fr 0.85fr;
    gap: 24px;
    align-items: stretch;
}

.tracker-worth-panel,
.tracker-stats-panel {
    border-radius: 20px;
    border: 1px solid rgba(118, 93, 178, 0.12);
    background: #fff;
    box-shadow: var(--tracker-shadow);
}

.tracker-worth-panel {
    padding: 26px 26px 20px;
}

.tracker-worth-title {
    margin: 0;
    text-align: center;
    font-family: "Outfit", "Inter", sans-serif;
    font-size: 30px;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.tracker-worth-note {
    margin: 14px 0 20px;
    text-align: center;
    color: #9ea1ad;
    font-size: 13px;
}

.tracker-networth-wrap {
    border-radius: 14px;
    background: linear-gradient(180deg, #fff 0%, #fbfbfe 100%);
    border: 1px solid #ececf4;
    min-height: 392px;
    overflow: hidden;
}

#tracker-networth-chart {
    display: block;
    width: 100%;
    height: 392px;
}

.tracker-updated-at {
    margin-top: 12px;
    text-align: right;
    color: #9298aa;
    font-size: 12px;
}

.tracker-stats-panel {
    padding: 22px 0 18px;
    display: flex;
    flex-direction: column;
}

.tracker-stats-title {
    margin: 0 0 14px;
    text-align: center;
    font-family: "Outfit", "Inter", sans-serif;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.015em;
}

.tracker-stats-table {
    border-top: 1px solid #ececf4;
}

.tracker-stats-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 20px;
    border-bottom: 1px solid #ececf4;
}

.tracker-stats-row span {
    color: #1b1d2a;
    font-size: 14px;
    font-weight: 500;
}

.tracker-stats-row strong {
    font-size: 16px;
    font-weight: 500;
    font-family: "Outfit", "Inter", sans-serif;
    letter-spacing: -0.01em;
}

.tracker-donut-block {
    margin: 18px 16px 6px;
    border-radius: 14px;
    border: 1px solid #ececf4;
    background: #fcfcff;
    padding: 18px 14px 14px;
}

.tracker-donut-ring {
    width: 188px;
    height: 188px;
    border-radius: 50%;
    margin: 0 auto 14px;
    background: conic-gradient(#6b38ea 0deg, #6b38ea 160deg, #3a86ff 160deg, #3a86ff 250deg, #f39a1f 250deg, #f39a1f 360deg);
    position: relative;
    display: grid;
    place-items: center;
}

.tracker-donut-ring::after {
    content: "";
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background: #fff;
    position: absolute;
}

.tracker-donut-ring>span {
    z-index: 1;
    text-align: center;
    color: #24273a;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}

.tracker-donut-legend {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}

.tracker-donut-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
}

.tracker-donut-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.tracker-donut-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex: 0 0 auto;
}

.tracker-donut-name {
    color: #363a48;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tracker-donut-pct {
    font-weight: 500;
    color: #1f2231;
}

/* Fine-tune only the typography area shown in the screenshot */
.tracker-worth-title {
    font-size: 24px !important;
    font-weight: 400 !important;
    font-family: "Inter", "Segoe UI", Arial, sans-serif !important;
}

.tracker-worth-note {
    font-size: 12px !important;
    font-weight: 400 !important;
}

.tracker-stats-title {
    font-size: 24px !important;
    font-weight: 400 !important;
    font-family: "Inter", "Segoe UI", Arial, sans-serif !important;
}

.tracker-stats-row span {
    font-size: 13px !important;
    font-weight: 400 !important;
}

.tracker-stats-row strong {
    font-size: 13px !important;
    font-weight: 400 !important;
    font-family: "Inter", "Segoe UI", Arial, sans-serif !important;
}

.tracker-positive {
    color: var(--tracker-green);
}

.tracker-negative {
    color: var(--tracker-red);
}

.tracker-grid-section {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.tracker-panel,
.tracker-table-card {
    border-radius: 20px;
    border: 1px solid rgba(111, 92, 167, 0.08);
    box-shadow: var(--tracker-shadow);
    background: var(--tracker-surface);
}

.tracker-panel {
    padding: 22px;
}

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

.tracker-panel-head h2,
.tracker-section-title {
    margin: 0;
    font-family: "Outfit", "Inter", sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.tracker-balance-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
    padding: 14px;
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #faf9ff 100%);
    border: 1px solid rgba(126, 98, 196, 0.12);
}

.tracker-balance-row span {
    display: block;
    font-size: 12px;
    color: var(--tracker-muted);
}

.tracker-balance-row strong {
    display: block;
    margin-top: 4px;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.tracker-allocation-list,
.tracker-movers-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tracker-allocation-item {
    border-radius: 12px;
    border: 1px solid rgba(120, 95, 184, 0.11);
    background: linear-gradient(180deg, #ffffff 0%, #faf9ff 100%);
    padding: 10px 12px;
}

.tracker-allocation-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
}

.tracker-allocation-meta {
    margin-top: 4px;
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--tracker-muted);
}

.tracker-progress {
    margin-top: 9px;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: #ece9f8;
    overflow: hidden;
}

.tracker-progress>span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--tracker-purple-1), var(--tracker-purple-3));
}

.tracker-mover-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(122, 94, 188, 0.1);
    background: linear-gradient(180deg, #ffffff 0%, #faf9ff 100%);
}

.tracker-mover-main {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.tracker-coin-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(110, 45, 255, 0.16);
    background: linear-gradient(135deg, rgba(110, 45, 255, 0.16), rgba(110, 45, 255, 0.06));
    display: grid;
    place-items: center;
    color: #fff;
    font-weight: 500;
    font-size: 12px;
    flex: 0 0 auto;
}

.tracker-coin-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tracker-mover-name {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.tracker-mover-name strong {
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tracker-mover-name span {
    color: var(--tracker-muted);
    font-size: 12px;
}

.tracker-mover-side {
    text-align: right;
}

.tracker-mover-side b {
    display: block;
    font-size: 13px;
    font-weight: 500;
}

.tracker-mover-side span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 3px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
}

.tracker-pill-up {
    background: rgba(36, 184, 107, 0.16);
    color: #1f9a58;
}

.tracker-pill-down {
    background: rgba(230, 92, 113, 0.14);
    color: #cb3e56;
}

.tracker-pill-flat {
    background: rgba(216, 154, 31, 0.14);
    color: #a17115;
}

.tracker-table-section {
    padding-bottom: 54px;
}

.tracker-table-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.tracker-subnote {
    margin-top: 6px;
    font-size: 13px;
    color: var(--tracker-muted);
}

.tracker-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tracker-search-field {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 226px;
    border-radius: 11px;
    padding: 10px 12px;
    border: 1px solid rgba(121, 95, 186, 0.2);
    background: #fff;
}

.tracker-search-field i {
    color: var(--tracker-muted);
}

.tracker-search-field input {
    border: 0;
    outline: none;
    width: 100%;
    font-size: 13px;
    background: transparent;
}

.tracker-sort-field {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 11px;
    padding: 8px 10px;
    border: 1px solid rgba(121, 95, 186, 0.2);
    background: #fff;
    color: var(--tracker-muted);
    font-size: 12px;
    font-weight: 500;
}

.tracker-sort-field select {
    border: 0;
    outline: none;
    background: transparent;
    color: var(--tracker-text);
    font-size: 13px;
    font-weight: 500;
}

.tracker-refresh-btn {
    border: 0;
    border-radius: 11px;
    padding: 10px 14px;
    background: linear-gradient(135deg, var(--tracker-purple-1), var(--tracker-purple-3));
    color: #fff;
    font-weight: 500;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(72, 26, 180, 0.28);
}

.tracker-refresh-btn i {
    transition: transform 0.2s ease;
}

.tracker-refresh-btn:hover i {
    transform: rotate(36deg);
}

.tracker-refresh-btn.is-loading i {
    animation: tracker-spin 0.8s linear infinite;
}

.tracker-table-card {
    overflow: hidden;
}

.tracker-table-wrap {
    overflow-x: auto;
}

.tracker-live-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
}

.tracker-live-table thead th {
    text-align: left;
    padding: 14px 14px;
    font-size: 12px;
    font-weight: 500;
    color: #6f6a84;
    border-bottom: 1px solid rgba(111, 92, 167, 0.15);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.tracker-live-table tbody td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(111, 92, 167, 0.08);
    font-size: 13px;
    vertical-align: middle;
}

.tracker-live-table tbody tr:hover {
    background: #faf9ff;
}

.tracker-asset-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tracker-asset-copy {
    min-width: 0;
}

.tracker-asset-copy strong {
    display: block;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tracker-asset-copy span {
    color: var(--tracker-muted);
    font-size: 11px;
}

.tracker-num {
    font-variant-numeric: tabular-nums;
}

.tracker-pnl-cell b {
    display: block;
    font-size: 13px;
    font-weight: 500;
}

.tracker-pnl-cell span {
    display: block;
    margin-top: 2px;
    color: var(--tracker-muted);
    font-size: 11px;
}

.tracker-allocation-cell {
    min-width: 110px;
}

.tracker-allocation-cell strong {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-weight: 500;
}

.tracker-allocation-cell .tracker-progress {
    margin: 0;
    height: 5px;
}

.tracker-empty-state {
    display: none;
    padding: 26px 18px;
    font-size: 13px;
    text-align: center;
    color: var(--tracker-muted);
}

.tracker-empty-state.visible {
    display: block;
}

.tracker-footer {
    background: #141420;
    color: rgba(255, 255, 255, 0.9);
    padding: 56px 0 0;
}

.tracker-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 30px;
}

.tracker-footer-brand img {
    width: 168px;
}

.tracker-footer-brand p {
    margin: 14px 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    line-height: 1.55;
}

.tracker-footer-meta {
    display: grid;
    gap: 6px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.62);
}

.tracker-footer-links h4 {
    margin: 0 0 14px;
    font-size: 14px;
}

.tracker-footer-links a {
    display: block;
    margin: 0 0 9px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
}

.tracker-footer-links a:hover {
    color: #fff;
}

.tracker-footer-version {
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.38);
    font-size: 11px;
}

.tracker-footer-bottom {
    margin-top: 24px;
    padding: 16px 0 24px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.58);
    border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.tracker-support-fab {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #28c176, #27a865);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 24px;
    box-shadow: 0 16px 26px rgba(13, 61, 38, 0.32);
    z-index: 42;
}

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

@media (max-width: 1200px) {
    .tracker-worth-grid {
        grid-template-columns: 1fr;
    }

    .tracker-grid-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .tracker-container {
        width: min(1180px, calc(100vw - 26px));
    }

    .tracker-nav {
        gap: 12px;
        font-size: 12px;
    }

    .tracker-logo-word {
        font-size: 15px;
    }

    .tracker-worth-panel {
        padding: 18px 14px 16px;
    }

    .tracker-worth-title {
        font-size: 24px;
    }

    .tracker-worth-note {
        font-size: 13px;
    }

    .tracker-stats-title {
        font-size: 22px;
    }

    .tracker-stats-row {
        padding: 12px 14px;
    }

    .tracker-stats-row span {
        font-size: 13px;
    }

    .tracker-stats-row strong {
        font-size: 15px;
    }

    .tracker-donut-ring {
        width: 150px;
        height: 150px;
    }

    .tracker-donut-ring::after {
        width: 86px;
        height: 86px;
    }

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

    .tracker-controls {
        width: 100%;
    }

    .tracker-search-field {
        min-width: 0;
        flex: 1 1 100%;
    }

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

    .tracker-table-heading {
        flex-direction: column;
        align-items: stretch;
    }
}
