/* Reset */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a0a0a;
    --bg-card: #111111;
    --bg-hover: #1a1a1a;
    --accent: #b8ff00;
    --accent-dim: #9fe800;
    --accent-glow: rgba(184, 255, 0, 0.3);
    --green: #22c55e;
    --red: #ef4444;
    --orange: #f97316;
    --purple: #a855f7;
    --cyan: #22d3ee;
    --text: #ffffff;
    --text-dim: #a1a1aa;
    --text-muted: #71717a;
    --border: rgba(255, 255, 255, 0.08);
    --radius: 12px;
    --sidebar-w: 240px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 30px rgba(184, 255, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background: var(--bg-primary);
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Layout */
.app-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-w);
    min-width: var(--sidebar-w);
    background: var(--bg-card);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    overflow-y: auto;
}

.sidebar-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidebar-close {
    display: none;
}

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

.logo-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: var(--transition);
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo:hover .logo-icon {
    transform: rotate(-10deg) scale(1.1);
    box-shadow: var(--shadow-glow);
}

.logo-text {
    font-size: 17px;
    font-weight: 700;
}

.sidebar-nav {
    flex: 1;
    padding: 16px 12px;
}

.nav-group {
    margin-bottom: 24px;
}

.nav-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    padding: 0 12px 8px;
    display: block;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    color: var(--text-dim);
    text-decoration: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    margin-bottom: 2px;
    position: relative;
    overflow: hidden;
}

.nav-link svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: var(--transition);
}

.nav-link:hover {
    background: var(--bg-hover);
    color: var(--text);
    transform: translateX(4px);
}

.nav-link:hover svg {
    transform: scale(1.1);
}

.nav-link.active {
    background: var(--accent);
    color: var(--bg-primary);
    box-shadow: var(--shadow-glow);
}

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

.live-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-dim);
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px var(--accent);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.9);
    }
}

/* Mobile Elements - Hidden on Desktop */
.mobile-toggle,
.mobile-header,
.sidebar-overlay {
    display: none;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-w);
    padding: 24px;
    min-width: 0;
    max-width: calc(100vw - var(--sidebar-w));
}

/* Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.header-info h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 4px;
}

.header-info p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Filter Section */
.filter-section {
    margin-bottom: 24px;
}

.filter-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--transition);
}

.filter-card:hover {
    border-color: rgba(184, 255, 0, 0.2);
    box-shadow: var(--shadow-md);
}

.filter-card h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 columns for filters */
    gap: 12px;
    align-items: end;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.filter-item label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
}

.filter-item select {
    padding: 12px 14px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.filter-item select:hover {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(184, 255, 0, 0.1);
}

.filter-item select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(184, 255, 0, 0.15);
}

.filter-reset {
    grid-column: 1 / -1;
    /* Full width row */
    width: 100%;
    padding: 12px 20px;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    color: var(--bg-primary);
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 4px;
}

.filter-reset:hover {
    background: var(--accent-dim);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.filter-reset:active {
    transform: translateY(0);
}

.filter-info {
    margin-top: 12px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Stats Section */
.stats-section {
    margin-bottom: 24px;
}

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

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: var(--transition);
    cursor: default;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: rgba(184, 255, 0, 0.3);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.stat-card.primary {
    background: linear-gradient(135deg, rgba(184, 255, 0, 0.1) 0%, var(--bg-card) 100%);
    border-color: rgba(184, 255, 0, 0.2);
}

.stat-card.primary:hover {
    box-shadow: var(--shadow-lg), 0 0 40px rgba(184, 255, 0, 0.2);
}

.stat-icon {
    width: 48px;
    height: 48px;
    background: rgba(184, 255, 0, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
}

.stat-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
}

.stat-icon.green {
    background: rgba(34, 197, 94, 0.12);
}

.stat-icon.green svg {
    stroke: var(--green);
}

.stat-icon.purple {
    background: rgba(168, 85, 247, 0.12);
}

.stat-icon.purple svg {
    stroke: var(--purple);
}

.stat-icon.orange {
    background: rgba(249, 115, 22, 0.12);
}

.stat-icon.orange svg {
    stroke: var(--orange);
}

.stat-body {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 22px;
    font-weight: 700;
}

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

.mini-stat {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px 18px;
    transition: var(--transition);
}

.mini-stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 255, 255, 0.15);
}

.mini-stat.gain {
    border-left: 3px solid var(--accent);
}

.mini-stat.loss {
    border-left: 3px solid var(--red);
}

.mini-stat.gain:hover {
    box-shadow: var(--shadow-md), 0 0 20px rgba(184, 255, 0, 0.1);
}

.mini-stat.loss:hover {
    box-shadow: var(--shadow-md), 0 0 20px rgba(239, 68, 68, 0.1);
}

.mini-label {
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 4px;
}

.mini-value {
    font-size: 18px;
    font-weight: 600;
}

/* Section Title */
.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
}

/* Charts Section */
.charts-section {
    margin-bottom: 32px;
}

.chart-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

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

.chart-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 32px;
    /* Add spacing below chart grid */
}

.chart-grid.four-col {
    grid-template-columns: repeat(4, 1fr);
}

.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    min-width: 0;
    transition: var(--transition);
}

.chart-card:hover {
    transform: translateY(-4px);
    border-color: rgba(184, 255, 0, 0.2);
    box-shadow: var(--shadow-lg);
}

.chart-card.large {
    grid-column: span 1;
}

.chart-card.full {
    grid-column: 1 / -1;
}

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

.chart-head h3 {
    font-size: 14px;
    font-weight: 600;
}

.chart-select {
    padding: 8px 12px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-dim);
    font-size: 11px;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.chart-select:hover {
    border-color: var(--accent);
}

.chart-body {
    height: 220px;
    position: relative;
}

.chart-body.tall {
    height: 280px;
}

.chart-body.wide {
    height: 260px;
}

.chart-body canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Assets Section */
.assets-section {
    margin-bottom: 32px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.tab-group {
    display: flex;
    gap: 8px;
}

.tab {
    padding: 10px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-dim);
    font-size: 12px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.tab:hover {
    transform: translateY(-2px);
    border-color: rgba(184, 255, 0, 0.3);
    box-shadow: var(--shadow-sm);
}

.tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-primary);
    box-shadow: var(--shadow-glow);
}

.assets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2x2 grid by default */
    gap: 16px;
}

.asset-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    transition: var(--transition);
    cursor: default;
}

.asset-item:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(184, 255, 0, 0.4);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

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

.asset-logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--bg-hover);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: var(--transition);
    flex-shrink: 0;
}

.asset-item:hover .asset-logo {
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(184, 255, 0, 0.2);
    border-color: var(--accent);
}

.asset-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.asset-logo .fallback {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.asset-name {
    font-size: 14px;
    font-weight: 600;
}

.asset-symbol {
    font-size: 11px;
    color: var(--text-muted);
}

.asset-price {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.asset-change {
    font-size: 14px;
    font-weight: 600;
}

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

.asset-change.down {
    color: var(--red);
}

/* Lists Section */
.lists-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.list-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    transition: var(--transition);
}

.list-card:hover {
    border-color: rgba(184, 255, 0, 0.15);
    box-shadow: var(--shadow-md);
}

.list-card h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 14px;
}

.list-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: var(--bg-hover);
    border-radius: 10px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.list-item:hover {
    transform: translateX(6px);
    background: rgba(184, 255, 0, 0.05);
    border-color: rgba(184, 255, 0, 0.2);
    box-shadow: var(--shadow-sm);
}

.list-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.list-rank {
    font-size: 11px;
    color: var(--text-muted);
    width: 20px;
}

.list-logo {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.list-item:hover .list-logo {
    transform: scale(1.1);
    border-color: var(--accent);
}

.list-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-logo .fallback {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
}

.list-name {
    font-size: 13px;
    font-weight: 600;
}

.list-sym {
    font-size: 11px;
    color: var(--text-muted);
    margin-left: 4px;
}

.list-change {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    transition: var(--transition);
}

.list-change.up {
    color: var(--accent);
    background: rgba(184, 255, 0, 0.1);
}

.list-change.down {
    color: var(--red);
    background: rgba(239, 68, 68, 0.1);
}

.list-item:hover .list-change.up {
    background: rgba(184, 255, 0, 0.2);
    box-shadow: 0 0 10px rgba(184, 255, 0, 0.15);
}

.list-item:hover .list-change.down {
    background: rgba(239, 68, 68, 0.2);
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.15);
}

/* Table Section */
.table-section {
    margin-bottom: 24px;
}

.table-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--transition);
}

.table-card:hover {
    border-color: rgba(184, 255, 0, 0.15);
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 16px;
}

.table-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.table-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 16px;
    min-width: 300px;
    transition: var(--transition);
}

.table-search:hover,
.table-search:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(184, 255, 0, 0.1);
}

.table-search svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--text-muted);
    stroke-width: 2;
    transition: var(--transition);
}

.table-search:focus-within svg {
    stroke: var(--accent);
}

.table-search input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    font-size: 13px;
    font-family: inherit;
    outline: none;
}

.table-search input::placeholder {
    color: var(--text-muted);
}

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

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

th,
td {
    padding: 14px 12px;
    text-align: left;
    white-space: nowrap;
}

th {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    background: var(--bg-hover);
}

th:first-child {
    border-radius: 8px 0 0 8px;
}

th:last-child {
    border-radius: 0 8px 8px 0;
}

td {
    border-bottom: 1px solid var(--border);
}

tr {
    transition: var(--transition);
}

tbody tr:hover {
    background: rgba(184, 255, 0, 0.03);
}

tbody tr:hover td {
    border-color: rgba(184, 255, 0, 0.1);
}

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

.coin-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--bg-hover);
    border: 2px solid var(--border);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

tr:hover .coin-logo {
    transform: scale(1.15);
    border-color: var(--accent);
}

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

.coin-logo .fallback {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.coin-name {
    font-weight: 600;
}

.coin-sym {
    color: var(--text-muted);
    font-size: 11px;
    margin-left: 6px;
}

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

.down {
    color: var(--red);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.pagination button {
    padding: 10px 20px;
    background: var(--bg-hover);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.pagination button:hover:not(:disabled) {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

#pageInfo {
    font-size: 12px;
    color: var(--text-muted);
}

/* Footer */
.footer {
    text-align: center;
    padding: 24px;
    font-size: 12px;
    color: var(--text-muted);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-card);
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(184, 255, 0, 0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1400px) {

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

    .chart-grid.four-col {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .filter-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2x2 layout for filters */
    }
}

@media (max-width: 1024px) {
    :root {
        --sidebar-w: 0px;
    }

    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        width: 280px;
        min-width: 280px;
        z-index: 1000;
        height: 100%;
        min-height: 100vh;
        padding-bottom: 80px;
    }

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

    .sidebar-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        background: transparent;
        border: 1px solid var(--border);
        border-radius: 8px;
        cursor: pointer;
        transition: var(--transition);
    }

    .sidebar-close:active {
        background: var(--accent);
        border-color: var(--accent);
    }

    .sidebar-close svg {
        width: 18px;
        height: 18px;
        fill: none;
        stroke: var(--text);
        stroke-width: 2;
    }

    .sidebar-close:active svg {
        stroke: var(--bg-primary);
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 999;
        backdrop-filter: blur(4px);
    }

    .sidebar-overlay.active {
        display: block;
    }

    .mobile-header {
        display: flex;
        align-items: center;
        gap: 12px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border);
        padding: 0 16px;
        z-index: 100;
    }

    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: transparent;
        border: 1px solid var(--border);
        border-radius: 8px;
        cursor: pointer;
        transition: var(--transition);
    }

    .mobile-toggle:hover,
    .mobile-toggle:active {
        background: var(--accent);
        border-color: var(--accent);
    }

    .mobile-toggle:hover svg,
    .mobile-toggle:active svg {
        stroke: var(--bg-primary);
    }

    .mobile-toggle svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: var(--text);
        stroke-width: 2;
    }

    .mobile-logo {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .mobile-logo img {
        width: 32px;
        height: 32px;
    }

    .mobile-logo span {
        font-size: 16px;
        font-weight: 700;
    }

    .main-content {
        margin-left: 0;
        width: 100%;
        max-width: 100%;
        padding: 12px;
        padding-top: 72px;
        overflow-x: hidden;
    }

    .page-header {
        padding-top: 0;
    }

    .chart-row,
    .chart-row.main-row,
    .lists-section {
        grid-template-columns: 1fr;
    }

    .table-search {
        min-width: 200px;
    }

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

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

    /* Full width reset on tablet */
    .filter-reset {
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 8px;
    }

    /* Spacing for charts on tablet */
    .chart-row,
    .chart-grid {
        margin-bottom: 24px;
        gap: 16px;
    }
}

@media (max-width: 768px) {

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

    .chart-grid.four-col {
        grid-template-columns: 1fr;
    }

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

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

    /* Center tabs on mobile */
    .section-head {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    .tab-group {
        width: 100%;
        justify-content: center;
    }

    /* Assets Section Spacing */
    .assets-section {
        margin-top: 40px;
    }

    /* Full width reset button */
    .filter-reset {
        grid-column: 1 / -1;
        width: 100%;
    }

    .table-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .table-search {
        width: 100%;
        min-width: 0;
    }

    /* Spacing for chart sections */
    .chart-row {
        margin-top: 24px;
    }
}

@media (max-width: 480px) {

    .stats-grid,
    .stats-row,
    .assets-grid,
    .filter-grid {
        grid-template-columns: 1fr;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* SweetAlert */
.swal2-popup {
    background: var(--bg-card) !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
}

/* AOS Override for smoother animations */
[data-aos] {
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
}