/*
 * style-dark.css — CTPF.DNS ControlDesk | Dark Theme
 * Surfaces: #0d1526 | #172135 | #1c2840 | #141f38
 * Text:     #dce4f2 | rgba(220,228,242,X)
 * Accents:  #1e3068 (fills) | #f70000 | #198754 | #fff900
 * Created : 2026-04-05 13:33:43 +0200 CEST — Dark theme derived from style-light.css — by MikeGeorg
 * Updated : 2026-04-05 17:48:43 +0200 CEST — Improve modal placeholder readability in dark mode for better field sample contrast — by MikeGeorg
 * Updated : 2026-04-06 20:00:00 +0200 CEST — Sidebar from ticker bottom; app-header only over main column; mobile full-width header — by MikeGeorg
 * Updated : 2026-04-06 20:13:29 +0200 CEST — Restore app-header brand styles; sidebar below ticker+topbar; drop sidebar brand-sub — by MikeGeorg
 * Updated : 2026-04-06 20:36:49 +0200 CEST — .sidebar-section font-size 12px — by MikeGeorg
 */

/* ── CSS-Variablen ────────────────────────────────────────────────────── */
:root {
    --sidebar-w:   230px;
    --topbar-h:     48px;
    --ticker-h:     28px;
    --footer-h:     42px;

    --clr-brand:   #1e3068;
    --clr-danger:  #f70000;
    --clr-success: #198754;
    --clr-warning: #fff900;
    --clr-white:   #ffffff;

    --clr-brand-05:  rgba(220,228,242,.05);
    --clr-brand-08:  rgba(220,228,242,.08);
    --clr-brand-12:  rgba(220,228,242,.12);
    --clr-brand-15:  rgba(220,228,242,.15);
    --clr-brand-20:  rgba(220,228,242,.20);

    --clr-bg:      #172135;
    --clr-body-bg: #0d1526;
    --clr-border:  rgba(220,228,242,.12);
    --clr-text:    #dce4f2;
    --clr-muted:   rgba(220,228,242,.50);
    --clr-heading: #dce4f2;
}

/* ── Reset ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { height: 100%; }
body {
    min-height: 100%;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 0.825rem;
    color: #dce4f2;
    background: #0d1526;
}
a { text-decoration: none; color: inherit; }

/* ── Top Ticker ───────────────────────────────────────────────────────── */
.top-ticker {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--ticker-h); background: #0a1020; color: #dce4f2;
    z-index: 1060; display: flex; align-items: center;
    padding: 0 1.5rem; gap: 1.25rem; font-size: .72rem;
    border-bottom: 1px solid rgba(220,228,242,.08);
}
.ticker-item { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.ticker-dot { width: 7px; height: 7px; border-radius: 50%; background: #198754; display: inline-block; box-shadow: 0 0 5px #198754; flex-shrink: 0; }
.ticker-dot.warn  { background: #f70000; box-shadow: 0 0 5px #f70000; }
.ticker-lang { display: flex; align-items: center; gap: 4px; margin-left: auto; font-size: .72rem; }
.ticker-lang a { color: #dce4f2; font-weight: 600; text-decoration: none; transition: opacity .15s; }
.ticker-lang a:hover { opacity: .7; text-decoration: underline; }
.ticker-lang-sep { color: rgba(220,228,242,.4); }
.ticker-clock {
    margin-left: auto; white-space: nowrap;
    font-size: .72rem; font-weight: 600; letter-spacing: .01em;
    color: #dce4f2; font-variant-numeric: tabular-nums;
}

/* ── Sidebar ──────────────────────────────────────────────────────────── */
.sidebar {
    position: fixed;
    top: calc(var(--ticker-h) + var(--topbar-h));
    left: 0; bottom: var(--footer-h); width: var(--sidebar-w);
    background: #141f38; border-right: 1px solid rgba(220,228,242,.1);
    z-index: 1040; overflow-y: auto;
}
.sidebar-brand {
    position: sticky; top: 0; background: #141f38;
    border-bottom: 1px solid rgba(220,228,242,.1); z-index: 2;
    display: flex; align-items: center; gap: 10px; padding: 0.75rem 1.25rem;
}
.sidebar-brand .brand-icon {
    width: 30px; height: 30px; background: #1e3068; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    color: #ffffff; font-size: 1rem; flex-shrink: 0;
}
.sidebar-brand .brand-name { font-weight: 800; font-size: .9rem; color: #dce4f2; }

.sidebar-section {
    padding: 16px 1.25rem 4px; font-size: 12px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .09em; color: rgba(220,228,242,.45);
}
.sidebar .nav-link {
    display: flex; align-items: center; gap: 10px;
    padding: 7px 1.25rem; color: rgba(220,228,242,.75);
    font-size: .81rem; text-decoration: none;
    border-right: 3px solid transparent; transition: background .15s;
}
.sidebar .nav-link i { font-size: .85rem; width: 16px; text-align: center; }
.sidebar .nav-link:hover { background: rgba(220,228,242,.07); color: #dce4f2; }
.sidebar .nav-link.active { background: rgba(220,228,242,.12); border-right-color: #dce4f2; font-weight: 700; color: #dce4f2; }
.sidebar-badge {
    margin-left: auto; background: rgba(220,228,242,.18); color: #dce4f2;
    font-size: .6rem; font-weight: 700; padding: 1px 7px;
    border-radius: 10px; min-width: 20px; text-align: center;
}
.sidebar-footer {
    padding: 1rem 1.25rem; border-top: 1px solid rgba(220,228,242,.1);
    margin-top: 1rem; font-size: .75rem; color: #dce4f2;
}
.sidebar-footer .logout-link {
    display: flex; align-items: center; gap: 6px;
    margin-top: 8px; color: #f70000; font-weight: 600;
}
.sidebar-footer .logout-link:hover { opacity: .8; }

/* ── App Header ───────────────────────────────────────────────────────── */
.app-header {
    position: fixed; top: var(--ticker-h); left: 0; right: 0;
    height: var(--topbar-h); background: #141f38;
    border-bottom: 1px solid rgba(220,228,242,.1);
    display: flex; align-items: center; gap: 12px;
    padding: 0 1.5rem; z-index: 1050;
    box-shadow: 0 1px 4px rgba(0,0,0,.3);
}

/* Brand */
.app-header-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
.app-header-brand:hover { opacity: .85; }
.app-header-brand-icon {
    width: 28px; height: 28px; background: #1e3068; border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    color: #ffffff; font-size: .85rem; flex-shrink: 0;
}
.app-header-brand-name { font-size: .95rem; font-weight: 600; color: #dce4f2; letter-spacing: -.01em; }
.app-header-brand-name strong { font-weight: 800; }

/* Spacer */
.app-header-spacer { flex: 1; }

/* Search */
.app-header-search { position: relative; flex-shrink: 0; }
.app-header-search input {
    width: 220px; padding: 5px 12px 5px 32px;
    border: 1px solid rgba(220,228,242,.2); border-radius: 6px;
    font-size: .8rem; color: #dce4f2; background: #1c2840;
    outline: none; transition: border-color .15s;
}
.app-header-search input::placeholder { color: rgba(220,228,242,.35); }
.app-header-search input:focus { border-color: rgba(220,228,242,.55); }
.app-header-search-icon {
    position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
    color: rgba(220,228,242,.45); font-size: .75rem; pointer-events: none;
}

/* Action area */
.app-header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

/* Icon buttons */
.app-header-icon-btn {
    width: 32px; height: 32px;
    border: 1px solid rgba(220,228,242,.5) !important;
    border-radius: 6px; background: transparent !important;
    color: #dce4f2 !important; font-size: .85rem;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background .15s;
}
.app-header-icon-btn:hover { background: rgba(220,228,242,.1) !important; }

/* User pill */
.app-header-user-pill {
    display: flex; align-items: center; gap: 7px;
    padding: 4px 10px 4px 4px;
    border: 1px solid rgba(220,228,242,.5) !important; border-radius: 6px;
    background: transparent; color: #dce4f2;
    font-size: .8rem; font-weight: 600;
    cursor: pointer; transition: background .15s; margin-left: 4px;
}
.app-header-user-pill:hover { background: rgba(220,228,242,.08) !important; }
.app-header-user-pill::after { display: none; }
.app-header-avatar {
    width: 26px; height: 26px; background: #1e3068; color: #ffffff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: .7rem; font-weight: 700; flex-shrink: 0;
}
.app-header-username { color: #dce4f2; }
.app-header-chevron { font-size: .65rem; color: #dce4f2; }

/* Dropdown */
.app-header-dd {
    min-width: 200px;
    background: #1c2840;
    border: 1px solid #15224e !important;
}
.app-header-dd .dropdown-divider {
    border-top: 1px solid #15224e !important;
    opacity: 1;
}
.app-header-dd-info { font-size: .78rem; color: #dce4f2; }
.app-header-dd-logout { color: #f70000 !important; }
.app-header-dd-logout:hover { background: rgba(247,0,0,.12) !important; }

/* ── Header Skin / Lang Switcher ───────────────────────────────────────── */
.header-sw-group { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.header-sw-btn {
    display: inline-flex !important; align-items: center; justify-content: center;
    height: 28px; min-width: 28px; padding: 0 7px;
    border: 1px solid rgba(220,228,242,.5) !important; border-radius: 0;
    background: transparent !important; color: #dce4f2 !important;
    font-size: .72rem; font-weight: 600;
    text-decoration: none !important; cursor: pointer;
    transition: background .15s, color .15s; line-height: 1;
}
.header-sw-btn:hover {
    background: rgba(220,228,242,.1) !important;
    color: #dce4f2 !important; text-decoration: none !important;
}
.header-sw-btn.active {
    background: rgba(220,228,242,.2) !important;
    border-color: #dce4f2 !important; color: #dce4f2 !important;
}
.header-sw-btn.active:hover {
    background: rgba(220,228,242,.28) !important;
    border-color: #dce4f2 !important; color: #dce4f2 !important;
}
.header-sw-divider {
    width: 1px; height: 20px; background: rgba(220,228,242,.3); margin: 0 4px; flex-shrink: 0;
}
.header-lang-btn {
    gap: 6px;
    min-width: 110px;
    padding: 0 9px;
}
.header-lang-btn::after { margin-left: 6px; }
.header-lang-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.header-lang-menu .dropdown-item.active,
.header-lang-menu .dropdown-item:active {
    background: rgba(220,228,242,.16) !important;
    color: #dce4f2 !important;
}
.header-lang-flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
    flex-shrink: 0;
}

/* Topbar search */
.topbar-search { position: relative; }
.topbar-search input {
    width: 200px; padding: 5px 10px 5px 30px;
    border: 1px solid rgba(220,228,242,.18); border-radius: 0;
    font-size: .78rem; outline: none; color: #dce4f2;
    background: #1c2840; transition: border-color .15s;
}
.topbar-search input::placeholder { color: #8a95b1; }
.topbar-search input:focus { border-color: #dce4f2; }
.topbar-search .srch-icon {
    position: absolute; left: 9px; top: 50%; transform: translateY(-50%);
    color: rgba(220,228,242,.4); font-size: .75rem; pointer-events: none;
}

.topbar-user {
    display: flex; align-items: center; gap: 7px;
    padding-left: 1rem; border-left: 1px solid rgba(220,228,242,.15);
    color: #dce4f2; font-weight: 600; font-size: .8rem;
    cursor: pointer; background: none; border-top: none; border-right: none; border-bottom: none; outline: none;
}
.topbar-user:hover { opacity: .8; }
.topbar-user .avatar {
    width: 28px; height: 28px; background: #1e3068; color: #ffffff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: .72rem; font-weight: 700; flex-shrink: 0;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn-brand {
    background: #1e3068; color: #ffffff; border: none; border-radius: 0;
    padding: 6px 14px; font-size: .78rem; font-weight: 700;
    cursor: pointer; display: flex; align-items: center; gap: 5px; transition: opacity .15s;
}
.btn-brand:hover { opacity: .85; }

.btn-outline {
    background: transparent; color: #dce4f2;
    border: 1px solid rgba(220,228,242,.3); border-radius: 0;
    padding: 5px 12px; font-size: .78rem; font-weight: 600;
    cursor: pointer; transition: border-color .15s;
}
.btn-outline:hover { border-color: rgba(220,228,242,.7); }

.btn-danger {
    background: #f70000; color: #ffffff; border: none; border-radius: 0;
    padding: 5px 12px; font-size: .78rem; font-weight: 600;
    cursor: pointer; transition: opacity .15s;
}
.btn-danger:hover { opacity: .85; }

/* ── Main Content ─────────────────────────────────────────────────────── */
.main-content {
    position: fixed;
    top: calc(var(--ticker-h) + var(--topbar-h));
    left: var(--sidebar-w); right: 0; bottom: var(--footer-h);
    overflow-y: auto; overflow-x: hidden; background: #0d1526;
}
.content-inner { padding: 1.5rem; }

/* ── Page Topbar ──────────────────────────────────────────────────────── */
.page-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.page-topbar h1 { font-size: 1.3rem; font-weight: 800; color: #dce4f2; margin: 0; }
.page-topbar .breadcrumb { margin: 0; padding: 0; background: none; font-size: .75rem; }
.page-topbar .breadcrumb-item { color: #dce4f2; }
.page-topbar .breadcrumb-item a { color: #dce4f2 !important; font-weight: 700; text-decoration: none !important; opacity: 1 !important; }
.page-topbar .breadcrumb-item a:hover { color: #dce4f2 !important; text-decoration: none !important; opacity: .75 !important; }
.page-topbar .breadcrumb-item.active { color: #dce4f2; font-weight: 600; }
.page-topbar .breadcrumb-item + .breadcrumb-item::before { color: #8a95b1; }
.page-topbar-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.app-footer {
    position: fixed; bottom: 0; left: 0; right: 0;
    height: var(--footer-h); border-top: 2px solid #0a1020; background: #0a1020;
    padding: 0 1.5rem; z-index: 1045; display: flex; align-items: center;
}
.app-footer-inner {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; font-size: .72rem; color: rgba(220,228,242,.65);
}
.footer-logout-link { color: rgba(220,228,242,.65); text-decoration: none; transition: opacity .15s; }
.footer-logout-link:hover { opacity: .7; color: rgba(220,228,242,.65); }

/* ── API-Status Banner ────────────────────────────────────────────────── */
.api-status-banner {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 14px; border-radius: 6px;
    font-size: .78rem; font-weight: 600; margin-bottom: 1.25rem;
}
.api-status-banner.online  { background: rgba(25,135,84,.15); color: #3dd68c; border: 1px solid rgba(25,135,84,.4); }
.api-status-banner.offline { background: rgba(255,249,0,.07); color: #dce4f2; border: 1px solid rgba(255,249,0,.25); }

/* ── Content Card ─────────────────────────────────────────────────────── */
.content-card {
    background: #172135; border: 1px solid rgba(220,228,242,.1);
    border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.card-toolbar {
    display: flex; align-items: center; gap: 6px;
    padding: 10px 14px; background: rgba(220,228,242,.04);
    border-bottom: 1px solid rgba(220,228,242,.1);
}

/* ── Badges ───────────────────────────────────────────────────────────── */
.badge-dnssec-on {
    padding: 2px 8px; border-radius: 12px; font-size: .65rem; font-weight: 700;
    background: rgba(25,135,84,.18); color: #3dd68c; border: 1px solid rgba(25,135,84,.45);
}
.badge-dnssec-off {
    padding: 2px 8px; border-radius: 12px; font-size: .65rem; font-weight: 700;
    background: rgba(247,0,0,.15); color: #ff6b6b; border: 1px solid rgba(247,0,0,.35);
}
.badge-kind, .badge-kind-sm {
    display: inline-flex; align-items: center;
    padding: 2px 8px; border-radius: 0; font-size: .65rem; font-weight: 700; border: 1px solid rgba(220,228,242,.35);
}
.kind-primary,    .kind-sm-primary   { background: rgba(220,228,242,.1);  color: #dce4f2; border-color: rgba(220,228,242,.35); }
.kind-secondary,  .kind-sm-secondary { background: rgba(255,249,0,.12); color: #fff900; border-color: rgba(220,228,242,.35); }
.kind-native,     .kind-sm-native    { background: rgba(25,135,84,.15); color: #3dd68c; border-color: rgba(220,228,242,.35); }

/* ── Stat Cards ───────────────────────────────────────────────────────── */
.stats-grid, .stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.stat-card {
    background: #172135; border: 1px solid rgba(220,228,242,.1); border-radius: 8px;
    padding: 1rem 1.25rem; display: flex; align-items: center; gap: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.stat-card-icon { width: 38px; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.stat-icon-blue   { background: #1e3068; color: #ffffff; }
.stat-icon-green  { background: #198754; color: #ffffff; }
.stat-icon-red    { background: #f70000; color: #ffffff; }
.stat-icon-yellow { background: #fff900; color: #0d1526; }
.stat-card-label { font-size: .67rem; text-transform: uppercase; letter-spacing: .05em; color: rgba(220,228,242,.6); }
.stat-card-value { font-size: 1.35rem; font-weight: 800; color: #dce4f2; line-height: 1.2; }

/* ── Tabellen ─────────────────────────────────────────────────────────── */
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .815rem; }
thead th {
    background: rgba(220,228,242,.05); color: rgba(220,228,242,.7);
    font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
    padding: 9px 12px; border-bottom: 1px solid rgba(220,228,242,.1); white-space: nowrap;
}
tbody tr { border-bottom: 1px solid rgba(220,228,242,.06); transition: background .1s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(220,228,242,.04); }
td { padding: 9px 12px; vertical-align: middle; color: #dce4f2; }

/* ── Action-Buttons ───────────────────────────────────────────────────── */
.act-btn {
    width: 26px; height: 26px; border-radius: 4px;
    border: 1px solid rgba(220,228,242,.2); background: rgba(220,228,242,.04);
    color: rgba(220,228,242,.5); font-size: .72rem;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all .15s;
}
.act-btn:hover      { border-color: rgba(220,228,242,.6); color: #dce4f2; background: rgba(220,228,242,.1); }
.act-btn.del:hover  { border-color: #f70000; color: #f70000; background: rgba(247,0,0,.1); }

/* ── Record-Type Badges ───────────────────────────────────────────────── */
.rec-type { display: inline-block; padding: 2px 7px; border-radius: 4px; font-size: .65rem; font-weight: 800; letter-spacing: .03em; white-space: nowrap; }
.type-soa   { background: rgba(220,228,242,.18); color: #dce4f2; }
.type-ns    { background: rgba(220,228,242,.12); color: #dce4f2; }
.type-a     { background: rgba(220,228,242,.08); color: #dce4f2; }
.type-aaaa  { background: rgba(220,228,242,.08); color: #dce4f2; }
.type-cname { background: rgba(25,135,84,.18); color: #3dd68c; }
.type-mx    { background: rgba(255,249,0,.18); color: #fff900; }
.type-txt   { background: rgba(220,228,242,.05); color: #dce4f2; }
.type-caa   { background: rgba(255,249,0,.12); color: #fff900; }
.type-srv   { background: rgba(25,135,84,.12); color: #3dd68c; }
.type-ptr   { background: rgba(220,228,242,.06); color: #dce4f2; }
.type-other { background: rgba(220,228,242,.04); color: rgba(220,228,242,.65); border: 1px solid rgba(220,228,242,.12); }

/* ── Status ───────────────────────────────────────────────────────────── */
.status-dot { font-size: .65rem; }
.dot-ok   { color: #3dd68c; }
.dot-warn { color: #fff900; }
.dot-err  { color: #f70000; }
.mono { font-family: 'Consolas','Fira Code',monospace; }

/* ── Scrollbar ────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-thumb { background: rgba(220,228,242,.15); border-radius: 3px; }

/* ── Modal ────────────────────────────────────────────────────────────── */
.modal-content { border-radius: 8px; border: 1px solid rgba(220,228,242,.12); background: #1c2840; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.modal-header  { background: #1e3068; color: #ffffff; border-radius: 8px 8px 0 0; padding: 14px 20px; border-bottom: 1px solid rgba(220,228,242,.1); }
.modal-header .btn-close { filter: invert(1); }
.modal-header .modal-title { color: #ffffff; font-weight: 700; }
.modal-body { background: #1c2840; color: #dce4f2; }
.modal-footer { background: #172135; border-top: 1px solid rgba(220,228,242,.1); }

/* ── Empty State ──────────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 3rem 1rem; color: rgba(220,228,242,.35); }
.empty-state i { font-size: 2.5rem; margin-bottom: .75rem; color: rgba(220,228,242,.15); }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); }
    .main-content { left: 0; }
}

/* ── Form Controls ────────────────────────────────────────────────────── */
.form-label { font-size: .78rem; font-weight: 600; color: #dce4f2; margin-bottom: 3px; }
.form-control, .form-select {
    font-size: .82rem; border-color: rgba(220,228,242,.2); border-radius: 6px;
    color: #dce4f2; background: #1c2840;
}
.form-control:focus, .form-select:focus {
    border-color: rgba(220,228,242,.55); box-shadow: 0 0 0 .15rem rgba(220,228,242,.1);
    background: #1c2840; color: #dce4f2;
}
.form-hint { font-size: .7rem; color: rgba(220,228,242,.55); margin-top: 3px; }

/* ── Card Header Bar ──────────────────────────────────────────────────── */
.card-header-bar {
    display: flex; align-items: center; justify-content: flex-start; gap: 8px;
    padding: .75rem 1.25rem; border-bottom: 1px solid rgba(220,228,242,.1);
    background: rgba(220,228,242,.04); font-weight: 700; font-size: .85rem; color: #dce4f2;
}
.card-header-bar .title { font-weight: 700; font-size: .85rem; color: #dce4f2; }
.card-header-count { color: rgba(220,228,242,.6); font-size: .7rem; }

/* ── Modal Header Danger ──────────────────────────────────────────────── */
.modal-header-danger { background: #f70000; color: #ffffff; border-radius: 8px 8px 0 0; padding: 14px 20px; }
.modal-header-danger .modal-title { color: #ffffff; }

/* ── Toast ────────────────────────────────────────────────────────────── */
.toast-wrap { position: fixed; top: calc(var(--topbar-h) + 12px); right: 16px; z-index: 9999; display: flex; flex-direction: column; gap: 6px; }
.toast-item { background: #1e3068; color: #ffffff; border-radius: 8px; padding: 9px 16px; font-size: .8rem; font-weight: 500; box-shadow: 0 4px 16px rgba(0,0,0,.4); animation: slideIn .2s ease; }
.toast-item.err { background: #f70000; }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

.global-toast { position: fixed; top: calc(var(--ticker-h) + var(--topbar-h) + 12px); right: 24px; z-index: 9999; padding: 10px 18px; border-radius: 6px; font-size: .82rem; font-weight: 600; color: #ffffff; box-shadow: 0 4px 12px #000000; transition: opacity .3s; }
.global-toast.ok  { background: #198754; }
.global-toast.err { background: #f70000; }

/* ── Icon-Buttons (Row-Actions) ───────────────────────────────────────── */
.btn-row  { display: flex; gap: 6px; }
.btn-icon, .action-btn {
    width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: 0; border: 1px solid rgba(220,228,242,.3); background: rgba(220,228,242,.04);
    cursor: pointer; color: #dce4f2; font-size: .78rem; transition: all .15s; padding: 0;
}
.btn-icon:hover, .action-btn:hover { background: rgba(220,228,242,.14); border-color: rgba(220,228,242,.6); }
.btn-icon.danger, .action-btn.btn-delete { border-color: rgba(247,0,0,.5); color: #f70000; }
.btn-icon.danger:hover, .action-btn.btn-delete:hover { background: rgba(247,0,0,.15); color: #f70000; border-color: #f70000; }
.action-btn.btn-dnssec { border-color: rgba(220,228,242,.3); color: #dce4f2; }
.action-btn.btn-dnssec:hover { background: rgba(220,228,242,.14); border-color: rgba(220,228,242,.6); }
.action-btn.btn-zonemaster { border-color: #3a4765; color: #dce4f2; }
.action-btn.btn-zonemaster.zm-ok { background: #198754; border-color: #198754; color: #ffffff; }
.action-btn.btn-zonemaster.zm-pending { background: #fff900; border-color: #fff900; color: #15224e; }
.action-btn.btn-zonemaster.zm-error { background: #f70000; border-color: #f70000; color: #ffffff; }

/* ═══════════════════════════════════════════════════════════════════════
   NAMESERVER PAGE
   ═══════════════════════════════════════════════════════════════════════ */
.ns-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.ns-table th { padding: 10px 14px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: rgba(220,228,242,.65); border-bottom: 2px solid rgba(220,228,242,.12); background: rgba(220,228,242,.04); text-align: left; white-space: nowrap; }
.ns-table td { padding: 11px 14px; border-bottom: 1px solid rgba(220,228,242,.07); vertical-align: middle; color: #dce4f2; }
.ns-table tr:last-child td { border-bottom: none; }
.ns-table tr:hover td { background: rgba(220,228,242,.04); }
.ns-hostname { font-weight: 600; color: #dce4f2; }
.ns-ip       { font-family: 'Consolas', monospace; font-size: .78rem; color: rgba(220,228,242,.85); }
.ns-ip-empty { color: rgba(220,228,242,.2); font-style: italic; font-size: .75rem; }
.ns-flag-cell { font-size: 1.25rem; text-align: center; }
.group-badge { display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: .65rem; font-weight: 700; background: rgba(220,228,242,.12); color: #dce4f2; }

/* ═══════════════════════════════════════════════════════════════════════
   RECORDS PAGE
   ═══════════════════════════════════════════════════════════════════════ */
.topbar-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: #9ba7c2; }
.topbar-breadcrumb a { color: #9ba7c2; }
.topbar-breadcrumb a:hover { color: #dce4f2; }
.topbar-breadcrumb .sep { color: #5f6b8f; }
.topbar-breadcrumb .current { color: #dce4f2; font-weight: 700; font-size: .9rem; }

.quick-bar { background: #172135; border-bottom: 1px solid #15224e; padding: 10px 1.5rem; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.qa-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 12px; border-radius: 6px; border: 1px solid #15224e; background: #1c2840; color: #dce4f2; cursor: pointer; font-size: .62rem; font-weight: 600; transition: all .15s; white-space: nowrap; min-width: 58px; }
.qa-btn i { font-size: .95rem; color: #dce4f2; }
.qa-btn:hover { background: #243250; border-color: #dce4f2; }
.qa-btn.qa-success {
    border-color: #198754;
    background: #198754;
    color: #ffffff;
}
.qa-btn.qa-success i { color: #ffffff; }
.qa-btn.qa-success:hover {
    background: #198754;
    border-color: #198754;
    color: #ffffff;
}
.qa-btn.qa-warning {
    border-color: #fff900;
    background: #fff900;
    color: #15224e;
}
.qa-btn.qa-warning i { color: #15224e; }
.qa-btn.qa-warning:hover {
    background: #fff900;
    border-color: #fff900;
    color: #15224e;
}
.qa-btn.qa-danger {
    border-color: #f70000;
    background: #f70000;
    color: #ffffff;
}
.qa-btn.qa-danger i { color: #ffffff; }
.qa-btn.qa-danger:hover { background: #f70000; border-color: #f70000; color: #ffffff; }
.qa-btn.qa-action-dark {
    border-color: #15224e;
    background: #15224e;
    color: #ffffff;
}
.qa-btn.qa-action-dark i { color: #ffffff; }
.qa-btn.qa-action-dark:hover {
    border-color: #15224e;
    background: #15224e;
    color: #ffffff;
}
.qa-sep { width: 1px; height: 38px; background: #15224e; margin: 0 4px; }

.qa-btn-updated { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 14px; border-radius: 6px; border: 1.5px solid #15224e; background: #1c2840; color: #dce4f2; font-size: .62rem; font-weight: 700; cursor: default; white-space: nowrap; min-width: 58px; transition: all .4s ease; position: relative; }
.qa-btn-updated i { font-size: 1.1rem; color: #dce4f2; transition: color .4s, transform .3s; }
.qa-btn-updated.pushing { border-color: #fff900; animation: updPulse 1.2s ease-in-out infinite; }
.qa-btn-updated.pushing i { color: #fff900; animation: spin 1s linear infinite; }
.qa-btn-updated.checking { border-color: #fff900; animation: updPulse 1.2s ease-in-out infinite; }
.qa-btn-updated.checking i { color: #fff900; animation: spin 1s linear infinite; }
.qa-btn-updated.synced { border-color: #198754; background: #198754; color: #ffffff; cursor: pointer; }
.qa-btn-updated.synced i { color: #ffffff; }
.qa-btn-updated.synced:hover { background: #198754; }
.qa-btn-updated.sync-error { border-color: #f70000; background: #f70000; color: #ffffff; }
.qa-btn-updated.sync-error i { color: #ffffff; }
@keyframes updPulse { 0%,100% { opacity:1; } 50% { opacity:.6; } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.upd-tooltip { display: none; position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: #1c2840; color: #dce4f2; border: 1px solid #15224e; border-radius: 8px; padding: 10px 14px; font-size: .72rem; white-space: nowrap; z-index: 2000; box-shadow: 0 8px 24px #000000; min-width: 220px; }
.upd-tooltip::after { content: ''; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); border: 6px solid transparent; border-bottom-color: #1c2840; }
.qa-btn-updated:hover .upd-tooltip, .qa-btn-updated.synced:hover .upd-tooltip { display: block; }

/* Zonemaster page */
.page-zonemaster .zm-hero {
    margin-top: 14px;
    border: 1px solid #3a4765;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    min-height: 340px;
}
.page-zonemaster .zm-hero.is-ok { background: #198754; color: #ffffff; border-color: #198754; }
.page-zonemaster .zm-hero.is-pending { background: #fff900; color: #15224e; border-color: #fff900; }
.page-zonemaster .zm-hero.is-error { background: #f70000; color: #ffffff; border-color: #f70000; }
.page-zonemaster .zm-domain { font-size: 2.1rem; font-weight: 700; line-height: 1.1; }
.page-zonemaster .zm-headline { font-size: 3.2rem; font-weight: 800; line-height: 1; margin-top: 4px; }
.page-zonemaster .zm-summary { font-size: .95rem; margin-top: 10px; }
.page-zonemaster .zm-meta-time { font-size: 1rem; opacity: .95; margin-top: 10px; }
.page-zonemaster .zm-traffic-wrap { min-width: 190px; display: flex; justify-content: center; }
.page-zonemaster #zmTrafficLight {
    width: 150px;
    min-height: 270px;
    border-radius: 0;
    border: none;
    padding: 18px 18px;
    gap: 16px;
}
.page-zonemaster #zmTrafficLight .zm-light {
    width: 84px;
    height: 84px;
    margin: 0 auto;
    background: #666666;
}
.page-zonemaster #zmTrafficLight.is-error .zm-red { background: #f70000; }
.page-zonemaster #zmTrafficLight.is-pending .zm-yellow { background: #fff900; }
.page-zonemaster #zmTrafficLight.is-ok .zm-green { background: #198754; }

.page-zonemaster .zm-module-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 4px;
    margin-top: 12px;
    padding: 8px 20px 0;
    min-height: 46px;
    overflow-x: auto;
}
.page-zonemaster .zm-mod-btn {
    position: relative;
    border: 1px solid #198754;
    background: #198754;
    color: #ffffff;
    font-size: .86rem;
    font-weight: 700;
    padding: 8px 22px 8px 14px;
    white-space: nowrap;
    border-radius: 0;
    cursor: pointer;
    overflow: visible;
}
.page-zonemaster .zm-mod-btn.state-warning { background: #fff900; border-color: #fff900; color: #15224e; }
.page-zonemaster .zm-mod-btn.state-error { background: #f70000; border-color: #f70000; color: #ffffff; }
.page-zonemaster .zm-mod-btn.active {
    outline: 2px solid #15224e;
    outline-offset: -2px;
}
.page-zonemaster .zm-mod-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 22px;
    height: 22px;
    line-height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ffffff;
    color: #15224e;
    font-size: .72rem;
    font-weight: 800;
    text-align: center;
    border: 1px solid #15224e;
}
.page-zonemaster .zm-progress-wrap {
    margin-top: 10px;
    max-width: 520px;
}
.page-zonemaster .zm-progress-bar {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid #15224e;
    overflow: hidden;
}
.page-zonemaster .zm-progress-fill {
    height: 100%;
    width: 0%;
    background: #15224e;
    transition: width .35s ease;
}
.page-zonemaster .zm-progress-text {
    margin-top: 4px;
    font-size: .82rem;
    font-weight: 700;
}
.page-zonemaster .zm-details-wrap {
    padding: 0 20px 18px;
}
.page-zonemaster .zm-details-head {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}
.page-zonemaster .zm-active-module-label {
    opacity: .85;
}
.page-zonemaster .zm-details-wrap .fw-semibold {
    font-size: 1rem;
}
.page-zonemaster .zm-findings-list {
    display: grid;
    gap: 10px;
}
.page-zonemaster .zm-detail-card {
    border: 1px solid rgba(220,228,242,.18);
    border-radius: 8px;
    background: #1d2940;
}
.page-zonemaster .zm-detail-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(220,228,242,.12);
    font-weight: 800;
    color: #dce4f2;
    text-transform: capitalize;
}
.page-zonemaster .zm-detail-title {
    font-size: 1.05rem;
}
.page-zonemaster .zm-detail-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
    color: #ffffff;
    background: #198754;
}
.page-zonemaster .zm-detail-card-body {
    padding: 10px 14px 12px;
}
.page-zonemaster .zm-mod-accordion {
    display: grid;
    gap: 10px;
}
.page-zonemaster .zm-acc-card {
    border: 1px solid rgba(220,228,242,.18);
    border-radius: 8px;
    background: #1d2940;
    overflow: hidden;
}
.page-zonemaster .zm-acc-card.is-error .zm-acc-head { border-left: 4px solid #f70000; }
.page-zonemaster .zm-acc-card.is-warning .zm-acc-head { border-left: 4px solid #fff900; }
.page-zonemaster .zm-acc-card.is-ok .zm-acc-head { border-left: 4px solid #198754; }
.page-zonemaster .zm-acc-head {
    width: 100%;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    cursor: pointer;
    text-align: left;
    border-bottom: 1px solid rgba(220,228,242,.12);
}
.page-zonemaster .zm-acc-toggle {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: #198754;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}
.page-zonemaster .zm-acc-title {
    flex: 1 1 auto;
    font-size: 1.05rem;
    font-weight: 800;
    color: #dce4f2;
    text-transform: capitalize;
}
.page-zonemaster .zm-acc-badge {
    min-width: 24px;
    height: 24px;
    border-radius: 999px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .74rem;
    font-weight: 800;
    color: #ffffff;
    background: #198754;
}
.page-zonemaster .zm-acc-body {
    padding: 10px 14px 12px;
}
.page-zonemaster .zm-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 7px;
}
.page-zonemaster .zm-detail-item:last-child {
    margin-bottom: 0;
}
.page-zonemaster .zm-level-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 22px;
    padding: 0 8px;
    border-radius: 6px;
    font-size: .72rem;
    font-weight: 800;
    text-transform: capitalize;
    color: #ffffff;
    background: #198754;
}
.page-zonemaster .zm-level-pill.is-warning {
    background: #fff900;
    color: #15224e;
}
.page-zonemaster .zm-level-pill.is-error {
    background: #f70000;
    color: #ffffff;
}
.page-zonemaster .zm-item-text {
    color: #dce4f2;
    font-size: 1rem;
    line-height: 1.5;
}
.page-zonemaster .zm-item-where {
    font-weight: 700;
}
.page-zonemaster .zm-empty {
    color: rgba(220,228,242,.78);
    font-size: .95rem;
    padding: 10px 0;
}

/* Zonemaster local modal traffic light */
.zonemaster-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.zonemaster-top-status {
    display: flex;
    align-items: center;
    gap: 10px;
}
.zm-traffic-light {
    width: 34px;
    padding: 5px 7px;
    border-radius: 6px;
    background: #000000;
    display: flex;
    flex-direction: column;
    gap: 5px;
    border: 1px solid #15224e;
}
.zm-light {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #666666;
}
.zm-traffic-light.is-error .zm-red { background: #f70000; }
.zm-traffic-light.is-pending .zm-yellow { background: #fff900; }
.zm-traffic-light.is-ok .zm-green { background: #198754; }
.upd-tooltip .ns-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; border-bottom: 1px solid #15224e; }
.upd-tooltip .ns-row:last-child { border-bottom: none; }
.upd-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.upd-dot.ok   { background: #198754; box-shadow: 0 0 5px #198754; }
.upd-dot.wait { background: #fff900; }
.upd-dot.err  { background: #f70000; }

.zone-strip { background: #172135; padding: 8px 1.5rem; border-bottom: 1px solid #15224e; display: flex; align-items: center; gap: 12px; font-size: .78rem; color: #dce4f2; }
.zone-strip .zone-name { font-size: .95rem; font-weight: 800; color: #dce4f2; display: flex; align-items: center; gap: 6px; }
.zone-strip .sep { color: #15224e; }
.zone-strip .z-stat { display: flex; align-items: center; gap: 4px; }
.zone-strip .z-stat i { color: #dce4f2; font-size: .7rem; }
.zone-strip .actions-right { margin-left: auto; display: flex; gap: 8px; }
.btn-sm-outline { padding: 3px 10px; border-radius: 4px; border: 1px solid rgba(220,228,242,.2); background: transparent; color: #dce4f2; font-size: .72rem; cursor: pointer; transition: all .15s; }
.btn-sm-outline:hover { border-color: rgba(220,228,242,.55); }
.btn-sm-outline.danger:hover { border-color: #f70000; background: rgba(247,0,0,.1); color: #f70000; }
.page-records .btn-deactivate-inline {
    color: #dce4f2;
    border-color: rgba(220,228,242,.45);
}
.page-records .btn-deactivate-inline:hover {
    background: rgba(220,228,242,.14);
    color: #ffffff;
}

.type-tabs-wrap { background: #172135; border-bottom: 1px solid rgba(220,228,242,.1); padding: 0 1.5rem; display: flex; align-items: center; }
.type-tabs-scroll { display: flex; overflow-x: auto; gap: 2px; scrollbar-width: none; padding: 0 6px; flex: 1; }
.type-tabs-scroll::-webkit-scrollbar { display: none; }
.type-tab { padding: 9px 12px; border: none; background: none; color: rgba(220,228,242,.55); font-size: .75rem; font-weight: 600; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; transition: all .15s; }
.type-tab:hover { color: #dce4f2; }
.type-tab.active { color: #dce4f2; border-bottom-color: #dce4f2; }
.type-tab .tab-count { background: rgba(220,228,242,.12); color: rgba(220,228,242,.65); border-radius: 8px; padding: 0 5px; font-size: .6rem; margin-left: 3px; }
.type-tab.active .tab-count { background: rgba(220,228,242,.2); color: #dce4f2; }
.tab-scroll-btn { width: 28px; height: 34px; background: #172135; border: 1px solid rgba(220,228,242,.15); border-radius: 4px; cursor: pointer; color: rgba(220,228,242,.4); display: flex; align-items: center; justify-content: center; font-size: .7rem; flex-shrink: 0; transition: all .15s; }
.tab-scroll-btn:hover { border-color: rgba(220,228,242,.5); color: #dce4f2; }

.content-area { padding: 0 1.5rem; }
.page-records .content-area { padding: 0; }
.card-table { background: #172135; border-radius: 8px; border: 1px solid rgba(220,228,242,.1); overflow: hidden; }
.page-records .card-table {
    border-radius: 0;
    border: 1px solid rgba(220,228,242,.1);
}
.page-records .topbar-search input,
.page-records .ns-add-btn,
.page-records .bulk-select,
.page-records .bulk-ttl-input,
.page-records .bulk-btn-execute,
.page-records .bulk-btn-add,
.page-records .type-chip {
    border-radius: 0 !important;
}
.table-responsive { overflow-x: auto; }
.page-records #recTable thead th {
    background: rgba(220,228,242,.05);
    color: rgba(220,228,242,.65);
    border-bottom: 1px solid rgba(220,228,242,.1);
}
.page-records #recTable td {
    border-bottom: 1px solid rgba(220,228,242,.07);
}
.page-records #recTable tbody tr:last-child td {
    border-bottom: none;
}
td.col-host    { font-family: 'Consolas','Fira Code',monospace; font-size: .8rem; color: #dce4f2; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
td.col-content { font-family: 'Consolas','Fira Code',monospace; font-size: .78rem; color: rgba(220,228,242,.85); max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
td.col-ttl     { color: #dce4f2; white-space: nowrap; }
td.col-updated { color: rgba(220,228,242,.45); font-size: .72rem; white-space: nowrap; }
td.col-actions { white-space: nowrap; text-align: right; }
.row-check { accent-color: #dce4f2; width: 14px; height: 14px; cursor: pointer; }

.api-banner { margin: 1rem 1.5rem 0; border-radius: 6px; padding: 7px 14px; font-size: .78rem; display: flex; align-items: center; gap: 8px; }
.api-banner.mock { background: rgba(255,249,0,.07); border: 1px solid rgba(255,249,0,.25); color: #dce4f2; }
.api-banner.live { background: rgba(25,135,84,.1); border: 1px solid rgba(25,135,84,.35); color: #3dd68c; }

.ns-group-title { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(220,228,242,.4); padding: 14px 0 8px; border-top: 1px solid rgba(220,228,242,.1); }
.ns-group-title:first-child { border-top: none; padding-top: 4px; }
.ns-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-bottom: 4px; }
.ns-card { border: 1px solid rgba(220,228,242,.12); border-radius: 8px; padding: 12px 14px; background: rgba(220,228,242,.04); display: flex; flex-direction: column; gap: 4px; }
.ns-card.ns-card-active { background: rgba(220,228,242,.1); border-color: rgba(220,228,242,.4); }
.ns-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.ns-flag { font-size: 1.15rem; line-height: 1; }
.ns-host { font-weight: 600; font-size: .81rem; color: #dce4f2; flex: 1; word-break: break-all; }
.ns-badge-in { font-size: .62rem; background: rgba(25,135,84,.18); color: #3dd68c; padding: 2px 7px; border-radius: 10px; white-space: nowrap; }
.ns-detail { font-size: .72rem; color: rgba(220,228,242,.5); }
.ns-detail .ns-lbl { color: rgba(220,228,242,.4); font-weight: 600; margin-right: 3px; }
.ns-note { color: rgba(220,228,242,.4); font-style: italic; font-size: .7rem; }
.ns-add-btn { margin-top: 8px; width: 100%; padding: 5px 0; border: 1px solid rgba(220,228,242,.3); border-radius: 0; background: rgba(220,228,242,.06); color: #dce4f2; font-size: .74rem; font-weight: 600; cursor: pointer; transition: all .15s; }
.ns-add-btn:hover:not(:disabled) { background: rgba(220,228,242,.14); border-color: rgba(220,228,242,.6); }
.ns-add-btn:disabled { border-color: rgba(220,228,242,.1); color: rgba(220,228,242,.25); cursor: default; background: rgba(220,228,242,.03); }

.bulk-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 1.5rem; background: rgba(220,228,242,.03); border-top: 1px solid rgba(220,228,242,.1); flex-wrap: wrap; }
.bulk-bar-left  { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bulk-bar-right { display: flex; align-items: center; gap: 8px; }
.bulk-select, .bulk-ttl-input { font-size: .8rem; padding: 5px 10px; border: 1px solid rgba(220,228,242,.18); border-radius: 0; background: #1c2840; color: #dce4f2; cursor: pointer; height: 32px; }
.bulk-select:focus, .bulk-ttl-input:focus { outline: none; border-color: rgba(220,228,242,.5); }
.bulk-ttl-input { width: 110px; cursor: text; }
.bulk-label { font-size: .8rem; color: rgba(220,228,242,.45); white-space: nowrap; }
.bulk-btn-execute, .bulk-btn-add { background: #1e3068; color: #ffffff; border: none; padding: 5px 16px; border-radius: 0; height: 32px; font-size: .8rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: opacity .15s; }
.bulk-btn-execute:hover, .bulk-btn-add:hover { opacity: .85; }
.bulk-btn-execute:disabled { opacity: .4; cursor: not-allowed; }

.type-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 6px; margin-bottom: 12px; }
.type-chip { padding: 6px 4px; text-align: center; border-radius: 0; border: 1.5px solid rgba(220,228,242,.15); cursor: pointer; font-size: .68rem; font-weight: 700; color: rgba(220,228,242,.5); transition: all .15s; background: rgba(220,228,242,.04); }
.type-chip:hover { border-color: rgba(220,228,242,.5); color: #dce4f2; background: rgba(220,228,242,.1); }
.type-chip.selected { border-color: #dce4f2; background: rgba(220,228,242,.2); color: #dce4f2; }

.prio-field { display: none; }
.hint-muted { font-size: .7rem; color: rgba(220,228,242,.45); margin-top: 2px; }

.drop-zone { border: 2px dashed rgba(220,228,242,.2); border-radius: 8px; padding: 28px 20px; text-align: center; color: rgba(220,228,242,.4); cursor: pointer; transition: all .2s; background: rgba(220,228,242,.03); }
.drop-zone:hover, .drop-zone.drag-over { border-color: rgba(220,228,242,.6); background: rgba(220,228,242,.07); color: #dce4f2; }
.drop-zone i { font-size: 2rem; margin-bottom: 8px; display: block; }
.drop-zone .dz-hint { font-size: .78rem; }

/* ═══════════════════════════════════════════════════════════════════════
   DNS ZONES PAGE
   ═══════════════════════════════════════════════════════════════════════ */
.zone-tab-bar { display: flex; flex-direction: row; align-items: center; border-bottom: 2px solid rgba(220,228,242,.08); margin-bottom: 0; padding: 0 4px; gap: 4px; justify-content: flex-start; }
.tab-bar-right { display: flex; align-items: center; gap: 8px; margin-left: auto; padding-right: 4px; }

.zone-cat-tab { background: none; border: none; cursor: pointer; padding: 8px 14px 6px; font-size: .78rem; font-weight: 600; color: rgba(220,228,242,.55); border-bottom: none; margin-bottom: 0; transition: color .15s; display: flex; align-items: center; gap: 5px; }
.zone-cat-tab:hover { color: #dce4f2; }
.zone-cat-tab.active { font-weight: 700; color: #dce4f2; }
.zone-cat-badge { background: rgba(220,228,242,.12); color: rgba(220,228,242,.65); border-radius: 10px; font-size: .68rem; padding: 0 6px; font-weight: 700; min-width: 18px; text-align: center; }
.zone-cat-tab.active .zone-cat-badge { background: rgba(220,228,242,.2); color: #dce4f2; }

.btn-create-zone { background: #1e3068; color: #ffffff; border: none; padding: 5px 14px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; cursor: pointer; transition: opacity .15s; }
.btn-create-zone:hover { opacity: .85; }
.btn-toolbar-outline { background: transparent; color: #dce4f2; border: 1px solid rgba(220,228,242,.2); padding: 4px 12px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; cursor: pointer; transition: border-color .15s; }
.btn-toolbar-outline:hover { border-color: rgba(220,228,242,.55); }

.zone-type-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.zone-type-card { border: 2px solid rgba(220,228,242,.15); border-radius: 8px; padding: 18px 12px; text-align: center; cursor: pointer; transition: all .15s; background: rgba(220,228,242,.04); }
.zone-type-card:hover { border-color: rgba(220,228,242,.5); background: rgba(220,228,242,.08); }
.zone-type-card i { font-size: 1.6rem; color: #dce4f2; margin-bottom: 8px; display: block; }
.zone-type-card .zt-title { font-weight: 800; font-size: .85rem; color: #dce4f2; }
.zone-type-card .zt-desc  { font-size: .7rem; color: rgba(220,228,242,.6); margin-top: 3px; }

.ns-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; margin: 10px 0 6px; }
.ns-check-label { display: flex; align-items: center; gap: 7px; font-size: .8rem; font-family: monospace; cursor: pointer; padding: 3px 0; color: #dce4f2; }
.ns-check-label input[type=checkbox] { accent-color: #dce4f2; width: 15px; height: 15px; flex-shrink: 0; }
.zone-option { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(220,228,242,.08); cursor: pointer; }
.zone-option:last-of-type { border-bottom: none; }
.zone-option input[type=radio] { accent-color: #dce4f2; width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; }
.zone-option-body { flex: 1; }
.zone-option-title { font-weight: 700; font-size: .83rem; color: #dce4f2; }
.zone-option-sub { font-size: .72rem; color: rgba(220,228,242,.6); margin-top: 2px; }
.ns-section { padding: 8px 0 4px; }
.info-box { background: rgba(220,228,242,.06); border: 1px solid rgba(220,228,242,.18); border-radius: 6px; padding: 8px 12px; font-size: .77rem; color: #dce4f2; margin-top: 12px; }
.page-nameservers #glueResultBox {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    color: inherit;
}
.page-nameservers #glueResultBox i { margin-right: 8px; }
.page-nameservers .info-box.is-ok {
    background: #198754;
    border-color: #198754;
    color: #ffffff;
}
.page-nameservers .info-box.is-warning {
    background: #fff900;
    border-color: #fff900;
    color: #15224e;
}
.page-nameservers .info-box.is-error {
    background: #f70000;
    border-color: #f70000;
    color: #ffffff;
}
.page-nameservers .info-box.is-ok i,
.page-nameservers .info-box.is-ok a,
.page-nameservers .info-box.is-error i,
.page-nameservers .info-box.is-error a {
    color: #ffffff;
}
.page-nameservers .info-box.is-warning i,
.page-nameservers .info-box.is-warning a {
    color: #15224e;
}

/* ToFix readability: keep #15224e text and enlarge typography */
.page-tofix .content-inner { color: #15224e; }
.page-tofix h1 { font-size: 2rem; color: #15224e; }
.page-tofix .breadcrumb,
.page-tofix .breadcrumb a,
.page-tofix .breadcrumb-item.active { font-size: 0.98rem; color: #15224e; }
.page-tofix .tofix-banner {
    font-size: 1rem;
    font-weight: 700;
    color: #15224e;
    border: 1px solid #15224e;
    background: #f3f6fc;
}
.page-tofix .tofix-card {
    border: 1px solid #15224e;
    background: #ffffff;
}
.page-tofix .tofix-card .card-header-bar {
    background: #eef3fb;
    border-bottom: 1px solid #15224e;
}
.page-tofix .tofix-card .card-header-bar .title {
    font-size: 1.08rem;
    color: #15224e;
}
.page-tofix .tofix-body,
.page-tofix .tofix-line,
.page-tofix .tofix-issues li,
.page-tofix .tofix-todo li {
    font-size: 1rem;
    line-height: 1.55;
    color: #15224e;
}
.page-tofix .tofix-issues li,
.page-tofix .tofix-todo li { margin-bottom: 10px; }

.ns-list-item { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid rgba(220,228,242,.08); font-size: .82rem; }
.ns-list-item:last-child { border-bottom: none; }
.ns-badge { font-size: .62rem; font-weight: 700; padding: 2px 7px; border-radius: 10px; }
.ns-primary   { background: rgba(220,228,242,.12); color: #dce4f2; }
.ns-secondary { background: rgba(25,135,84,.18); color: #3dd68c; }
.ns-pending   { background: rgba(255,249,0,.15);  color: #fff900; }
.btn-copy-ns { border: 1px solid rgba(220,228,242,.2); background: rgba(220,228,242,.05); border-radius: 4px; padding: 3px 9px; font-size: .7rem; cursor: pointer; color: rgba(220,228,242,.5); transition: all .15s; }
.btn-copy-ns:hover { border-color: rgba(220,228,242,.5); color: #dce4f2; }

.dns-table { width: 100%; border-collapse: collapse; }
.dns-table thead th { background: rgba(220,228,242,.05); color: rgba(220,228,242,.65); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 9px 14px; border-bottom: 1px solid rgba(220,228,242,.1); white-space: nowrap; }
.dns-table td { padding: 10px 14px; border-bottom: 1px solid rgba(220,228,242,.07); vertical-align: middle; color: #dce4f2; }
.dns-table tbody tr:hover { background: rgba(220,228,242,.04); }
.dns-table tbody tr:last-child td { border-bottom: none; }
.zone-name { font-weight: 700; color: #dce4f2; font-size: .85rem; display: block; }
.zone-name:hover { opacity: .7; text-decoration: underline; }
.zone-meta { font-size: .67rem; color: rgba(220,228,242,.5); margin-top: 1px; }

.dnssec-badge { display: inline-flex; align-items: center; gap: 3px; font-size: .67rem; font-weight: 700; padding: 2px 7px; border-radius: 20px; }
.dnssec-on  { background: rgba(25,135,84,.18); color: #3dd68c; }
.dnssec-off { background: rgba(247,0,0,.15);   color: #ff6b6b; }

.modal-w480 { max-width: 480px; } .modal-w500 { max-width: 500px; } .modal-w520 { max-width: 520px; }
.modal-body-pad     { padding: 1.5rem; }
.modal-body-compact { padding: 1rem 1.5rem 0.5rem; }
.modal-header-flush { border-bottom: none; padding-bottom: 0; }
.modal-footer-flush { border-top: none; padding-top: 0; }
.modal-title-strong { font-weight: 800; font-size: 1rem; color: #dce4f2; }
.modal-hint-text    { font-size: .8rem; color: rgba(220,228,242,.7); margin-bottom: 1rem; }
.modal-field-row    { margin-top: 14px; }
.modal-field-label  { font-size: .8rem; font-weight: 600; color: #dce4f2; display: block; margin-bottom: 4px; }
.modal-input-sm     { font-size: .85rem; }
.btn-modal-sec      { font-weight: 700; font-size: .8rem; letter-spacing: .03em; }
.btn-modal-primary  { background: #1e3068; color: #ffffff; font-weight: 800; font-size: .8rem; letter-spacing: .03em; }
.text-brand         { color: #dce4f2; }
.muted-dash         { color: rgba(220,228,242,.45); }

.ns-check-label input[type=checkbox] {
    appearance: none; -webkit-appearance: none;
    width: 15px; height: 15px; flex-shrink: 0;
    border: 1px solid rgba(220,228,242,.35); border-radius: 2px; background: #1c2840;
    display: inline-grid; place-content: center; cursor: pointer;
}
.ns-check-label input[type=checkbox]::before {
    content: "";
    width: 8px; height: 8px;
    transform: scale(0); transition: transform .08s ease-in-out;
    box-shadow: inset 1em 1em #dce4f2;
}
.ns-check-label input[type=checkbox]:checked::before { transform: scale(1); }
.zone-option input[type=radio],
.zone-option input[type=checkbox] {
    appearance: none; -webkit-appearance: none;
    width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0;
    border: 1px solid rgba(220,228,242,.35); border-radius: 2px; background: #1c2840;
    display: inline-grid; place-content: center; cursor: pointer;
}
.zone-option input[type=radio]::before,
.zone-option input[type=checkbox]::before {
    content: "";
    width: 9px; height: 9px;
    transform: scale(0); transition: transform .08s ease-in-out;
    box-shadow: inset 1em 1em #dce4f2;
}
.zone-option input[type=radio]:checked::before,
.zone-option input[type=checkbox]:checked::before { transform: scale(1); }
.zone-option { border-bottom: 1px solid rgba(220,228,242,.35); }
.info-box { border: 1px solid rgba(220,228,242,.35); }
.ns-list-item { border-bottom: 1px solid rgba(220,228,242,.35); }
.btn-copy-ns { border-color: rgba(220,228,242,.35); }
.ns-check-label-sep { margin-top: 6px; border-top: 1px solid rgba(220,228,242,.35); padding-top: 6px; }
.copy-section-hidden  { display: none; margin-top: 8px; }
.slave-ip-row-hidden  { display: none; margin-top: 10px; }
.zone-option-last { border-bottom: none; }
.icon-kind-primary   { color: #dce4f2; }
.icon-kind-secondary { color: rgba(220,228,242,.65); }
.icon-kind-native    { color: #3dd68c; }

.record-type-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 6px; margin-bottom: 1rem; }
.type-btn { padding: 6px; border: 1px solid rgba(220,228,242,.15); border-radius: 0; background: rgba(220,228,242,.04); font-size: .72rem; font-weight: 700; cursor: pointer; text-align: center; transition: all .12s; color: rgba(220,228,242,.5); }
.type-btn:hover, .type-btn.selected { background: rgba(220,228,242,.2); color: #dce4f2; border-color: rgba(220,228,242,.5); }

/* ── Login Page ───────────────────────────────────────────────────────── */
.hero-section { min-height: 100vh; background: #0a1020; display: flex; align-items: center; padding: 3rem 1rem; }
.hero-icon { width: 90px; height: 90px; background: rgba(255,255,255,.08); border: 3px solid rgba(255,255,255,.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; font-size: 2.2rem; color: #ffffff; backdrop-filter: blur(4px); }
.hero-subtitle { color: rgba(220,228,242,.8); font-size: .85rem; }
.login-card { background: #172135; border-radius: 12px; box-shadow: 0 20px 60px #000000; overflow: hidden; border: 1px solid #3a4765; }
.login-card .card-body      { padding: 2rem 2rem 1.5rem; }
.login-card .card-title     { font-weight: 800; font-size: 1.25rem; color: #dce4f2; margin-bottom: 1.5rem; }
.login-card .form-label     { font-size: .8rem; font-weight: 600; color: #dce4f2; margin-bottom: .25rem; }
.login-card .input-group-text { background: #24304b; border-color: #64718b; color: #dce4f2; width: 42px; justify-content: center; }
.login-card .form-control   { border-color: #64718b; font-size: .875rem; background: #1c2840; color: #dce4f2; }
.login-card .form-control:focus { border-color: #8f9cb8; box-shadow: none; }
.login-card .btn-outline-secondary { border-color: #64718b; color: #dce4f2; background: transparent; }
.login-card .btn-outline-secondary:hover, .login-card .btn-outline-secondary:focus, .login-card .btn-outline-secondary:active { background: #2a3550; border-color: #8f9cb8; color: #dce4f2; box-shadow: none; }
.btn-login { background: #1e3068; border: none; color: #ffffff; font-weight: 700; font-size: .9rem; padding: .65rem; border-radius: 6px; transition: background .15s; letter-spacing: .02em; }
.btn-login:hover, .btn-login:focus { background: rgba(30,48,104,.8); color: #ffffff; }
#lockoutTimer  { font-weight: 700; }
.alert-login   { font-size: .82rem; }
.totp-hint     { color: #9ba7c2; font-weight: 400; }
.login-hr      { border-color: #2f3b57; }
.login-links   { font-size: .82rem; }
.login-forgot-link          { color: #b8c3dc; }
.login-forgot-link:hover    { color: #dce4f2; }
.auth-footer        { text-align: center; margin-top: 1.5rem; color: #9ba7c2; font-size: .72rem; }
.auth-footer a      { color: #9ba7c2; text-decoration: none; }
.auth-footer a:hover{ opacity: .75; }

/* ── Sidebar Footer ───────────────────────────────────────────────────── */
.sidebar-footer-name { font-weight: 700; color: #dce4f2; }
.sidebar-footer-role { font-size: .72rem; color: rgba(220,228,242,.5); }

/* ── Dashboard — Quick Access ─────────────────────────────────────────── */
.quick-access-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.quick-access-card { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 1.25rem 1rem; background: #172135; border: 1px solid rgba(220,228,242,.1); border-radius: 8px; color: #dce4f2; font-size: .8rem; font-weight: 600; text-decoration: none; transition: all .15s; }
.quick-access-card i { font-size: 1.4rem; color: rgba(220,228,242,.65); }
.quick-access-card:hover { background: rgba(220,228,242,.1); border-color: rgba(220,228,242,.4); color: #dce4f2; }
.quick-access-card:hover i { color: #dce4f2; }

/* ── Dashboard — Server-Info ──────────────────────────────────────────── */
.server-info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.server-info-item { background: #172135; border: 1px solid rgba(220,228,242,.1); border-radius: 8px; padding: .85rem 1rem; }
.server-info-label { font-size: .7rem; font-weight: 700; color: rgba(220,228,242,.5); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.server-info-value { font-size: .85rem; font-weight: 700; color: #dce4f2; word-break: break-all; }

/* ── Header Dropdown ──────────────────────────────────────────────────── */
.topbar-user-chevron        { font-size: .6rem; margin-left: 2px; }
.topbar-dd-menu             { font-size: .82rem; min-width: 160px; background: #1c2840; border-color: #3a4765; }
.dropdown-user-info         { font-size: .72rem; color: #dce4f2; }
.dd-icon                    { width: 14px; }
.dropdown-item-logout       { color: #f70000; }
.dropdown-item-logout:hover { color: #f70000; opacity: .8; }

/* ── Profile Page ─────────────────────────────────────────────────────── */
.profile-card { background: #172135; border: 1px solid rgba(220,228,242,.1); border-radius: 10px; padding: 2rem 1.5rem; text-align: center; }
.profile-avatar { width: 72px; height: 72px; border-radius: 50%; background: #1e3068; color: #ffffff; font-size: 1.6rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; text-transform: uppercase; }
.profile-name { font-size: 1.1rem; font-weight: 700; color: #dce4f2; margin-bottom: .2rem; }
.profile-role { font-size: .78rem; color: rgba(220,228,242,.55); margin-bottom: 1.2rem; text-transform: uppercase; letter-spacing: .06em; }
.profile-meta { text-align: left; }
.profile-meta-item { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: #dce4f2; padding: .45rem 0; border-top: 1px solid rgba(220,228,242,.1); }
.profile-meta-item i { width: 14px; text-align: center; color: rgba(220,228,242,.55); }
.badge-status { display: inline-block; padding: 2px 8px; border-radius: 20px; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.badge-status.active   { background: rgba(25,135,84,.18); color: #3dd68c; }
.badge-status.inactive { background: rgba(220,228,242,.1); color: rgba(220,228,242,.55); }
.profile-form-card { background: #172135; border: 1px solid rgba(220,228,242,.1); border-radius: 10px; padding: 1.5rem; }

/* ── Login/Register — Language + Theme switchers ───────────────────────── */
.auth-top-switchers {
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: .8rem;
}
.auth-switch-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.auth-switch-label {
    color: #dce4f2;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.login-lang-bar { display: inline-flex; align-items: center; margin-top: 0; }
.login-lang-btn {
    font-size: .75rem;
    font-weight: 600;
    color: #dce4f2;
    letter-spacing: .02em;
    border: 1px solid rgba(220,228,242,.45);
    border-radius: 4px;
    height: 30px;
    padding: 0 10px;
    line-height: 1;
    background: #1c2840;
    min-width: 120px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.login-lang-btn:hover,
.login-lang-btn:focus {
    color: #dce4f2;
    background: rgba(220,228,242,.1);
    border-color: rgba(220,228,242,.55);
}
.login-lang-menu {
    min-width: 160px;
    border: 1px solid rgba(220,228,242,.2);
    border-radius: 6px;
    font-size: .78rem;
}
.login-lang-menu .dropdown-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.login-lang-flag {
    width: 20px;
    height: 14px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}
.login-lang-menu .dropdown-item.active,
.login-lang-menu .dropdown-item:active {
    background: rgba(220,228,242,.12);
    color: #dce4f2;
}
.auth-skin-bar { gap: 6px; }
.auth-skin-bar .header-sw-btn {
    min-width: 78px;
    height: 30px;
    padding: 0 10px;
    border: 1px solid rgba(220,228,242,.45) !important;
    color: #dce4f2 !important;
    background: #1c2840 !important;
    gap: 6px;
    font-size: .78rem;
}
.auth-skin-bar .header-sw-btn:hover {
    border-color: rgba(220,228,242,.7) !important;
    background: rgba(220,228,242,.12) !important;
    color: #dce4f2 !important;
}
.auth-skin-bar .header-sw-btn.active {
    border-color: #dce4f2 !important;
    background: #dce4f2 !important;
    color: #15224e !important;
}
.auth-skin-bar .header-sw-btn.active:hover {
    background: #dce4f2 !important;
    color: #15224e !important;
}
.auth-skin-text {
    font-weight: 700;
    letter-spacing: .02em;
}
.login-card input.form-control:-webkit-autofill,
.login-card input.form-control:-webkit-autofill:hover,
.login-card input.form-control:-webkit-autofill:focus,
.login-card input.form-control:-webkit-autofill:active {
    -webkit-text-fill-color: #dce4f2 !important;
    -webkit-box-shadow: 0 0 0 1000px #1c2840 inset !important;
    box-shadow: 0 0 0 1000px #1c2840 inset !important;
    caret-color: #dce4f2 !important;
    border-color: rgba(220,228,242,.25) !important;
}
.login-card .form-control:focus {
    border-color: rgba(220,228,242,.25) !important;
    box-shadow: none !important;
}

/* ── Login — Product logo ─────────────────────────────────────────────── */
.hero-logo { margin: 0 auto 1.25rem; display: flex; align-items: center; justify-content: center; }
.hero-logo-img { display: block; }

/* ── NS-Table columns ─────────────────────────────────────────────────── */
.ns-col-flag    { width: 52px; text-align: center; }
.ns-col-actions { width: 80px; text-align: center; }

/* ═══════════════════════════════════════════════════════════════════════════
   BOOTSTRAP OVERRIDES — dark theme
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
    --bs-body-color:                #dce4f2;
    --bs-body-color-rgb:            220, 228, 242;
    --bs-body-bg:                   #0d1526;
    --bs-border-color:              rgba(220,228,242,.15);
    --bs-border-color-translucent:  rgba(220,228,242,.1);
    --bs-link-color:                #dce4f2;
    --bs-link-color-rgb:            220, 228, 242;
    --bs-link-hover-color:          rgba(220,228,242,.75);
    --bs-focus-ring-color:          rgba(220,228,242,.2);
    --bs-primary-rgb:               30, 48, 104;
    --bs-primary:                   #1e3068;
    --bs-btn-focus-shadow-rgb:      220, 228, 242;
    --bs-secondary-color:           rgba(220,228,242,.55);
    --bs-tertiary-color:            rgba(220,228,242,.35);
    --bs-emphasis-color:            #dce4f2;
}

hr { border-color: rgba(220,228,242,.15) !important; opacity: 1 !important; }

.input-group > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) { border-left-color: rgba(220,228,242,.2) !important; }
.input-group > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating) { border-right-color: rgba(220,228,242,.2) !important; }

.modal-content { border-color: rgba(220,228,242,.12); background: #1c2840; }
.modal-header, .modal-footer { border-color: rgba(220,228,242,.1); }
.modal-body { background: #1c2840; }

.card { border-color: rgba(220,228,242,.12); color: #dce4f2; background: #172135; }
.card-header, .card-footer { border-color: rgba(220,228,242,.1); background-color: rgba(220,228,242,.04); color: #dce4f2; }

.table { --bs-table-border-color: rgba(220,228,242,.1); color: #dce4f2; }
.table > :not(caption) > * > * { color: #dce4f2; border-color: rgba(220,228,242,.1); background: transparent; }

.accordion-item { border-color: rgba(220,228,242,.15); background: #172135; }
.accordion-button { background: #1c2840; color: #dce4f2; }
.accordion-button:not(.collapsed) { color: #dce4f2; background-color: rgba(220,228,242,.07); box-shadow: inset 0 calc(-1 * var(--bs-accordion-border-width)) 0 rgba(220,228,242,.12); }
.accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(220,228,242,.15); }

.btn-primary { background-color: #1e3068; border-color: #1e3068; color: #ffffff; }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .show > .btn-primary.dropdown-toggle { background-color: rgba(30,48,104,.85); border-color: #1e3068; color: #ffffff; }
.btn-primary:focus, .btn-primary:focus-visible { box-shadow: 0 0 0 .2rem rgba(220,228,242,.2); }
.btn-check:checked + .btn-primary, .btn-check:active + .btn-primary { background-color: #1e3068; border-color: #1e3068; color: #ffffff; }

.btn-outline-primary { color: #dce4f2; border-color: rgba(220,228,242,.45); background: transparent; }
.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active, .btn-outline-primary.active, .show > .btn-outline-primary.dropdown-toggle { background-color: rgba(220,228,242,.15); border-color: rgba(220,228,242,.6); color: #dce4f2; }
.btn-outline-primary:focus, .btn-outline-primary:focus-visible { box-shadow: 0 0 0 .2rem rgba(220,228,242,.2); }
.btn-check:checked + .btn-outline-primary, .btn-check:active + .btn-outline-primary { background-color: rgba(220,228,242,.2); border-color: #dce4f2; color: #dce4f2; }

a { color: #dce4f2; }
a:hover { color: rgba(220,228,242,.75); }

.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: rgba(220,228,242,.55); box-shadow: 0 0 0 .2rem rgba(220,228,242,.12); }
.form-check-input:checked { background-color: #1e3068; border-color: #1e3068; }
input[type="checkbox"], input[type="radio"] { accent-color: #dce4f2; }

.page-link { color: #dce4f2; background: transparent; border-color: rgba(220,228,242,.2); }
.page-link:hover { color: #dce4f2; background: rgba(220,228,242,.1); border-color: rgba(220,228,242,.35); }
.page-item.active .page-link { background-color: #1e3068; border-color: #1e3068; color: #ffffff; }
.page-item.disabled .page-link { color: rgba(220,228,242,.3); }

.progress { background: rgba(220,228,242,.1); }
.progress-bar { background-color: #1e3068; }

.text-primary { color: #dce4f2 !important; }
.spinner-border.text-primary, .spinner-grow.text-primary { color: #dce4f2 !important; }

.badge.bg-primary { background-color: #1e3068 !important; color: #ffffff; }

.alert-info { background-color: rgba(220,228,242,.07); border-color: rgba(220,228,242,.18); color: #dce4f2; }
.alert-info .alert-link { color: #dce4f2; font-weight: 700; }

.input-group-text { background: rgba(220,228,242,.07) !important; border-color: rgba(220,228,242,.2) !important; color: #dce4f2 !important; }

.dropdown-menu { background: #1c2840; border-color: rgba(220,228,242,.12); }
.dropdown-item { color: #dce4f2; }
.dropdown-item:focus, .dropdown-item:hover { background-color: rgba(220,228,242,.08); color: #dce4f2; }
.dropdown-item.active, .dropdown-item:active { background-color: rgba(220,228,242,.15); color: #dce4f2; }
.dropdown-divider { border-color: rgba(220,228,242,.1); }

.list-group-item { background: #172135; border-color: rgba(220,228,242,.1); color: #dce4f2; }
.list-group-item.active { background-color: #1e3068; border-color: #1e3068; color: #ffffff; }
.list-group-item-action:hover { background-color: rgba(220,228,242,.07); color: #dce4f2; }

.breadcrumb-item + .breadcrumb-item::before { color: rgba(220,228,242,.3); }
.breadcrumb-item a { color: rgba(220,228,242,.65); opacity: 1; }
.breadcrumb-item a:hover { opacity: .85; color: #dce4f2; }
.breadcrumb-item.active { color: #dce4f2; }

.nav-tabs { border-color: rgba(220,228,242,.15); }
.nav-tabs .nav-link { color: rgba(220,228,242,.6); border-color: transparent; background: transparent; }
.nav-tabs .nav-link:hover { border-color: rgba(220,228,242,.2); color: #dce4f2; }
.nav-tabs .nav-link.active { color: #dce4f2; font-weight: 700; border-color: rgba(220,228,242,.2) rgba(220,228,242,.2) #172135; background: #172135; }

.table-striped > tbody > tr:nth-of-type(odd) > * { background-color: rgba(220,228,242,.03); }
.table-bordered > :not(caption) > * > * { border-color: rgba(220,228,242,.1); }
.table-hover > tbody > tr:hover > * { background-color: rgba(220,228,242,.04); }

.btn-outline-secondary { color: #dce4f2; border-color: rgba(220,228,242,.3); background: transparent; }
.btn-outline-secondary:hover, .btn-outline-secondary:focus, .btn-outline-secondary:active, .btn-outline-secondary.active, .show > .btn-outline-secondary.dropdown-toggle { background-color: rgba(220,228,242,.1); border-color: rgba(220,228,242,.55); color: #dce4f2; box-shadow: none; }
.btn-outline-secondary:focus-visible { box-shadow: 0 0 0 .2rem rgba(220,228,242,.18); }
.btn-check:checked + .btn-outline-secondary { background-color: rgba(220,228,242,.2); border-color: #dce4f2; color: #dce4f2; }

/* ── Page-specific brand borders and outline buttons (final overrides) ───── */
.page-dashboard .content-card,
.page-dashboard .stat-card,
.page-dashboard .quick-access-card,
.page-dashboard .server-info-item,
.page-dashboard .card-table,
.page-dashboard .table-responsive,
.page-dashboard .tbl-wrap table,
.page-dashboard .api-status-banner,
.page-dns .content-card,
.page-dns .stat-card,
.page-dns .api-status-banner,
.page-dns .card-toolbar,
.page-dns .zone-tab-bar,
.page-dns .dns-table thead th,
.page-dns .dns-table tbody tr,
.page-dns .table-responsive,
.page-dns .dropdown-divider,
.page-dns hr,
.page-nameservers .content-card,
.page-nameservers .api-status-banner,
.page-nameservers .card-header-bar,
.page-nameservers .ns-table th,
.page-nameservers .ns-table td,
.page-nameservers .dropdown-divider,
.page-nameservers hr {
    border-color: #15224e !important;
}
.page-dashboard .card-toolbar,
.page-dashboard .card-header-bar,
.page-dashboard .ns-group-title,
.page-dashboard .table-top-toolbar,
.page-dns .card-toolbar,
.page-dns .zone-tab-bar,
.page-nameservers .card-header-bar {
    border-bottom-color: #15224e !important;
}
.page-dashboard .page-topbar .btn-outline-secondary,
.page-dns .btn-outline-secondary,
.page-nameservers .btn-outline-secondary {
    border-color: #15224e !important;
    color: #dce4f2 !important;
    background: transparent !important;
}
.page-dashboard .page-topbar .btn-outline-secondary:hover,
.page-dashboard .page-topbar .btn-outline-secondary:focus,
.page-dashboard .page-topbar .btn-outline-secondary:active,
.page-dns .btn-outline-secondary:hover,
.page-dns .btn-outline-secondary:focus,
.page-dns .btn-outline-secondary:active,
.page-nameservers .btn-outline-secondary:hover,
.page-nameservers .btn-outline-secondary:focus,
.page-nameservers .btn-outline-secondary:active {
    border-color: #15224e !important;
    background: #15224e !important;
    color: #ffffff !important;
}

/* DNS page: make Type badges rectangular like create button */
.page-dns .badge-kind {
    border-radius: 0 !important;
}
.page-dns .content-card,
.page-dns .stat-card,
.page-dns .api-status-banner,
.page-dns .card-toolbar,
.page-dns .zone-tab-bar,
.page-dns .dns-table thead th,
.page-dns .dns-table tbody tr,
.page-dns .table-responsive,
.page-dns .dropdown-divider,
.page-dns hr,
.page-nameservers .content-card,
.page-nameservers .api-status-banner,
.page-nameservers .card-header-bar,
.page-nameservers .ns-table th,
.page-nameservers .ns-table td,
.page-nameservers .dropdown-divider,
.page-nameservers hr {
    border-color: #15224e !important;
}
.page-dns .card-toolbar,
.page-dns .zone-tab-bar,
.page-nameservers .card-header-bar {
    border-bottom-color: #15224e !important;
}

.text-muted { color: rgba(220,228,242,.55) !important; }
.form-text { color: rgba(220,228,242,.6) !important; font-size: .75rem; margin-top: .25rem; }

.profile-email { font-size: .78rem; color: rgba(220,228,242,.7); margin-top: .25rem; margin-bottom: 1rem; }
.profile-session-desc { font-size: .875rem; color: rgba(220,228,242,.8); }
.profile-unavail-msg  { font-size: .875rem; color: rgba(220,228,242,.5); }

.form-control::placeholder, .form-select::placeholder, textarea::placeholder { color: rgba(220,228,242,.3); opacity: 1; }
.form-control, .form-select { color: #dce4f2 !important; border-color: rgba(220,228,242,.2) !important; background-color: #1c2840 !important; }
.form-control:focus, .form-select:focus { color: #dce4f2 !important; border-color: rgba(220,228,242,.55) !important; box-shadow: 0 0 0 .2rem rgba(220,228,242,.12) !important; background-color: #1c2840 !important; }

label { color: #dce4f2; }
.form-text strong, .profile-form-card strong, .profile-card strong { color: #dce4f2; }

/* ── Global modal palette (dark) — aligned to dark theme ───────────────── */
.modal-content {
    color: #dce4f2 !important;
    border: 1px solid rgba(220,228,242,.35) !important;
}
.modal-title,
.modal-header,
.modal-body,
.modal-footer,
.modal label,
.modal p,
.modal span,
.modal small,
.modal .text-muted,
.modal .form-text,
.modal .hint-muted {
    color: #dce4f2 !important;
}
.modal-header,
.modal-footer,
.modal hr,
.modal .dropdown-divider,
.modal .table > :not(caption) > * > *,
.modal .table thead th,
.modal .table tbody td,
.modal .form-control,
.modal .form-select,
.modal .input-group-text,
.modal .btn-outline-secondary,
.modal .btn-light,
.modal .btn-toolbar-outline,
.modal .btn-sm-outline {
    border-color: rgba(220,228,242,.35) !important;
}
.modal .form-control,
.modal .form-select,
.modal .input-group-text,
.modal .btn-outline-secondary,
.modal .btn-light {
    color: #dce4f2 !important;
}
.modal .form-control::placeholder,
.modal textarea.form-control::placeholder,
.modal input::placeholder {
    color: rgba(220,228,242,.72) !important;
    opacity: 1 !important;
}

/* ── Global modal actions UX (dark): cancel red, save green, no hover shift ─ */
.modal .modal-footer .btn[data-bs-dismiss="modal"],
.modal .modal-footer .btn.btn-cancel-plain {
    background: #f70000 !important;
    border-color: #f70000 !important;
    color: #ffffff !important;
}
.modal .modal-footer .btn.btn-brand,
.modal .modal-footer .btn.btn-save-plain,
.modal .modal-footer .btn.btn-success {
    background: #198754 !important;
    border-color: #198754 !important;
    color: #ffffff !important;
}
.modal .modal-footer .btn[data-bs-dismiss="modal"]:hover,
.modal .modal-footer .btn[data-bs-dismiss="modal"]:focus,
.modal .modal-footer .btn[data-bs-dismiss="modal"]:active,
.modal .modal-footer .btn.btn-cancel-plain:hover,
.modal .modal-footer .btn.btn-cancel-plain:focus,
.modal .modal-footer .btn.btn-cancel-plain:active,
.modal .modal-footer .btn.btn-brand:hover,
.modal .modal-footer .btn.btn-brand:focus,
.modal .modal-footer .btn.btn-brand:active,
.modal .modal-footer .btn.btn-save-plain:hover,
.modal .modal-footer .btn.btn-save-plain:focus,
.modal .modal-footer .btn.btn-save-plain:active,
.modal .modal-footer .btn.btn-success:hover,
.modal .modal-footer .btn.btn-success:focus,
.modal .modal-footer .btn.btn-success:active {
    filter: none !important;
    box-shadow: none !important;
}

.page-records .zone-strip .btn-sm-outline,
.page-records .zone-strip .btn-sm-outline:hover,
.page-records .zone-strip .btn-sm-outline:focus,
.page-records .zone-strip .btn-sm-outline:active {
    border: 1px solid rgba(220,228,242,.35) !important;
    background: #172135 !important;
    color: #dce4f2 !important;
    box-shadow: none !important;
}
.page-records .zone-strip #zoneCheckBtn.zone-valid-ok,
.page-records .zone-strip #zoneCheckBtn.zone-valid-ok:hover,
.page-records .zone-strip #zoneCheckBtn.zone-valid-ok:focus,
.page-records .zone-strip #zoneCheckBtn.zone-valid-ok:active {
    border: 1px solid #198754 !important;
    background: #198754 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}
.page-records .page-topbar .breadcrumb-item,
.page-records .page-topbar .breadcrumb-item a,
.page-records .page-topbar .breadcrumb-item a:hover,
.page-records .page-topbar .breadcrumb-item.active {
    color: #15224e !important;
    opacity: 1 !important;
}
.page-records .page-topbar .breadcrumb-item + .breadcrumb-item::before {
    color: #15224e !important;
    opacity: 1 !important;
}

/* DNS + Nameservers: match approved records top look */
.page-dns .page-topbar .breadcrumb-item,
.page-dns .page-topbar .breadcrumb-item a,
.page-dns .page-topbar .breadcrumb-item a:hover,
.page-dns .page-topbar .breadcrumb-item.active,
.page-nameservers .page-topbar .breadcrumb-item,
.page-nameservers .page-topbar .breadcrumb-item a,
.page-nameservers .page-topbar .breadcrumb-item a:hover,
.page-nameservers .page-topbar .breadcrumb-item.active {
    color: #15224e !important;
    opacity: 1 !important;
}
.page-dns .page-topbar .breadcrumb-item + .breadcrumb-item::before,
.page-nameservers .page-topbar .breadcrumb-item + .breadcrumb-item::before {
    color: #15224e !important;
    opacity: 1 !important;
}
.page-dns .page-topbar-actions .btn-brand,
.page-dns .page-topbar-actions .btn-brand:hover,
.page-dns .page-topbar-actions .btn-brand:focus,
.page-dns .page-topbar-actions .btn-brand:active,
.page-nameservers .page-topbar-actions .btn-brand,
.page-nameservers .page-topbar-actions .btn-brand:hover,
.page-nameservers .page-topbar-actions .btn-brand:focus,
.page-nameservers .page-topbar-actions .btn-brand:active {
    border: 1px solid rgba(220,228,242,.35) !important;
    background: #172135 !important;
    color: #dce4f2 !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

/* Auth UX finetune: equal theme buttons + non-bright input borders */
.auth-skin-bar .header-sw-btn {
    width: 82px;
    min-width: 82px;
    justify-content: center;
    border-color: rgba(220,228,242,.45) !important;
    background: #1c2840 !important;
    color: #dce4f2 !important;
}
.auth-skin-bar .header-sw-btn:hover,
.auth-skin-bar .header-sw-btn:focus,
.auth-skin-bar .header-sw-btn.active,
.auth-skin-bar .header-sw-btn.active:hover,
.auth-skin-bar .header-sw-btn.active:focus {
    border-color: rgba(220,228,242,.45) !important;
    background: #1c2840 !important;
    color: #dce4f2 !important;
}
.login-card .input-group-text,
.register-card .input-group-text,
.login-card .btn-outline-secondary,
.register-card .btn-outline-secondary,
.login-card .form-control,
.register-card .form-control {
    border-color: rgba(220,228,242,.14) !important;
}
.login-card .input-group > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback),
.register-card .input-group > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
    border-left-color: rgba(220,228,242,.14) !important;
}
.login-card .input-group > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating),
.register-card .input-group > :not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating) {
    border-right-color: #5a6783 !important;
}
.login-card .form-control:focus,
.register-card .form-control:focus {
    border-color: #5a6783 !important;
    box-shadow: none !important;
}
.login-card .form-control:hover,
.register-card .form-control:hover,
.login-card .form-control:active,
.register-card .form-control:active,
.login-card .form-control:valid,
.register-card .form-control:valid,
.login-card .form-control:invalid,
.register-card .form-control:invalid {
    border-color: #5a6783 !important;
    box-shadow: none !important;
}
.login-card input.form-control:-moz-autofill,
.register-card input.form-control:-moz-autofill {
    box-shadow: 0 0 0 1000px #1c2840 inset !important;
    -moz-text-fill-color: #dce4f2 !important;
    border-color: #5a6783 !important;
}
.login-card input.form-control:-webkit-autofill,
.login-card input.form-control:-webkit-autofill:hover,
.login-card input.form-control:-webkit-autofill:focus,
.login-card input.form-control:-webkit-autofill:active,
.register-card input.form-control:-webkit-autofill,
.register-card input.form-control:-webkit-autofill:hover,
.register-card input.form-control:-webkit-autofill:focus,
.register-card input.form-control:-webkit-autofill:active {
    border-color: #5a6783 !important;
    box-shadow: 0 0 0 1000px #1c2840 inset !important;
    -webkit-box-shadow: 0 0 0 1000px #1c2840 inset !important;
    -webkit-text-fill-color: #dce4f2 !important;
}

/* RGBA-free policy overrides for visible auth/dashboard UI */
.page-dashboard .content-card,
.page-dashboard .stat-card,
.page-dashboard .quick-access-card,
.page-dashboard .server-info-item,
.page-dashboard .card-table,
.page-dashboard .table-responsive,
.page-dns .content-card,
.page-dns .stat-card,
.page-dns .api-status-banner,
.page-nameservers .content-card,
.page-nameservers .api-status-banner,
.page-nameservers .card-header-bar {
    border-color: #3a4765 !important;
}
.page-dashboard .card-toolbar,
.page-dns .card-toolbar,
.page-dns .zone-tab-bar,
.page-nameservers .card-header-bar,
.dropdown-divider {
    border-color: #2f3b57 !important;
}
.text-muted,
.form-text,
.hint-muted,
small {
    color: #9ba7c2 !important;
}
.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.btn-outline-secondary:focus-visible,
.btn-primary:focus,
.btn-primary:focus-visible {
    box-shadow: none !important;
}

/* Global straight UI: buttons + fields without rounding */
button,
.btn,
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
select,
textarea,
.form-control,
.form-select,
.input-group-text,
.btn-login,
.login-card {
    border-radius: 0 !important;
}

/* Absolute no-radius mode (project-wide) */
*,
*::before,
*::after {
    border-radius: 0 !important;
}
