/* ===================== PAGE HEADER ===================== */
.page-header h1 {
    line-height: 1.15;
}

@media (max-width: 767px) {
    .page-header h1 { font-size: 1.85rem; }
    .page-header .lead { font-size: 1.15rem; }
}

body.dark-mode .page-header .text-primary { color: #c4b5fd !important; }
body.dark-mode .page-header .lead { color: #9ca3af !important; }

/* ===================== TABLES ===================== */
.table th {
    font-weight: 600;
    background: #f8fafc;
    color: #374151;
    border-bottom: 2px solid #e2e8f0;
    padding: 14px 12px;
}

.table td {
    vertical-align: middle;
    padding: 14px 12px;
    border-bottom: 1px solid #f1f5f9;
}

body.dark-mode .table th {
    background: #1f2937;
    color: #e2e8f0;
    border-bottom-color: #475569;
}

body.dark-mode .table td {
    border-bottom-color: #334155;
}
body.dark-mode .table-hover>tbody>tr:hover {
    background-color: #353437;
}
/* ===================== SOCIAL ICONS ===================== */
.social-icons {
    margin-top: 6px;
    display: flex;
    gap: 6px;
    align-items: center;
}

.social-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #f1f5f9;
    color: #475569;
    transition: all 0.2s ease;
}

.social-icon-link:hover {
    background: #e2e8f0;
    transform: translateY(-1px);
}

body.dark-mode .social-icon-link {
    background: #334155;
    color: #cbd5e1;
}

body.dark-mode .social-icon-link:hover {
    background: #475569;
}

/* ===================== FILTER CHIPS ===================== */
.filter-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.filter-chips .badge {
    padding: 6px 12px;
    font-size: 0.875rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

body.dark-mode .filter-chips {
    background: #1f2937;
    border-bottom-color: #334155;
}

.remove-filter {
    cursor: pointer;
    font-weight: bold;
    color: #ef4444;
    font-size: 16px;
    line-height: 1;
    padding: 0 4px;
}

.remove-filter:hover {
    background: rgba(239, 68, 68, 0.1);
    border-radius: 50%;
}

/* ===================== FILTER PANEL ===================== */
#filters .card-body {
    padding: 24px;
}

#filters .card-title {
    color: #374151;
    font-size: 1.1rem;
}

body.dark-mode #filters .card-title {
    color: #e5e7eb;
}

#filters label {
    margin-bottom: 6px;
}

#filters .form-select {
    height: 48px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    font-size: 0.95rem;
}

body.dark-mode #filters .form-select {
    background: #1f2937;
    border-color: #475569;
    color: #e5e7eb;
}

#filters .btn {
    height: 48px;
    font-weight: 600;
    border-radius: 10px;
}

#filters #apply-filters-btn {
    background: #7c3aed;
    border-color: #7c3aed;
}

#filters #reset-filters {
    border-color: #cbd5e1;
}

body.dark-mode #filters #reset-filters {
    border-color: #475569;
    color: #e5e7eb;
}

/* ===================== SKELETON LOADERS ===================== */
.skeleton-row td {
    padding: 14px 12px;
}

.skeleton {
    background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite ease-in-out;
    border-radius: 6px;
}

body.dark-mode .skeleton {
    background: linear-gradient(90deg, #374151 25%, #4b5563 50%, #374151 75%);
}

.skeleton-img { width: 40px; height: 40px; border-radius: 10px; }
.skeleton-text { height: 18px; width: 85%; }
.skeleton-text-sm { height: 14px; width: 60%; }
.skeleton-sm { height: 18px; width: 32px; }

.mt-1 { margin-top: 4px; }

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===================== PROMOTED COINS ===================== */
#promo-table .table thead th {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

#promo-table .promo-row td:first-child {
    font-size: 1.3rem;
    width: 38px;
}

#promo-table img {
    box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
}

/* ===================== LISTED COINS WIDGET ===================== */
.listed-coins-widget {
    background: var(--panel, #ffffff);
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
    overflow: hidden;
    margin-bottom: 24px;
}

.listed-coins-header {
    background: #251f30;
    padding: 20px 28px;
    font-weight: 700;
    color: #c4b5fd;
    border-bottom: 1px solid #2a2333;
}

.listed-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 28px;
}

.listed-kpi {
    background: rgb(40 29 64 / 84%);
    border: 1px solid rgba(130,84,233,.3);
    border-radius: 16px;
    padding: 18px;
    text-align: center;
}

.listed-kpi .value {
    font-size: 2.4rem;
    font-weight: 700;
    color: #fff;
}

.listed-kpi.verified .value { color: #34d399; }

/* ===================== LISTED CHAIN WIDGET ===================== */
.listed-chains-title {
    font-size: 0.95rem;
    color: #a49fb5;
    margin-bottom: 10px;
    font-weight: 600;
}

.listed-chains-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
}

.listed-chain {
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(59,58,61,0.25);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #4a4a4a;
    transition: all 0.2s ease;
}

body.dark-mode .listed-chain {
    background: rgba(42, 36, 47, 0.9);
    border-color: #493758;
    color: #e5e7eb;
}

.listed-chain i {
    color: var(--primary, #7c3aed);
    font-size: 1.1rem;
}

.listed-chain:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ===================== HEATMAP ===================== */
.heatmap{display:grid;grid-template-columns:repeat(auto-fill,minmax(28px,1fr));gap:6px;padding:10px;background:#f8f9fa;border-radius:8px;margin:12px 0}
.dark-mode .heatmap{background:#3c3147}
.heatmap-day{width:100%;aspect-ratio:1;border-radius:4px;text-align:center;font-size:11px;font-weight:600;line-height:28px;color:#fff;position:relative;transition:transform .2s ease;cursor:pointer;outline:none}
.heatmap-day:hover{transform:translateY(-1px)}
.heatmap-day:focus{box-shadow:0 0 0 2px #6d28d9}
.heatmap-0{background:#e9ecef;color:transparent}
.dark-mode .heatmap-0{background:#2f2f2f;color:transparent}
.heatmap-1{background:#a78bfa}.heatmap-2{background:#8b5cf6}.heatmap-3{background:#6d28d9}.heatmap-4{background:#4c1d95}
.heatmap-day[title]:hover::after{content:attr(title);position:absolute;bottom:100%;left:50%;transform:translateX(-50%);background:#1f2937;color:#fff;padding:4px 8px;font-size:10px;border-radius:4px;white-space:nowrap;z-index:10}
.heatmap-day.is-active{outline:2px solid #6d28d9;outline-offset:2px}
.heatmap-legend{margin-top:12px;font-size:12px;display:flex;gap:12px;align-items:center;background:rgba(103,92,116,.2);padding:7px;border-radius:7px}
.legend-square{width:14px;height:14px;display:inline-block;margin-right:6px;border-radius:4px}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 767px) {
    .table th, .table td {
        padding: 12px 8px;
        font-size: 14px;
    }
    .table-responsive{
        border:none;
    }
}

@media (max-width: 480px) {
    .container-fluid{
      padding:4px;
    }
    .table-responsive{
        border:none;
    }
    .listed-kpis {
        grid-template-columns: 1fr;
    }
    .listed-chains-grid {
        grid-template-columns: 2fr;
    }
}
