:root {
    --bg: #eef3ff;
    --bg-soft: #f5f7ff;
    --surface: #ffffff;
    --surface-2: #f8faff;
    --border: #dce5f4;
    --border-strong: #bcc9e0;
    --text: #1d2940;
    --text-soft: #6a7894;
    --heading: #0f1f4a;
    --primary: #2a56f0;
    --primary-soft: #edf2ff;
    --secondary-soft: #f5f7ff;
    --success: #15a46d;
    --success-soft: #ecf8f1;
    --danger: #d15b66;
    --danger-soft: #fff2f4;
    --warning: #d19a28;
    --warning-soft: #fff8ea;
    --shadow-sm: 0 16px 40px rgba(15, 31, 74, 0.08);
    --radius: 20px;
    --radius-sm: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: linear-gradient(180deg, #f6f8ff 0%, #eef3ff 100%);
    color: var(--text);
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
.text-secondary { color: var(--text-soft) !important; }
.container-narrow { max-width: 980px; margin: 0 auto; }

.public-body { background: linear-gradient(180deg, #f6f8ff 0%, #eef3ff 100%); }
.admin-body { background: linear-gradient(180deg, #f3f6ff 0%, #edf2ff 100%); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(14px);
    background: rgba(246, 248, 255, 0.88);
    border-bottom: 1px solid rgba(208, 220, 236, 0.7);
}

.topbar-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-brand,
.brand-block {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.site-brand strong,
.brand-block strong {
    display: block;
    color: var(--heading);
    font-size: 1rem;
    font-weight: 700;
}

.site-brand small,
.brand-block small {
    display: block;
    color: var(--text-soft);
    font-size: 0.83rem;
    margin-top: 2px;
}

.brand-logo,
.login-logo {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1f45d8, #2a56f0);
    color: #fff;
    box-shadow: 0 10px 22px rgba(31, 111, 235, 0.18);
    font-size: 1.2rem;
}

.topbar-links,
.admin-topbar-actions,
.footer-meta,
.hero-bullets,
.results-head-right,
.results-toolbar,
.quick-actions-inline,
.brand-cloud,
.hero-metrics,
.detail-grid,
.stats-grid,
.mode-switch,
.bulk-group-head,
.max-results-list,
.device-meta-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.topbar-links { align-items: center; }
.footer-meta { justify-content: flex-end; }

.mini-pill,
.signal-pill,
.eyebrow-pill,
.table-tag,
.source-pill,
.soft-note,
.status-chip,
.mode-btn,
.sidebar-mini-link,
.notification-mini {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-soft);
    font-size: 0.85rem;
    font-weight: 600;
}

.eyebrow,
.eyebrow-pill {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--primary);
}

.table-tag,
.soft-note,
.mini-pill,
.signal-pill,
.notification-mini { background: var(--surface-2); }

.btn {
    border-radius: 14px;
    font-weight: 600;
    transition: .2s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary,
.primary-cta {
    background: linear-gradient(135deg, #1f45d8, #2a56f0);
    border-color: #16909a;
    color: #fff;
    box-shadow: none;
}

.btn-primary:hover,
.primary-cta:hover { background: #12727a; border-color: #12727a; color: #fff; }
.btn-soft-primary {
    background: var(--primary-soft);
    border: 1px solid #cfe0ff;
    color: var(--primary);
}
.btn-soft-primary:hover { background: #deebff; color: #1759b8; }
.btn-soft-light {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
}
.btn-soft-light:hover { background: var(--surface-2); }
.btn-soft-danger {
    background: var(--danger-soft);
    border: 1px solid #ffd5d8;
    color: var(--danger);
}

.hero-section {
    padding: 42px 0 18px;
}

.search-hero {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 28px;
    box-shadow: var(--shadow-sm);
    padding: 34px;
}

.search-hero-top {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 26px;
}

.hero-title {
    margin: 12px 0 12px;
    color: var(--heading);
    font-size: clamp(2.1rem, 4.2vw, 3.35rem);
    line-height: 1.06;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.hero-text {
    color: var(--text-soft);
    font-size: 1.06rem;
    line-height: 1.7;
}

.search-layout {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 24px;
    align-items: start;
}

.search-panel,
.panel-surface,
.results-panel,
.feature-card,
.footer-card,
.login-highlight-card,
.login-form-card,
.notification-card,
.empty-card,
.detail-box,
.stat-surface,
.bulk-group-card,
.device-list-row,
.result-mini-card,
.hero-mini-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
}

.search-panel {
    padding: 26px;
}

.search-card-head,
.surface-head,
.bulk-group-head,
.results-panel-head,
.admin-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.surface-title {
    margin: 4px 0 0;
    font-size: 1.18rem;
    font-weight: 700;
    color: var(--heading);
}

.search-box-group {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin-bottom: 16px;
}

.modern-input-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 0 16px;
}

.modern-input-wrap i { color: var(--text-soft); font-size: 1.05rem; }
.form-control,
.form-select,
.bulk-textarea,
.modern-input {
    border-radius: 14px;
    border: 1px solid var(--border);
    color: var(--text);
    background: #fff;
}

.modern-input,
.modern-input.form-control,
.modern-input-wrap .form-control {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding-left: 0;
}

.form-control,
.form-select { min-height: 48px; }
.bulk-textarea { min-height: 156px; padding: 14px 16px; }
.form-control:focus,
.form-select:focus,
.bulk-textarea:focus {
    border-color: #aac7ff;
    box-shadow: 0 0 0 .2rem rgba(31, 111, 235, 0.09);
}
.form-label { font-size: .92rem; font-weight: 700; color: var(--heading); margin-bottom: 8px; }
.form-text { color: var(--text-soft); }

.search-submit {
    min-width: 164px;
    border-radius: 16px;
    background: linear-gradient(135deg, #29a96d, #31be7b);
    border: 0;
    color: #fff;
    font-weight: 700;
}
.search-submit:hover { background: #20945f; color: #fff; }

.mode-switch { margin-bottom: 16px; }
.mode-btn {
    cursor: pointer;
    background: var(--surface-2);
    min-width: 110px;
    justify-content: center;
}
.mode-btn.active {
    background: var(--primary-soft);
    color: var(--primary);
    border-color: #cfe0ff;
}

.tld-selector-card {
    padding: 20px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 20px;
}

.tld-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    max-height: 288px;
    overflow: auto;
    padding-right: 4px;
}

.tld-chip {
    position: relative;
    cursor: pointer;
}

.tld-chip input {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
}

.tld-chip span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 14px;
    border-radius: 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-soft);
    font-weight: 700;
    transition: .18s ease;
}

.tld-chip input:checked + span {
    background: var(--primary-soft);
    border-color: #bdd5ff;
    color: var(--primary);
}

.hero-mini-card,
.stat-surface,
.result-mini-card {
    padding: 18px;
    flex: 1 1 180px;
    min-width: 0;
}

.hero-mini-card strong,
.stat-surface strong {
    display: block;
    color: var(--heading);
    font-size: 1.42rem;
    line-height: 1;
    margin-bottom: 8px;
}

.hero-mini-card span,
.stat-surface span {
    color: var(--text-soft);
    font-size: 0.9rem;
}

.results-panel,
.panel-surface,
.feature-card,
.footer-card,
.login-form-card,
.login-highlight-card,
.notification-card,
.empty-card,
.detail-box,
.bulk-group-card {
    padding: 24px;
}

.results-panel { margin-top: 24px; }
.result-card {
    height: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
}

.status-chip.available,
.status-chip.success,
.table-tag.available,
.source-pill.source-rdap {
    background: var(--success-soft);
    border-color: #cdeedd;
    color: var(--success);
}

.status-chip.registered,
.status-chip.danger,
.source-pill.source-whois {
    background: var(--danger-soft);
    border-color: #ffd7da;
    color: var(--danger);
}

.status-chip.unknown,
.status-chip.warning,
.source-pill.source-dns {
    background: var(--warning-soft);
    border-color: #fee5b1;
    color: #c68410;
}

.table-tag,
.status-chip,
.source-pill { font-weight: 700; }

.feature-card {
    height: 100%;
}

.feature-card h4,
.login-title { color: var(--heading); font-weight: 700; margin: 16px 0 10px; }
.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    color: var(--primary);
    font-size: 1.2rem;
}

.footer-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.admin-shell {
    min-height: 100vh;
}

.admin-topbar-shell {
    position: sticky;
    top: 0;
    z-index: 35;
    background: rgba(245, 247, 251, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(208, 220, 236, 0.85);
}

.admin-topbar-wrap {
    max-width: 1320px;
    margin: 0 auto;
    padding: 18px 20px;
}

.admin-topbar {
    align-items: center;
    margin-bottom: 14px;
}

.admin-page-title {
    font-size: 1.6rem;
    margin: 2px 0 0;
    color: var(--heading);
    font-weight: 800;
}

.admin-menu {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-menu-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 14px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    color: var(--text-soft);
    font-weight: 700;
    font-size: 0.92rem;
}

.admin-menu-link.active {
    background: var(--primary-soft);
    border-color: #cfe0ff;
    color: var(--primary);
}

.admin-main {
    max-width: 1320px;
    margin: 0 auto;
    padding: 26px 20px 40px;
}

.admin-content { display: grid; gap: 24px; }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stats-grid-8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-surface.info { background: #f4f8ff; }
.stat-surface.success { background: #f1fbf5; }
.stat-surface.warning { background: #fff8ec; }
.stat-surface.danger { background: #fff2f4; }

.admin-table,
.modern-table {
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--border);
    margin: 0;
}

.modern-table thead th {
    color: var(--text-soft);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 800;
    padding: 14px 14px;
    border-bottom-width: 1px;
}

.modern-table tbody td {
    padding: 16px 14px;
    vertical-align: middle;
    border-bottom: 1px solid #ebf0f6;
}

.device-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.device-cell strong { color: var(--heading); font-size: 0.96rem; }
.device-cell small { color: var(--text-soft); }

.device-list-row {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    height: 100%;
}

.device-list-row span { color: var(--text-soft); font-size: .9rem; }
.device-list-row strong { color: var(--heading); font-size: 1rem; }

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.detail-box {
    padding: 18px;
}

.detail-box strong { display: block; color: var(--heading); margin-bottom: 4px; }
.detail-box span,
.detail-box small { color: var(--text-soft); }

.notification-card.is-unread { border-color: #cfe0ff; background: #f7fbff; }
.notification-card.is-read { opacity: .9; }

.empty-card {
    text-align: center;
    color: var(--text-soft);
}

.bulk-group-card { margin-top: 14px; }
.bulk-group-grid { margin-top: 14px; }
.bulk-available-box {
    margin-top: 14px;
    padding: 16px;
    border-radius: 16px;
    background: var(--surface-2);
    border: 1px solid var(--border);
}

.login-page-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 24px 0;
}

.login-highlight-card,
.login-form-card { height: 100%; }
.login-logo { margin-bottom: 22px; }
.login-title { font-size: 2rem; }

.topbar-links .btn,
.admin-topbar-actions .mini-pill,
.quick-actions-inline .btn-link {
    white-space: nowrap;
}

.alert {
    border-radius: 16px;
}

.showcase-section .row > div { display: flex; }
.showcase-section .feature-card { width: 100%; }

@media (max-width: 1199.98px) {
    .search-layout { grid-template-columns: 1fr; }
    .stats-grid,
    .stats-grid-8,
    .stats-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
    .hero-section { padding-top: 22px; }
    .search-hero { padding: 22px; border-radius: 24px; }
    .search-panel,
    .panel-surface,
    .results-panel,
    .feature-card,
    .footer-card,
    .login-form-card,
    .login-highlight-card,
    .notification-card,
    .empty-card,
    .detail-box,
    .bulk-group-card { padding: 20px; }
    .footer-card,
    .search-card-head,
    .surface-head,
    .admin-topbar,
    .bulk-group-head,
    .results-panel-head { flex-direction: column; align-items: stretch; }
    .topbar-card { flex-direction: column; align-items: stretch; }
    .topbar-links { justify-content: space-between; }
    .tld-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .search-box-group { grid-template-columns: 1fr; }
    .search-submit { width: 100%; min-height: 52px; }
    .admin-topbar-actions { justify-content: flex-start; }
}

@media (max-width: 767.98px) {
    .hero-title { font-size: 2rem; }
    .hero-text { font-size: 1rem; }
    .tld-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 240px; }
    .footer-meta { justify-content: flex-start; }
    .stats-grid,
    .stats-grid-8,
    .stats-grid-4,
    .detail-grid { grid-template-columns: 1fr; }
    .admin-main,
    .admin-topbar-wrap { padding-left: 14px; padding-right: 14px; }
    .modern-table thead { display: none; }
    .modern-table,
    .modern-table tbody,
    .modern-table tr,
    .modern-table td { display: block; width: 100%; }
    .modern-table tr {
        border: 1px solid var(--border);
        border-radius: 18px;
        padding: 8px 10px;
        background: var(--surface);
        margin-bottom: 12px;
    }
    .modern-table td {
        border: 0;
        padding: 9px 6px;
    }
}


.hero-section--compact {
    padding-top: 34px;
}

.search-hero--centered {
    max-width: 920px;
    margin: 0 auto;
    padding: 38px;
}

.search-hero-top--compact {
    max-width: 720px;
    margin-bottom: 24px;
}

.hero-title--compact {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 10px;
}

.hero-text--compact {
    max-width: 690px;
    margin: 0 auto;
}

.search-shell {
    max-width: 760px;
    margin: 0 auto;
}

.mode-switch--hero {
    justify-content: center;
    margin-bottom: 18px;
}

.form-label-large {
    font-size: 1rem;
}

.search-box-group--hero {
    grid-template-columns: 1fr 172px;
    gap: 14px;
    align-items: stretch;
    margin-bottom: 10px;
}

.modern-input-wrap--hero {
    min-height: 66px;
    border-radius: 18px;
    padding: 0 18px;
    background: #ffffff;
}

.modern-input-wrap--hero i {
    font-size: 1.1rem;
    color: #7c8c98;
}

.modern-input-wrap--hero .form-control {
    font-size: 1.05rem;
}

.search-submit--hero {
    min-width: 172px;
    min-height: 66px;
    border-radius: 18px;
    background: linear-gradient(135deg, #1a9aa0, #39b977);
}

.helper-line {
    margin-bottom: 0;
}

.selector-topline {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.tld-selector-card--hero {
    padding: 22px;
    background: #fbfcfc;
}

.quick-actions-inline--hero {
    align-items: center;
    gap: 14px;
}

.modern-grid--hero {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
}

.tld-chip--hero span {
    min-height: 44px;
    border-radius: 13px;
    background: #fff;
}

.hero-stats-bar {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.hero-stat-inline {
    background: #fbfcfc;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px 18px;
}

.hero-stat-inline strong {
    display: block;
    color: var(--heading);
    font-size: 1.32rem;
    line-height: 1;
    margin-bottom: 6px;
}

.hero-stat-inline span {
    color: var(--text-soft);
    font-size: 0.92rem;
}

.hero-tags-row {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.showcase-section--minimal {
    padding-top: 8px;
}

.feature-card--minimal {
    padding: 20px;
    box-shadow: none;
    background: rgba(255,255,255,0.8);
}

.feature-card--minimal h4 {
    margin: 0 0 10px;
    font-size: 1.08rem;
}

.site-header {
    background: rgba(251, 252, 252, 0.9);
}

.site-footer .footer-card {
    box-shadow: none;
}

.admin-topbar-shell {
    background: rgba(247, 250, 249, 0.92);
}

@media (max-width: 991.98px) {
    .search-hero--centered {
        padding: 26px;
    }

    .modern-grid--hero {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .hero-stats-bar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .hero-section--compact {
        padding-top: 20px;
    }

    .search-hero--centered {
        border-radius: 22px;
        padding: 18px;
    }

    .hero-title--compact {
        font-size: 2rem;
    }

    .search-box-group--hero {
        grid-template-columns: 1fr;
    }

    .search-submit--hero {
        width: 100%;
        min-height: 58px;
    }

    .modern-input-wrap--hero {
        min-height: 58px;
    }

    .modern-grid--hero {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-stats-bar {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 575.98px) {
    .modern-grid--hero {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-stats-bar {
        grid-template-columns: 1fr;
    }
}

/* v16 clean-up */
.search-hero--centered {
    background: #ffffff;
    border: 1px solid #e3ecec;
    box-shadow: 0 12px 32px rgba(17, 43, 67, 0.04);
}
.hero-title--compact {
    font-size: clamp(1.9rem, 4vw, 2.8rem);
}
.hero-text--compact {
    color: var(--text-soft);
}
.feature-card--minimal,
.panel-surface,
.stat-surface,
.device-list-row,
.notification-mini,
.result-mini-card {
    box-shadow: none;
}
.admin-topbar-shell {
    border-bottom: 1px solid rgba(213, 223, 223, 0.95);
}
.admin-menu-link {
    background: transparent;
}
.admin-menu-link.active {
    background: var(--surface);
    border-color: var(--border);
}
.stats-grid .stat-surface,
.stats-grid-8 .stat-surface {
    background: #ffffff;
    border-color: #e1ebea;
}
.surface-head .eyebrow {
    color: var(--primary);
}
@media (max-width: 767.98px) {
    .search-hero-top--compact {
        text-align: left;
    }
    .hero-title--compact,
    .hero-text--compact,
    .hero-tags-row {
        text-align: left;
        justify-content: flex-start;
    }
}

/* --- v24 premium redesign overrides --- */
:root {
    --bg: #f2f6fb;
    --bg-soft: #eef3fb;
    --surface: #ffffff;
    --surface-2: #f7f9fc;
    --border: #d9e3f0;
    --border-strong: #becde3;
    --text: #162033;
    --text-soft: #687487;
    --heading: #081a58;
    --primary: #245bff;
    --primary-soft: #edf2ff;
    --secondary-soft: #eff4ff;
    --success: #18b57d;
    --success-soft: #e8f8f1;
    --danger: #e25555;
    --danger-soft: #ffefef;
    --warning: #d9a125;
    --warning-soft: #fff8e4;
    --shadow-sm: 0 18px 48px rgba(8, 26, 88, 0.08);
    --radius: 26px;
    --radius-sm: 18px;
}

body,
.public-body,
.admin-body {
    background: linear-gradient(180deg, #f6f8fc 0%, #eef3fb 100%);
}

.site-header {
    background: rgba(246, 248, 252, 0.84);
    border-bottom: 1px solid rgba(190, 205, 227, 0.75);
}

.brand-logo,
.login-logo {
    background: linear-gradient(135deg, #0a1f69, #245bff);
    box-shadow: 0 18px 40px rgba(36, 91, 255, 0.22);
}

.btn-primary,
.primary-cta,
.search-submit,
.search-submit--hero {
    background: linear-gradient(135deg, #0a1f69, #245bff);
    border-color: #0a1f69;
    box-shadow: 0 14px 28px rgba(36, 91, 255, 0.16);
}

.btn-primary:hover,
.primary-cta:hover,
.search-submit:hover,
.search-submit--hero:hover {
    background: linear-gradient(135deg, #081a58, #1e49d1);
    border-color: #081a58;
}

.btn-soft-primary {
    background: #edf2ff;
    border-color: #d9e3ff;
    color: #245bff;
}

.topbar-card,
.admin-topbar-wrap {
    border-radius: 28px;
}

.search-hero,
.search-hero.search-hero--centered {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 20% 10%, rgba(78, 123, 255, 0.20), transparent 26%),
        radial-gradient(circle at 80% 0%, rgba(42, 197, 255, 0.16), transparent 22%),
        linear-gradient(145deg, #081a58 0%, #1537a8 58%, #245bff 100%);
    border: 0;
    border-radius: 34px;
    padding: 42px 36px 30px;
    box-shadow: 0 26px 64px rgba(8, 26, 88, 0.20);
}

.search-hero-top,
.search-hero-top--compact {
    position: relative;
    z-index: 1;
}

.hero-title,
.hero-title--compact {
    color: #fff;
    font-size: clamp(2.3rem, 4.6vw, 3.8rem);
    line-height: 1.02;
    font-weight: 800;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.hero-text,
.hero-text--compact,
.search-hero-top p {
    color: rgba(255,255,255,0.82);
}

.eyebrow-pill {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.12);
    color: #fff;
}

.search-shell {
    position: relative;
    z-index: 1;
    max-width: 920px;
    margin: 0 auto;
    background: #fff;
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(8, 26, 88, 0.16);
}

.mode-switch--hero {
    justify-content: center;
    margin-bottom: 18px;
}

.mode-btn {
    background: #f4f7fc;
    border-color: #dce5f2;
    color: var(--text-soft);
    padding: 11px 16px;
}

.mode-btn.active {
    background: #0a1f69;
    color: #fff;
    border-color: #0a1f69;
}

.search-box-group--hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
}

.modern-input-wrap--hero {
    min-height: 70px;
    border-radius: 22px;
    border: 1px solid #d7e1ee;
    background: #f9fbff;
}

.modern-input {
    background: transparent;
    border: 0;
    box-shadow: none !important;
    font-size: 1.06rem;
}

.tld-selector-card--hero {
    background: #f6f8fc;
    border: 1px solid #dde6f2;
    border-radius: 24px;
    padding: 18px;
}

.tld-chip--hero span,
.tld-chip span {
    border-radius: 999px;
    border: 1px solid #d8e2f0;
    background: #fff;
    padding: 10px 14px;
    min-width: 84px;
    text-align: center;
    font-weight: 700;
    color: #234067;
}

.tld-chip input:checked + span {
    background: #edf2ff;
    color: #245bff;
    border-color: #b8cbff;
}

.hero-stats-bar {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    max-width: 920px;
    margin: 22px auto 0;
}

.hero-stat-inline {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.10);
    color: #fff;
    border-radius: 22px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-stat-inline span { color: rgba(255,255,255,0.72); }
.hero-stat-inline strong { font-size: 1.4rem; }

.hero-tags-row {
    position: relative;
    z-index: 1;
    justify-content: center;
    margin-top: 18px;
}

.hero-tags-row .table-tag {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border-color: rgba(255,255,255,0.10);
}

.results-panel,
.feature-card,
.footer-card,
.panel-surface,
.stat-surface,
.device-list-row,
.bulk-group-card,
.login-form-card,
.login-highlight-card,
.notification-card,
.detail-box,
.search-panel,
.result-mini-card,
.hero-mini-card {
    border-radius: 24px;
    border-color: #d9e3f0;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
}

.surface-title,
.search-card-title,
.feature-card h4,
.admin-table thead th,
.hero-section h2,
.hero-section h3 {
    color: #081a58;
    font-weight: 800;
}

.stat-surface {
    background: #fff;
}

.stat-surface.info,
.stat-surface.warning,
.stat-surface.success,
.stat-surface.danger {
    background: #fff;
}

.admin-topbar-shell {
    background: linear-gradient(145deg, #081a58 0%, #1537a8 60%, #245bff 100%);
    padding: 22px 0 18px;
    margin-bottom: 20px;
}

.admin-topbar,
.admin-menu {
    background: rgba(255,255,255,0.10);
    border: 1px solid rgba(255,255,255,0.10);
    backdrop-filter: blur(14px);
}

.admin-menu-link {
    color: rgba(255,255,255,0.76);
}

.admin-menu-link.active,
.admin-menu-link:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
}

.admin-topbar .brand-block strong,
.admin-topbar .brand-block small,
.admin-topbar .mini-pill,
.admin-topbar .btn-soft-light {
    color: #fff;
}

.admin-topbar .btn-soft-light,
.admin-topbar .mini-pill {
    background: rgba(255,255,255,0.10);
    border-color: rgba(255,255,255,0.10);
}

.admin-topbar .brand-logo {
    background: rgba(255,255,255,0.16);
    box-shadow: none;
}

.admin-main {
    padding-top: 0;
}

.device-list-row,
.feature-card--minimal,
.stat-surface {
    transition: transform .2s ease, box-shadow .2s ease;
}

.device-list-row:hover,
.feature-card--minimal:hover,
.stat-surface:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 50px rgba(8, 26, 88, 0.10);
}

@media (max-width: 991px) {
    .hero-stats-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .search-hero { padding: 32px 20px 22px; }
    .search-shell { padding: 18px; }
}

@media (max-width: 767px) {
    .hero-stats-bar { grid-template-columns: 1fr 1fr; }
    .search-box-group--hero { grid-template-columns: 1fr; }
    .admin-topbar-actions { justify-content: flex-start; }
    .admin-topbar, .admin-menu { border-radius: 22px; }
}


.search-hero{background:linear-gradient(180deg,#ffffff 0%,#f8faff 100%);}
.search-hero-top{padding-top:6px;}
.hero-title{max-width:680px;margin-left:auto;margin-right:auto;}
.hero-section{padding-top:28px;}
.topbar-card,.admin-topbar-wrap{backdrop-filter:blur(18px);}
.admin-topbar-wrap,.topbar-card{background:rgba(255,255,255,.72);border:1px solid rgba(220,229,244,.9);border-radius:24px;padding:14px 18px;box-shadow:var(--shadow-sm);}
.admin-topbar-wrap{padding:16px 18px;}
.panel-surface,.results-panel,.feature-card,.footer-card,.device-list-row,.stat-surface,.bulk-group-card{background:linear-gradient(180deg,#ffffff 0%,#f8faff 100%);}
.admin-menu-link.active{background:linear-gradient(135deg,#1f45d8,#2a56f0);color:#fff;border-radius:14px;}

/* ===== AdminLTE-style refresh ===== */
.admin-body {
    background: #f3f6fb;
}

.admin-shell-v2 {
    min-height: 100vh;
    display: flex;
    background: linear-gradient(180deg, #f5f7fc 0%, #eef2f8 100%);
}

.admin-sidebar-v2 {
    width: 280px;
    background: linear-gradient(180deg, #0f172a 0%, #172554 100%);
    color: rgba(255, 255, 255, 0.84);
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 0;
    height: 100vh;
}

.brand-block--admin {
    color: #fff;
}

.brand-block--admin .brand-logo {
    background: rgba(255,255,255,0.12);
    box-shadow: none;
}

.brand-block--admin strong,
.brand-block--admin small {
    color: #fff;
}

.admin-sidebar-label {
    color: rgba(255,255,255,0.58);
    text-transform: uppercase;
    font-size: 0.74rem;
    letter-spacing: .08em;
    font-weight: 700;
    margin-bottom: 10px;
}

.admin-sidebar-nav {
    display: grid;
    gap: 8px;
}

.admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    border-radius: 16px;
    color: rgba(255,255,255,0.76);
    border: 1px solid transparent;
    transition: .18s ease;
}

.admin-sidebar-link:hover,
.admin-sidebar-link.active {
    color: #fff;
    background: rgba(255,255,255,0.10);
    border-color: rgba(255,255,255,0.12);
    transform: translateX(2px);
}

.admin-sidebar-card {
    margin-top: auto;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.08);
    display: grid;
    gap: 10px;
}

.mini-pill--dark {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.10);
    color: rgba(255,255,255,0.82);
}

.admin-sidebar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.admin-sidebar-actions .btn-soft-light {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.10);
    color: #fff;
}

.admin-sidebar-actions .btn-soft-light:hover {
    background: rgba(255,255,255,0.18);
}

.admin-workspace {
    flex: 1;
    min-width: 0;
}

.admin-toolbar-v2 {
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 22px 24px 0;
    background: linear-gradient(180deg, rgba(243,246,251,0.94) 0%, rgba(243,246,251,0.82) 70%, rgba(243,246,251,0) 100%);
    backdrop-filter: blur(10px);
}

.admin-toolbar-card {
    background: rgba(255,255,255,0.82);
    border: 1px solid #dde5f2;
    border-radius: 24px;
    padding: 20px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 14px 44px rgba(15, 23, 42, 0.06);
}

.admin-page-title-v2 {
    font-size: clamp(1.7rem, 2.8vw, 2.35rem);
    font-weight: 800;
    color: #091a49;
}

.admin-page-subtitle {
    max-width: 760px;
    color: #6b7892;
}

.admin-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-main-v2 {
    padding: 24px;
}

.admin-flash-wrap {
    padding: 0 24px;
}

.admin-content {
    display: grid;
    gap: 24px;
}

.panel-surface,
.stat-surface,
.device-list-row,
.detail-box,
.notification-card,
.empty-card {
    background: #fff;
    border: 1px solid #dfe6f2;
    border-radius: 22px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.05);
}

.panel-surface {
    padding: 24px;
}

.panel-surface--inner {
    padding: 20px;
    box-shadow: none;
    background: #f9fbff;
}

.surface-head,
.results-panel-head,
.search-card-head,
.bulk-group-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.surface-title {
    margin: 4px 0 0;
    font-size: 1.25rem;
}

.eyebrow,
.eyebrow-pill {
    color: #2a56f0;
}

.stats-grid {
    gap: 16px;
}

.stat-surface {
    padding: 20px;
    min-height: 108px;
}

.stat-surface span {
    display: block;
    color: #7a869e;
    font-size: 0.92rem;
    margin-bottom: 10px;
}

.stat-surface strong {
    color: #0f172a;
    font-size: 1.85rem;
    font-weight: 800;
}

.admin-table {
    border-collapse: separate;
    border-spacing: 0 10px;
}

.admin-table thead th {
    border: 0;
    color: #7a869e;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 0 16px 10px;
}

.admin-table tbody td {
    background: #f8fbff;
    border-top: 1px solid #e6edf7;
    border-bottom: 1px solid #e6edf7;
    padding: 16px;
    vertical-align: middle;
}

.admin-table tbody td:first-child {
    border-left: 1px solid #e6edf7;
    border-radius: 16px 0 0 16px;
}

.admin-table tbody td:last-child {
    border-right: 1px solid #e6edf7;
    border-radius: 0 16px 16px 0;
}

.form-control,
.form-select,
textarea.form-control {
    border-radius: 16px;
    border-color: #d5dfef;
    min-height: 48px;
    box-shadow: none;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    border-color: #9cb6ff;
    box-shadow: 0 0 0 .2rem rgba(42,86,240,.10);
}

.btn {
    border-radius: 14px;
}

.device-list-row {
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    min-height: 120px;
}

.device-list-row span {
    color: #7a869e;
}

.device-list-row strong {
    font-size: 1.05rem;
    color: #0f172a;
}

.whois-page-card {
    padding: 30px;
}

.whois-hero-status {
    display: flex;
    align-items: center;
    gap: 18px;
    border-radius: 22px;
    padding: 20px;
    margin-bottom: 18px;
}

.whois-hero-status.available {
    background: #ecfbf3;
    border: 1px solid #cdeedb;
}

.whois-hero-status.registered {
    background: #fff6ea;
    border: 1px solid #ffe3b3;
}

.whois-hero-status.unknown {
    background: #f4f7fd;
    border: 1px solid #dde6f5;
}

.whois-status-icon {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.78);
    font-size: 1.6rem;
}

.whois-hero-status.available .whois-status-icon { color: #15a46d; }
.whois-hero-status.registered .whois-status-icon { color: #d19a28; }
.whois-hero-status.unknown .whois-status-icon { color: #65738d; }

@media (max-width: 1199px) {
    .admin-sidebar-v2 {
        width: 244px;
    }
}

@media (max-width: 991px) {
    .admin-shell-v2 {
        flex-direction: column;
    }

    .admin-sidebar-v2 {
        width: 100%;
        height: auto;
        position: relative;
    }

    .admin-sidebar-actions {
        grid-template-columns: 1fr;
    }

    .admin-toolbar-v2,
    .admin-main-v2,
    .admin-flash-wrap {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 767px) {
    .admin-toolbar-card,
    .surface-head,
    .results-panel-head,
    .bulk-group-head {
        flex-direction: column;
    }

    .admin-toolbar-actions {
        width: 100%;
    }

    .admin-toolbar-actions .btn {
        flex: 1;
    }

    .panel-surface,
    .whois-page-card {
        padding: 18px;
    }
}

.whois-simple-shell {
    padding: 28px;
}

.whois-simple-head {
    align-items: flex-start;
}

.whois-searchbar {
    display: flex;
    gap: 14px;
    align-items: stretch;
}

.whois-search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 0 18px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 18px;
}

.whois-search-input-wrap i {
    color: var(--text-soft);
    font-size: 1.15rem;
}

.whois-search-input-wrap .form-control {
    border: 0;
    box-shadow: none;
    background: transparent;
    padding: 0;
    font-size: 1rem;
}

.whois-search-btn {
    min-width: 160px;
    border-radius: 18px;
}

.whois-empty-state {
    padding: 20px;
    border: 1px dashed var(--border-strong);
    border-radius: 18px;
    background: var(--surface-2);
}

.whois-status-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--surface-2);
}

.whois-status-row.is-available {
    background: var(--success-soft);
    border-color: #ccead9;
}

.whois-status-row.is-registered {
    background: var(--primary-soft);
    border-color: #d6e2ff;
}

.whois-status-main h2 {
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    color: var(--heading);
}

.whois-status-side {
    min-width: 190px;
}

.whois-badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.92rem;
    margin-bottom: 12px;
}

.whois-badge-pill.available {
    background: #ffffff;
    color: var(--success);
    border: 1px solid #bfe4cf;
}

.whois-badge-pill.registered {
    background: #ffffff;
    color: var(--primary);
    border: 1px solid #c6d9ff;
}

.whois-badge-pill.unknown {
    background: #ffffff;
    color: var(--text-soft);
    border: 1px solid var(--border);
}

.whois-raw-card {
    overflow: hidden;
}

.whois-raw-pre {
    margin: 0;
    padding: 18px;
    border-radius: 16px;
    background: #0f1728;
    color: #dbe6ff;
    font-size: 0.9rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 520px;
    overflow: auto;
}

@media (max-width: 768px) {
    .whois-simple-shell {
        padding: 20px;
    }

    .whois-searchbar,
    .whois-status-row {
        flex-direction: column;
    }

    .whois-search-btn,
    .whois-status-side {
        width: 100%;
        min-width: 0;
    }
}


/* ===== v16 panel and whois refinements ===== */
.admin-toolbar-main {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.admin-toolbar-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1f45d8 0%, #3b82f6 100%);
    color: #fff;
    box-shadow: 0 18px 34px rgba(37, 99, 235, 0.24);
    font-size: 1.35rem;
    flex: 0 0 auto;
}

.admin-toolbar-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.admin-toolbar-breadcrumbs .mini-pill {
    background: #f1f5ff;
    border-color: #d8e2fb;
    color: #3755b6;
}

.admin-toolbar-card {
    align-items: flex-start;
}

.stat-surface {
    position: relative;
    overflow: hidden;
}

.stat-surface::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 5px;
    background: linear-gradient(180deg, #2f6bff 0%, #38bdf8 100%);
}

.stat-surface.success::before { background: linear-gradient(180deg, #19b56b 0%, #52d58f 100%); }
.stat-surface.warning::before { background: linear-gradient(180deg, #f59e0b 0%, #fbbf24 100%); }
.stat-surface.danger::before { background: linear-gradient(180deg, #ef4444 0%, #fb7185 100%); }
.stat-surface.info::before { background: linear-gradient(180deg, #3b82f6 0%, #60a5fa 100%); }

.quick-admin-link {
    position: relative;
    overflow: hidden;
    gap: 12px;
}

.quick-admin-link i {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eef4ff;
    color: #2a56f0;
    font-size: 1.1rem;
}

.quick-admin-link small {
    display: block;
    color: #7a869e;
    font-size: 0.84rem;
}

.admin-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.admin-overview-grid .detail-box {
    min-height: 136px;
    background: linear-gradient(180deg, #fbfcff 0%, #f6f9ff 100%);
}

.admin-overview-grid .detail-box strong {
    font-size: 1.02rem;
    line-height: 1.45;
}

.admin-overview-grid .detail-box small {
    display: block;
    margin-top: 8px;
    line-height: 1.55;
}

.admin-table tbody tr:hover td {
    background: #f3f7ff;
}

.notification-card {
    padding: 18px;
}

.notification-card.is-unread {
    border-left: 4px solid #2a56f0;
}

.notification-card.is-read {
    opacity: 0.94;
}

.whois-clean-layout {
    max-width: 980px;
    margin: 0 auto;
}

.whois-summary-shell {
    display: grid;
    gap: 16px;
}

.whois-status-row {
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.whois-status-row.is-available {
    background: linear-gradient(180deg, #effbf3 0%, #ecf8f1 100%);
}

.whois-status-row.is-registered {
    background: linear-gradient(180deg, #eff4ff 0%, #edf3ff 100%);
}

.whois-status-main p {
    max-width: 720px;
}

.whois-raw-card .surface-head {
    align-items: center;
}

.whois-raw-pre {
    font-size: 0.88rem;
    max-height: 680px;
}

@media (max-width: 991px) {
    .admin-overview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .admin-toolbar-main {
        flex-direction: column;
    }

    .admin-toolbar-icon {
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }

    .quick-admin-link {
        min-height: 140px;
    }
}


/* ===== AdminLTE inspired refresh ===== */
.adminlte-body {
    background: #f4f6f9 !important;
    color: #2f3542;
}
.adminlte-body .admin-shell-v2 {
    display: grid;
    grid-template-columns: 264px minmax(0, 1fr);
    gap: 0;
    min-height: 100vh;
}
.adminlte-body .admin-sidebar-v2 {
    background: linear-gradient(180deg, #343a40 0%, #2f353a 100%) !important;
    color: #c2c7d0;
    padding: 0;
    border-right: 1px solid rgba(255,255,255,.06);
    box-shadow: inset -1px 0 0 rgba(255,255,255,.04);
}
.adminlte-body .admin-sidebar-brand {
    padding: 18px 18px 16px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.adminlte-body .brand-block--admin strong,
.adminlte-body .brand-block--admin small {
    color: #fff;
}
.adminlte-body .brand-block--admin small {
    color: #adb5bd;
}
.adminlte-body .brand-block--admin .brand-logo {
    border-radius: 12px;
    background: linear-gradient(135deg, #3c8dbc 0%, #4ea8de 100%);
    box-shadow: 0 8px 18px rgba(60,141,188,.32);
}
.adminlte-body .admin-sidebar-section,
.adminlte-body .admin-sidebar-card {
    padding: 18px;
}
.adminlte-body .admin-sidebar-card {
    margin: 8px 14px 18px;
    border-radius: 14px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.06);
}
.adminlte-body .admin-sidebar-label {
    color: #8fa1b3;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    margin-bottom: 12px;
}
.adminlte-body .admin-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.adminlte-body .admin-sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 10px;
    color: #c2c7d0;
    padding: 10px 14px;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
.adminlte-body .admin-sidebar-link i {
    font-size: 1rem;
    width: 18px;
    text-align: center;
}
.adminlte-body .admin-sidebar-link:hover {
    background: rgba(255,255,255,.06);
    color: #fff;
    transform: translateX(2px);
}
.adminlte-body .admin-sidebar-link.active {
    background: linear-gradient(90deg, rgba(60,141,188,.92) 0%, rgba(78,168,222,.92) 100%);
    color: #fff;
    box-shadow: 0 10px 20px rgba(60,141,188,.2);
}
.adminlte-body .mini-pill--dark,
.adminlte-body .admin-sidebar-card .mini-pill {
    background: rgba(255,255,255,.08);
    border-color: rgba(255,255,255,.09);
    color: #e9ecef;
}
.adminlte-body .admin-sidebar-actions {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}
.adminlte-body .admin-workspace {
    min-width: 0;
    background: #f4f6f9;
}
.adminlte-body .admin-toolbar-v2 {
    padding: 16px 18px 0;
}
.adminlte-body .admin-toolbar-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: #fff;
    border: 1px solid #e5e9f2;
    border-radius: 14px;
    padding: 16px 18px;
    box-shadow: 0 8px 24px rgba(31,45,61,.06);
}
.adminlte-body .admin-toolbar-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}
.adminlte-body .admin-toolbar-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eaf4fb;
    color: #3c8dbc;
    font-size: 1.25rem;
}
.adminlte-body .admin-page-title-v2 {
    color: #343a40;
    font-size: 1.5rem;
    font-weight: 700;
}
.adminlte-body .admin-page-subtitle {
    color: #6c757d;
}
.adminlte-body .eyebrow-pill {
    background: #ecf5fb;
    border-color: #d7ebf6;
    color: #3c8dbc;
}
.adminlte-body .admin-top-status {
    background: #ecf5fb;
    border-color: #d7ebf6;
    color: #3c8dbc;
}
.adminlte-body .admin-toolbar-breadcrumbs .mini-pill {
    background: #f7f9fc;
}
.adminlte-body .admin-main-v2,
.adminlte-body .admin-flash-wrap {
    padding-left: 18px;
    padding-right: 18px;
}
.adminlte-body .admin-main-v2 {
    padding-top: 18px;
    padding-bottom: 24px;
}
.adminlte-body .panel-surface,
.adminlte-body .stat-surface {
    background: #fff !important;
    border: 1px solid #e5e9f2;
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(31,45,61,.05);
}
.adminlte-body .panel-surface {
    overflow: hidden;
}
.adminlte-body .panel-surface--inner {
    background: #fbfcfe !important;
}
.adminlte-body .surface-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.adminlte-body .surface-title {
    font-size: 1.12rem;
    font-weight: 700;
    color: #343a40;
    margin-bottom: 0;
}
.adminlte-body .eyebrow {
    color: #3c8dbc;
    font-size: .75rem;
    letter-spacing: .12em;
}
.adminlte-body .stats-grid {
    gap: 14px;
}
.adminlte-body .stat-surface {
    position: relative;
    padding: 18px 18px 18px 22px;
    min-height: 112px;
}
.adminlte-body .stat-surface::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 12px 0 0 12px;
    background: linear-gradient(180deg, #3c8dbc 0%, #4ea8de 100%);
}
.adminlte-body .stat-surface.success::before { background: linear-gradient(180deg, #28a745 0%, #48c774 100%); }
.adminlte-body .stat-surface.warning::before { background: linear-gradient(180deg, #f39c12 0%, #ffbf4d 100%); }
.adminlte-body .stat-surface.danger::before { background: linear-gradient(180deg, #dc3545 0%, #f06d7a 100%); }
.adminlte-body .stat-surface.info::before { background: linear-gradient(180deg, #17a2b8 0%, #4cc9de 100%); }
.adminlte-body .stat-surface span {
    color: #6c757d;
    font-weight: 600;
    font-size: .88rem;
}
.adminlte-body .stat-surface strong {
    color: #343a40;
    font-size: 1.7rem;
    font-weight: 800;
}
.adminlte-body .detail-box {
    background: #f8fafc;
    border: 1px solid #e6edf6;
    border-radius: 12px;
}
.adminlte-body .detail-box span {
    color: #6c757d;
}
.adminlte-body .detail-box strong {
    color: #343a40;
}
.adminlte-body .form-control,
.adminlte-body .form-select,
.adminlte-body textarea {
    background: #fff;
    border-color: #d8e0ea;
    border-radius: 10px;
    min-height: 44px;
    box-shadow: none;
}
.adminlte-body .form-control:focus,
.adminlte-body .form-select:focus,
.adminlte-body textarea:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 .18rem rgba(60,141,188,.14);
}
.adminlte-body .btn {
    border-radius: 10px;
    font-weight: 700;
}
.adminlte-body .btn-primary,
.adminlte-body .primary-cta {
    background: #3c8dbc;
    border-color: #367fa9;
    color: #fff;
}
.adminlte-body .btn-primary:hover,
.adminlte-body .primary-cta:hover {
    background: #367fa9;
    border-color: #2f6f93;
}
.adminlte-body .btn-soft-light {
    background: #fff;
    border-color: #d8e0ea;
}
.adminlte-body .btn-soft-primary {
    background: #ecf5fb;
    border-color: #d7ebf6;
    color: #3c8dbc;
}
.adminlte-body .modern-table {
    margin-bottom: 0;
}
.adminlte-body .modern-table thead th {
    background: #f8fafc;
    color: #6c757d;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
    border-bottom: 1px solid #e8edf3;
}
.adminlte-body .modern-table tbody td {
    border-color: #eef2f7;
    vertical-align: middle;
}
.adminlte-body .modern-table tbody tr:hover {
    background: #fafcff;
}
.adminlte-body .status-chip {
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: .02em;
}
.adminlte-body .device-list-row,
.adminlte-body .quick-admin-link {
    background: #fff;
    border: 1px solid #e5e9f2;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(31,45,61,.04);
}
.adminlte-body .device-list-row:hover,
.adminlte-body .quick-admin-link:hover {
    border-color: #cfe4f2;
    box-shadow: 0 10px 24px rgba(31,45,61,.08);
}
.adminlte-body .quick-admin-link i {
    color: #3c8dbc;
}
.adminlte-body .notification-mini,
.adminlte-body .table-tag,
.adminlte-body .mini-pill,
.adminlte-body .signal-pill {
    background: #f8fafc;
    border-color: #e7edf5;
    color: #637381;
}
@media (max-width: 1199px) {
    .adminlte-body .admin-shell-v2 {
        grid-template-columns: 1fr;
    }
    .adminlte-body .admin-sidebar-v2 {
        position: relative;
        height: auto;
    }
}
@media (max-width: 767px) {
    .adminlte-body .admin-toolbar-card {
        flex-direction: column;
        align-items: stretch;
    }
    .adminlte-body .admin-toolbar-actions {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
    }
}

/* ===== Whois embed / compact ===== */
.whois-embed-body {
    margin: 0;
    background: #f4f6f9;
    color: #1f2937;
}
.whois-embed-shell {
    max-width: 860px;
    margin: 0 auto;
    padding: 12px;
}
.whois-embed-card {
    background: #fff;
    border: 1px solid #e5e9f2;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(31,45,61,.05);
    overflow: hidden;
}
.whois-embed-header {
    padding: 16px 18px;
    border-bottom: 1px solid #eef2f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.whois-embed-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.whois-embed-title h1 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: #243447;
    word-break: break-word;
}
.whois-embed-title p {
    margin: 0;
    color: #6b7280;
    font-size: .88rem;
}
.whois-embed-content {
    padding: 16px 18px 18px;
}
.whois-embed-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}
.whois-embed-meta .detail-box {
    min-height: 92px;
}
.whois-embed-raw {
    margin-top: 12px;
    border-radius: 12px;
    background: #0f172a;
    color: #e2e8f0;
    padding: 14px;
    font-size: .82rem;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-x: auto;
}
.whois-embed-empty {
    padding: 18px;
    color: #6b7280;
}
.whois-compact-shell {
    max-width: 980px;
}
.whois-compact-search {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.whois-compact-search .whois-search-input-wrap { flex: 1; }
@media (max-width: 767px) {
    .whois-embed-meta {
        grid-template-columns: 1fr;
    }
}


/* ===== v18 AdminLTE redesign + clean embed ===== */
.adminlte-body {
    background: #eef1f5;
}
.adminlte-body .admin-shell-v2 {
    grid-template-columns: 272px minmax(0, 1fr);
    background: #eef1f5;
}
.adminlte-body .admin-sidebar-v2 {
    background: linear-gradient(180deg, #222d32 0%, #1f282d 100%) !important;
    color: #b8c7ce;
    box-shadow: inset -1px 0 0 rgba(255,255,255,.05);
}
.adminlte-body .admin-sidebar-brand {
    background: rgba(255,255,255,.02);
}
.adminlte-body .admin-sidebar-link {
    position: relative;
    min-height: 42px;
}
.adminlte-body .admin-sidebar-link.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: #3c8dbc;
}
.adminlte-body .admin-sidebar-card {
    background: rgba(0,0,0,.18);
    border-color: rgba(255,255,255,.05);
}
.adminlte-body .admin-workspace {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f4f6f9;
}
.adminlte-body .admin-toolbar-v2 {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 14px 18px 0;
    background: linear-gradient(180deg, rgba(244,246,249,.96) 0%, rgba(244,246,249,.82) 75%, rgba(244,246,249,0) 100%);
}
.adminlte-body .admin-toolbar-card--adminlte {
    border-radius: 12px;
    padding: 16px 18px;
    box-shadow: 0 10px 26px rgba(31,45,61,.08);
}
.adminlte-body .admin-toolbar-copy {
    min-width: 0;
}
.adminlte-body .admin-page-title-v2 {
    font-size: 1.45rem;
    line-height: 1.2;
}
.adminlte-body .admin-toolbar-actions--stack {
    display: grid;
    gap: 10px;
    justify-items: end;
}
.adminlte-body .admin-toolbar-meta-row,
.adminlte-body .admin-toolbar-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}
.adminlte-body .admin-main-v2 {
    padding-top: 18px;
}
.adminlte-body .admin-content {
    gap: 18px;
}
.adminlte-body .panel-surface,
.adminlte-body .stat-surface {
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px rgba(16,24,40,.05);
}
.adminlte-body .panel-surface {
    padding: 0;
}
.adminlte-body .panel-surface > * {
    padding-left: 22px;
    padding-right: 22px;
}
.adminlte-body .panel-surface > .surface-head,
.adminlte-body .panel-surface > form,
.adminlte-body .panel-surface > .table-responsive,
.adminlte-body .panel-surface > .row,
.adminlte-body .panel-surface > .detail-grid,
.adminlte-body .panel-surface > .admin-overview-grid,
.adminlte-body .panel-surface > .admin-dashboard-grid,
.adminlte-body .panel-surface > .empty-card,
.adminlte-body .panel-surface > .list-group,
.adminlte-body .panel-surface > .notification-list {
    padding-top: 18px;
    padding-bottom: 18px;
}
.adminlte-body .panel-surface > .surface-head {
    border-bottom: 1px solid #edf1f5;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}
.adminlte-body .surface-title {
    font-size: 1.05rem;
}
.adminlte-body .stats-grid {
    gap: 14px;
}
.adminlte-body .stat-surface {
    min-height: 104px;
    padding: 18px 18px 18px 20px;
}
.adminlte-body .stat-surface strong {
    font-size: 1.55rem;
}
.adminlte-body .table-responsive {
    overflow-x: auto;
}
.adminlte-body .modern-table thead th {
    position: sticky;
    top: 0;
    background: #f8fafc;
    z-index: 1;
}
.adminlte-body .modern-table tbody td {
    background: #fff;
}
.adminlte-body .modern-table tbody tr:nth-child(even) td {
    background: #fbfcfe;
}
.adminlte-body .modern-table tbody tr:hover td {
    background: #f4f9fd;
}
.adminlte-body .device-list-row,
.adminlte-body .quick-admin-link {
    min-height: 132px;
    padding: 18px;
    border-radius: 10px;
}
.adminlte-body .quick-admin-link {
    position: relative;
    overflow: hidden;
}
.adminlte-body .quick-admin-link::after {
    content: "";
    position: absolute;
    right: -24px;
    bottom: -24px;
    width: 86px;
    height: 86px;
    border-radius: 50%;
    background: rgba(60,141,188,.07);
}
.adminlte-body .quick-admin-link i {
    font-size: 1.2rem;
}
.adminlte-body .mini-pill,
.adminlte-body .table-tag,
.adminlte-body .signal-pill,
.adminlte-body .notification-mini {
    border-radius: 999px;
}
.adminlte-body .form-label {
    font-weight: 700;
    color: #4b5563;
}
.adminlte-body .btn {
    min-height: 42px;
}
.adminlte-body .admin-footer-v2 {
    margin: auto 18px 18px;
    padding: 14px 18px;
    border: 1px solid #e5e9f2;
    border-radius: 10px;
    background: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #6c757d;
}
.adminlte-body .admin-footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.whois-embed-body--clean {
    background: #ffffff;
}
.whois-embed-shell--app {
    max-width: 100%;
    padding: 0;
    margin: 0;
}
.whois-embed-card--clean {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: #ffffff;
}
.whois-embed-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid #eef2f7;
}
.whois-embed-domain {
    font-size: 1rem;
    font-weight: 800;
    color: #1f2937;
    word-break: break-word;
}
.whois-embed-subline {
    margin-top: 4px;
    font-size: .82rem;
    color: #6b7280;
}
.whois-inline-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: #374151;
    white-space: nowrap;
}
.whois-inline-status--available {
    background: #ecfdf5;
    border-color: #d1fae5;
    color: #047857;
}
.whois-inline-status--registered {
    background: #eff6ff;
    border-color: #dbeafe;
    color: #1d4ed8;
}
.whois-inline-status--unknown {
    background: #f3f4f6;
    border-color: #e5e7eb;
    color: #4b5563;
}
.whois-embed-raw--clean {
    margin: 0;
    min-height: calc(100vh - 84px);
    border-radius: 0;
    background: #ffffff;
    color: #111827;
    padding: 16px;
    font-size: .86rem;
    line-height: 1.55;
    white-space: pre-wrap;
}
.whois-embed-card--clean .whois-embed-empty {
    padding: 18px 16px;
    color: #6b7280;
}

@media (max-width: 991px) {
    .adminlte-body .admin-shell-v2 {
        grid-template-columns: 1fr;
    }
    .adminlte-body .admin-footer-v2,
    .adminlte-body .admin-toolbar-v2,
    .adminlte-body .admin-main-v2,
    .adminlte-body .admin-flash-wrap {
        margin-left: 0;
        margin-right: 0;
    }
}
@media (max-width: 767px) {
    .adminlte-body .admin-toolbar-actions--stack,
    .adminlte-body .admin-toolbar-meta-row,
    .adminlte-body .admin-toolbar-action-row {
        width: 100%;
        justify-content: flex-start;
    }
    .whois-embed-topline {
        align-items: flex-start;
        flex-direction: column;
    }
    .whois-embed-raw--clean {
        min-height: calc(100vh - 108px);
    }
}

/* ===== Admin panel redesign v19 ===== */
.admin-body {
    background: #f4f6f9;
    color: #344054;
}

.admin-shell-v2 {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar-v2 {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 20px 16px;
    background: linear-gradient(180deg, #243447 0%, #1b2838 100%);
    color: rgba(255,255,255,.88);
    border-right: 1px solid rgba(255,255,255,.06);
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow-y: auto;
}

.brand-block--admin strong,
.brand-block--admin small,
.admin-sidebar-label,
.admin-sidebar-profile strong { color: #fff; }
.brand-block--admin small,
.admin-sidebar-profile small,
.admin-sidebar-label { opacity: .72; }
.brand-block--admin .brand-logo {
    background: linear-gradient(135deg, #3c8dbc 0%, #367fa9 100%);
    box-shadow: 0 10px 24px rgba(60, 141, 188, .35);
}

.admin-sidebar-profile,
.admin-sidebar-card {
    background: rgba(255,255,255,.055);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    padding: 14px;
}

.admin-sidebar-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.admin-sidebar-avatar {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(60, 141, 188, .22);
    color: #fff;
    font-size: 1.2rem;
}

.admin-sidebar-link,
.sidebar-mini-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    color: rgba(255,255,255,.82);
    transition: background .18s ease, transform .18s ease, color .18s ease;
}

.admin-sidebar-link:hover,
.sidebar-mini-link:hover,
.admin-sidebar-link.active {
    background: rgba(60, 141, 188, .22);
    color: #fff;
    transform: translateX(2px);
}

.admin-sidebar-link.active {
    box-shadow: inset 3px 0 0 #3c8dbc;
}

.sidebar-mini-link {
    background: rgba(255,255,255,.04);
    margin-top: 8px;
}

.admin-workspace {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.admin-toolbar-v2 {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 18px 20px 0;
    background: linear-gradient(180deg, #f4f6f9 0%, rgba(244,246,249,.94) 85%, rgba(244,246,249,0) 100%);
}

.admin-toolbar-card--adminlte {
    border-radius: 18px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 8px 30px rgba(15, 23, 42, .06);
    padding: 18px 22px;
}

.admin-toolbar-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, #3c8dbc 0%, #367fa9 100%);
    color: #fff;
    box-shadow: none;
}

.admin-page-title-v2 {
    color: #1f2937;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -.02em;
}

.admin-page-subtitle { color: #667085; }
.eyebrow-pill {
    background: #ecf5fb;
    color: #3c8dbc;
    border-color: #d7e8f4;
}

.mini-pill {
    background: #fff;
    border-color: #e5e7eb;
    color: #667085;
}

.admin-top-status { color: #198754; }
.admin-top-status i { color: #22c55e; font-size: .58rem; }
.admin-main-v2 {
    padding: 20px;
}

.admin-content { display: flex; flex-direction: column; gap: 20px; }
.admin-flash-wrap { padding: 0 20px; }

.stats-grid-8,
.stats-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.stats-grid-8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.small-stat {
    position: relative;
    overflow: hidden;
    min-height: 126px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 20px rgba(16,24,40,.04);
    padding: 18px 18px 16px;
}
.small-stat::after {
    content: "";
    position: absolute;
    inset: auto -20px -20px auto;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: rgba(255,255,255,.18);
}
.small-stat__label {
    display: block;
    color: rgba(255,255,255,.85);
    font-size: .84rem;
    font-weight: 600;
}
.small-stat__value {
    display: block;
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    margin-top: 8px;
}
.small-stat__meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    color: rgba(255,255,255,.9);
    font-size: .8rem;
}
.small-stat__icon {
    position: absolute;
    right: 16px;
    top: 14px;
    font-size: 2.4rem;
    color: rgba(255,255,255,.25);
}
.small-stat--blue { background: linear-gradient(135deg, #3c8dbc 0%, #4da3d9 100%); }
.small-stat--green { background: linear-gradient(135deg, #00a65a 0%, #34c38f 100%); }
.small-stat--orange { background: linear-gradient(135deg, #f39c12 0%, #f7b84b 100%); }
.small-stat--red { background: linear-gradient(135deg, #dd4b39 0%, #f46a6a 100%); }
.small-stat--navy { background: linear-gradient(135deg, #3c4b64 0%, #60708b 100%); }
.small-stat--purple { background: linear-gradient(135deg, #605ca8 0%, #8b7fe8 100%); }

.panel-surface,
.notification-card,
.empty-card,
.detail-box,
.result-mini-card,
.stat-surface,
.device-list-row {
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 10px 24px rgba(16,24,40,.04);
}

.panel-surface {
    padding: 18px;
}

.surface-head {
    align-items: center;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #eef2f6;
}

.surface-title {
    font-size: 1.08rem;
    color: #1f2937;
}

.eyebrow {
    color: #3c8dbc;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .74rem;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 14px;
}
.filters-grid > * { min-width: 0; }
.filters-grid .span-4 { grid-column: span 4; }
.filters-grid .span-3 { grid-column: span 3; }
.filters-grid .span-2 { grid-column: span 2; }
.filters-grid .span-1 { grid-column: span 1; }
.filters-grid .span-8 { grid-column: span 8; }
.filters-grid .span-12 { grid-column: span 12; }

.form-control,
.form-select,
.bulk-textarea {
    min-height: 44px;
    border-radius: 10px;
    border-color: #d0d5dd;
}
.form-control:focus,
.form-select:focus,
.bulk-textarea:focus {
    border-color: #8fc7e8;
    box-shadow: 0 0 0 .2rem rgba(60,141,188,.14);
}

.btn-primary,
.primary-cta {
    background: #3c8dbc;
    border-color: #3c8dbc;
}
.btn-primary:hover,
.primary-cta:hover {
    background: #367fa9;
    border-color: #367fa9;
}
.btn-soft-primary {
    background: #eef7fc;
    border-color: #d7e8f4;
    color: #3c8dbc;
}
.btn-soft-light {
    background: #f9fafb;
    border-color: #e5e7eb;
    color: #344054;
}
.btn-soft-danger {
    background: #fff5f5;
    border-color: #ffd7d7;
    color: #dd4b39;
}

.status-chip {
    padding: 7px 12px;
    font-size: .77rem;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: .02em;
}
.status-chip.available { background: #eaf8f1; color: #0f9d58; border-color: #caefd9; }
.status-chip.registered { background: #fff1f1; color: #dd4b39; border-color: #ffd1d1; }
.status-chip.unknown { background: #f3f4f6; color: #667085; border-color: #e5e7eb; }
.status-chip.warning { background: #fff8eb; color: #b7791f; border-color: #f8e1af; }

.modern-table thead th {
    background: #f9fafb;
    color: #667085;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 700;
    border-bottom: 1px solid #e5e7eb;
    padding: 14px 12px;
}
.modern-table tbody td {
    padding: 14px 12px;
    border-color: #eef2f6;
}
.modern-table tbody tr:hover { background: #fbfdff; }

.device-cell strong,
.detail-box strong,
.result-mini-card strong {
    color: #1f2937;
}
.device-cell small,
.detail-box span,
.result-mini-card .small,
.text-secondary {
    color: #667085 !important;
}

.detail-box {
    padding: 16px;
    min-height: 104px;
}
.detail-box span {
    display: block;
    margin-bottom: 8px;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
}
.detail-box strong {
    display: block;
    font-size: 1rem;
}
.detail-box small {
    color: #667085;
    display: block;
    margin-top: 8px;
}

.quick-admin-link {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    padding: 18px;
    min-height: 170px;
}
.quick-admin-link i {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    background: #eef7fc;
    color: #3c8dbc;
}
.quick-admin-link span {
    color: #3c8dbc;
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.quick-admin-link strong {
    color: #1f2937;
    font-size: 1.05rem;
}
.quick-admin-link small { color: #667085; }

.notification-card {
    padding: 18px;
    border-left: 4px solid #d0d5dd;
}
.notification-card.is-unread { border-left-color: #3c8dbc; }
.notification-card.is-read { opacity: .92; }

.empty-card {
    padding: 32px 24px;
    border-style: dashed;
    background: #fcfdff;
}
.empty-card i { font-size: 2rem; color: #98a2b3; }

.admin-footer-v2 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px 28px;
    color: #667085;
}

.admin-footer-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.section-split {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 20px;
}
.section-split--equal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.page-actions-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.admin-note-box {
    border-radius: 14px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    color: #667085;
}

@media (max-width: 1199px) {
    .admin-shell-v2 { grid-template-columns: 1fr; }
    .admin-sidebar-v2 {
        position: relative;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.06);
    }
    .section-split,
    .section-split--equal,
    .stats-grid-8,
    .stats-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .admin-main-v2,
    .admin-toolbar-v2,
    .admin-flash-wrap { padding-left: 14px; padding-right: 14px; }
    .admin-toolbar-card--adminlte { padding: 16px; }
    .admin-toolbar-main,
    .admin-toolbar-card,
    .admin-toolbar-action-row,
    .admin-toolbar-meta-row,
    .admin-footer-v2,
    .surface-head,
    .topbar-card { flex-direction: column; align-items: stretch; }
    .stats-grid-8,
    .stats-grid-4,
    .section-split,
    .section-split--equal { grid-template-columns: 1fr; }
    .filters-grid { grid-template-columns: 1fr; }
    .filters-grid .span-1,
    .filters-grid .span-2,
    .filters-grid .span-3,
    .filters-grid .span-4,
    .filters-grid .span-8,
    .filters-grid .span-12 { grid-column: auto; }
}


/* ===== Admin panel compact redesign v20 ===== */

.admin-body { font-size: 14px; }
.admin-shell-v2 {
    grid-template-columns: 248px minmax(0, 1fr);
    background: #f4f6f9;
}
.admin-sidebar-v2 {
    padding: 10px 12px 12px;
    gap: 12px;
    background: #222d32;
    border-right: 1px solid rgba(255,255,255,.05);
    scrollbar-width: thin;
    scrollbar-color: rgba(148,163,184,.38) transparent;
}
.admin-sidebar-v2::-webkit-scrollbar { width: 6px; }
.admin-sidebar-v2::-webkit-scrollbar-track { background: transparent; }
.admin-sidebar-v2::-webkit-scrollbar-thumb { background: rgba(148,163,184,.32); border-radius: 999px; }
.admin-sidebar-brand {
    padding: 4px 4px 10px;
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.brand-block--admin { gap: 10px; }
.brand-block--admin .brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 1rem;
    background: linear-gradient(135deg, #3c8dbc 0%, #2f78a4 100%);
    box-shadow: none;
}
.brand-block--admin strong { font-size: .98rem; }
.brand-block--admin small { font-size: .76rem; }
.admin-sidebar-profile,
.admin-sidebar-card {
    border-radius: 10px;
    padding: 10px 12px;
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.06);
}
.admin-sidebar-profile--compact {
    display: flex;
    align-items: center;
    gap: 10px;
}
.admin-sidebar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(60,141,188,.18);
    font-size: 1rem;
}
.admin-sidebar-profile strong { font-size: .92rem; }
.admin-sidebar-profile small { font-size: .76rem; }
.admin-sidebar-section { display: flex; flex-direction: column; min-height: 0; }
.admin-sidebar-label {
    font-size: .68rem;
    letter-spacing: .12em;
    margin: 2px 2px 6px;
}
.admin-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.admin-sidebar-link,
.sidebar-mini-link {
    padding: 10px 12px;
    border-radius: 8px;
    gap: 10px;
    font-size: .92rem;
    transform: none !important;
}
.admin-sidebar-link i,
.sidebar-mini-link i { width: 18px; text-align: center; }
.admin-sidebar-link:hover,
.sidebar-mini-link:hover,
.admin-sidebar-link.active {
    background: rgba(60,141,188,.18);
    box-shadow: none;
}
.admin-sidebar-link.active {
    color: #fff;
    box-shadow: inset 3px 0 0 #3c8dbc;
}
.admin-sidebar-card--compact {
    margin-top: auto;
    display: grid;
    gap: 6px;
}
.admin-toolbar-v2 {
    padding: 10px 14px 0;
    background: linear-gradient(180deg, #f4f6f9 0%, rgba(244,246,249,.96) 80%, rgba(244,246,249,0) 100%);
}
.admin-toolbar-card--compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(16,24,40,.05), 0 6px 14px rgba(16,24,40,.04);
}
.admin-toolbar-main--compact { display: flex; align-items: center; min-width: 0; }
.admin-page-kicker {
    display: inline-block;
    margin-bottom: 2px;
    color: #3c8dbc;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.admin-toolbar-icon,
.admin-page-subtitle,
.eyebrow-pill { display: none !important; }
.admin-page-title-v2 {
    font-size: 1.18rem;
    line-height: 1.2;
    font-weight: 700;
}
.admin-toolbar-actions--compact {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.admin-toolbar-actions--compact .mini-pill {
    padding: 6px 10px;
    font-size: .76rem;
    border-radius: 999px;
}
.admin-toolbar-actions--compact .btn {
    padding: .38rem .55rem;
    border-radius: 8px;
    min-width: 36px;
}
.admin-main-v2,
.admin-flash-wrap { padding-left: 14px; padding-right: 14px; }
.admin-main-v2 { padding-top: 14px; }
.admin-content { gap: 16px; }
.stats-grid-8,
.stats-grid-4,
.section-split,
.section-split--equal { gap: 16px; }
.small-stat,
.panel-surface,
.notification-card,
.empty-card,
.detail-box,
.result-mini-card,
.stat-surface,
.device-list-row,
.admin-toolbar-card--adminlte,
.form-control,
.form-select,
.bulk-textarea,
.btn {
    border-radius: 10px;
}
.small-stat {
    min-height: 106px;
    padding: 14px 16px;
}
.small-stat__label {
    font-size: .78rem;
    line-height: 1.2;
}
.small-stat__value {
    font-size: 1.7rem;
    margin-top: 6px;
}
.small-stat__meta {
    margin-top: 8px;
    font-size: .76rem;
}
.small-stat__icon {
    top: 12px;
    right: 14px;
    font-size: 2rem;
}
.panel-surface { padding: 16px; }
.surface-head {
    padding-bottom: 12px;
    margin-bottom: 12px;
}
.surface-title {
    font-size: 1rem;
    line-height: 1.25;
}
.eyebrow {
    font-size: .68rem;
    letter-spacing: .12em;
}
.filters-grid { gap: 12px; }
.form-label {
    font-size: .76rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #667085;
}
.modern-table thead th {
    font-size: .72rem;
    letter-spacing: .08em;
    padding: 12px 10px;
}
.modern-table tbody td {
    font-size: .92rem;
    padding: 12px 10px;
}
.detail-box {
    padding: 14px;
    min-height: 92px;
}
.detail-box span {
    font-size: .7rem;
    margin-bottom: 6px;
}
.detail-box strong { font-size: .96rem; }
.detail-box small { font-size: .82rem; line-height: 1.45; }
.quick-admin-link {
    min-height: 142px;
    padding: 16px;
    gap: 12px;
}
.quick-admin-link i {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    font-size: 1.1rem;
}
.quick-admin-link span { font-size: .72rem; }
.quick-admin-link strong {
    font-size: .98rem;
    line-height: 1.25;
}
.quick-admin-link small {
    font-size: .82rem;
    line-height: 1.5;
}
.status-chip,
.mini-pill,
.table-tag,
.source-pill,
.soft-note,
.notification-mini {
    font-size: .74rem;
}
.admin-footer-v2 {
    padding: 12px 14px 18px;
    font-size: .84rem;
}
.admin-footer-meta .mini-pill {
    padding: 6px 10px;
    font-size: .74rem;
}
@media (max-width: 1199px) {
    .admin-shell-v2 { grid-template-columns: 1fr; }
    .admin-sidebar-v2 {
        position: relative;
        height: auto;
        max-height: none;
        overflow: visible;
    }
}
@media (max-width: 767px) {
    .stats-grid-8,
    .stats-grid-4,
    .section-split,
    .section-split--equal { grid-template-columns: 1fr; }
    .admin-toolbar-card--compact {
        align-items: flex-start;
        flex-direction: column;
    }
    .admin-toolbar-actions--compact {
        width: 100%;
        justify-content: flex-start;
    }
}

/* ===== Admin panel compact redesign v21 ===== */
.admin-body {
    background: #ecf0f5;
    color: #2f3c4b;
    font-size: 13px;
}
.admin-body .btn,
.admin-body .form-control,
.admin-body .form-select,
.admin-body .table,
.admin-body .mini-pill,
.admin-body .status-chip,
.admin-body .table-tag,
.admin-body .source-pill,
.admin-body .soft-note {
    font-size: 13px;
}
.admin-shell-v2 {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    min-height: 100vh;
    background: #ecf0f5;
}
.admin-sidebar-v2 {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: auto;
    padding: 0;
    gap: 0;
    background: #222d32;
    border-right: 1px solid rgba(0,0,0,.18);
}
.admin-sidebar-v2::-webkit-scrollbar { width: 4px; }
.admin-sidebar-v2::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); }
.admin-sidebar-brand--flat {
    padding: 14px 14px 12px;
    border-bottom: 1px solid rgba(255,255,255,.06);
    background: #1f2a30;
}
.brand-block--admin .brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: #3c8dbc;
    font-size: .95rem;
}
.brand-block--admin strong {
    color: #fff;
    font-size: .95rem;
    letter-spacing: -.01em;
}
.brand-block--admin small {
    color: rgba(255,255,255,.62);
    font-size: .72rem;
}
.admin-sidebar-nav--main {
    display: grid;
    gap: 2px;
    padding: 12px 10px;
}
.admin-sidebar-link {
    min-height: 40px;
    padding: 10px 12px;
    border-radius: 6px;
    color: #b8c7ce;
    font-size: .86rem;
    font-weight: 600;
    transition: background-color .16s ease, color .16s ease;
}
.admin-sidebar-link:hover {
    background: rgba(255,255,255,.05);
    color: #fff;
}
.admin-sidebar-link.active {
    background: #3c8dbc;
    color: #fff;
    box-shadow: none;
}
.admin-sidebar-link i {
    width: 16px;
    font-size: .95rem;
}
.admin-sidebar-footer-links {
    margin-top: auto;
    padding: 10px;
    display: grid;
    gap: 6px;
    border-top: 1px solid rgba(255,255,255,.06);
}
.sidebar-mini-link {
    justify-content: center;
    min-height: 36px;
    padding: 8px 10px;
    border-radius: 6px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.05);
    color: #d5dee3;
    font-size: .8rem;
}
.sidebar-mini-link:hover {
    background: rgba(255,255,255,.08);
    color: #fff;
}
.admin-workspace {
    min-width: 0;
}
.admin-toolbar-v2 {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 12px 16px 0;
    background: linear-gradient(180deg, #ecf0f5 0%, rgba(236,240,245,.96) 88%, rgba(236,240,245,0) 100%);
}
.admin-toolbar-card--flat {
    padding: 10px 14px;
    min-height: 48px;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16,24,40,.04);
}
.admin-page-title-v2 {
    font-size: 1.06rem;
    font-weight: 700;
    color: #2c3b41;
    letter-spacing: -.01em;
}
.admin-toolbar-actions--compact {
    gap: 6px;
}
.admin-toolbar-actions--compact .btn {
    min-width: 34px;
    min-height: 34px;
    padding: .3rem .45rem;
    border-radius: 6px;
}
.admin-main-v2,
.admin-flash-wrap {
    padding-left: 16px;
    padding-right: 16px;
}
.admin-main-v2 {
    padding-top: 12px;
    padding-bottom: 24px;
}
.admin-content {
    gap: 14px;
}
.section-split,
.section-split--equal,
.stats-grid-8,
.stats-grid-4 {
    gap: 14px;
}
.panel-surface,
.detail-box,
.notification-card,
.empty-card,
.result-mini-card,
.device-list-row,
.admin-footer-v2,
.small-stat {
    border-radius: 8px;
}
.panel-surface {
    padding: 14px;
    border: 1px solid #dfe6ef;
    box-shadow: 0 1px 2px rgba(16,24,40,.03);
}
.surface-head {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #edf1f7;
}
.eyebrow,
.eyebrow-pill,
.admin-page-kicker {
    display: none !important;
}
.surface-title {
    margin: 0;
    font-size: .96rem;
    font-weight: 700;
    color: #2c3b41;
}
.small-stat {
    min-height: 94px;
    padding: 12px 14px;
}
.small-stat__label {
    font-size: .74rem;
    opacity: .96;
}
.small-stat__value {
    font-size: 1.45rem;
    margin-top: 5px;
}
.small-stat__meta {
    font-size: .72rem;
    margin-top: 6px;
}
.small-stat__icon {
    font-size: 1.7rem;
    top: 12px;
    right: 12px;
    opacity: .18;
}
.form-label {
    margin-bottom: 5px;
    font-size: .74rem;
    font-weight: 700;
    color: #6b7a90;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.form-control,
.form-select,
.bulk-textarea {
    min-height: 40px;
    border-radius: 6px;
    border-color: #d7e0ea;
    box-shadow: none;
}
.bulk-textarea {
    min-height: 132px;
}
.btn {
    border-radius: 6px;
    font-weight: 600;
    box-shadow: none !important;
}
.btn-primary,
.primary-cta {
    background: #3c8dbc;
    border-color: #367fa9;
}
.btn-primary:hover,
.primary-cta:hover {
    background: #367fa9;
    border-color: #2f6d92;
}
.btn-soft-light {
    background: #fff;
}
.modern-table thead th {
    padding: 11px 10px;
    background: #f9fbfd;
    color: #7d8ba1;
    font-size: .7rem;
    font-weight: 800;
}
.modern-table tbody td {
    padding: 11px 10px;
    font-size: .88rem;
}
.device-cell strong,
.detail-box strong,
.quick-admin-link strong {
    color: #2c3b41;
}
.detail-box {
    padding: 12px;
    min-height: 84px;
    background: #fbfcfe;
}
.detail-box span {
    display: block;
    color: #7d8ba1;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.detail-box strong {
    margin-top: 4px;
    font-size: .94rem;
}
.detail-box small {
    display: block;
    margin-top: 4px;
    font-size: .8rem;
    line-height: 1.4;
}
.quick-admin-link {
    min-height: 128px;
    padding: 14px;
    gap: 10px;
    background: #fbfcfe;
    border: 1px solid #e4ebf3;
    box-shadow: none;
}
.quick-admin-link i {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    font-size: 1rem;
    background: #eff5fb;
    color: #3c8dbc;
}
.quick-admin-link span {
    font-size: .68rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #7d8ba1;
}
.quick-admin-link strong {
    font-size: .94rem;
}
.quick-admin-link small {
    font-size: .8rem;
    line-height: 1.45;
    color: #78879c;
}
.admin-footer-v2--flat {
    margin: 0 16px 16px;
    padding: 10px 12px;
    border: 1px solid #dfe6ef;
    background: #fff;
    box-shadow: 0 1px 2px rgba(16,24,40,.03);
}
.admin-footer-v2--flat .mini-pill {
    padding: 5px 9px;
    font-size: .72rem;
}
.mini-pill,
.status-chip,
.table-tag,
.source-pill,
.soft-note,
.notification-mini {
    border-radius: 999px;
    padding: 5px 9px;
    font-size: .72rem;
}
@media (max-width: 1199px) {
    .admin-shell-v2 {
        grid-template-columns: 1fr;
    }
    .admin-sidebar-v2 {
        position: relative;
        height: auto;
    }
    .admin-sidebar-footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 767px) {
    .admin-toolbar-v2,
    .admin-main-v2,
    .admin-flash-wrap,
    .admin-footer-v2--flat {
        padding-left: 12px;
        padding-right: 12px;
    }
    .admin-toolbar-card--flat {
        flex-direction: row;
        align-items: center;
    }
    .section-split,
    .section-split--equal,
    .stats-grid-8,
    .stats-grid-4,
    .filters-grid {
        grid-template-columns: 1fr;
    }
}


/* ===== Admin compact redesign v22 ===== */
.admin-body {
    background: #eef2f7;
    color: #2b3445;
}

.admin-shell-v2 {
    grid-template-columns: 236px minmax(0, 1fr);
    background: #eef2f7;
}

.admin-sidebar-v2 {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100dvh;
    overflow: hidden;
    background: linear-gradient(180deg, #1f2937 0%, #18212c 100%);
    border-right: 1px solid rgba(255,255,255,.05);
    box-shadow: inset -1px 0 0 rgba(255,255,255,.03);
}

.admin-sidebar-brand--flat {
    padding: 14px 16px;
    background: rgba(255,255,255,.02);
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.brand-block--admin {
    gap: 12px;
}

.brand-block--admin .brand-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #3c8dbc 0%, #4ba3de 100%);
    box-shadow: none;
}

.brand-block--admin strong {
    font-size: .95rem;
    line-height: 1.15;
}

.brand-block--admin small {
    margin-top: 1px;
    font-size: .71rem;
    color: rgba(255,255,255,.56);
}

.admin-sidebar-scroll {
    flex: 1 1 auto;
    overflow: auto;
    padding: 12px 10px 18px;
}

.admin-sidebar-scroll::-webkit-scrollbar {
    width: 5px;
}

.admin-sidebar-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.admin-sidebar-scroll::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.12);
    border-radius: 999px;
}

.admin-sidebar-section-label {
    padding: 0 10px 8px;
    color: rgba(184, 199, 206, .52);
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.admin-sidebar-nav--main {
    gap: 4px;
    padding: 0;
}

.admin-sidebar-link {
    min-height: 38px;
    padding: 9px 12px;
    border-radius: 10px;
    color: #c5d1da;
    font-size: .84rem;
    font-weight: 600;
}

.admin-sidebar-link:hover {
    background: rgba(255,255,255,.055);
}

.admin-sidebar-link.active {
    background: linear-gradient(135deg, #3c8dbc 0%, #4aa4de 100%);
}

.admin-sidebar-link i {
    width: 18px;
    font-size: .92rem;
}

.admin-sidebar-footer-links {
    flex: 0 0 auto;
    padding: 10px;
    background: rgba(0,0,0,.08);
    border-top: 1px solid rgba(255,255,255,.06);
}

.sidebar-mini-link {
    justify-content: flex-start;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(255,255,255,.04);
    color: #dbe3e9;
}

.sidebar-mini-link:hover {
    background: rgba(255,255,255,.08);
}

.admin-workspace {
    min-width: 0;
    padding: 0 14px 14px;
}

.admin-toolbar-v2 {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 10px 0 6px;
    background: linear-gradient(180deg, rgba(238,242,247,.96) 0%, rgba(238,242,247,.9) 78%, rgba(238,242,247,0) 100%);
    backdrop-filter: blur(8px);
}

.admin-toolbar-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 34px;
    padding: 2px 2px 0;
}

.admin-toolbar-copy--compact {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-toolbar-kicker {
    color: #8a96a8;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.admin-page-title-v2 {
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.1;
    color: #243041;
}

.admin-toolbar-actions--compact .btn {
    min-width: 32px;
    min-height: 32px;
    padding: .26rem .42rem;
    border-radius: 8px;
}

.admin-main-v2,
.admin-flash-wrap {
    padding-left: 0;
    padding-right: 0;
}

.admin-main-v2 {
    padding-top: 2px;
    padding-bottom: 14px;
}

.admin-content {
    gap: 12px;
}

.stats-grid,
.stats-grid-8,
.stats-grid-4,
.section-split,
.section-split--equal {
    gap: 12px;
}

.small-stat {
    min-height: 82px;
    padding: 10px 12px;
    border-radius: 12px;
}

.small-stat__label {
    font-size: .71rem;
}

.small-stat__value {
    margin-top: 4px;
    font-size: 1.36rem;
}

.small-stat__meta {
    margin-top: 5px;
    font-size: .7rem;
}

.small-stat__icon {
    top: 10px;
    right: 10px;
    font-size: 1.45rem;
    opacity: .16;
}

.panel-surface,
.admin-footer-v2,
.detail-box,
.quick-admin-link,
.empty-card,
.notification-card,
.result-mini-card,
.device-list-row {
    border-radius: 12px;
}

.panel-surface {
    padding: 13px 14px;
    background: #fff;
    border: 1px solid #dde5ef;
    box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 6px 18px rgba(15,23,42,.03);
}

.surface-head {
    align-items: center;
    margin-bottom: 10px;
    padding-bottom: 10px;
}

.surface-title {
    font-size: .96rem;
    font-weight: 700;
    line-height: 1.2;
}

.quick-admin-link {
    min-height: 116px;
    padding: 13px;
    border-radius: 12px;
}

.quick-admin-link i {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.quick-admin-link strong {
    font-size: .9rem;
}

.quick-admin-link small,
.detail-box small,
.modern-table tbody td,
.admin-body .table,
.admin-body .mini-pill,
.admin-body .status-chip,
.admin-body .table-tag,
.admin-body .source-pill,
.admin-body .soft-note {
    font-size: .79rem;
}

.detail-box {
    min-height: 78px;
    padding: 11px;
}

.detail-box strong {
    font-size: .9rem;
}

.filters-grid {
    gap: 12px;
}

.form-label {
    font-size: .68rem;
    letter-spacing: .08em;
}

.form-control,
.form-select,
.bulk-textarea {
    min-height: 38px;
    font-size: .84rem;
}

.btn {
    border-radius: 8px;
}

.modern-table thead th {
    padding: 10px 9px;
    font-size: .67rem;
}

.modern-table tbody td {
    padding: 10px 9px;
}

.admin-footer-v2--flat {
    margin: 0;
    padding: 10px 12px;
}

@media (max-width: 1199px) {
    .admin-shell-v2 {
        grid-template-columns: 1fr;
    }

    .admin-sidebar-v2 {
        position: relative;
        height: auto;
    }

    .admin-sidebar-scroll {
        overflow: visible;
    }

    .admin-workspace {
        padding: 0 12px 12px;
    }
}

@media (max-width: 767px) {
    .admin-toolbar-strip {
        align-items: flex-start;
    }

    .admin-toolbar-actions--compact {
        gap: 6px;
    }

    .stats-grid-8,
    .stats-grid-4,
    .section-split,
    .section-split--equal,
    .filters-grid {
        grid-template-columns: 1fr;
    }
}


/* v23 devices + admin cleanup */
.adminlte-body .admin-toolbar-v2 {
    background: transparent;
    border: 0;
    padding: 10px 0 6px;
    min-height: auto;
}
.adminlte-body .admin-toolbar-strip {
    min-height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
}
.adminlte-body .admin-toolbar-kicker {
    display: none;
}
.adminlte-body .admin-page-title-v2 {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -.01em;
}
.adminlte-body .admin-toolbar-actions--compact .btn {
    min-width: 30px;
    min-height: 30px;
    padding: .2rem .4rem;
}
.admin-content--devices-page {
    gap: 14px;
}
.panel-surface--compact-head {
    padding: 14px 16px;
}
.surface-head--tight {
    margin-bottom: 12px;
    padding-bottom: 0;
    border-bottom: 0;
}
.filters-grid--devices {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: end;
}
.filters-grid--devices .span-5 { grid-column: span 5; }
.filters-grid--devices .span-2 { grid-column: span 2; }
.filters-grid--devices .span-1 { grid-column: span 1; }
.devices-filter-actions {
    display: grid;
    gap: 8px;
}
.device-focus-surface {
    padding: 16px;
}
.device-focus-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, .9fr);
    gap: 16px;
}
.device-hero-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(180deg, #f9fbff 0%, #f3f7ff 100%);
}
.device-hero-main {
    display: flex;
    align-items: center;
    gap: 14px;
}
.device-avatar {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #eaf1ff;
    color: var(--primary);
    font-size: 1.35rem;
}
.device-hero-card h3 {
    margin: 0 0 4px;
    font-size: 1.02rem;
    color: var(--heading);
}
.device-hero-card p {
    margin: 0;
    color: var(--text-soft);
    font-size: .85rem;
}
.device-hero-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}
.device-overview-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}
.device-overview-grid .detail-box {
    min-height: 86px;
}
.device-manage-card {
    height: 100%;
}
.device-log-list {
    display: grid;
    gap: 10px;
}
.device-log-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fbfcff;
}
.device-log-item strong,
.device-table-main strong,
.device-table-meta strong {
    display: block;
    color: var(--heading);
    font-size: .9rem;
}
.device-log-item small,
.device-table-main small,
.device-table-meta small {
    display: block;
    color: var(--text-soft);
    font-size: .78rem;
    margin-top: 3px;
}
.device-log-item span {
    color: var(--text-soft);
    font-size: .78rem;
    white-space: nowrap;
}
.modern-table--devices tbody tr.is-selected {
    background: #f7faff;
}
.device-table-main code {
    margin-top: 6px;
    display: inline-block;
    color: #60718a;
    background: #f2f5fb;
    border: 1px solid #e1e7f0;
    border-radius: 8px;
    padding: 4px 7px;
    font-size: .72rem;
}
.panel-surface--table .table-responsive {
    margin-top: 6px;
}
.adminlte-body .small-stat {
    min-height: 74px;
}
.adminlte-body .small-stat__value {
    font-size: 1.28rem;
}
.adminlte-body .admin-sidebar-v2 {
    width: 214px;
}
.adminlte-body .admin-shell-v2 {
    grid-template-columns: 214px minmax(0, 1fr);
}
.adminlte-body .admin-workspace {
    padding: 10px 14px 14px;
}
.adminlte-body .admin-sidebar-brand {
    padding: 12px 10px 10px;
}
.adminlte-body .admin-sidebar-scroll {
    padding: 8px 8px 14px;
}
.adminlte-body .admin-sidebar-link {
    min-height: 38px;
    padding: 9px 11px;
    border-radius: 10px;
    font-size: .84rem;
}
.adminlte-body .admin-sidebar-link i {
    font-size: .9rem;
}
.adminlte-body .admin-sidebar-section-label {
    margin: 8px 10px 8px;
    font-size: .64rem;
}
.adminlte-body .admin-sidebar-footer-links {
    padding: 10px 8px 10px;
}
.adminlte-body .sidebar-mini-link {
    min-height: 36px;
    padding: 8px 10px;
    font-size: .8rem;
    border-radius: 10px;
}
@media (max-width: 1399px) {
    .device-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 1199px) {
    .device-focus-layout,
    .filters-grid--devices {
        grid-template-columns: 1fr;
    }
    .filters-grid--devices .span-5,
    .filters-grid--devices .span-2,
    .filters-grid--devices .span-1 {
        grid-column: auto;
    }
}
@media (max-width: 767px) {
    .device-hero-card,
    .device-log-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .device-overview-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Admin content pages redesign v24 ===== */
.page-split-main {
    align-items: start;
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, .84fr);
}
.page-stack,
.surface-subgrid,
.notification-list--admin {
    display: grid;
    gap: 14px;
}
.surface-actions-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.detail-grid--tight {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.filters-grid--watchlist,
.filters-grid--notifications {
    grid-template-columns: repeat(12, minmax(0, 1fr));
}
.filters-grid--watchlist .span-7 { grid-column: span 7; }
.filters-grid--watchlist .span-4 { grid-column: span 4; }
.filters-grid--watchlist .span-1 { grid-column: span 1; }
.filters-grid--notifications .span-4 { grid-column: span 4; }
.filters-grid--notifications .span-3 { grid-column: span 3; }
.filters-grid--notifications .span-2 { grid-column: span 2; }
.filters-grid--notifications .span-1 { grid-column: span 1; }
.tld-chip-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tld-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid #d9e3ee;
    background: #f8fbff;
    color: #4b6077;
    font-size: .76rem;
    font-weight: 700;
}
.notification-card {
    padding: 14px;
}
.notification-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.notification-card-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .6fr);
    gap: 14px;
    align-items: start;
}
.notification-card-title {
    margin: 0 0 6px;
    font-size: .98rem;
    font-weight: 700;
    color: #243144;
}
.notification-card-text {
    margin: 0;
    color: #6c7b90;
    line-height: 1.55;
    font-size: .88rem;
}
.notification-card-side {
    display: grid;
    gap: 12px;
    justify-items: start;
}
.watchlist-layout .panel-surface--table,
.notifications-layout .panel-surface--table,
.tlds-layout .panel-surface--table,
.settings-layout .panel-surface--compact-head {
    min-height: 100%;
}
.admin-content--watchlists-page .panel-surface--table .table-responsive,
.admin-content--tlds-page .panel-surface--table .table-responsive {
    margin-top: 4px;
}
.admin-content--watchlists-page .device-table-main strong,
.admin-content--tlds-page .device-table-main strong,
.admin-content--notifications-page .detail-box strong,
.admin-content--settings-page .detail-box strong {
    font-size: .92rem;
}
.admin-content--settings-page .detail-box strong {
    word-break: break-word;
}
.admin-content--settings-page .btn,
.admin-content--notifications-page .btn,
.admin-content--watchlists-page .btn,
.admin-content--tlds-page .btn {
    min-height: 38px;
}
.admin-content--watchlists-page code,
.admin-content--notifications-page code,
.admin-content--settings-page code {
    font-size: .72rem;
    color: #5c6f88;
    background: #f3f7fb;
    border: 1px solid #e1e7ef;
    border-radius: 8px;
    padding: 3px 6px;
}
.admin-content--watchlists-page .admin-note-box,
.admin-content--notifications-page .admin-note-box,
.admin-content--settings-page .admin-note-box,
.admin-content--tlds-page .admin-note-box {
    padding: 14px;
    border-radius: 12px;
    background: #f8fbff;
    border-color: #dce7f2;
}
@media (max-width: 1399px) {
    .page-split-main {
        grid-template-columns: minmax(0, 1fr) 320px;
    }
    .notification-card-body {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 1199px) {
    .page-split-main,
    .section-split.page-split-main {
        grid-template-columns: 1fr;
    }
    .filters-grid--watchlist,
    .filters-grid--notifications {
        grid-template-columns: 1fr;
    }
    .filters-grid--watchlist .span-7,
    .filters-grid--watchlist .span-4,
    .filters-grid--watchlist .span-1,
    .filters-grid--notifications .span-4,
    .filters-grid--notifications .span-3,
    .filters-grid--notifications .span-2,
    .filters-grid--notifications .span-1 {
        grid-column: auto;
    }
}
@media (max-width: 767px) {
    .detail-grid--tight {
        grid-template-columns: 1fr;
    }
    .notification-card-head {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* ===== v25 compact admin refresh ===== */
.adminlte-body {
    font-size: 14px;
}
.adminlte-body .admin-sidebar-v2 {
    width: 228px;
    min-width: 228px;
    background: linear-gradient(180deg, #202a36 0%, #1b2430 100%) !important;
}
.adminlte-body .admin-shell-v2 {
    grid-template-columns: 228px minmax(0, 1fr);
}
.adminlte-body .admin-sidebar-brand {
    padding: 12px 12px 10px;
}
.adminlte-body .brand-block--admin {
    gap: 10px;
}
.adminlte-body .brand-block--admin .brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: .9rem;
}
.adminlte-body .brand-block--admin strong {
    font-size: .95rem;
}
.adminlte-body .brand-block--admin small {
    font-size: .72rem;
}
.adminlte-body .admin-sidebar-scroll {
    padding: 8px 8px 10px;
    overflow: auto;
}
.adminlte-body .admin-sidebar-section-label {
    margin: 8px 10px 6px;
    color: #8ea0b5;
    font-size: .63rem;
    letter-spacing: .12em;
}
.adminlte-body .admin-sidebar-link {
    min-height: 36px;
    padding: 8px 11px;
    gap: 10px;
    font-size: .84rem;
    border-radius: 9px;
}
.adminlte-body .admin-sidebar-footer-links {
    padding: 10px 8px 10px;
}
.adminlte-body .sidebar-mini-link {
    min-height: 34px;
    padding: 7px 10px;
    font-size: .78rem;
    border-radius: 9px;
    background: rgba(255,255,255,.04);
    border-color: rgba(255,255,255,.05);
    color: #d0d7e2;
}
.adminlte-body .admin-workspace {
    padding: 10px 14px 14px;
}
.admin-toolbar-v2 {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 0 0 10px;
    background: transparent;
    backdrop-filter: none;
}
.admin-toolbar-strip {
    background: #fff;
    border: 1px solid #e3e8ef;
    border-radius: 12px;
    min-height: 56px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 6px 18px rgba(31,45,61,.05);
}
.admin-toolbar-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6c7a89;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 2px;
}
.admin-page-title-v2 {
    font-size: 1.18rem !important;
    line-height: 1.2;
}
.admin-toolbar-actions--compact .btn {
    min-height: 34px;
    padding: 6px 10px;
    font-size: .82rem;
    border-radius: 9px;
}
.admin-main-v2,
.adminlte-body .admin-main-v2 {
    padding: 0;
}
.admin-flash-wrap,
.adminlte-body .admin-flash-wrap {
    padding: 0 0 10px;
}
.admin-content,
.adminlte-body .admin-content {
    gap: 16px;
}
.adminlte-body .panel-surface,
.adminlte-body .stat-surface {
    border-radius: 12px;
    box-shadow: 0 5px 18px rgba(31,45,61,.04);
}
.adminlte-body .panel-surface {
    padding: 16px;
}
.adminlte-body .panel-surface--inner {
    padding: 14px;
}
.adminlte-body .surface-head {
    gap: 10px;
}
.adminlte-body .surface-title {
    font-size: 1rem;
}
.adminlte-body .eyebrow {
    font-size: .66rem;
}
.compact-stats-grid,
.adminlte-body .compact-stats-grid {
    gap: 12px;
}
.small-stat,
.adminlte-body .small-stat {
    min-height: 86px;
    padding: 14px 16px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(31,45,61,.08);
}
.small-stat__label,
.adminlte-body .small-stat__label {
    font-size: .78rem;
    margin-bottom: 6px;
}
.small-stat__value,
.adminlte-body .small-stat__value {
    font-size: 1.45rem;
    line-height: 1.05;
}
.small-stat__meta,
.adminlte-body .small-stat__meta {
    font-size: .76rem;
}
.small-stat__icon,
.adminlte-body .small-stat__icon {
    display: none;
}
.dashboard-main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, .9fr);
    gap: 16px;
    align-items: start;
}
.quick-link-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 6px;
}
.quick-link-card {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid #e5eaf1;
    border-radius: 12px;
    background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
    transition: .18s ease;
}
.quick-link-card:hover {
    transform: translateY(-1px);
    border-color: #cfe0ef;
    box-shadow: 0 8px 22px rgba(31,45,61,.05);
}
.quick-link-card i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #eef5fb;
    color: #3c8dbc;
    font-size: 1rem;
}
.quick-link-card span {
    color: #6c7a89;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.quick-link-card strong {
    color: #2f3542;
    font-size: .95rem;
}
.quick-link-card small {
    color: #7d8897;
    font-size: .79rem;
    line-height: 1.45;
}
.compact-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.compact-detail-grid .detail-box {
    min-height: 88px;
}
.mini-tag-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.list-rows {
    display: grid;
    gap: 10px;
}
.list-row-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 13px;
    border: 1px solid #e7edf5;
    border-radius: 11px;
    background: #fff;
}
.list-row-item--soft {
    background: #f8fafc;
}
.list-row-item strong {
    display: block;
    color: #2f3542;
    font-size: .9rem;
}
.list-row-item small {
    display: block;
    color: #7b8794;
    font-size: .78rem;
    margin-top: 2px;
}
.filters-grid--compact {
    row-gap: 10px;
}
.filters-grid--compact .page-actions-inline {
    margin-top: 2px;
}
.adminlte-body .modern-table thead th {
    font-size: .74rem;
    padding: 0 12px 10px;
}
.adminlte-body .modern-table tbody td {
    padding: 13px 12px;
    font-size: .85rem;
}
.adminlte-body .table-tag,
.adminlte-body .status-chip,
.adminlte-body .mini-pill {
    font-size: .75rem;
    padding: 6px 10px;
}
.device-focus-surface {
    padding: 16px !important;
}
.device-focus-layout {
    grid-template-columns: minmax(0, 1.7fr) minmax(300px, .95fr);
    gap: 14px;
}
.device-hero-card {
    border-radius: 12px;
    padding: 14px 16px;
}
.device-avatar {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    font-size: 1.15rem;
}
.device-hero-card h3 {
    font-size: 1rem;
}
.device-hero-card p {
    font-size: .8rem;
}
.device-overview-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}
.device-overview-grid .detail-box {
    min-height: 82px;
}
.device-log-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.device-log-item {
    min-height: 68px;
}
.admin-footer-v2 {
    margin-top: 14px;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid #e4e9f1;
    border-radius: 12px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 4px 14px rgba(31,45,61,.04);
}
@media (max-width: 1399px) {
    .quick-link-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 1199px) {
    .dashboard-main-grid,
    .device-focus-layout,
    .page-split-main {
        grid-template-columns: 1fr;
    }
    .device-log-list {
        grid-template-columns: 1fr;
    }
    .compact-detail-grid,
    .mini-tag-grid,
    .device-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 767px) {
    .adminlte-body .admin-shell-v2 {
        grid-template-columns: 1fr;
    }
    .adminlte-body .admin-sidebar-v2 {
        width: 100%;
        min-width: 0;
        position: relative;
        height: auto;
    }
    .admin-toolbar-strip {
        flex-direction: column;
        align-items: stretch;
    }
    .quick-link-grid,
    .compact-detail-grid,
    .mini-tag-grid,
    .device-overview-grid {
        grid-template-columns: 1fr;
    }
    .admin-toolbar-actions--compact {
        width: 100%;
        display: flex;
    }
    .admin-toolbar-actions--compact .btn {
        flex: 1;
    }
}

/* ===== v26 public homepage refresh ===== */
.public-body {
    background: linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
}

.site-header {
    background: rgba(247, 249, 252, 0.88);
    border-bottom: 1px solid rgba(213, 222, 236, 0.88);
}

.topbar-card {
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(219, 228, 240, 0.95);
    box-shadow: 0 12px 30px rgba(15, 31, 74, 0.06);
    border-radius: 20px;
    padding: 12px 16px;
}

.topbar-links .mini-pill {
    background: #f7f9fc;
}

.home-lite-section {
    padding: 26px 0 14px;
}

.home-lite-hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 18px;
    align-items: stretch;
    margin-bottom: 18px;
}

.home-lite-copy,
.home-lite-stats,
.home-search-card,
.feature-card--clean {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid #dde5f0;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(17, 33, 68, 0.06);
}

.home-lite-copy {
    padding: 26px 28px;
}

.home-lite-pill {
    background: #eef3ff;
    color: var(--primary);
    border-color: #d8e4ff;
}

.home-lite-title {
    margin: 14px 0 10px;
    color: var(--heading);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
    font-weight: 800;
}

.home-lite-text {
    color: var(--text-soft);
    font-size: 1.03rem;
    line-height: 1.72;
    max-width: 620px;
    margin: 0;
}

.home-lite-bullets {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.home-lite-bullets span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    background: #f7f9fc;
    border: 1px solid #e2e8f3;
    color: var(--text-soft);
    font-size: 0.9rem;
    font-weight: 600;
}

.home-lite-bullets i {
    color: var(--success);
}

.home-lite-stats {
    padding: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.home-lite-stat {
    padding: 18px;
    border-radius: 18px;
    background: #f7f9fc;
    border: 1px solid #e2e8f3;
}

.home-lite-stat strong {
    display: block;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--heading);
    margin-bottom: 8px;
}

.home-lite-stat span {
    color: var(--text-soft);
    font-size: 0.92rem;
}

.home-search-card {
    padding: 26px;
}

.home-search-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 22px;
}

.home-search-title {
    margin-top: 4px;
    font-size: 1.5rem;
}

.home-popular-tlds {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.home-popular-tlds .table-tag {
    background: #f7f9fc;
    border-color: #dfe6f1;
    color: var(--text-soft);
}

.home-search-form {
    display: grid;
    gap: 18px;
}

.home-mode-switch {
    margin-bottom: 0;
}

.home-search-box-group {
    grid-template-columns: minmax(0, 1fr) 158px;
    margin-bottom: 10px;
}

.modern-input-wrap--soft {
    min-height: 62px;
    border-radius: 18px;
    padding: 0 16px;
    background: #f7f9fc;
    border: 1px solid #dfe6f1;
}

.modern-input-wrap--soft i {
    color: #758399;
    font-size: 1.08rem;
}

.home-search-submit {
    min-height: 62px;
    min-width: 158px;
    border-radius: 18px;
    background: linear-gradient(135deg, #1639aa, #245bff);
    box-shadow: none;
}

.home-search-submit:hover {
    background: linear-gradient(135deg, #102f95, #1d4fef);
}

.home-tld-card {
    background: #f7f9fc;
    border: 1px solid #dde5f0;
    border-radius: 20px;
    padding: 18px;
}

.home-selector-topline {
    margin-bottom: 14px;
}

.home-tld-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
    gap: 12px;
}

.home-tld-chip span {
    min-height: 44px;
    border-radius: 999px;
    background: #fff;
    border-color: #dbe3ef;
    color: #29436a;
}

.home-tld-chip input:checked + span {
    background: #edf2ff;
    border-color: #bfd0ff;
    color: var(--primary);
}

.results-panel {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid #dde5f0;
    box-shadow: 0 16px 38px rgba(17, 33, 68, 0.06);
}

.showcase-section--clean {
    padding-top: 6px;
}

.feature-card--clean {
    height: 100%;
    padding: 22px;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.8);
}

.feature-card--clean .feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #eef3ff;
    color: var(--primary);
}

.feature-card--clean h4 {
    margin-top: 14px;
    margin-bottom: 8px;
    font-size: 1.08rem;
}

.site-footer .footer-card {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #dde5f0;
    box-shadow: 0 14px 36px rgba(17, 33, 68, 0.05);
}

@media (max-width: 991.98px) {
    .home-lite-hero {
        grid-template-columns: 1fr;
    }

    .home-search-head {
        flex-direction: column;
        align-items: stretch;
    }

    .home-popular-tlds {
        justify-content: flex-start;
    }

    .home-tld-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .home-lite-copy,
    .home-search-card {
        padding: 20px;
    }

    .home-lite-stats {
        grid-template-columns: 1fr 1fr;
    }

    .home-search-box-group {
        grid-template-columns: 1fr;
    }

    .home-search-submit {
        width: 100%;
    }

    .home-tld-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .topbar-card {
        padding: 12px;
    }

    .home-lite-section {
        padding-top: 18px;
    }

    .home-lite-title {
        font-size: 1.9rem;
    }

    .home-lite-stats,
    .home-tld-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* ===== v27 minimal public homepage ===== */
.public-body {
    background: #f3f6fb;
}

.site-header--minimal {
    position: static;
    background: transparent;
    border-bottom: 0;
}

.topbar-card--minimal {
    justify-content: flex-start;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 4px 0 0;
}

.public-search-section {
    padding: 18px 0 8px;
}

.public-search-container {
    max-width: 820px;
}

.public-search-card {
    background: #fff;
    border: 1px solid #dbe4f0;
    border-radius: 24px;
    box-shadow: 0 14px 32px rgba(16, 28, 56, 0.06);
    padding: 34px 34px 24px;
}

.public-search-copy {
    text-align: center;
    margin-bottom: 22px;
}

.public-search-title {
    margin: 0;
    color: var(--heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
    font-weight: 800;
}

.public-search-subtitle {
    margin: 8px 0 0;
    color: var(--text-soft);
    font-size: .95rem;
    font-weight: 500;
}

.public-domain-form {
    display: grid;
    gap: 16px;
}

.public-search-box-group {
    grid-template-columns: minmax(0, 1fr) 72px;
    margin-bottom: 0;
}

.public-search-input-wrap {
    min-height: 64px;
    background: #f8fafc;
    border-color: #dbe4f0;
    border-radius: 18px;
    padding: 0 18px;
}

.public-search-input-wrap i {
    color: #7a879c;
    font-size: 1.08rem;
}

.public-search-submit {
    min-width: 72px;
    min-height: 64px;
    border-radius: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1840c6, #245bff);
    box-shadow: none;
    padding: 0;
}

.public-search-submit i {
    font-size: 1.25rem;
}

.public-tld-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding-top: 2px;
}

.public-tld-chip span {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff;
    border-color: #dbe4f0;
    color: #29436a;
    font-size: .9rem;
}

.public-tld-chip input:checked + span {
    background: #edf2ff;
    border-color: #bfd0ff;
    color: var(--primary);
}

.site-footer--minimal {
    padding-top: 12px !important;
}

.footer-card--minimal {
    justify-content: center;
    text-align: center;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0 0 16px;
}

.footer-card--minimal .h6 {
    color: var(--heading);
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .public-search-card {
        padding: 24px 20px 20px;
        border-radius: 22px;
    }

    .public-search-box-group {
        grid-template-columns: 1fr 64px;
    }
}

@media (max-width: 575.98px) {
    .public-search-title {
        font-size: 2rem;
    }

    .public-tld-row {
        justify-content: flex-start;
    }
}


/* ===== Public homepage refinements v28 ===== */
.public-search-container { max-width: 880px; }
.public-search-card--refined {
    padding: 30px 30px 26px;
    border-radius: 28px;
    box-shadow: 0 18px 42px rgba(18, 36, 77, 0.07);
}
.public-search-copy--tight { margin-bottom: 18px; }
.public-search-title { font-size: clamp(2.1rem, 4vw, 3rem); }
.public-search-subtitle { margin-top: 6px; font-size: .92rem; }
.public-search-box-group { grid-template-columns: minmax(0, 1fr) 76px; }
.public-search-input-wrap {
    min-height: 66px;
    background: #f8fbff;
    border-color: #d8e3f4;
}
.public-search-submit {
    min-width: 76px;
    min-height: 66px;
    border-radius: 20px;
}
.public-tld-selector {
    margin-top: 4px;
    padding: 18px;
    border: 1px solid #dce5f3;
    border-radius: 22px;
    background: linear-gradient(180deg, #fbfcff 0%, #f5f8ff 100%);
}
.public-tld-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}
.public-tld-title {
    font-size: .96rem;
    font-weight: 700;
    color: var(--heading);
}
.public-tld-note {
    margin: 4px 0 0;
    font-size: .84rem;
    color: var(--text-soft);
}
.public-tld-actions {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.btn-tld-action {
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid #d7e2f3;
    background: #fff;
    color: #35517f;
    font-size: .84rem;
    font-weight: 600;
    box-shadow: none;
}
.btn-tld-action:hover {
    background: #edf3ff;
    color: var(--primary);
    border-color: #bfd0ff;
}
.public-tld-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}
.public-tld-grid--all {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #d7e1f2;
}
.public-tld-chip {
    margin: 0;
    display: block;
}
.public-tld-chip span {
    width: 100%;
    min-height: 44px;
    padding: 0 16px;
    justify-content: center;
    font-size: .92rem;
    font-weight: 700;
    background: #fff;
    border-color: #d9e3f2;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.65);
}
.public-tld-chip--secondary span {
    color: #40536f;
    background: #fcfdff;
}
.public-tld-chip input:checked + span {
    background: linear-gradient(180deg, #eef3ff 0%, #e7efff 100%);
    border-color: #b7cbff;
    color: #1847d1;
}
.results-panel--public {
    margin-top: 26px;
    padding: 28px;
    border-radius: 26px;
    box-shadow: 0 18px 40px rgba(17, 34, 74, 0.07);
}
.surface-title--large {
    font-size: 1.35rem;
    font-weight: 800;
}
.results-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0 0 18px;
}
.results-stat-card {
    padding: 16px 18px;
    border: 1px solid #dce5f4;
    border-radius: 18px;
    background: linear-gradient(180deg, #fbfdff 0%, #f6f9ff 100%);
}
.results-stat-card .stat-label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-soft);
    font-size: .82rem;
    font-weight: 600;
}
.results-stat-card .stat-value {
    color: var(--heading);
    font-size: 1.7rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -.03em;
}
.results-stat-card.available .stat-value { color: var(--success); }
.results-stat-card.registered .stat-value { color: var(--danger); }
.results-stat-card.unknown .stat-value { color: #c68410; }
.results-toolbar {
    gap: 10px;
    margin-bottom: 18px !important;
}
.result-card {
    padding: 20px;
    border-radius: 20px;
    box-shadow: none;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.result-card.available { border-color: #cdeedd; }
.result-card.registered { border-color: #ffd7da; }
.result-card.unknown { border-color: #fee5b1; }
.result-card-top {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}
.result-state-icon {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex: 0 0 46px;
}
.result-card.available .result-state-icon {
    background: var(--success-soft);
    color: var(--success);
}
.result-card.registered .result-state-icon {
    background: var(--danger-soft);
    color: var(--danger);
}
.result-card.unknown .result-state-icon {
    background: var(--warning-soft);
    color: #c68410;
}
.result-main { min-width: 0; flex: 1 1 auto; }
.result-domain-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}
.result-domain {
    margin: 0;
    color: var(--heading);
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.2;
    overflow-wrap: anywhere;
}
.result-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 800;
    border: 1px solid transparent;
    white-space: nowrap;
}
.result-message {
    margin: 0;
    color: var(--text-soft);
    font-size: .94rem;
    line-height: 1.6;
}
.result-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}
.result-meta-card {
    padding: 12px 14px;
    border: 1px solid #dde6f4;
    border-radius: 16px;
    background: #fff;
}
.result-meta-card .meta-label {
    display: block;
    margin-bottom: 4px;
    color: var(--text-soft);
    font-size: .76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.result-meta-card .meta-value {
    color: var(--heading);
    font-size: .92rem;
    line-height: 1.45;
    font-weight: 700;
    overflow-wrap: anywhere;
}
.result-nameservers {
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px dashed #d9e4f4;
    border-radius: 16px;
    background: #fff;
}
.result-nameservers .meta-label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-soft);
    font-size: .76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.result-nameservers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.result-ns-pill {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: #f4f7fd;
    border: 1px solid #dde6f4;
    color: #31476d;
    font-size: .8rem;
    font-weight: 700;
}
@media (max-width: 991.98px) {
    .public-tld-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
    .public-search-card--refined,
    .results-panel--public { padding: 22px 18px; }
    .public-tld-head,
    .result-domain-line { flex-direction: column; align-items: flex-start; }
    .results-stats { grid-template-columns: 1fr; }
    .result-meta-grid { grid-template-columns: 1fr; }
    .public-tld-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .public-search-box-group { grid-template-columns: 1fr 64px; }
    .public-search-submit { min-width: 64px; min-height: 62px; }
    .public-tld-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* v25 visible admin test push card */
.device-focus-side .device-manage-card {
    height: auto !important;
}
.device-test-push-card {
    border-color: rgba(14, 165, 233, .22) !important;
    background: linear-gradient(180deg, #ffffff 0%, #f5fbff 100%) !important;
}
.device-push-state {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}
.device-push-state span {
    display: block;
    border: 1px solid #e4e9f1;
    border-radius: 10px;
    padding: 9px 10px;
    background: #fff;
    color: #64748b;
    font-size: .78rem;
}
.device-push-state span.ok {
    border-color: #d7f4e4;
    background: #f1fcf6;
    color: #11834b;
}
.device-push-state span.warn {
    border-color: #ffe5bc;
    background: #fff8ed;
    color: #9a5b06;
}
.device-push-state span.bad {
    border-color: #ffd7d7;
    background: #fff4f4;
    color: #b42318;
}
.admin-note-box--warning {
    border-color: #ffe1a6 !important;
    background: #fff8e7 !important;
    color: #815000 !important;
}
@media (max-width: 1399px) {
    .device-push-state {
        grid-template-columns: 1fr;
    }
}

/* v26 device cleanup/delete controls */
.device-cleanup-surface {
    border-color: rgba(209, 91, 102, .18) !important;
    background: linear-gradient(180deg, #ffffff 0%, #fffafa 100%) !important;
}
.cleanup-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.1fr) minmax(260px, 1.6fr) minmax(220px, .9fr);
    gap: 16px;
    align-items: start;
}
.cleanup-checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    padding: 12px 14px;
    border: 1px solid #edf0f6;
    border-radius: 16px;
    background: #fff;
}
.cleanup-checks .form-check {
    margin: 0;
    color: var(--text-soft);
    font-size: .9rem;
    font-weight: 650;
}
.device-delete-card {
    border-color: rgba(209, 91, 102, .24) !important;
    background: linear-gradient(180deg, #ffffff 0%, #fff7f8 100%) !important;
}
.device-delete-card .surface-title {
    color: var(--danger);
}
@media (max-width: 1199.98px) {
    .cleanup-grid {
        grid-template-columns: 1fr;
    }
    .cleanup-checks {
        grid-template-columns: 1fr;
    }
}

/* v27 device detail cleanup UX */
.device-focus-surface--compact {
    display: grid;
    gap: 14px;
}
.device-focus-head {
    align-items: center;
}
.device-summary-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(180deg, #f9fbff 0%, #f3f7ff 100%);
}
.device-summary-strip h3 {
    margin: 0 0 4px;
    font-size: 1.02rem;
    color: var(--heading);
}
.device-summary-strip p {
    margin: 0;
    color: var(--text-soft);
    font-size: .84rem;
}
.device-overview-grid--compact {
    margin-top: 0;
    grid-template-columns: repeat(8, minmax(0, 1fr));
}
.device-overview-grid--compact .detail-box {
    min-height: 74px;
}
.device-tools-grid {
    display: grid;
    grid-template-columns: minmax(320px, 1.3fr) minmax(260px, .85fr) minmax(260px, .85fr);
    gap: 14px;
    align-items: start;
}
.device-tools-grid .device-manage-card {
    height: auto !important;
    min-height: 0;
}
.device-tools-grid textarea.form-control {
    min-height: 76px;
}
.device-activity-card {
    margin-top: 0 !important;
}
.compact-note {
    padding: 10px 12px !important;
    font-size: .82rem;
}
.cleanup-confirm-box {
    padding: 12px 14px;
    border: 1px solid #edf0f6;
    border-radius: 16px;
    background: #fff;
}
.cleanup-confirm-check,
.delete-confirm-check {
    margin: 0;
    padding: 10px 12px;
    border: 1px dashed #ffd1d6;
    border-radius: 12px;
    background: #fff7f8;
    color: #9f1d2a;
    font-weight: 750;
}
.cleanup-confirm-check .form-check-input,
.delete-confirm-check .form-check-input {
    margin-top: .25rem;
}
button:disabled,
.btn:disabled {
    cursor: not-allowed;
    opacity: .55;
}
@media (max-width: 1499.98px) {
    .device-overview-grid--compact {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .device-tools-grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
    }
    .device-delete-card {
        grid-column: 2;
    }
}
@media (max-width: 1199.98px) {
    .device-summary-strip,
    .device-focus-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .device-hero-tags {
        justify-content: flex-start;
    }
    .device-tools-grid {
        grid-template-columns: 1fr;
    }
    .device-delete-card {
        grid-column: auto;
    }
}
@media (max-width: 767.98px) {
    .device-overview-grid--compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .device-push-state {
        grid-template-columns: 1fr;
    }
}

/* v28 compact device management and visitor search tracking */
.devices-maintenance-details {
    padding: 0 !important;
    overflow: hidden;
}
.devices-maintenance-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    color: var(--heading);
}
.devices-maintenance-summary::-webkit-details-marker { display: none; }
.devices-maintenance-details[open] .devices-maintenance-summary {
    border-bottom: 1px solid var(--border);
}
.devices-maintenance-details[open] .devices-maintenance-summary .bi-chevron-down {
    transform: rotate(180deg);
}
.devices-maintenance-body {
    padding: 0 16px 16px;
}
.device-focus-surface--compact {
    padding: 12px !important;
    gap: 10px !important;
}
.device-focus-surface--compact .surface-head--tight {
    margin-bottom: 6px;
}
.device-summary-strip {
    padding: 10px 12px !important;
    border-radius: 12px !important;
}
.device-summary-strip .device-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 1.05rem;
}
.device-summary-strip h3 {
    font-size: .96rem !important;
}
.device-summary-strip p {
    font-size: .78rem !important;
}
.device-overview-grid--compact {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
}
.device-overview-grid--compact .detail-box {
    min-height: 58px !important;
    padding: 10px 12px !important;
}
.device-overview-grid--compact .detail-box span {
    font-size: .68rem;
}
.device-overview-grid--compact .detail-box strong {
    font-size: .82rem;
}
.device-tools-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(220px, .75fr) minmax(220px, .75fr) !important;
    gap: 10px !important;
    align-items: start !important;
}
.device-tools-grid .panel-surface--inner {
    padding: 12px !important;
    border-radius: 14px !important;
}
.device-push-state {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
}
.device-push-state span {
    padding: 7px 8px !important;
    font-size: .74rem !important;
}
.device-firebase-details {
    padding: 8px 10px !important;
}
.device-firebase-details summary {
    cursor: pointer;
    list-style: none;
}
.device-firebase-details summary::-webkit-details-marker { display: none; }
.device-push-form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) auto;
    gap: 8px;
    align-items: end;
}
.device-push-form-grid .form-label {
    margin-bottom: 4px;
}
.device-push-form-grid textarea.form-control {
    min-height: 38px !important;
    height: 38px;
}
.device-push-submit {
    min-width: 170px;
    white-space: nowrap;
}
.device-push-form-grid small.text-secondary {
    grid-column: 1 / -1;
}
.device-fold-card {
    padding: 0 !important;
    overflow: hidden;
    background: #fff !important;
}
.device-fold-summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 56px;
    padding: 12px 14px;
    font-weight: 800;
    color: var(--heading);
}
.device-fold-summary::-webkit-details-marker { display: none; }
.device-fold-summary::after {
    content: 'Aç';
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 8px;
    background: #f3f7fd;
    color: var(--text-soft);
    font-size: .68rem;
    font-weight: 800;
}
.device-fold-card[open] .device-fold-summary::after {
    content: 'Kapat';
}
.device-fold-summary small {
    display: block;
    color: var(--text-soft);
    font-size: .72rem;
    font-weight: 700;
}
.device-fold-summary--danger {
    color: var(--danger);
}
.device-fold-card form,
.device-fold-card > .admin-note-box {
    margin-left: 12px !important;
    margin-right: 12px !important;
}
.device-fold-card form {
    padding-bottom: 12px;
}
.device-fold-card textarea.form-control {
    min-height: 72px !important;
}
.device-activity-card {
    padding: 12px !important;
}
.device-log-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-height: 260px;
    overflow: auto;
    padding-right: 4px;
}
.device-log-item {
    padding: 9px 10px !important;
}
.device-log-item small {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
@media (max-width: 1199.98px) {
    .device-tools-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    .device-test-push-card {
        grid-column: 1 / -1;
    }
    .device-push-form-grid {
        grid-template-columns: 1fr 1fr;
    }
    .device-push-submit {
        grid-column: 1 / -1;
    }
}
@media (max-width: 767.98px) {
    .devices-maintenance-summary,
    .device-summary-strip,
    .device-focus-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .device-overview-grid--compact,
    .device-log-list,
    .device-tools-grid,
    .device-push-form-grid {
        grid-template-columns: 1fr !important;
    }
}
