:root {
    --zap-green: #18e888;
    --zap-dark-green: #00c48b;
    --zap-light-green: #39f1b3;
    --zap-cyan: #00ffff;
    --zap-dark: #1B1434;
    --zap-darker: #1b144b;
    --zap-bg: #0f0d24;
    --zap-surface: #1a1730;
    --zap-surface2: #221e3a;
    --zap-border: rgba(255,255,255,0.08);
    --zap-text: #e8e6f0;
    --zap-text-muted: #8b8aa0;
    --sidebar-width: 240px;
    --topbar-height: 64px;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 4px 24px rgba(0,0,0,0.3);
    --transition: all 0.2s ease;
}

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

html { font-size: 14px; }

body {
    font-family: 'Poppins', sans-serif;
    background: var(--zap-bg);
    color: var(--zap-text);
    display: flex;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--zap-dark); }
::-webkit-scrollbar-thumb { background: var(--zap-surface2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--zap-green); }

/* ============ SIDEBAR ============ */
.sidebar {
    width: var(--sidebar-width);
    background: var(--zap-surface);
    border-right: 1px solid var(--zap-border);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0;
    height: 100vh;
    z-index: 100;
    transition: transform 0.3s ease, width 0.3s ease;
}

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

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.sidebar-logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-zap { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.2rem; color: var(--zap-green); letter-spacing: 1px; }
.logo-dash { font-size: 0.65rem; color: var(--zap-text-muted); font-weight: 400; text-transform: uppercase; letter-spacing: 2px; margin-top: 2px; }

.sidebar-toggle {
    background: none;
    border: none;
    color: var(--zap-text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-size: 1rem;
}
.sidebar-toggle:hover { background: var(--zap-surface2); color: var(--zap-green); }

.sidebar-nav {
    flex: 1;
    padding: 16px 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-section-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--zap-text-muted);
    padding: 12px 10px 4px;
    font-weight: 600;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--zap-text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-item:hover { background: var(--zap-surface2); color: var(--zap-text); }
.nav-item.active { background: rgba(24, 232, 136, 0.12); color: var(--zap-green); }
.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0; top: 20%; bottom: 20%;
    width: 3px;
    background: var(--zap-green);
    border-radius: 0 3px 3px 0;
}
.nav-item i { width: 18px; text-align: center; font-size: 0.9rem; }

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid var(--zap-border);
}
.sidebar-footer-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--zap-text-muted);
}
.server-dot { width: 8px; height: 8px; border-radius: 50%; }
.server-dot.online { background: var(--zap-green); box-shadow: 0 0 6px var(--zap-green); animation: pulse 2s infinite; }

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 99;
}

/* ============ MAIN CONTENT ============ */
.main-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ============ TOPBAR ============ */
.topbar {
    height: var(--topbar-height);
    background: var(--zap-surface);
    border-bottom: 1px solid var(--zap-border);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--zap-text);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 6px;
}

.topbar-left { flex: 1; }
.breadcrumb { font-size: 0.875rem; color: var(--zap-text-muted); font-weight: 500; }

.topbar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-time { font-size: 0.75rem; color: var(--zap-text-muted); font-family: 'Rubik', sans-serif; }

.topbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--zap-text);
}
.user-avatar {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, var(--zap-green), var(--zap-dark-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--zap-dark);
}

/* ============ PAGE CONTENT ============ */
.page-content { padding: 24px; flex: 1; }

.page-header { margin-bottom: 24px; }
.page-header h1 { font-size: 1.5rem; font-weight: 700; color: var(--zap-text); display: flex; align-items: center; gap: 10px; }
.page-header h1 i { color: var(--zap-green); }
.page-subtitle { font-size: 0.8rem; color: var(--zap-text-muted); margin-top: 4px; display: block; }

/* ============ STATS GRID ============ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--zap-surface);
    border: 1px solid var(--zap-border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}
.stat-card:hover { border-color: rgba(24,232,136,0.3); transform: translateY(-2px); box-shadow: var(--shadow); }

.stat-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.stat-icon.green { background: rgba(24,232,136,0.12); color: var(--zap-green); }
.stat-icon.cyan { background: rgba(0,255,255,0.12); color: var(--zap-cyan); }
.stat-icon.red { background: rgba(255,80,80,0.12); color: #ff5050; }
.stat-icon.blue { background: rgba(57,241,179,0.12); color: var(--zap-light-green); }
.stat-icon.purple { background: rgba(139,92,246,0.12); color: #a78bfa; }

.stat-value { font-size: 1.6rem; font-weight: 700; color: var(--zap-text); line-height: 1; }
.stat-label { font-size: 0.75rem; color: var(--zap-text-muted); margin-top: 4px; }

/* ============ CARDS ============ */
.card {
    background: var(--zap-surface);
    border: 1px solid var(--zap-border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 20px;
}
.card-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--zap-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-header h3 { font-size: 0.95rem; font-weight: 600; color: var(--zap-text); display: flex; align-items: center; gap: 8px; }
.card-header h3 i { color: var(--zap-green); }
.card-body { padding: 20px; }

.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }

.btn-sm {
    background: rgba(24,232,136,0.1);
    color: var(--zap-green);
    border: 1px solid rgba(24,232,136,0.2);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}
.btn-sm:hover { background: rgba(24,232,136,0.2); }

/* ============ BRAND BARS ============ */
.brand-bars { display: flex; flex-direction: column; gap: 16px; }
.brand-bar-item { display: flex; flex-direction: column; gap: 8px; }
.brand-bar-label { display: flex; align-items: center; justify-content: space-between; font-size: 0.8rem; color: var(--zap-text-muted); }
.progress-bar { height: 8px; background: var(--zap-surface2); border-radius: 4px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 4px; transition: width 1s ease; }
.progress-fill.green { background: linear-gradient(90deg, var(--zap-green), var(--zap-dark-green)); }
.progress-fill.cyan { background: linear-gradient(90deg, var(--zap-cyan), var(--zap-light-green)); }

/* ============ BRAND BADGES ============ */
.brand-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.brand-badge.zap { background: rgba(24,232,136,0.15); color: var(--zap-green); border: 1px solid rgba(24,232,136,0.3); }
.brand-badge.dmc { background: rgba(0,255,255,0.15); color: var(--zap-cyan); border: 1px solid rgba(0,255,255,0.3); }

/* ============ RECENT LIST ============ */
.recent-list { display: flex; flex-direction: column; gap: 10px; }
.recent-item { display: flex; align-items: center; gap: 10px; }
.recent-url { flex: 1; font-size: 0.8rem; color: var(--zap-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.status-dot.online { background: var(--zap-green); }
.status-dot.offline { background: #ff5050; }

/* ============ QUICK LINKS ============ */
.quick-links { display: flex; gap: 16px; flex-wrap: wrap; }
.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: var(--zap-surface2);
    border: 1px solid var(--zap-border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--zap-text);
    font-size: 0.8rem;
    font-weight: 500;
    min-width: 120px;
    transition: var(--transition);
}
.quick-link:hover { border-color: var(--zap-green); color: var(--zap-green); transform: translateY(-2px); }
.quick-link-icon {
    width: 44px; height: 44px;
    background: rgba(24,232,136,0.1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--zap-green);
}

/* ============ EMPTY STATE ============ */
.empty-state { text-align: center; padding: 40px 20px; color: var(--zap-text-muted); }
.empty-state i { font-size: 2.5rem; margin-bottom: 12px; opacity: 0.5; display: block; }
.empty-state a { color: var(--zap-green); text-decoration: none; }

/* ============ BACKLINKS TABLE ============ */
.table-controls {
    padding: 16px 20px;
    border-bottom: 1px solid var(--zap-border);
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.search-input {
    background: var(--zap-surface2);
    border: 1px solid var(--zap-border);
    color: var(--zap-text);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
    min-width: 200px;
}
.search-input:focus { outline: none; border-color: var(--zap-green); box-shadow: 0 0 0 3px rgba(24,232,136,0.1); }
.search-input::placeholder { color: var(--zap-text-muted); }

select.search-input { cursor: pointer; min-width: 140px; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.btn-primary { background: var(--zap-green); color: var(--zap-dark); }
.btn-primary:hover { background: var(--zap-light-green); transform: translateY(-1px); }
.btn-secondary { background: var(--zap-surface2); color: var(--zap-text); border: 1px solid var(--zap-border); }
.btn-secondary:hover { border-color: var(--zap-green); color: var(--zap-green); }
.btn-danger { background: rgba(255,80,80,0.1); color: #ff5050; border: 1px solid rgba(255,80,80,0.2); }
.btn-danger:hover { background: rgba(255,80,80,0.2); }

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

table.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}
table.data-table thead th {
    padding: 12px 16px;
    background: var(--zap-surface2);
    color: var(--zap-text-muted);
    font-weight: 600;
    text-align: left;
    white-space: nowrap;
    border-bottom: 1px solid var(--zap-border);
    position: sticky;
    top: 0;
}
table.data-table thead th.sortable { cursor: pointer; user-select: none; }
table.data-table thead th.sortable:hover { color: var(--zap-green); }
table.data-table thead th .sort-icon { margin-left: 4px; opacity: 0.5; }
table.data-table thead th.sort-asc .sort-icon::after { content: '↑'; color: var(--zap-green); opacity: 1; }
table.data-table thead th.sort-desc .sort-icon::after { content: '↓'; color: var(--zap-green); opacity: 1; }

table.data-table tbody tr { border-bottom: 1px solid var(--zap-border); transition: background 0.15s; }
table.data-table tbody tr:hover { background: rgba(255,255,255,0.03); }
table.data-table tbody td { padding: 12px 16px; color: var(--zap-text); vertical-align: middle; }

.url-cell { max-width: 250px; }
.url-link { color: var(--zap-text-muted); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.url-link:hover { color: var(--zap-green); }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}
.status-badge.online { background: rgba(24,232,136,0.12); color: var(--zap-green); }
.status-badge.offline { background: rgba(255,80,80,0.12); color: #ff5050; }
.status-badge.unknown { background: rgba(255,200,0,0.12); color: #ffc800; }

.http-code { font-family: 'Rubik', monospace; font-size: 0.75rem; }
.http-code.ok { color: var(--zap-green); }
.http-code.redirect { color: #ffc800; }
.http-code.error { color: #ff5050; }

.link-type-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 600;
    background: var(--zap-surface2);
    color: var(--zap-text-muted);
}
.link-type-badge.dofollow { background: rgba(24,232,136,0.08); color: var(--zap-green); }

.date-cell { font-size: 0.75rem; color: var(--zap-text-muted); white-space: nowrap; }

.action-btns { display: flex; gap: 6px; align-items: center; }
.action-btn {
    width: 28px; height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid var(--zap-border);
    background: none;
    color: var(--zap-text-muted);
    cursor: pointer;
    font-size: 0.75rem;
    transition: var(--transition);
}
.action-btn:hover { color: var(--zap-green); border-color: rgba(24,232,136,0.3); background: rgba(24,232,136,0.05); }
.action-btn.delete:hover { color: #ff5050; border-color: rgba(255,80,80,0.3); background: rgba(255,80,80,0.05); }

.table-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--zap-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--zap-text-muted);
}

.pagination { display: flex; gap: 4px; align-items: center; }
.page-btn {
    width: 30px; height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    border: 1px solid var(--zap-border);
    background: none;
    color: var(--zap-text-muted);
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition);
}
.page-btn:hover, .page-btn.active { background: rgba(24,232,136,0.1); color: var(--zap-green); border-color: rgba(24,232,136,0.3); }
.page-btn:disabled { opacity: 0.3; cursor: not-allowed; }

/* ============ MODAL ============ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    z-index: 200;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }

.modal {
    background: var(--zap-surface);
    border: 1px solid var(--zap-border);
    border-radius: var(--radius);
    width: 100%;
    max-width: 560px;
    margin: 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    animation: modalIn 0.2s ease;
}
@keyframes modalIn { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--zap-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-header h3 { font-size: 1rem; font-weight: 600; color: var(--zap-text); }
.modal-close { background: none; border: none; color: var(--zap-text-muted); cursor: pointer; font-size: 1.1rem; transition: var(--transition); }
.modal-close:hover { color: var(--zap-text); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--zap-border); display: flex; gap: 10px; justify-content: flex-end; }

.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--zap-text-muted); margin-bottom: 6px; }
.form-input {
    width: 100%;
    background: var(--zap-surface2);
    border: 1px solid var(--zap-border);
    color: var(--zap-text);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-family: 'Poppins', sans-serif;
    transition: var(--transition);
}
.form-input:focus { outline: none; border-color: var(--zap-green); box-shadow: 0 0 0 3px rgba(24,232,136,0.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ============ TOAST NOTIFICATIONS ============ */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast {
    background: var(--zap-surface);
    border: 1px solid var(--zap-border);
    border-left: 4px solid var(--zap-green);
    color: var(--zap-text);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    box-shadow: var(--shadow);
    animation: toastIn 0.3s ease;
    max-width: 320px;
}
.toast.error { border-left-color: #ff5050; }
.toast.warning { border-left-color: #ffc800; }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

/* ============ LOADING ============ */
.loading-row td { text-align: center; padding: 40px; color: var(--zap-text-muted); }
.spinner { display: inline-block; width: 24px; height: 24px; border: 2px solid var(--zap-border); border-top-color: var(--zap-green); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============ ANIMATIONS ============ */
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* ============ COLUMN SEARCH ROW ============ */
.col-search-row th { padding: 8px 16px; background: var(--zap-surface); }
.col-search-input {
    width: 100%;
    background: var(--zap-surface2);
    border: 1px solid var(--zap-border);
    color: var(--zap-text);
    padding: 5px 8px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-family: 'Poppins', sans-serif;
}
.col-search-input:focus { outline: none; border-color: rgba(24,232,136,0.5); }

/* ============ NOTICE BAR ============ */
.notice-bar {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: rgba(0,255,255,0.06);
    border: 1px solid rgba(0,255,255,0.2);
    border-left: 4px solid var(--zap-cyan);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 0.82rem;
    color: var(--zap-text-muted);
    line-height: 1.5;
}
.notice-bar i { color: var(--zap-cyan); margin-top: 2px; flex-shrink: 0; }
.notice-bar span { flex: 1; }
.notice-bar a { color: var(--zap-cyan); }
.notice-bar strong { color: var(--zap-text); }
.notice-close { background: none; border: none; color: var(--zap-text-muted); cursor: pointer; font-size: 1.2rem; padding: 0 4px; line-height: 1; flex-shrink: 0; }
.notice-close:hover { color: var(--zap-text); }

/* ============ FILE DROP ============ */
.file-drop {
    border: 2px dashed var(--zap-border);
    border-radius: var(--radius-sm);
    padding: 28px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--zap-text-muted);
    font-size: 0.85rem;
}
.file-drop:hover, .file-drop.drag-over { border-color: var(--zap-green); color: var(--zap-green); background: rgba(24,232,136,0.04); }
.file-drop i { font-size: 2rem; display: block; margin-bottom: 8px; opacity: 0.5; }
.file-drop.has-file { border-color: var(--zap-green); background: rgba(24,232,136,0.06); color: var(--zap-green); }

.import-format-info { font-size: 0.8rem; color: var(--zap-text-muted); display: flex; align-items: flex-start; gap: 8px; }
.import-format-info code { background: var(--zap-surface2); padding: 1px 5px; border-radius: 4px; font-size: 0.75rem; color: var(--zap-green); }

.import-preview {
    background: var(--zap-surface2);
    border: 1px solid var(--zap-border);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-top: 12px;
    font-size: 0.78rem;
    color: var(--zap-text-muted);
}
.import-preview strong { color: var(--zap-text); }

.import-result {
    background: var(--zap-surface2);
    border-radius: var(--radius-sm);
    padding: 16px;
    font-size: 0.85rem;
}
.import-result.success { border-left: 4px solid var(--zap-green); }
.import-result.error   { border-left: 4px solid #ff5050; }

/* ============ DOMAIN SUMMARY GRID ============ */
.domain-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}

.domain-card {
    background: var(--zap-surface);
    border: 1px solid var(--zap-border);
    border-radius: var(--radius);
    padding: 16px;
    cursor: pointer;
    transition: var(--transition);
}
.domain-card:hover { border-color: rgba(24,232,136,0.3); transform: translateY(-2px); box-shadow: 0 4px 20px rgba(0,0,0,0.2); }

.domain-card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.domain-card-name { font-size: 0.8rem; font-weight: 600; color: var(--zap-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }

.domain-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.domain-stat { text-align: center; }
.domain-stat.green .domain-stat-val { color: var(--zap-green); }
.domain-stat.cyan  .domain-stat-val { color: var(--zap-cyan); }
.domain-stat-val { font-size: 1.1rem; font-weight: 700; display: block; line-height: 1; }
.domain-stat-lbl { font-size: 0.65rem; color: var(--zap-text-muted); margin-top: 2px; }

.domain-card-footer { display: flex; justify-content: space-between; align-items: center; font-size: 0.72rem; padding-top: 10px; border-top: 1px solid var(--zap-border); color: var(--zap-text-muted); }

/* ============ POSITION BADGES ============ */
.pos-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: 'Rubik', sans-serif;
    background: var(--zap-surface2);
    color: var(--zap-text-muted);
}
.pos-badge.gold  { background: rgba(255,215,0,0.15); color: #ffd700; border: 1px solid rgba(255,215,0,0.3); }
.pos-badge.green { background: rgba(24,232,136,0.12); color: var(--zap-green); border: 1px solid rgba(24,232,136,0.2); }
.pos-badge.cyan  { background: rgba(0,255,255,0.1);  color: var(--zap-cyan); border: 1px solid rgba(0,255,255,0.2); }

/* ============ VOLUME BADGE ============ */
.vol-badge {
    font-family: 'Rubik', monospace;
    font-size: 0.78rem;
    color: var(--zap-text);
    font-weight: 500;
}

/* ============ SYNC STATUS INDICATOR ============ */
.sync-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem;
    background: rgba(24,232,136,0.1);
    color: var(--zap-green);
    border: 1px solid rgba(24,232,136,0.2);
}

/* ============ DR BADGE ============ */
.dr-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 700;
    font-family: 'Rubik', monospace;
}
.dr-badge.high   { background: rgba(24,232,136,0.12); color: var(--zap-green); }
.dr-badge.medium { background: rgba(255,200,0,0.12);  color: #ffc800; }
.dr-badge.low    { background: rgba(255,80,80,0.1);   color: #ff8080; }
.dr-badge.none   { background: var(--zap-surface2);   color: var(--zap-text-muted); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
    .sidebar { transform: translateX(-100%); }
    .sidebar.open { transform: translateX(0); }
    .sidebar-overlay.open { display: block; }
    .main-content { margin-left: 0; }
    .mobile-menu-btn { display: flex; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .table-controls { gap: 8px; }
    .search-input { min-width: 120px; }
}

@media (max-width: 600px) {
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .page-content { padding: 16px; }
    .topbar { padding: 0 16px; }
    .quick-links { gap: 10px; }
    .quick-link { min-width: 90px; padding: 14px; }
}
