:root {
    --bg: #0f0e14; --panel: #16151d; --text: #efeff5; --muted: #a49fb5; --line: #eaeaea;
    --primary: #5865F2; --accent: #ffb000; --success: #25a56a; --danger: #e45858;
}

@media (prefers-color-scheme: light) {
    :root {
        --bg: #fafafa; --panel: #fff; --text: #1e293b; --muted: #64748b; --line: #e2e8f0;
    }
}

/* 1. LAYOUT COMPONENTS */
.page-header {
    background: linear-gradient(135deg, var(--primary), #000);
    color: white;
    padding: 60px 20px;
    text-align: center;
    border-radius: 20px;
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 900;
    margin: 0;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 12px auto 0;
}

.filter-card, .info-card, .scam-card, .cord-table {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .08);
}

body.dark-mode .filter-card,
body.dark-mode .info-card,
body.dark-mode .scam-card,
body.dark-mode .cord-table {
    border-color: #545252;
    background: #2a242f;
}

/* Scam Card */
.scam-header {
    cursor: pointer;
    padding: 16px 20px;
    background: rgba(93, 68, 239, 0.1);
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.scam-header:hover {
    background: rgba(93, 68, 239, 0.22);
}

.scam-arrow {
    transition: transform .3s ease;
    color: var(--primary);
}

.scam-header.active .scam-arrow {
    transform: rotate(180deg);
}

.scam-body {
    display: none;
    padding: 20px;
    background: rgba(73, 37, 118, 0.09);
    border-radius: 0 0 12px 12px;
}

/* Filters */
.filter-row {
    display: grid;
    grid-template-columns: 180px 180px 1fr auto;
    gap: 16px;
    align-items: end;
}

@media (max-width: 1100px) {
    .filter-row { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}

.filter-group label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    display: block;
}

.filter-group .form-control {
    height: 48px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--text);
}

.btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
}

.btn-clear {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--muted);
}

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

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

.filter-chip {
    background: rgba(88, 101, 242, 0.15);
    color: var(--primary);
    border: 1px solid rgba(88, 101, 242, 0.3);
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Table */
.cord-table {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
}

.cord-table thead {
    background: rgba(88,101,242,.1);
    color: var(--primary);
    font-weight: 700;
}

/* .cord-table th, .cord-table td {
    padding: 18px 14px;
    vertical-align: middle;
} */
.cord-table th {
    font-weight: 600;
    background: #f8fafc;
    color: #374151;
    border-bottom: 2px solid #e2e8f0;
    padding: 14px 12px;
}

.cord-table td {
    vertical-align: middle;
    padding: 14px 12px;
    border-bottom: 1px solid #f1f5f9;
}
.cord-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

/* ===================== 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 .skeleton-img { width: 40px; height: 40px; border-radius: 10px; }
.skeleton .skeleton-text { height: 18px; width: 85%; }
.skeleton .skeleton-text-sm { height: 14px; width: 60%; }
.skeleton .skeleton-sm { height: 18px; width: 32px; }

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

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

/* Responsive */
@media (max-width: 768px) {
    .cord-table { overflow-x: auto; }
    .page-header h1 { font-size: 2.1rem; }
    .filter-row { grid-template-columns: 1fr; }
    .cord-table th, .cord-table td {
        padding: 12px 8px;
        font-size: 14px;
    }
    .table-responsive{
        border:none;
    }
}
