/* ===========================================================
   DomainGuard — Premium Dark Theme
   Inspired by Linear · Vercel · Cursor · Raycast · OpenAI
   This file overrides style.css. Load it AFTER style.css.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ---------- Force premium tokens (overrides both light & dark) ---------- */
:root,
[data-theme="light"],
[data-theme="dark"] {
    --bg:            #050816;
    --panel:         rgba(15, 23, 42, 0.55);
    --panel-2:       rgba(15, 23, 42, 0.40);
    --panel-solid:   #0b1226;
    --border:        rgba(148, 163, 184, 0.14);
    --border-strong: rgba(139, 92, 246, 0.30);
    --text:          #f8fafc;
    --muted:         #94a3b8;
    --primary:       #8b5cf6;
    --primary-hover: #7c3aed;
    --primary-soft:  rgba(139, 92, 246, 0.14);
    --secondary:     #06b6d4;
    --success:       #10b981;
    --success-soft:  rgba(16, 185, 129, 0.14);
    --warning:       #f59e0b;
    --warning-soft:  rgba(245, 158, 11, 0.14);
    --danger:        #ef4444;
    --danger-soft:   rgba(239, 68, 68, 0.14);

    --shadow-sm:   0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow:      0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 8px 32px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 40px rgba(139, 92, 246, 0.18);

    --radius: 14px;
    --sidebar-w: 260px;
    --topbar-h: 64px;

    color-scheme: dark;
}

/* ---------- Typography ---------- */
* { -webkit-font-smoothing: antialiased; }

html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
    letter-spacing: -0.011em;
    font-size: 14.5px;
    line-height: 1.55;
}

pre, code, .mono, kbd, samp, .terminal, [class*="raw"] textarea, textarea[name="raw"] {
    font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace !important;
    font-feature-settings: 'liga' 0, 'calt' 0;
    letter-spacing: 0;
}

h1, h2, h3, h4, .brand-title, .stat-value, .detail-domain, .login-title, .countdown-num {
    letter-spacing: -0.025em;
}

/* ---------- Background with subtle grid + radial glows ---------- */
body {
    background-color: #050816;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px),
        radial-gradient(60% 50% at 15% 0%, rgba(139, 92, 246, 0.18), transparent 60%),
        radial-gradient(50% 40% at 85% 40%, rgba(6, 182, 212, 0.12), transparent 60%),
        radial-gradient(40% 30% at 50% 100%, rgba(99, 102, 241, 0.10), transparent 60%);
    background-size: 36px 36px, 36px 36px, 100% 100%, 100% 100%, 100% 100%;
    background-attachment: fixed;
    background-position: -1px -1px, -1px -1px, 0 0, 0 0, 0 0;
    color: var(--text);
}

/* Top hairline glow on the page */
body::before {
    content: "";
    position: fixed;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.5), transparent);
    z-index: 100;
    pointer-events: none;
}

/* ---------- App layout ---------- */
.app { background: transparent; }

/* ---------- Sidebar (glassmorphism) ---------- */
.sidebar {
    background: linear-gradient(180deg, rgba(8, 12, 28, 0.85), rgba(8, 12, 28, 0.65));
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    border-right: 1px solid rgba(148, 163, 184, 0.08);
    padding: 24px 14px;
    box-shadow: 1px 0 0 rgba(255, 255, 255, 0.02) inset;
}

.brand { padding: 0 8px 18px; margin-bottom: 18px; border-bottom: 1px solid rgba(148, 163, 184, 0.08); gap: 14px; }
.brand-logo {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.28) inset,
        0 6px 22px rgba(139, 92, 246, 0.50),
        0 0 0 1px rgba(139, 92, 246, 0.22);
    border-radius: 12px;
}
.brand-title {
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    background: linear-gradient(135deg, #ffffff, #c4b5fd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.brand-sub {
    font-size: 9.5px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-top: 2px;
}

/* "MENU" section label */
.menu::before {
    content: "Navegação";
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: rgba(148, 163, 184, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    padding: 4px 14px 10px;
}

.menu a {
    padding: 10px 13px;
    border-radius: 10px;
    color: rgba(248, 250, 252, 0.78);
    font-weight: 600;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    border: 1px solid transparent;
    transition: all .18s ease;
    gap: 13px;
}
.menu a:hover {
    background: rgba(139, 92, 246, 0.08);
    color: var(--text);
    border-color: rgba(148, 163, 184, 0.10);
    transform: translateX(2px);
}
.menu a.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(99, 102, 241, 0.10));
    color: #ffffff;
    border: 1px solid rgba(139, 92, 246, 0.32);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 4px 18px rgba(139, 92, 246, 0.22);
}
.menu a.active::before {
    content: "";
    position: absolute;
    left: -14px; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 60%;
    background: linear-gradient(180deg, #8b5cf6, #06b6d4);
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.6);
}
.menu a { position: relative; }
.menu a.active svg { stroke: #c4b5fd; }
.menu a svg { opacity: 0.85; width: 16px; height: 16px; flex-shrink: 0; }

.badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.5);
}

.user-card {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.10);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    padding: 11px;
}
.user-avatar {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset, 0 4px 12px rgba(139, 92, 246, 0.35);
    width: 34px; height: 34px; font-size: 13px;
}
.user-name { font-size: 12.5px; }
.user-email { font-size: 10.5px; }

/* ---------- Top bar ---------- */
.topbar {
    background: rgba(5, 8, 22, 0.6);
    backdrop-filter: blur(28px) saturate(140%);
    -webkit-backdrop-filter: blur(28px) saturate(140%);
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    padding: 0 28px;
}
.topbar-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    background: linear-gradient(135deg, #f8fafc, #c4b5fd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.notify-btn, .theme-toggle {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.10);
    backdrop-filter: blur(8px);
    transition: all .18s ease;
}
.notify-btn:hover, .theme-toggle:hover {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.30);
    color: #c4b5fd;
}

/* ---------- Panels & cards (glassmorphism) ---------- */
.panel {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid rgba(148, 163, 184, 0.10);
    border-radius: var(--radius);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 8px 32px rgba(0, 0, 0, 0.35);
    transition: border-color .25s, box-shadow .25s;
}
.panel:hover {
    border-color: rgba(148, 163, 184, 0.18);
}
.panel-head {
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    padding: 18px 24px;
}
.panel-title {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(248, 250, 252, 0.92);
    margin: 0;
}
.panel-title::before {
    content: "";
    display: inline-block;
    width: 3px;
    height: 12px;
    background: linear-gradient(180deg, #8b5cf6, #06b6d4);
    border-radius: 2px;
    margin-right: 10px;
    vertical-align: -1px;
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.5);
}
.panel-body { padding: 24px; min-width: 0; max-width: 100%; }
.panel-body.p-0 {
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.stat-card {
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border: 1px solid rgba(148, 163, 184, 0.10);
    border-radius: var(--radius);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 4px 20px rgba(0, 0, 0, 0.25);
    padding: 20px;
    transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.4), transparent);
    opacity: 0;
    transition: opacity .25s;
}
.stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(139, 92, 246, 0.28);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.05) inset,
        0 14px 40px rgba(139, 92, 246, 0.18);
}
.stat-card:hover::before { opacity: 1; }

.stat-icon {
    width: 48px; height: 48px;
    border-radius: 13px;
    border: 1px solid rgba(148, 163, 184, 0.10);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset;
}
.stat-icon svg { width: 22px; height: 22px; }
.stat-icon.s-blue   { background: linear-gradient(135deg, rgba(99, 102, 241, 0.20), rgba(139, 92, 246, 0.20)); color: #a78bfa; }
.stat-icon.s-green  { background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(6, 182, 212, 0.18));   color: #34d399; }
.stat-icon.s-yellow { background: linear-gradient(135deg, rgba(245, 158, 11, 0.20), rgba(249, 115, 22, 0.20));  color: #fbbf24; }
.stat-icon.s-red    { background: linear-gradient(135deg, rgba(239, 68, 68, 0.20), rgba(220, 38, 38, 0.20));    color: #f87171; }

.stat-label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 4px;
}
.stat-value {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.05;
    background: linear-gradient(135deg, #ffffff, #c4b5fd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.03em;
}
.stat-meta {
    font-size: 11px;
    color: var(--muted);
    font-weight: 500;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ---------- Buttons ---------- */
.btn {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.14);
    color: var(--text);
    backdrop-filter: blur(8px);
    font-weight: 600;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: all .18s ease;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
    padding: 10px 16px;
}
.btn-sm {
    font-size: 10.5px;
    padding: 7px 12px;
    letter-spacing: 0.09em;
}
.btn:hover {
    background: rgba(139, 92, 246, 0.10);
    border-color: rgba(139, 92, 246, 0.35);
    color: var(--text);
    transform: translateY(-1px);
}

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    border: 1px solid rgba(139, 92, 246, 0.45);
    color: #fff;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.18) inset,
        0 4px 16px rgba(139, 92, 246, 0.40),
        0 0 0 1px rgba(139, 92, 246, 0.15);
    font-weight: 600;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #9d6dff 0%, #7c3aed 100%);
    border-color: rgba(139, 92, 246, 0.55);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.22) inset,
        0 8px 28px rgba(139, 92, 246, 0.55),
        0 0 0 1px rgba(139, 92, 246, 0.25);
    transform: translateY(-1px);
    color: #fff;
}
.btn-primary:active { transform: translateY(0); }

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 1px solid rgba(16, 185, 129, 0.45);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.18) inset,
        0 4px 14px rgba(16, 185, 129, 0.35);
    color: #fff;
}
.btn-success:hover {
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.22) inset,
        0 6px 22px rgba(16, 185, 129, 0.50);
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: 1px solid rgba(239, 68, 68, 0.45);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.18) inset,
        0 4px 14px rgba(239, 68, 68, 0.30);
    color: #fff;
}
.btn-danger:hover {
    background: linear-gradient(135deg, #f55656 0%, #ef4444 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.22) inset,
        0 6px 22px rgba(239, 68, 68, 0.50);
    transform: translateY(-1px);
}

.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: rgba(139, 92, 246, 0.08); border-color: rgba(139, 92, 246, 0.2); }

/* ---------- Forms ---------- */
.form-label {
    color: rgba(248, 250, 252, 0.85);
    font-weight: 600;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    margin-bottom: 4px;
}
.form-input, .form-select, .form-textarea {
    background: rgba(8, 12, 28, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.14);
    color: var(--text);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    padding: 10px 13px;
    font-size: 13px;
    transition: all .18s ease;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02) inset;
}
.form-input::placeholder, .form-textarea::placeholder {
    color: rgba(148, 163, 184, 0.45);
}
.form-input:hover, .form-select:hover, .form-textarea:hover {
    border-color: rgba(148, 163, 184, 0.22);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.55);
    background: rgba(8, 12, 28, 0.85);
    box-shadow:
        0 0 0 3px rgba(139, 92, 246, 0.18),
        0 0 24px rgba(139, 92, 246, 0.15);
}
.form-hint { color: rgba(148, 163, 184, 0.7); font-size: 11px; }
.form-actions { border-top: 1px solid rgba(148, 163, 184, 0.08); padding-top: 18px; margin-top: 20px; }

.checkbox input { accent-color: #8b5cf6; }

/* Filters bar */
.filters {
    background: rgba(8, 12, 28, 0.4);
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
    padding: 14px 22px;
    gap: 10px;
    min-width: 0;
    max-width: 100%;
}
.filters .form-input, .filters .form-select {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(148, 163, 184, 0.12);
    min-width: 0;
    max-width: 100%;
}
.filters > * {
    min-width: 0;
    max-width: 100%;
}

/* ---------- Status pills ---------- */
.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: max-content;
    max-width: 100%;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: 4px 9px;
    font-weight: 800;
    font-size: 10px;
    line-height: 1.15;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: none;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 8px 18px rgba(0, 0, 0, 0.18);
    --p-glow: 0;
}
.pill::before {
    flex: 0 0 auto;
    width: 6px; height: 6px;
    box-shadow: 0 0 8px currentColor;
}
.pill.safe {
    background: #064e3b;
    color: #d1fae5 !important;
    -webkit-text-fill-color: #d1fae5;
    border-color: #10b981;
}
.pill.warning {
    background: #78350f;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff;
    border-color: #f59e0b;
}
.pill.urgent  {
    background: #991b1b;
    color: #fff !important;
    -webkit-text-fill-color: #fff;
    border-color: #ef4444;
}
.pill.urgent * {
    color: #fff !important;
    -webkit-text-fill-color: #fff;
}
.pill.urgent::before {
    background: #fecaca;
    box-shadow: 0 0 8px rgba(254, 202, 202, 0.75);
}
.pill.expired {
    background: #450a0a;
    color: #fee2e2 !important;
    -webkit-text-fill-color: #fee2e2;
    border-color: #b91c1c;
}
.pill.unknown {
    background: #1e293b;
    color: #e2e8f0 !important;
    -webkit-text-fill-color: #e2e8f0;
    border-color: #475569;
    box-shadow: none;
}
.pill.safe *,
.pill.warning *,
.pill.expired *,
.pill.unknown * {
    color: inherit !important;
    -webkit-text-fill-color: inherit;
}

/* ---------- Tables ---------- */
.table th {
    background: rgba(8, 12, 28, 0.7);
    color: rgba(148, 163, 184, 0.85);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    border-bottom: 1px solid rgba(148, 163, 184, 0.10);
    padding: 14px 20px;
}
.table td {
    border-bottom: 1px solid rgba(148, 163, 184, 0.06);
    padding: 15px 20px;
    font-size: 13.5px;
    transition: background .15s;
}
.table tr:hover td {
    background: rgba(139, 92, 246, 0.05);
}
.domains-table tr {
    transition: background .16s ease, box-shadow .16s ease;
}
.domains-table {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}
.domains-table th,
.domains-table td {
    min-width: 0;
    overflow-wrap: anywhere;
    vertical-align: middle;
}
.domains-table tr:hover {
    box-shadow: 0 1px 0 rgba(139, 92, 246, 0.18) inset, 0 -1px 0 rgba(139, 92, 246, 0.18) inset;
}
.domains-table .domain-cell {
    position: relative;
    min-width: 0;
    padding-left: 26px;
}
.domains-table .domain-cell::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    width: 4px;
    height: 30px;
    border-radius: 999px;
    background: linear-gradient(180deg, #8b5cf6, #06b6d4);
    transform: translateY(-50%);
    opacity: 0.78;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.38);
}
.table .domain-cell a {
    display: inline-block;
    max-width: 100%;
    color: #ffffff;
    font-size: 16px;
    line-height: 1.25;
    font-weight: 800;
    letter-spacing: 0;
    overflow-wrap: anywhere;
    text-decoration: none;
}
.table .domain-cell a:hover {
    color: #c4b5fd;
    text-decoration: none;
}
.table .domain-cell small {
    display: block;
    margin-top: 4px;
    color: rgba(203, 213, 225, 0.76);
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.3;
}
.domains-table th:nth-child(1), .domains-table td:nth-child(1) { width: 34px; }
.domains-table th:nth-child(2), .domains-table td:nth-child(2) { width: 38px; }
.domains-table th:nth-child(3), .domains-table td:nth-child(3) { width: 24%; }
.domains-table th:nth-child(4), .domains-table td:nth-child(4) { width: 10%; }
.domains-table th:nth-child(5), .domains-table td:nth-child(5) { width: 13%; }
.domains-table th:nth-child(6), .domains-table td:nth-child(6) { width: 11%; }
.domains-table th:nth-child(7), .domains-table td:nth-child(7) { width: 7%; }
.domains-table th:nth-child(8), .domains-table td:nth-child(8) { width: 8%; }
.domains-table th:nth-child(9), .domains-table td:nth-child(9) { width: 10%; }
.domains-table th:nth-child(10), .domains-table td:nth-child(10) { width: 15%; }
.domains-table td:nth-child(10) .flex {
    flex-wrap: wrap;
    gap: 6px;
}
.domains-table td:nth-child(10) .btn-sm {
    padding: 6px 8px;
    min-width: 30px;
}
.domains-table .pill {
    max-width: 100%;
    white-space: nowrap;
}
.domains-table td:nth-child(7) .pill,
.domains-table td:nth-child(8) .pill,
.domains-table td:nth-child(9) .pill {
    font-size: 9.5px;
    padding: 4px 7px;
}
.domains-table td:nth-child(9) .pill {
    white-space: normal;
    text-align: center;
}
.domains-mobile-list {
    display: none;
}

/* ---------- Tags ---------- */
.tag {
    background: rgba(139, 92, 246, 0.10);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.18);
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 10.5px;
    font-weight: 500;
    backdrop-filter: blur(8px);
}

/* ---------- Chart bars ---------- */
.chart-wrap { padding: 18px 8px 4px; }
.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 200px;
    padding: 22px 4px 0;
}
.bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
}
.bar {
    background: linear-gradient(180deg, #a78bfa, #6366f1);
    border-radius: 6px 6px 0 0;
    box-shadow:
        0 0 0 1px rgba(139, 92, 246, 0.3) inset,
        0 0 16px rgba(139, 92, 246, 0.25);
    transition: all .25s;
    position: relative;
}
.bar:hover {
    filter: brightness(1.15);
    box-shadow:
        0 0 0 1px rgba(139, 92, 246, 0.5) inset,
        0 0 28px rgba(139, 92, 246, 0.5);
}
.bar-empty {
    background: rgba(148, 163, 184, 0.12);
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.10) inset;
}
.bar-empty:hover { filter: none; box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.18) inset; }
.bar-value {
    color: #c4b5fd;
    font-weight: 700;
    font-size: 11px;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
}

/* ---------- Countdown card ---------- */
.countdown-card {
    background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.2) inset,
        0 12px 40px rgba(139, 92, 246, 0.40);
    position: relative;
    overflow: hidden;
}
.countdown-card::after {
    content: "";
    position: absolute;
    inset: -50% -50% auto auto;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.15), transparent 50%);
    pointer-events: none;
}
.countdown-card.warning {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.2) inset,
        0 12px 40px rgba(245, 158, 11, 0.40);
}
.countdown-card.urgent {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.2) inset,
        0 12px 40px rgba(239, 68, 68, 0.40);
}
.countdown-num { font-size: 52px; font-weight: 800; }

/* ---------- Tabs ---------- */
.tabs { border-bottom: 1px solid rgba(148, 163, 184, 0.10); padding: 0 20px; gap: 2px; }
.tab {
    color: var(--muted);
    font-weight: 600;
    padding: 15px 18px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    transition: color .18s;
    position: relative;
}
.tab.active {
    color: #c4b5fd;
    border-bottom-color: #8b5cf6;
    text-shadow: 0 0 18px rgba(139, 92, 246, 0.5);
}
.tab:hover:not(.active) { color: rgba(248, 250, 252, 0.85); }

/* ---------- Timeline ---------- */
.timeline::before { background: linear-gradient(180deg, rgba(139, 92, 246, 0.3), transparent); }
.timeline-item::before {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15), 0 0 12px rgba(139, 92, 246, 0.5);
}

/* ---------- Alerts list ---------- */
.alert-item {
    transition: background .18s;
    border-bottom: 1px solid rgba(148, 163, 184, 0.06);
}
.alert-item:hover { background: rgba(139, 92, 246, 0.04); }
.alert-item.unread { background: linear-gradient(90deg, rgba(139, 92, 246, 0.10), transparent 60%); }
.alert-icon {
    border: 1px solid rgba(148, 163, 184, 0.10);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}
.alert-icon.info    { background: rgba(99, 102, 241, 0.15); color: #a78bfa; }
.alert-icon.warning { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.alert-icon.danger  { background: rgba(239, 68, 68, 0.15);  color: #f87171; }

/* ---------- Flash messages ---------- */
.flash {
    backdrop-filter: blur(12px);
    border-radius: 12px;
    font-weight: 500;
}
.flash-ok  { background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.4);  color: #34d399; box-shadow: 0 4px 24px rgba(16, 185, 129, 0.15); }
.flash-err { background: rgba(239, 68, 68, 0.12);  border-color: rgba(239, 68, 68, 0.4);   color: #f87171; box-shadow: 0 4px 24px rgba(239, 68, 68, 0.15); }

/* ---------- Toast ---------- */
.toast {
    background: rgba(8, 12, 28, 0.95);
    backdrop-filter: blur(20px);
    color: var(--text);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(139, 92, 246, 0.2);
    font-weight: 500;
}
.toast.ok  { background: linear-gradient(135deg, #10b981, #059669); border-color: rgba(16, 185, 129, 0.5); box-shadow: 0 12px 40px rgba(16, 185, 129, 0.35); color: #fff; }
.toast.err { background: linear-gradient(135deg, #ef4444, #dc2626); border-color: rgba(239, 68, 68, 0.5);  box-shadow: 0 12px 40px rgba(239, 68, 68, 0.35);  color: #fff; }

/* ---------- Bulk actions layout ---------- */
#bulkBar {
    flex-wrap: wrap;
    overflow: visible !important;
}
#bulkBar > * {
    min-width: 0;
}
#bulkBar .form-select {
    min-width: 150px;
}

/* ---------- Bulk progress ---------- */
.bulk-progress {
    flex: 1 1 260px;
    min-width: 240px;
    padding: 8px 10px;
    border: 1px solid rgba(139, 92, 246, 0.22);
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.20);
}
.bulk-progress[hidden] { display: none !important; }
.bulk-progress-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    font-size: 11px;
    color: var(--muted);
}
.bulk-progress-info span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.bulk-progress-info strong {
    width: auto !important;
    color: var(--text);
    font-size: 11px;
    letter-spacing: 0;
    white-space: nowrap;
}
.bulk-progress-track {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
}
.bulk-progress-track span {
    display: block;
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #8b5cf6, #06b6d4);
    transition: width .22s ease;
}
.bulk-progress.has-errors {
    border-color: rgba(239, 68, 68, 0.38);
}
.bulk-progress.has-errors .bulk-progress-track span {
    background: linear-gradient(90deg, #f59e0b, #ef4444);
}

/* ---------- Login page ---------- */
.login-page {
    background:
        radial-gradient(60% 50% at 30% 0%, rgba(139, 92, 246, 0.30), transparent 60%),
        radial-gradient(50% 40% at 80% 80%, rgba(6, 182, 212, 0.22), transparent 60%),
        radial-gradient(40% 30% at 0% 80%, rgba(99, 102, 241, 0.20), transparent 60%),
        linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px),
        #050816;
    background-size: 100% 100%, 100% 100%, 100% 100%, 36px 36px, 36px 36px, 100% 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    padding: max(24px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}
.login-card {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(28px) saturate(150%);
    -webkit-backdrop-filter: blur(28px) saturate(150%);
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 18px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 24px 70px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(139, 92, 246, 0.10),
        0 0 80px rgba(139, 92, 246, 0.18);
    padding: 40px 36px;
    width: 100%;
    max-width: 420px;
    animation: dgLoginIn .35s cubic-bezier(.2,1,.4,1) both;
}
@keyframes dgLoginIn {
    from { opacity: 0; transform: translateY(12px) scale(.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.login-logo { text-align: center; margin-bottom: 28px; }
.login-logo svg {
    width: 56px; height: 56px;
    filter: drop-shadow(0 6px 20px rgba(139, 92, 246, 0.50));
    color: #8b5cf6;
}
.login-title {
    font-size: 22px;
    background: linear-gradient(135deg, #ffffff, #c4b5fd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: 12px;
    line-height: 1.1;
}
.login-sub { color: var(--muted); margin-top: 4px; }

/* Inputs com ícone */
.input-icon { position: relative; }
.input-icon > svg {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    width: 16px; height: 16px;
    color: rgba(148, 163, 184, 0.55);
    pointer-events: none;
    transition: color .15s;
}
.input-icon .form-input {
    padding-left: 40px;
    padding-right: 14px;
    font-size: 14px;
    height: 46px;
}
.input-icon:focus-within > svg { color: #c4b5fd; }
.input-icon > .pwd-toggle {
    position: absolute;
    right: 8px; top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    color: rgba(148, 163, 184, 0.6);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    display: grid; place-items: center;
    transition: all .15s;
}
.input-icon > .pwd-toggle svg { width: 16px; height: 16px; }
.input-icon > .pwd-toggle:hover { color: #c4b5fd; background: rgba(139, 92, 246, 0.10); }
.input-icon > .pwd-toggle.on { color: #c4b5fd; }
.input-icon > .pwd-toggle.on::after {
    content: "";
    position: absolute;
    inset: 50% 50% auto auto;
    transform: translate(50%, -50%) rotate(-45deg);
    width: 18px; height: 1.5px;
    background: currentColor;
    border-radius: 1px;
}
.input-icon .form-input[type="password"] { padding-right: 14px; }
.input-icon .pwd-toggle ~ .form-input,
.input-icon:has(.pwd-toggle) .form-input { padding-right: 40px; }

.login-submit {
    width: 100%;
    justify-content: center;
    padding: 14px;
    font-size: 12px;
    letter-spacing: 0.12em;
    margin-top: 4px;
}

/* ---------- Detail header ---------- */
.detail-domain {
    font-family: 'JetBrains Mono', monospace;
    background: linear-gradient(135deg, #ffffff, #c4b5fd);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ---------- Info list ---------- */
.info-list { gap: 18px; }
.info-label {
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(148, 163, 184, 0.75);
    font-weight: 600;
    margin-bottom: 2px;
}
.info-value { font-size: 14px; color: var(--text); font-weight: 500; }

/* ---------- Spinner ---------- */
.spinner {
    border: 2px solid rgba(148, 163, 184, 0.2);
    border-top-color: #c4b5fd;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.3);
}

/* ---------- Favorite button ---------- */
.fav-btn { color: rgba(148, 163, 184, 0.5); }
.fav-btn.active {
    color: #fbbf24;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.6));
}

/* ---------- Terminal / WHOIS raw / log boxes ---------- */
.tab-content pre,
[id="bLog"],
textarea[name="raw"],
.terminal {
    background: linear-gradient(180deg, rgba(2, 4, 12, 0.85), rgba(5, 8, 22, 0.75)) !important;
    border: 1px solid rgba(148, 163, 184, 0.10) !important;
    border-radius: 12px !important;
    font-family: 'JetBrains Mono', monospace !important;
    color: #cbd5e1;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 4px 24px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
}
.tab-content pre {
    line-height: 1.6;
    font-size: 11.5px;
}

/* Mac-window dots for the WHOIS pre */
.tab-content[data-content="whois"] pre {
    padding-top: 38px !important;
    position: relative;
}
.tab-content[data-content="whois"] pre::before {
    content: "";
    position: absolute;
    top: 14px; left: 14px;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: #ff5f57;
    box-shadow:
        20px 0 0 #febc2e,
        40px 0 0 #28c840,
        0 0 0 0.5px rgba(0,0,0,0.2);
}
.tab-content[data-content="whois"] pre::after {
    content: "whois — terminal";
    position: absolute;
    top: 14px; left: 0; right: 0;
    text-align: center;
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
    pointer-events: none;
}

/* Batch log lines */
[id="bLog"] > div {
    background: transparent !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.06) !important;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    transition: background .15s;
}
[id="bLog"] > div:hover { background: rgba(139, 92, 246, 0.05) !important; }

/* Progress bar premium */
[id="bBar"] {
    background: linear-gradient(90deg, #8b5cf6, #06b6d4) !important;
    box-shadow: 0 0 24px rgba(139, 92, 246, 0.5);
}

/* ---------- Scrollbars ---------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(5, 8, 22, 0.4); }
::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.25);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background-color: rgba(139, 92, 246, 0.5); background-clip: padding-box; }

/* ---------- Selection ---------- */
::selection { background: rgba(139, 92, 246, 0.35); color: #fff; }

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.panel, .stat-card { animation: fadeInUp .35s ease both; }
.stats-grid .stat-card:nth-child(1) { animation-delay: 0ms; }
.stats-grid .stat-card:nth-child(2) { animation-delay: 60ms; }
.stats-grid .stat-card:nth-child(3) { animation-delay: 120ms; }
.stats-grid .stat-card:nth-child(4) { animation-delay: 180ms; }

@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 0 currentColor; }
    50%      { box-shadow: 0 0 0 6px transparent; }
}
.pill.urgent::before, .pill.expired::before { animation: pulseDot 2s infinite; }

/* ---------- Inputs spacing & rhythm ---------- */
.content { padding: 28px 32px 80px; }
.stats-grid { gap: 18px; margin-bottom: 26px; }
.grid-2 { gap: 22px; }
.panel { margin-bottom: 22px; }

/* ---------- Hide theme toggle visually (we're locked to premium dark) ---------- */
.theme-toggle { display: none; }

/* ---------- Command Palette (Cmd+K) ---------- */
.dg-palette {
    position: fixed; inset: 0;
    z-index: 1000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding-top: 12vh;
}
.dg-palette.open { display: flex; animation: dgFade .15s ease both; }
@keyframes dgFade { from { opacity: 0; } to { opacity: 1; } }
.dg-palette-backdrop {
    position: absolute; inset: 0;
    background: rgba(5, 8, 22, 0.7);
    backdrop-filter: blur(12px) saturate(140%);
}
.dg-palette-box {
    position: relative;
    width: 100%;
    max-width: 640px;
    margin: 0 16px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(28px) saturate(160%);
    border: 1px solid rgba(139, 92, 246, 0.28);
    border-radius: 16px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.08) inset,
        0 24px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(139, 92, 246, 0.15),
        0 0 80px rgba(139, 92, 246, 0.25);
    overflow: hidden;
    animation: dgPop .18s cubic-bezier(.2,1,.4,1) both;
}
@keyframes dgPop {
    from { transform: translateY(-12px) scale(.98); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}
.dg-palette-search {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.10);
}
.dg-palette-search svg { color: #94a3b8; flex-shrink: 0; }
.dg-palette-search input {
    flex: 1;
    background: transparent;
    border: 0;
    outline: 0;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.01em;
}
.dg-palette-search input::placeholder { color: rgba(148, 163, 184, 0.55); }
.dg-kbd, kbd {
    background: rgba(148, 163, 184, 0.10);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 5px;
    padding: 2px 7px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10.5px;
    font-weight: 600;
    color: rgba(248, 250, 252, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    box-shadow: 0 1px 0 rgba(0,0,0,0.3);
}
.dg-palette-results {
    max-height: 56vh;
    overflow: auto;
    padding: 8px 8px 12px;
}
.dg-group {
    padding: 12px 14px 6px;
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 700;
    color: rgba(148, 163, 184, 0.65);
}
.dg-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 9px;
    color: var(--text);
    text-decoration: none;
    transition: background .12s;
    cursor: pointer;
}
.dg-item:hover, .dg-item.active {
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.18), rgba(99, 102, 241, 0.08));
    text-decoration: none;
}
.dg-item.active {
    box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.30) inset;
}
.dg-icon {
    width: 32px; height: 32px;
    display: grid; place-items: center;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.20);
    border-radius: 8px;
    color: #c4b5fd;
    font-size: 14px;
    flex-shrink: 0;
}
.dg-text { flex: 1; min-width: 0; }
.dg-title {
    font-weight: 600;
    font-size: 13.5px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dg-title mark {
    background: rgba(139, 92, 246, 0.35);
    color: #fff;
    padding: 0 2px;
    border-radius: 3px;
}
.dg-sub {
    font-size: 10.5px;
    color: rgba(148, 163, 184, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 2px;
    font-weight: 500;
}
.dg-enter {
    opacity: 0;
    color: #c4b5fd;
    font-weight: 700;
    transition: opacity .15s;
}
.dg-item.active .dg-enter { opacity: 1; }
.dg-pill {
    font-size: 9.5px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.dg-pill.saf { background: rgba(16, 185, 129, 0.18); color: #34d399; }
.dg-pill.war { background: rgba(245, 158, 11, 0.18); color: #fbbf24; }
.dg-pill.urg { background: rgba(239, 68, 68, 0.20);  color: #f87171; }
.dg-pill.exp { background: rgba(239, 68, 68, 0.25);  color: #f87171; }
.dg-empty {
    padding: 30px;
    text-align: center;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.10em;
    font-size: 11px;
    font-weight: 500;
}
.dg-palette-footer {
    display: flex;
    gap: 18px;
    padding: 10px 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.10);
    font-size: 10.5px;
    color: rgba(148, 163, 184, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(8, 12, 28, 0.55);
}
.dg-shortcut {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 0;
}
.dg-shortcut span { color: rgba(248, 250, 252, 0.7); font-size: 12px; margin-left: 6px; }

/* "Press Ctrl+K" hint in topbar */
.dg-kbd-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.10);
    border-radius: 8px;
    color: rgba(148, 163, 184, 0.75);
    font-size: 11px;
    cursor: pointer;
    transition: all .15s;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.dg-kbd-hint:hover {
    background: rgba(139, 92, 246, 0.10);
    border-color: rgba(139, 92, 246, 0.30);
    color: #c4b5fd;
}

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    border-top: 1px solid rgba(148, 163, 184, 0.08);
    background: rgba(8, 12, 28, 0.4);
    flex-wrap: wrap;
}
.pagination-info {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: rgba(148, 163, 184, 0.85);
    font-weight: 500;
}
.pagination-info strong { color: var(--text); font-weight: 700; }

.pagination-pages {
    display: flex;
    align-items: center;
    gap: 4px;
}
.page-btn {
    min-width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.10);
    border-radius: 8px;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    text-decoration: none;
    transition: all .15s ease;
    cursor: pointer;
}
.page-btn:hover {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.35);
    color: #c4b5fd;
    text-decoration: none;
    transform: translateY(-1px);
}
.page-btn.current {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    border-color: rgba(139, 92, 246, 0.55);
    color: #fff;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.18) inset,
        0 4px 14px rgba(139, 92, 246, 0.4);
    cursor: default;
}
.page-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.page-ellipsis {
    color: rgba(148, 163, 184, 0.5);
    padding: 0 6px;
    font-weight: 600;
}

.pagination-size {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    color: rgba(148, 163, 184, 0.75);
    font-weight: 600;
}
.size-btn {
    padding: 5px 10px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.10);
    border-radius: 6px;
    color: var(--text);
    font-size: 11px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
    text-decoration: none;
    transition: all .15s ease;
}
.size-btn:hover {
    background: rgba(139, 92, 246, 0.12);
    border-color: rgba(139, 92, 246, 0.30);
    color: #c4b5fd;
    text-decoration: none;
}
.size-btn.current {
    background: rgba(139, 92, 246, 0.22);
    border-color: rgba(139, 92, 246, 0.45);
    color: #c4b5fd;
    cursor: default;
}

@media (max-width: 720px) {
    .pagination { gap: 12px; padding: 14px 16px; }
    .pagination-info { font-size: 10.5px; flex: 1; min-width: 100%; }
    .page-btn { min-width: 28px; height: 28px; font-size: 11px; padding: 0 8px; }
    .pagination-size { width: 100%; justify-content: flex-end; }
}

/* ---------- v2 Polish: tighter hierarchy & uppercase rhythm ---------- */
.detail-domain { font-size: 26px; }
.detail-meta .tag { font-size: 10px; letter-spacing: 0.10em; padding: 4px 10px; }

.tag {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    font-size: 10px;
    padding: 3px 10px;
}

.alert-title { font-size: 13.5px; font-weight: 600; }
.alert-meta {
    font-size: 10.5px;
    color: rgba(148, 163, 184, 0.75);
    text-transform: uppercase;
    letter-spacing: 0.10em;
    font-weight: 600;
    margin-top: 4px;
}

.timeline-time {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: rgba(148, 163, 184, 0.7);
    font-weight: 600;
}
.timeline-text { font-size: 13.5px; font-weight: 500; }
.timeline-text small {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-top: 3px;
}

.bar-label {
    font-size: 9.5px !important;
    text-transform: uppercase;
    letter-spacing: 0.10em;
    font-weight: 600;
    color: rgba(148, 163, 184, 0.7);
    margin-top: 8px;
}

.filters .form-input, .filters .form-select, .filters .checkbox {
    font-size: 12px;
}
.search-input {
    font-size: 13px !important;
    letter-spacing: 0;
}

.countdown-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 700;
    opacity: 0.95;
    margin-top: 6px;
}

.user-card { padding: 12px; gap: 11px; }
.user-name { font-size: 12.5px; font-weight: 600; }
.user-email {
    font-size: 9.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(148, 163, 184, 0.65);
}

.login-title {
    font-size: 22px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
    margin-top: 14px;
}
.login-sub {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.20em;
    font-weight: 600;
    margin-bottom: 30px;
}

.flash {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 11.5px;
    padding: 14px 18px;
}

.form-hint {
    font-size: 10.5px;
    color: rgba(148, 163, 184, 0.65);
    margin-top: 4px;
    letter-spacing: 0.01em;
}

.empty {
    padding: 60px 20px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(148, 163, 184, 0.7);
    font-weight: 500;
}
.empty p { margin: 10px 0 18px; }

/* Filters bar uppercase */
.filters { padding: 16px 24px; gap: 12px; }

/* Detail header spacing */
.detail-header { margin-bottom: 24px; gap: 20px; }

/* Slight content padding upgrade */
.content { padding: 32px 36px 80px; }
.stats-grid { gap: 20px; margin-bottom: 28px; }
.grid-2 { gap: 24px; }
.panel { margin-bottom: 24px; }

/* Toast - keep uppercase */
.toast {
    text-transform: uppercase;
    letter-spacing: 0.10em;
    font-size: 11.5px;
    padding: 14px 22px;
}

/* =============================================================
   RESPONSIVE SYSTEM
   Breakpoints:
   - 1200px: laptop / janela média
   - 900px:  tablet landscape / janela pequena
   - 720px:  tablet portrait / mobile largo (sidebar vira drawer)
   - 540px:  mobile médio (1 coluna, tabela colapsa)
   - 380px:  mobile pequeno (ajustes finos)
   ============================================================= */

/* ---------- 1200px: laptop ---------- */
@media (max-width: 1200px) {
    :root { --sidebar-w: 220px; }
    .content { padding: 24px 22px 60px; }
    .stats-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
    .stat-value { font-size: 28px; }
    .table th, .table td { padding: 12px 14px; }
    .panel-body { padding: 20px; }
}

/* ---------- 900px: tablet landscape ---------- */
@media (max-width: 900px) {
    .content { padding: 22px 18px 60px; }
    .grid-2 { grid-template-columns: 1fr; gap: 18px; }
    .info-list { grid-template-columns: 1fr 1fr; gap: 14px; }
    .form-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .stat-value { font-size: 26px; }
    .detail-header { flex-direction: column; align-items: stretch; }
    .detail-header > div:last-child { width: 100%; flex-wrap: wrap; }
    .detail-domain { font-size: 22px; }
    .filters { padding: 14px 18px; gap: 10px; }
    .panel-head { padding: 14px 18px; flex-wrap: wrap; gap: 10px; }
    .pagination { padding: 14px 18px; gap: 12px; }
}

/* ---------- 720px: tablet portrait & mobile largo ---------- */
@media (max-width: 720px) {
    :root { --topbar-h: 56px; }

    body {
        background-size: 28px 28px, 28px 28px, 100% 100%, 100% 100%, 100% 100%;
        font-size: 13.5px;
    }

    /* Sidebar vira drawer */
    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        width: 280px;
        transform: translateX(-100%);
        transition: transform .25s cubic-bezier(.4, 0, .2, 1);
        z-index: 60;
        box-shadow: 0 0 60px rgba(0, 0, 0, 0.6);
    }
    .sidebar.open { transform: translateX(0); }

    /* Overlay backdrop quando sidebar abre */
    .sidebar.open::after {
        content: "";
        position: fixed;
        top: 0; bottom: 0;
        left: 280px;
        right: -100vw;
        background: rgba(5, 8, 22, 0.7);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        z-index: -1;
        animation: dgFadeIn .2s ease both;
    }
    @keyframes dgFadeIn { from { opacity: 0; } to { opacity: 1; } }

    .main { margin-left: 0; }
    .menu-toggle { display: block; padding: 6px; }
    .content { padding: 16px 14px 60px; }

    /* Topbar compacta */
    .topbar { padding: 0 14px; gap: 10px; }
    .topbar-title { font-size: 11.5px; letter-spacing: 0.1em; }
    .topbar-actions { gap: 6px; }
    .topbar-actions .btn-primary { padding: 8px 12px; font-size: 10.5px; }
    .notify-btn, .theme-toggle { width: 34px; height: 34px; }

    /* Stats: 2 colunas mantém */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 18px;
    }
    .stat-card { padding: 14px; gap: 10px; flex-direction: column; align-items: flex-start; }
    .stat-icon { width: 38px; height: 38px; }
    .stat-icon svg { width: 18px; height: 18px; }
    .stat-value { font-size: 24px; }
    .stat-label { font-size: 9.5px; }
    .stat-meta { font-size: 10px; margin-top: 4px; }

    /* Panels */
    .panel { margin-bottom: 16px; border-radius: 12px; }
    .panel-head { padding: 12px 14px; }
    .panel-title { font-size: 10.5px; letter-spacing: 0.10em; }
    .panel-body { padding: 16px 14px; }
    .panel-body.p-0 { padding: 0; }

    /* Detail header */
    .detail-header { gap: 12px; }
    .detail-domain { font-size: 18px; flex-wrap: wrap; }
    .detail-meta { gap: 6px; }
    .detail-header .flex { flex-wrap: wrap; gap: 6px; }
    .detail-header .btn { flex: 1 1 calc(50% - 4px); justify-content: center; }

    /* Countdown */
    .countdown-card { padding: 18px; }
    .countdown-num { font-size: 38px; }
    .countdown-label { font-size: 10px; letter-spacing: 0.12em; }

    /* Info list em 1 coluna */
    .info-list { grid-template-columns: 1fr; gap: 12px; }
    .info-list .info { padding: 10px 12px; background: rgba(8, 12, 28, 0.4); border-radius: 8px; border: 1px solid rgba(148, 163, 184, 0.08); }

    /* Forms full width */
    .form-grid, .form-grid.full { grid-template-columns: 1fr; gap: 12px; }
    .form-group.span-2 { grid-column: 1; }
    .form-input, .form-select, .form-textarea { font-size: 14px; padding: 11px 13px; }
    .form-row-input { flex-direction: column; }
    .form-actions { flex-direction: column-reverse; gap: 8px; }
    .form-actions .btn { width: 100%; justify-content: center; padding: 12px; }

    /* Filtros stack */
    .filters { padding: 12px 14px; flex-direction: column; align-items: stretch; gap: 8px; }
    .filters .form-input, .filters .form-select { width: 100%; flex: 1 1 auto; min-width: 0; font-size: 13px; }
    .filters .checkbox { padding: 6px 0; }
    .filters .btn { width: 100%; justify-content: center; }
    .filters .btn[style*="margin-left:auto"] { margin-left: 0 !important; }
    .search-input { min-width: 0; }

    /* Tabela: scroll horizontal */
    .panel-body.p-0 > table.table,
    .panel > table.table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
    .panel-body.p-0 > table.domains-table,
    .panel > table.domains-table {
        overflow-x: hidden;
        white-space: normal;
    }
    .table th, .table td {
        padding: 11px 12px;
        font-size: 12px;
    }
    .table .domain-cell a { font-size: 15px; }
    .table .domain-cell small { font-size: 11px; }

    /* Botões de ação no row: empilha verticalmente em mobile MUITO pequeno via 480px */
    .table .flex.gap-8 .btn-sm { padding: 6px 8px; min-width: 28px; }

    /* Bulk bar */
    #bulkBar {
        flex-wrap: wrap;
        min-width: 0;
        max-width: 100%;
        overflow: visible !important;
        gap: 8px !important;
        padding: 12px 14px !important;
    }
    #bulkBar strong { width: 100%; }
    #bulkBar .btn, #bulkBar .form-select { flex: 1 1 calc(50% - 4px); }
    #bulkBar > * { min-width: 0; max-width: 100%; }
    #bulkBar .bulk-progress { flex: 1 1 100%; min-width: 0; }
    #bulkBar .bulk-progress-info strong { width: auto !important; }
    #bulkBar #bulkClear { margin-left: 0 !important; flex: 0 0 auto; }

    /* Paginação stack */
    .pagination { flex-direction: column; gap: 12px; padding: 14px; align-items: stretch; }
    .pagination-info { text-align: center; font-size: 10.5px; }
    .pagination-pages { justify-content: center; flex-wrap: wrap; }
    .page-btn { min-width: 30px; height: 30px; font-size: 11.5px; }
    .pagination-size { justify-content: center; flex-wrap: wrap; }

    /* Login card */
    .login-page { padding: 16px; }
    .login-card { padding: 32px 24px; border-radius: 16px; max-width: 100%; }
    .login-logo svg { width: 48px; height: 48px; }
    .login-logo { margin-bottom: 22px; }
    .login-title { font-size: 19px; margin-top: 10px; letter-spacing: 0.10em; }
    .login-sub { font-size: 9.5px; letter-spacing: 0.16em; margin-bottom: 22px; }
    .input-icon .form-input { font-size: 16px; height: 48px; } /* 16px evita zoom iOS */
    .login-submit { padding: 14px; font-size: 12px; }

    /* Tabs scrolláveis */
    .tabs { overflow-x: auto; flex-wrap: nowrap; padding: 0 4px; -webkit-overflow-scrolling: touch; }
    .tab { white-space: nowrap; padding: 12px 14px; font-size: 10.5px; }

    /* Charts: scroll horizontal em mobile com mín-largura por barra */
    .chart-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 8px 4px 4px; }
    .chart-wrap::-webkit-scrollbar { height: 6px; }
    .bar-chart { height: 160px; padding: 22px 4px 0; gap: 8px; min-width: 100%; }
    .bar-col { min-width: 28px; }
    .bar { border-radius: 5px 5px 0 0; min-height: 6px; }
    .bar-value { font-size: 10px; font-weight: 700; top: -18px; }
    .bar-label {
        font-size: 9px;
        letter-spacing: 0.04em;
        margin-top: 6px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Alerts list */
    .alert-item { padding: 12px 14px; gap: 10px; }
    .alert-icon { width: 32px; height: 32px; }
    .alert-title { font-size: 12.5px; }
    .alert-meta { font-size: 9.5px; }

    /* Brand title menor no drawer */
    .brand-title { font-size: 14px; }
    .brand-sub { font-size: 9px; }

    /* Flash mensagens */
    .flash { margin: 12px 14px 0; padding: 11px 14px; font-size: 11px; }

    /* Toast */
    .toast { bottom: 16px; right: 16px; left: 16px; text-align: center; }
}

/* ---------- 540px: mobile médio ---------- */
@media (max-width: 540px) {
    .stats-grid { grid-template-columns: 1fr; }
    .stat-card { flex-direction: row; align-items: center; }
    .detail-header .btn { flex: 1 1 100%; }

    /* Tabela: oculta colunas menos críticas */
    .table th:nth-child(5), .table td:nth-child(5),   /* Registradora */
    .table th:nth-child(7), .table td:nth-child(7),   /* SSL */
    .table th:nth-child(8), .table td:nth-child(8) {  /* HTTP */
        display: none;
    }

    .countdown-num { font-size: 34px; }
    .login-card { padding: 24px 18px; }
    .form-grid { gap: 10px; }

    /* Ações compactas na ficha */
    .detail-header .btn { font-size: 10px; padding: 9px 10px; }
}

/* ---------- 380px: mobile pequeno ---------- */
@media (max-width: 380px) {
    .topbar-actions .btn-primary { display: none; }
    .topbar-title { font-size: 10px; }
    .stat-value { font-size: 21px; }
    .table th:nth-child(4), .table td:nth-child(4) { display: none; } /* Categoria */
    .content { padding: 12px 10px 50px; }
    .panel-body { padding: 14px 12px; }

    #bulkBar .btn, #bulkBar .form-select {
        flex: 1 1 100%;
        width: 100%;
    }
    #bulkBar #bulkClear {
        flex: 1 1 100%;
    }
    #bulkBar .bulk-progress-info {
        gap: 8px;
    }

    /* Login pequeno */
    .login-card { padding: 26px 18px; }
    .login-logo svg { width: 42px; height: 42px; }
    .login-title { font-size: 17px; }
    .login-sub { font-size: 9px; letter-spacing: 0.14em; }

    /* Chart fica mais apertado */
    .bar-col { min-width: 22px; }
    .bar-label { font-size: 8.5px; }
}

/* Hover desabilitado em touch */
@media (hover: none) {
    .stat-card:hover, .btn:hover, .panel:hover, .menu a:hover { transform: none; }
    .table tr:hover td { background: transparent; }
}

/* ---------- Domains list mobile cards ---------- */
@media (max-width: 720px) {
    .domains-table {
        display: none !important;
    }

    .domains-mobile-list {
        display: grid;
        gap: 12px;
        padding: 12px;
    }

    .domain-card {
        background: rgba(15, 23, 42, 0.66);
        border: 1px solid rgba(148, 163, 184, 0.14);
        border-radius: 12px;
        padding: 14px;
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 8px 22px rgba(0, 0, 0, 0.20);
    }

    .domain-card-head {
        display: grid;
        grid-template-columns: 28px minmax(0, 1fr) 32px;
        align-items: center;
        gap: 10px;
    }

    .domain-card-title {
        min-width: 0;
    }

    .domain-card-title a {
        display: block;
        color: #fff;
        font-size: 16px;
        font-weight: 800;
        line-height: 1.2;
        letter-spacing: 0;
        overflow-wrap: anywhere;
        text-decoration: none;
    }

    .domain-card-title small {
        display: block;
        margin-top: 4px;
        color: rgba(203, 213, 225, 0.78);
        font-size: 11px;
        font-weight: 500;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    .domain-card-status {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 12px;
    }

    .domain-card-status .pill,
    .domain-card-status .tag,
    .domain-card-info .pill {
        width: auto;
        max-width: 100%;
        white-space: nowrap;
    }

    .domain-card-info {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 12px;
    }

    .domain-card-info > div {
        min-width: 0;
        padding: 10px;
        background: rgba(8, 12, 28, 0.42);
        border: 1px solid rgba(148, 163, 184, 0.10);
        border-radius: 9px;
    }

    .domain-card-info span:first-child {
        display: block;
        margin-bottom: 5px;
        color: rgba(148, 163, 184, 0.76);
        font-size: 9px;
        font-weight: 800;
        letter-spacing: 0.10em;
        text-transform: uppercase;
    }

    .domain-card-info strong {
        display: block;
        color: rgba(248, 250, 252, 0.94);
        font-size: 12.5px;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    .domain-card-info small {
        display: block;
        margin-top: 3px;
        color: rgba(148, 163, 184, 0.78);
        font-size: 10.5px;
    }

    .domain-card-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-top: 12px;
    }

    .domain-card-actions .btn {
        width: 100%;
        justify-content: center;
        padding: 9px 8px;
        white-space: nowrap;
    }

    .domains-table {
        display: block;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        border-collapse: separate;
        border-spacing: 0;
        white-space: normal;
        overflow: visible;
    }

    .panel-body.p-0 > .domains-table {
        overflow: visible;
    }

    .panel-body.p-0 {
        overflow-x: hidden;
        overflow-y: visible;
    }

    .domains-table thead {
        display: none;
    }

    .domains-table tbody {
        display: grid;
        gap: 12px;
        padding: 12px;
    }

    .domains-table tr {
        display: grid;
        grid-template-columns: 34px minmax(0, 1fr) 36px;
        gap: 12px 10px;
        padding: 14px;
        background: rgba(15, 23, 42, 0.58);
        border: 1px solid rgba(148, 163, 184, 0.12);
        border-radius: 12px;
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 8px 24px rgba(0, 0, 0, 0.22);
    }

    .domains-table td,
    .domains-table th:nth-child(n),
    .domains-table td:nth-child(n) {
        display: flex;
        min-width: 0;
        padding: 0;
        border: 0;
        background: transparent;
        white-space: normal;
    }

    .domains-table td::before {
        content: attr(data-label);
        color: rgba(148, 163, 184, 0.78);
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 0.10em;
        text-transform: uppercase;
    }

    .domains-table td:nth-child(1),
    .domains-table td:nth-child(2) {
        align-items: center;
        justify-content: center;
        min-height: 34px;
    }

    .domains-table td:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }

    .domains-table td:nth-child(2) {
        grid-column: 3;
        grid-row: 1;
    }

    .domains-table td:nth-child(1)::before,
    .domains-table td:nth-child(2)::before,
    .domains-table .domain-cell::before {
        content: none;
    }

    .domains-table .domain-cell {
        grid-column: 2;
        grid-row: 1;
        display: block;
        align-self: center;
        min-width: 0;
        padding-left: 0;
    }

    .domains-table th:nth-child(3),
    .domains-table td:nth-child(3),
    .domains-table th:nth-child(4),
    .domains-table td:nth-child(4) {
        display: block;
    }

    .domains-table .domain-cell a {
        display: block;
        max-width: 100%;
        color: #fff;
        font-size: 15.5px;
        font-weight: 800;
        line-height: 1.22;
        overflow-wrap: anywhere;
    }

    .domains-table .domain-cell small {
        display: block;
        margin-top: 4px;
        color: rgba(203, 213, 225, 0.78);
        font-size: 11px;
        font-weight: 500;
        overflow-wrap: anywhere;
    }

    .domains-table td:nth-child(n+4) {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        min-width: 0;
        min-height: 28px;
        padding-top: 10px;
        border-top: 1px solid rgba(148, 163, 184, 0.08);
        color: rgba(248, 250, 252, 0.92);
        text-align: right;
        overflow-wrap: anywhere;
    }

    .domains-table td:nth-child(n+4)::before {
        flex: 0 0 auto;
        min-width: 0;
    }

    .domains-table td:nth-child(n+4) > * {
        min-width: 0;
        max-width: 100%;
    }

    .domains-table .tag,
    .domains-table .pill {
        width: fit-content;
        max-width: 100%;
        white-space: nowrap;
        text-align: center;
        overflow-wrap: normal;
    }

    .domains-table td:nth-child(5),
    .domains-table td:nth-child(7),
    .domains-table td:nth-child(8) {
        display: none;
    }

    .domains-table td:nth-child(10) {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .domains-table td:nth-child(10)::before {
        align-self: flex-start;
        padding-top: 0;
    }

    .domains-table td:nth-child(10) .flex {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .domains-table td:nth-child(10) .btn-sm {
        width: 100%;
        min-width: 0;
        padding: 9px 8px;
        justify-content: center;
        white-space: nowrap;
    }

    .domains-table {
        display: none !important;
    }

    .domains-mobile-list {
        display: grid;
    }
}

@media (max-width: 380px) {
    .domains-table tbody {
        padding: 10px;
    }

    .domains-table tr {
        grid-template-columns: 30px minmax(0, 1fr) 32px;
        padding: 10px;
    }

    .domains-table td::before {
        font-size: 8.5px;
    }

    .domains-table td:nth-child(4) {
        display: flex;
    }

    .domains-table td:nth-child(10) .flex { gap: 6px; }
}

@media (max-width: 540px) {
    .categories-table {
        display: block;
        width: 100%;
        min-width: 0;
        border-collapse: separate;
        border-spacing: 0;
        white-space: normal;
    }

    .panel-body.p-0 > .categories-table {
        overflow: visible;
    }

    .categories-table thead {
        display: none;
    }

    .categories-table tbody {
        display: grid;
        gap: 12px;
        padding: 12px;
    }

    .categories-table tr {
        display: grid;
        gap: 10px;
        padding: 12px;
        background: rgba(15, 23, 42, 0.58);
        border: 1px solid rgba(148, 163, 184, 0.12);
        border-radius: 12px;
        box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 8px 24px rgba(0, 0, 0, 0.22);
    }

    .categories-table td,
    .categories-table th:nth-child(n),
    .categories-table td:nth-child(n) {
        display: grid;
        gap: 6px;
        min-width: 0;
        padding: 0;
        border: 0;
        background: transparent;
        white-space: normal;
    }

    .categories-table td::before {
        color: rgba(148, 163, 184, 0.78);
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 0.10em;
        text-transform: uppercase;
    }

    .categories-table td:nth-child(1)::before { content: "Nome"; }
    .categories-table td:nth-child(2)::before { content: "Cor"; }
    .categories-table td:nth-child(3)::before { content: "Preview"; }
    .categories-table td:nth-child(4)::before { content: "Ações"; }

    .categories-table .form-input {
        width: 100%;
    }

    .categories-table td:nth-child(2) .flex {
        align-items: center;
        justify-content: space-between;
    }

    .categories-table input[type="color"].form-input {
        width: 54px !important;
        height: 38px;
        flex: 0 0 54px;
    }

    .categories-table .tag {
        width: fit-content;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .categories-table td:nth-child(4) {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .categories-table td:nth-child(4)::before {
        grid-column: 1 / -1;
    }

    .categories-table td:nth-child(4) form,
    .categories-table td:nth-child(4) .btn {
        width: 100%;
    }

    .categories-table td:nth-child(4) .btn {
        justify-content: center;
    }
}
