/* =============================================
   CryptoAlleys - Presale Page Specific Styles
   ============================================= */
   /* ===================== PAGE HEADER ===================== */
   .page-header h1 {
       line-height: 1.15;
   }


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


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

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

.ps-kpi .num {
    font-size: 2.0rem;
    font-weight: 600;
    color: #fff;
}

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

.ps-progress{height:10px;border-radius:999px;background:#f5f6fa;overflow:hidden;margin-top:10px}
.ps-progress>span{display:block;height:100%;background:#6c5ce7;width:0;transition:width .6s ease}
.dark-mode .ps-progress{background:#2b3042}
.dark-mode .ps-progress>span{background:#8d7bff}
/* @media (max-width: 480px) {
      .ps-kpi{flex:1 1 100%; margin-bottom:8px;}
} */

/*  */
   body.dark-mode .page-header .text-primary { color: #c4b5fd !important; }
   body.dark-mode .page-header .lead { color: #9ca3af !important; }
   .list-group-item {
       background-color: transparent;
       border: none;
   }

   .list-group-item .badge {
    display: inline-block;
    min-width: 10px;
    padding: 6px 1px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
    background-color: #777;
    border-radius: 100%;
}
   /* ===================== 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;
   }
/* Make sure we don't override base cards too aggressively */
.card {
    margin-bottom: 20px;
}

/* ===================== 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}

/* Filter Chips */
.filter-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.filter-chip {
    background: #e5e7eb;
    padding: 5px 11px;
    border-radius: 9999px;
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #374151;
    white-space: nowrap;
}

.dark-mode .filter-chip {
    background: #374151;
    color: #e5e7eb;
}

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

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

/* Table */
.table-container {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.dark-mode .table-container {
    border-color: #334155;
}

.table th {
    font-weight: 600;
    background: #f8f9fa;
    padding: 14px 12px;
    border-bottom: 2px solid #dee2e6;
}

.table td {
    vertical-align: middle;
    padding: 14px 12px;
}

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

.dark-mode .table td {
    border-bottom-color: #334155;
}

.cap-cell {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* Search status */
#search-status {
    align-self: center;
    margin-left: 10px;
    font-size: 13px;
    color: #6b7280;
}

/* Skeleton */
.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;
}

.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%;
}

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

/* Responsive tweaks */
@media (max-width: 767px) {
    .page-header h1 { font-size: 1.85rem; }
    .page-header .lead { font-size: 1.15rem; }
    .heatmap {
        grid-template-columns: repeat(auto-fill, minmax(24px, 1fr));
    }
    .table {
        font-size: 14px;
    }
    .card-header {
        padding: 12px 16px;
    }
    .table-responsive{
        border:none;
    }
}

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