/* ============================================
   RPCHECKER — Deep Space Premium Theme
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

/* ── Variables ── */
:root {
    --bg-base: #0a0d14;
    --bg-card: rgba(15, 20, 35, 0.85);
    --bg-card-solid: #0f1423;
    --bg-elevated: rgba(25, 33, 52, 0.7);
    --bg-input: rgba(12, 16, 28, 0.8);
    --accent: #8b5cf6;
    --accent-light: #a78bfa;
    --accent-2: #06b6d4;
    --accent-3: #3b82f6;
    --text-1: #eef2ff;
    --text-2: #a0aec7;
    --text-3: #5a6a85;
    --border: rgba(99, 102, 241, 0.12);
    --border-glow: rgba(139, 92, 246, 0.25);
    --safe: #34d399;
    --safe-bg: rgba(16, 185, 129, 0.12);
    --blocked: #f87171;
    --blocked-bg: rgba(239, 68, 68, 0.12);
    --unknown: #fbbf24;
    --unknown-bg: rgba(245, 158, 11, 0.12);
    --gradient: linear-gradient(135deg, #8b5cf6, #06b6d4);
    --glow: 0 0 20px rgba(139, 92, 246, 0.12);
    --radius: 16px;
}

/* ── Light Mode ── */
html.light {
    --bg-base: #f0f2f8;
    --bg-card: rgba(255, 255, 255, 0.92);
    --bg-card-solid: #ffffff;
    --bg-elevated: rgba(241, 245, 249, 0.9);
    --bg-input: rgba(241, 245, 249, 0.95);
    --accent: #7c3aed;
    --accent-light: #8b5cf6;
    --accent-2: #0891b2;
    --accent-3: #2563eb;
    --text-1: #1e293b;
    --text-2: #475569;
    --text-3: #94a3b8;
    --border: rgba(99, 102, 241, 0.15);
    --border-glow: rgba(124, 58, 237, 0.2);
    --safe: #059669;
    --safe-bg: rgba(16, 185, 129, 0.1);
    --blocked: #dc2626;
    --blocked-bg: rgba(239, 68, 68, 0.1);
    --unknown: #d97706;
    --unknown-bg: rgba(245, 158, 11, 0.1);
    --gradient: linear-gradient(135deg, #7c3aed, #0891b2);
    --glow: 0 2px 12px rgba(124, 58, 237, 0.08);
}

html.light .cosmos {
    background: linear-gradient(160deg, #f0f2f8, #e8ecf4, #eee8f8, #f0f2f8);
}

html.light .cosmos-orb.a {
    background: rgba(124, 58, 237, 0.06);
}

html.light .cosmos-orb.b {
    background: rgba(8, 145, 178, 0.05);
}

html.light .cosmos-orb.c {
    background: rgba(37, 99, 235, 0.04);
}

html.light .cosmos-grid {
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(124, 58, 237, 0.015) 2px, rgba(124, 58, 237, 0.015) 4px);
}

html.light .site-header {
    background: rgba(240, 242, 248, 0.92);
}

html.light .card {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

html.light .card::before {
    opacity: 0.4;
}

html.light .sidebar {
    background: rgba(255, 255, 255, 0.97);
}

html.light .sidebar-nav-item:hover {
    background: rgba(124, 58, 237, 0.04);
}

html.light .sidebar-nav-item.active {
    background: rgba(124, 58, 237, 0.06);
}

html.light .admin-table th {
    background: rgba(241, 245, 249, 0.8);
    color: var(--text-3);
}

html.light .admin-table td {
    color: var(--text-2);
}

html.light .modal-content {
    background: #ffffff;
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.08), 0 20px 40px rgba(0, 0, 0, 0.12);
}

html.light .domain-input {
    background: #f8fafc;
    border-color: rgba(99, 102, 241, 0.18);
}

html.light .form-input,
html.light .form-select {
    background: #f8fafc;
    border-color: rgba(99, 102, 241, 0.18);
    color: var(--text-1);
}

html.light .icon-btn {
    background: rgba(241, 245, 249, 0.9);
}

html.light .icon-btn:hover {
    background: rgba(124, 58, 237, 0.08);
}

html.light .counter-tag {
    background: rgba(241, 245, 249, 0.9);
}

html.light .group-card {
    background: rgba(241, 245, 249, 0.7);
}

html.light .logout-btn {
    color: #dc2626;
}

html.light .logout-btn:hover {
    background: rgba(220, 38, 38, 0.06);
}

/* ── Reset ── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg-base);
    color: var(--text-1);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ── Animated BG ── */
.cosmos {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: linear-gradient(160deg, #0a0d14, #0e1225, #0f0f2e, #0a0d14);
}

.cosmos-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: drift 20s ease-in-out infinite;
}

.cosmos-orb.a {
    width: 500px;
    height: 500px;
    background: rgba(139, 92, 246, 0.08);
    top: -15%;
    left: 5%;
    animation-duration: 22s;
}

.cosmos-orb.b {
    width: 400px;
    height: 400px;
    background: rgba(6, 182, 212, 0.06);
    bottom: 5%;
    right: 0;
    animation-duration: 26s;
    animation-delay: -8s;
}

.cosmos-orb.c {
    width: 300px;
    height: 300px;
    background: rgba(59, 130, 246, 0.05);
    top: 50%;
    left: 60%;
    animation-duration: 30s;
    animation-delay: -15s;
}

.cosmos-grid {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(139, 92, 246, 0.015) 2px, rgba(139, 92, 246, 0.015) 4px);
}

@keyframes drift {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(40px, -30px) scale(1.08);
    }

    66% {
        transform: translate(-30px, 40px) scale(0.95);
    }
}

/* ── Card ── */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--glow);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient);
    opacity: 0.5;
}

.card:hover {
    border-color: var(--border-glow);
}

/* ── Header ── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 13, 20, 0.88);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}

.site-header .inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-box {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(139, 92, 246, 0.25);
}

.logo-box i {
    color: #fff;
    font-size: 1.1rem;
}

.brand {
    font-size: 1.2rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.01em;
}

.brand-sub {
    font-size: 0.65rem;
    color: var(--text-3);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    color: var(--text-2);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s;
    font-size: 1rem;
}

.icon-btn:hover {
    background: rgba(139, 92, 246, 0.12);
    border-color: var(--border-glow);
    color: var(--accent);
}

/* ── Main container ── */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 28px 24px 0;
}

/* ── Section headers ── */
.sec-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 0.85rem;
}

.sec-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-1);
}

/* ── Textarea ── */
.domain-input {
    width: 100%;
    min-height: 170px;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    background: var(--bg-input);
    color: var(--text-1);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    line-height: 1.8;
    resize: vertical;
    outline: none;
    transition: all 0.3s;
}

.domain-input::placeholder {
    color: var(--text-3);
}

.domain-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.counter-tag {
    position: absolute;
    bottom: 12px;
    right: 14px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-3);
    background: var(--bg-elevated);
    padding: 3px 10px;
    border-radius: 6px;
    border: 1px solid var(--border);
}

/* ── Buttons ── */
.btn-glow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.84rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    color: #fff;
    background: var(--gradient);
    box-shadow: 0 4px 18px rgba(139, 92, 246, 0.25);
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(139, 92, 246, 0.35);
}

.btn-glow:active {
    transform: translateY(0);
}

.btn-glow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ── Legacy btn compat ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.8rem;
    border: none;
    cursor: pointer;
    transition: all 0.25s;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 3px 12px rgba(139, 92, 246, 0.2);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 20px rgba(139, 92, 246, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #06b6d4);
    color: #fff;
}

.btn-success:hover {
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
}

.btn-danger:hover {
    transform: translateY(-1px);
}

.btn-purple {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    color: #fff;
}

.btn-purple:hover {
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text-2);
    border: 1px solid var(--border);
}

.btn-outline:hover {
    background: var(--bg-elevated);
    border-color: var(--border-glow);
    color: var(--text-1);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.btn-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.25s;
}

.btn-edit {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent);
}

.btn-edit:hover {
    background: rgba(139, 92, 246, 0.2);
    transform: scale(1.1);
}

.btn-delete {
    background: rgba(239, 68, 68, 0.1);
    color: var(--blocked);
}

.btn-delete:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: scale(1.1);
}

/* ── Loading ── */
.spinner {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2.5px solid rgba(139, 92, 246, 0.15);
    border-top-color: var(--accent);
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Domain rows (public checker results) ── */
.domain-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.25s;
    margin-bottom: 4px;
}

.domain-row:hover {
    background: var(--bg-elevated);
    border-color: var(--border);
}

.domain-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-1);
}

/* Status badges */
.status-badge {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1.5px solid;
}

.status-safe {
    background: var(--safe-bg);
    border-color: rgba(16, 185, 129, 0.25);
    color: var(--safe);
}

.status-blocked {
    background: var(--blocked-bg);
    border-color: rgba(239, 68, 68, 0.25);
    color: var(--blocked);
}

.status-unknown {
    background: var(--unknown-bg);
    border-color: rgba(245, 158, 11, 0.25);
    color: var(--unknown);
}

/* Table badges */
.badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.badge-safe {
    background: var(--safe-bg);
    color: var(--safe);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-blocked {
    background: var(--blocked-bg);
    color: var(--blocked);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge-unknown {
    background: var(--unknown-bg);
    color: var(--unknown);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Summary card */
.summary-card {
    background: rgba(139, 92, 246, 0.05);
    border: 1px solid var(--border-glow);
    box-shadow: var(--glow);
}

.summary-title {
    color: var(--text-1);
}

.summary-icon-bg {
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.15);
}

/* Empty state */
.empty-state {
    padding: 60px 24px;
    text-align: center;
}

.empty-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--text-3);
    font-size: 1.5rem;
}

/* ── Footer ── */
.site-footer {
    text-align: center;
    padding: 28px 16px;
    margin-top: 36px;
}

.site-footer p {
    color: var(--text-3);
    font-size: 0.75rem;
}

.site-footer a {
    color: var(--accent);
    text-decoration: none;
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    opacity: 0.7;
    transition: all 0.3s;
}

.site-footer a:hover {
    opacity: 1;
}

/* ── Forms ── */
.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-2);
    margin-bottom: 8px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    background: var(--bg-input);
    color: var(--text-1);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    transition: all 0.3s;
    outline: none;
}

.form-input::placeholder {
    color: var(--text-3);
}

.form-input:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.form-select option {
    background: var(--bg-card-solid);
    color: var(--text-1);
}

/* ── Login ── */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 16px;
}

.login-card {
    width: 100%;
    max-width: 420px;
}

.login-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--gradient);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.3);
}

.login-icon-box i {
    color: #fff;
    font-size: 1.5rem;
}

.login-error {
    margin-top: 16px;
    padding: 12px;
    background: var(--blocked-bg);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 10px;
    color: var(--blocked);
    font-size: 0.82rem;
    text-align: center;
}

/* ── Sidebar ── */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 200px;
    background: rgba(10, 13, 20, 0.96);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: transform 0.3s;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    color: var(--text-2);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.25s;
    cursor: pointer;
    border-left: 3px solid transparent;
    margin: 1px 0;
}

.sidebar-nav-item:hover {
    color: var(--text-1);
    background: rgba(139, 92, 246, 0.06);
}

.sidebar-nav-item.active {
    color: var(--accent);
    background: rgba(139, 92, 246, 0.08);
    border-left-color: var(--accent);
    font-weight: 600;
}

.sidebar-nav-item i {
    width: 18px;
    text-align: center;
    font-size: 0.82rem;
}

.logout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: var(--blocked);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    border-radius: 8px;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.08);
}

/* Admin content */
.admin-content {
    margin-left: 200px;
    padding: 24px 32px;
    min-height: 100vh;
}

.admin-page.hidden {
    display: none;
}

/* ── Table ── */
.admin-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.admin-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-3);
    border-bottom: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.5);
}

.admin-table th:first-child {
    border-radius: 8px 0 0 0;
}

.admin-table th:last-child {
    border-radius: 0 8px 0 0;
}

.admin-table td {
    padding: 12px 16px;
    font-size: 0.82rem;
    color: var(--text-2);
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.admin-table tr:hover td {
    background: var(--bg-elevated);
}

.admin-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
    cursor: pointer;
}

/* ── Group cards ── */
.group-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid var(--border);
    margin-bottom: 8px;
    background: var(--bg-elevated);
    transition: all 0.25s;
}

.group-card:hover {
    border-color: var(--border-glow);
    box-shadow: var(--glow);
}

/* ── Modals ── */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-overlay.hidden {
    display: none;
}

.modal-content {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius);
    padding: 28px 32px;
    width: 100%;
    max-width: 480px;
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.15), 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: modal-pop 0.25s ease-out;
}

.modal-content h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-1);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

@keyframes modal-pop {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ── Toast ── */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toast-in 0.3s ease-out;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.toast-success {
    background: linear-gradient(135deg, #10b981, #059669);
}

.toast-error {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.toast-info {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ── Utility ── */
.hidden {
    display: none !important;
}

.flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-1 {
    gap: 4px;
}

.gap-2 {
    gap: 8px;
}

.gap-3 {
    gap: 12px;
}

.grid {
    display: grid;
}

.grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.space-y-1>*+* {
    margin-top: 4px;
}

.w-full {
    width: 100%;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

.font-bold {
    font-weight: 700;
}

.font-extrabold {
    font-weight: 800;
}

.font-semibold {
    font-weight: 600;
}

.font-medium {
    font-weight: 500;
}

.text-xs {
    font-size: 0.75rem;
}

.text-sm {
    font-size: 0.875rem;
}

.text-base {
    font-size: 1rem;
}

.text-center {
    text-align: center;
}

.truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.min-w-0 {
    min-width: 0;
}

.flex-1 {
    flex: 1;
}

.flex-shrink-0 {
    flex-shrink: 0;
}

.relative {
    position: relative;
}

.mr-2 {
    margin-right: 8px;
}

.mt-1 {
    margin-top: 4px;
}

.mb-1 {
    margin-bottom: 4px;
}

.mb-4 {
    margin-bottom: 16px;
}

.mb-5 {
    margin-bottom: 20px;
}

.p-3 {
    padding: 12px;
}

.p-5 {
    padding: 20px;
}

.p-6 {
    padding: 24px;
}

.py-4 {
    padding-top: 16px;
    padding-bottom: 16px;
}

.px-4 {
    padding-left: 16px;
    padding-right: 16px;
}

.px-5 {
    padding-left: 20px;
    padding-right: 20px;
}

.rounded-lg {
    border-radius: 8px;
}

.rounded-xl {
    border-radius: 12px;
}

.rounded-2xl {
    border-radius: 16px;
}

.rounded-full {
    border-radius: 9999px;
}

.shadow-sm {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.shadow-lg {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.border-2 {
    border-width: 2px;
}

.overflow-hidden {
    overflow: hidden;
}

.inline-flex {
    display: inline-flex;
}

/* Color classes */
.text-gray-400,
.text-gray-500 {
    color: var(--text-3);
}

.text-gray-900 {
    color: var(--text-1);
}

.text-blue-400,
.text-blue-500,
.text-blue-600 {
    color: var(--accent-3);
}

.text-green-600 {
    color: var(--safe);
}

.text-red-600 {
    color: var(--blocked);
}

.text-amber-600 {
    color: var(--unknown);
}

.text-white {
    color: #fff;
}

.bg-green-100 {
    background: var(--safe-bg);
}

.bg-red-100 {
    background: var(--blocked-bg);
}

.bg-amber-100 {
    background: var(--unknown-bg);
}

.bg-green-500 {
    background: var(--safe);
}

.bg-red-500 {
    background: var(--blocked);
}

.bg-amber-500 {
    background: var(--unknown);
}

.border-green-200 {
    border-color: rgba(16, 185, 129, 0.2) !important;
}

.border-red-200 {
    border-color: rgba(239, 68, 68, 0.2) !important;
}

.border-amber-200 {
    border-color: rgba(245, 158, 11, 0.2) !important;
}

.border-blue-200\/50 {
    border-color: var(--border-glow) !important;
}

.bg-green-100.rounded-full,
.bg-red-100.rounded-full,
.bg-amber-100.rounded-full {
    border: none !important;
}

.h-1\.5 {
    height: 6px;
}

.text-2xl {
    font-size: 1.5rem;
}

/* ── Animations ── */
.animate-in {
    animation: slideUp 0.5s ease-out;
}

.animate-in-delay {
    animation: slideUp 0.5s ease-out 0.15s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .admin-content {
        margin-left: 0;
        padding: 16px;
    }

    .mobile-menu-bar {
        display: block !important;
    }

    .grid-cols-3 {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 16px 16px 0;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.35);
}

::selection {
    background: rgba(139, 92, 246, 0.3);
    color: #fff;
}