* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background:
            radial-gradient(circle at top left, #0d1f48, #050b1e);

    color: white;

    font-family:
            Inter,
            -apple-system,
            BlinkMacSystemFont,
            sans-serif;

    padding: 24px;
}

.page {
    max-width: 1600px;
    margin: auto;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 28px;
}

.logo {
    font-size: 42px;
    font-weight: 800;
}

.refresh-btn {
    background: #1d72ff;
    border: none;

    color: white;

    padding: 12px 20px;

    border-radius: 12px;

    cursor: pointer;
}

.section {
    margin-bottom: 24px;
}

.section-title {
    margin-bottom: 18px;
    font-size: 26px;
}

.summary-grid {
    display: grid;

    grid-template-columns:
            repeat(auto-fit, minmax(260px, 1fr));

    gap: 18px;
}

.summary-card {
    background:
            rgba(255,255,255,0.05);

    border-radius: 20px;

    padding: 24px;

    display: flex;
    gap: 18px;
    align-items: center;

    backdrop-filter: blur(12px);
}

.summary-icon {
    width: 62px;
    height: 62px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 28px;
    font-weight: bold;
}

.blue {
    background: #1d72ff;
}

.green {
    background: #1fa64b;
}

.purple {
    background: #7b2cbf;
}

.orange {
    background: #d98c00;
}

.summary-label {
    opacity: 0.7;
    margin-bottom: 6px;
}

.summary-value {
    font-size: 34px;
    font-weight: 800;
}

.summary-sub {
    opacity: 0.5;
    margin-top: 6px;
}

.grid-2 {
    display: grid;

    grid-template-columns:
            2fr 1fr;

    gap: 24px;

    margin-bottom: 24px;
}

.card {
    background:
            rgba(255,255,255,0.05);

    border-radius: 22px;

    padding: 24px;

    backdrop-filter: blur(12px);
}

.card.large {
    min-height: 420px;
}

.card.medium {
    min-height: 420px;
}

.card-header {
    margin-bottom: 22px;
}

.card-header h2 {
    font-size: 30px;
}

.holdings-table {
    width: 100%;
    border-collapse: collapse;
}

.holdings-table th,
.holdings-table td {
    padding: 16px 10px;

    text-align: left;

    border-bottom:
            1px solid rgba(255,255,255,0.08);
}

.holdings-table th {
    opacity: 0.7;
}

.chart-wrapper {
    height: 320px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-large {
    height: 420px;
}

canvas {
    width: 100% !important;
    height: 100% !important;
}

@media (max-width: 1100px) {

    .grid-2 {
        grid-template-columns: 1fr;
    }

}

.empty-state {

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;

    min-height: 240px;

    opacity: 0.8;
}

.empty-icon {

    font-size: 64px;

    margin-bottom: 18px;
}

.empty-title {

    font-size: 24px;

    font-weight: 700;

    margin-bottom: 10px;
}

.empty-desc {

    opacity: 0.5;

    font-size: 15px;
}
.skeleton-line {

    height: 16px;

    border-radius: 8px;

    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,0.06),
            rgba(255,255,255,0.12),
            rgba(255,255,255,0.06)
        );

    background-size: 200% 100%;

    animation:
        shimmer 1.5s infinite;
}

.skeleton-line.short {
    width: 60%;
}

.skeleton-row td {
    padding: 20px 10px;
}

.chart-skeleton {

    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;
}

.chart-bars {

    display: flex;

    gap: 18px;

    align-items: flex-end;

    height: 220px;
}

.bar {

    width: 40px;

    border-radius: 12px 12px 0 0;

    background:
        linear-gradient(
            180deg,
            rgba(29,114,255,0.8),
            rgba(29,114,255,0.2)
        );

    animation:
        pulse 1.8s infinite;
}

.h1 { height: 80px; }
.h2 { height: 160px; }
.h3 { height: 120px; }
.h4 { height: 200px; }
.h5 { height: 140px; }

@keyframes shimmer {

    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@keyframes pulse {

    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

.table-empty {

    text-align: center;

    padding: 48px;

    color: rgba(255,255,255,.45);

    font-size: 15px;
}