/* ============================================================
   Shell Logger — Modern UI Theme
   Sadece görsel katman. Sistem mantığına dokunmaz.
   ============================================================ */

:root {
    --bg-body: #06080d;
    --bg-primary: #0a0d14;
    --bg-card: #0f131c;
    --bg-card-hover: #141a26;
    --bg-input: #0b0f17;
    --bg-table-row: #0d1119;
    --bg-table-hover: #131a26;
    --bg-elevated: #11161f;
    --border: #1b2331;
    --border-soft: #151c27;
    --border-accent: #2f6fed;
    --text-primary: #e8edf5;
    --text-secondary: #93a1b8;
    --text-muted: #5a6880;
    --accent: #4c8dff;
    --accent-strong: #2f6fed;
    --accent-glow: rgba(76, 141, 255, 0.12);
    --purple: #a78bfa;
    --green: #34d399;
    --green-glow: rgba(52, 211, 153, 0.12);
    --red: #f87171;
    --red-glow: rgba(248, 113, 113, 0.12);
    --orange: #fbbf24;
    --orange-glow: rgba(251, 191, 36, 0.12);
    --cyan: #22d3ee;
    --gradient-1: linear-gradient(135deg, #4c8dff, #a78bfa);
    --gradient-card: linear-gradient(160deg, #11161f 0%, #0b0f17 100%);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.55);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 7px;
    --sidebar-w: 248px;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: rgba(76, 141, 255, 0.3);
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #1e2735;
    border-radius: 8px;
    border: 2px solid var(--bg-body);
}

::-webkit-scrollbar-thumb:hover {
    background: #2a3547;
}

/* ============ LOGIN ============ */
.login-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse 60% 50% at 50% -10%, rgba(76, 141, 255, 0.14) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 85% 110%, rgba(167, 139, 250, 0.10) 0%, transparent 70%),
        var(--bg-body);
}

.login-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
    pointer-events: none;
}

.login-card {
    position: relative;
    background: rgba(15, 19, 28, 0.72);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 44px 40px 40px;
    width: 420px;
    max-width: 100%;
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    text-align: center;
    animation: cardIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(76, 141, 255, 0.7), transparent);
}

.login-logo {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(76, 141, 255, 0.16), rgba(167, 139, 250, 0.10));
    border: 1px solid rgba(76, 141, 255, 0.22);
    box-shadow: 0 8px 24px rgba(76, 141, 255, 0.14);
    color: var(--accent);
}

.login-logo svg {
    width: 28px;
    height: 28px;
}

.login-card h1 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.4px;
    margin-bottom: 6px;
}

.login-card p {
    color: var(--text-secondary);
    font-size: 13.5px;
    margin-bottom: 26px;
}

.field-label {
    display: block;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.login-card input {
    width: 100%;
    padding: 13px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-bottom: 18px;
}

.login-card input::placeholder {
    color: var(--text-muted);
}

.login-card input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.login-card button {
    width: 100%;
    padding: 13px;
    background: var(--gradient-1);
    border: none;
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 14.5px;
    cursor: pointer;
    transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
    letter-spacing: 0.2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.login-card button:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(76, 141, 255, 0.28);
}

.login-card button:active {
    transform: translateY(0);
}

.login-error {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--red-glow);
    color: var(--red);
    border: 1px solid rgba(248, 113, 113, 0.22);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 18px;
    text-align: left;
}

.login-foot {
    margin-top: 22px;
    font-size: 11.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.login-foot .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
}

/* ============ APP SHELL ============ */
.app {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    background: var(--bg-primary);
    border-right: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 20px 14px;
    z-index: 60;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 6px 8px 22px;
}

.brand-mark {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: linear-gradient(145deg, rgba(76, 141, 255, 0.18), rgba(167, 139, 250, 0.10));
    border: 1px solid rgba(76, 141, 255, 0.22);
    color: var(--accent);
}

.brand-mark svg {
    width: 20px;
    height: 20px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text strong {
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.brand-text span {
    font-size: 10.5px;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.nav-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    padding: 0 10px;
    margin: 6px 0 8px;
}

.nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 9px 11px;
    border-radius: var(--radius-xs);
    color: var(--text-secondary);
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.16s, color 0.16s;
    border: 1px solid transparent;
}

.nav-item svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    opacity: 0.85;
}

.nav-item:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--accent-glow);
    color: var(--accent);
    border-color: rgba(76, 141, 255, 0.18);
    font-weight: 600;
}

.nav-item.active svg {
    opacity: 1;
}

.sidebar-foot {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-soft);
}

.status-pill {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border-radius: var(--radius-xs);
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    font-size: 12px;
    color: var(--text-secondary);
}

.status-pill .live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: livePulse 2.4s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes livePulse {

    0%,
    100% {
        box-shadow: 0 0 6px var(--green);
        opacity: 1;
    }

    50% {
        box-shadow: 0 0 14px var(--green);
        opacity: 0.65;
    }
}

.status-pill strong {
    color: var(--text-primary);
    font-weight: 600;
}

.content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 28px;
    background: rgba(10, 13, 20, 0.82);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-bottom: 1px solid var(--border-soft);
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-title {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.topbar-title h1 {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.topbar-title .crumb {
    font-size: 11.5px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.main {
    padding: 26px 28px 48px;
    max-width: 1480px;
    width: 100%;
    margin: 0 auto;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 16px;
    border: 1px solid transparent;
    border-radius: var(--radius-xs);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.16s, border-color 0.16s, color 0.16s, transform 0.16s, box-shadow 0.16s;
    letter-spacing: 0.1px;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.2;
}

.btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.btn:active {
    transform: translateY(1px);
}

.btn-sm {
    padding: 7px 12px;
    font-size: 12.5px;
}

.btn-sm svg {
    width: 14px;
    height: 14px;
}

.btn-primary {
    background: var(--accent-strong);
    color: #fff;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset, 0 4px 14px rgba(47, 111, 237, 0.25);
}

.btn-primary:hover {
    background: #3a7bf5;
}

.btn-ghost {
    background: var(--bg-card);
    color: var(--text-secondary);
    border-color: var(--border);
}

.btn-ghost:hover {
    border-color: #2a3547;
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

.btn-danger {
    background: transparent;
    color: var(--red);
    border-color: rgba(248, 113, 113, 0.24);
}

.btn-danger:hover {
    background: var(--red-glow);
    border-color: rgba(248, 113, 113, 0.4);
}

.btn-success {
    background: transparent;
    color: var(--green);
    border-color: rgba(52, 211, 153, 0.24);
}

.btn-success:hover {
    background: var(--green-glow);
    border-color: rgba(52, 211, 153, 0.4);
}

/* ---- Stat cards ---- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}

@media (max-width: 1180px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    border-color: #26303f;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.stat-card::after {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    filter: blur(34px);
    opacity: 0.16;
    pointer-events: none;
}

.stat-card:nth-child(1)::after {
    background: var(--accent);
}

.stat-card:nth-child(2)::after {
    background: var(--green);
}

.stat-card:nth-child(3)::after {
    background: var(--orange);
}

.stat-card:nth-child(4)::after {
    background: var(--purple);
}

.stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.stat-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.stat-icon svg {
    width: 17px;
    height: 17px;
}

.stat-card:nth-child(1) .stat-icon {
    color: var(--accent);
    border-color: rgba(76, 141, 255, 0.2);
    background: var(--accent-glow);
}

.stat-card:nth-child(2) .stat-icon {
    color: var(--green);
    border-color: rgba(52, 211, 153, 0.2);
    background: var(--green-glow);
}

.stat-card:nth-child(3) .stat-icon {
    color: var(--orange);
    border-color: rgba(251, 191, 36, 0.2);
    background: var(--orange-glow);
}

.stat-card:nth-child(4) .stat-icon {
    color: var(--purple);
    border-color: rgba(167, 139, 250, 0.2);
    background: rgba(167, 139, 250, 0.1);
}

.stat-value {
    font-size: 30px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1px;
    font-variant-numeric: tabular-nums;
    margin-bottom: 3px;
}

.stat-label {
    font-size: 12.5px;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ---- Panel ---- */
.panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 22px;
    box-shadow: var(--shadow-sm);
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-soft);
    flex-wrap: wrap;
}

.panel-head h3 {
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 9px;
    letter-spacing: -0.1px;
}

.panel-head h3 svg {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.panel-head .actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

/* ---- Tracker accordion ---- */
.tracker-head {
    cursor: pointer;
    user-select: none;
    transition: background 0.16s;
}

.tracker-head:hover {
    background: var(--bg-card-hover);
}

.tracker-head .chevron {
    color: var(--text-muted);
    transition: transform 0.25s;
    display: inline-flex;
}

.tracker-head .chevron svg {
    width: 16px;
    height: 16px;
}

.tracker-head.open .chevron {
    transform: rotate(180deg);
}

.tracker-body {
    padding: 20px;
    display: none;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-soft);
}

.tracker-body.open {
    display: block;
}

.tracker-note {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 14px;
    line-height: 1.65;
}

.tracker-note code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--accent);
    background: var(--accent-glow);
    padding: 1px 6px;
    border-radius: 5px;
}

.tracker-note strong {
    color: var(--orange);
    font-weight: 600;
}

.code-wrap {
    position: relative;
}

.code-wrap pre {
    background: #05070c;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px;
    overflow-x: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12.5px;
    line-height: 1.7;
    color: #7ee2b8;
    tab-size: 4;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(76, 141, 255, 0.12);
    border: 1px solid rgba(76, 141, 255, 0.24);
    border-radius: var(--radius-xs);
    color: var(--accent);
    font-family: 'Inter', sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.16s, border-color 0.16s;
    backdrop-filter: blur(8px);
}

.copy-btn:hover {
    background: rgba(76, 141, 255, 0.22);
    border-color: rgba(76, 141, 255, 0.4);
}

.copy-btn svg {
    width: 13px;
    height: 13px;
}

.tracker-tip {
    color: var(--text-muted);
    font-size: 12px;
    margin-top: 14px;
    display: flex;
    gap: 7px;
    align-items: flex-start;
    line-height: 1.6;
}

.tracker-tip svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--orange);
}

.tracker-tip code {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent);
    font-size: 11.5px;
}

/* ---- Search ---- */
.search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.search-wrap svg {
    position: absolute;
    left: 11px;
    width: 15px;
    height: 15px;
    color: var(--text-muted);
    pointer-events: none;
}

.search-box {
    padding: 8px 14px 8px 34px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    outline: none;
    min-width: 240px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.search-box::placeholder {
    color: var(--text-muted);
}

/* ---- Table ---- */
.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead th {
    padding: 11px 16px;
    text-align: left;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.9px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    background: rgba(8, 11, 17, 0.6);
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 1;
}

tbody td {
    padding: 11px 16px;
    font-size: 12.5px;
    border-bottom: 1px solid var(--border-soft);
    white-space: nowrap;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-secondary);
    vertical-align: middle;
}

tbody tr {
    transition: background 0.14s;
}

tbody tr:hover {
    background: var(--bg-table-hover);
}

.shell-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    background: var(--accent-glow);
    color: var(--accent);
    border: 1px solid rgba(76, 141, 255, 0.16);
    font-family: 'JetBrains Mono', monospace;
}

.shell-badge svg {
    width: 12px;
    height: 12px;
}

.ip-cell {
    color: var(--cyan);
}

.url-cell {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-primary);
}

.time-cell {
    color: var(--text-muted);
    font-size: 11.5px;
}

.link-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    background: var(--accent-glow);
    color: var(--accent);
    border: 1px solid rgba(76, 141, 255, 0.18);
    text-decoration: none;
    transition: background 0.16s;
    font-family: 'Inter', sans-serif;
}

.link-btn:hover {
    background: rgba(76, 141, 255, 0.2);
}

.link-btn svg {
    width: 12px;
    height: 12px;
}

.delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid rgba(248, 113, 113, 0.18);
    color: var(--red);
    width: 26px;
    height: 26px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.16s, border-color 0.16s;
}

.delete-btn svg {
    width: 13px;
    height: 13px;
}

.delete-btn:hover {
    background: var(--red-glow);
    border-color: rgba(248, 113, 113, 0.4);
}

/* Domain group row */
.domain-row td {
    background: var(--bg-elevated) !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 0 !important;
}

.domain-row-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 16px;
    cursor: pointer;
}

.domain-name {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    min-width: 0;
}

.domain-name .caret {
    display: inline-flex;
    color: var(--text-muted);
    transition: transform 0.2s;
    font-size: 10px;
}

.domain-name .globe {
    color: var(--accent);
    display: inline-flex;
}

.domain-name .globe svg {
    width: 15px;
    height: 15px;
}

.domain-count {
    color: var(--text-muted);
    font-size: 11.5px;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-soft);
    padding: 1px 8px;
    border-radius: 20px;
}

.domain-row .btn-danger {
    padding: 5px 10px;
    font-size: 11.5px;
}

/* ---- Pagination ---- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 20px;
    border-top: 1px solid var(--border-soft);
    flex-wrap: wrap;
}

.pagination .info {
    font-size: 12.5px;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.pagination .pages {
    display: flex;
    gap: 5px;
}

.page-btn {
    min-width: 30px;
    height: 30px;
    padding: 0 9px;
    border-radius: 7px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.16s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.page-btn:hover:not(:disabled) {
    border-color: var(--accent);
    color: var(--accent);
}

.page-btn.active {
    background: var(--accent-strong);
    color: #fff;
    border-color: var(--accent-strong);
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* ---- Empty state ---- */
.empty-state {
    padding: 56px 20px;
    text-align: center;
}

.empty-state .icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--bg-card-hover);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 22px;
}

.empty-state .icon svg {
    width: 24px;
    height: 24px;
}

.empty-state h3 {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 600;
}

.empty-state p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ---- Toast ---- */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 12px 18px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transform: translateY(120%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s;
    max-width: calc(100vw - 48px);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast.toast-success {
    border-left: 3px solid var(--green);
}

.toast.toast-error {
    border-left: 3px solid var(--red);
}

/* ---- Spinner ---- */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ---- Modal ---- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 5, 9, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    width: 560px;
    max-width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    transform: scale(0.96) translateY(8px);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.modal-overlay.open .modal {
    transform: none;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-soft);
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 14.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-header h3 svg {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 7px;
    color: var(--text-muted);
    cursor: pointer;
    transition: background 0.16s, color 0.16s;
}

.modal-close svg {
    width: 16px;
    height: 16px;
}

.modal-close:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
}

.detail-grid {
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 1px;
    background: var(--border-soft);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.detail-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-muted);
    background: var(--bg-primary);
    padding: 10px 14px;
    display: flex;
    align-items: center;
}

.detail-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12.5px;
    color: var(--text-primary);
    word-break: break-all;
    background: var(--bg-card);
    padding: 10px 14px;
    line-height: 1.5;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 20px;
    border-top: 1px solid var(--border-soft);
    flex-shrink: 0;
    background: var(--bg-primary);
}

/* ---- Responsive ---- */
.mobile-toggle {
    display: none;
}

@media (max-width: 900px) {
    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-100%);
        transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: var(--shadow-lg);
    }

    .sidebar.open {
        transform: none;
    }

    .mobile-toggle {
        display: inline-flex;
    }

    .main {
        padding: 20px 16px 40px;
    }

    .topbar {
        padding: 12px 16px;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-label {
        padding-bottom: 2px;
    }

    .search-box {
        min-width: 0;
        width: 100%;
    }

    .search-wrap {
        flex: 1;
        min-width: 160px;
    }
}

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

.scrim.show {
    display: block;
}