:root {
    --bg-main: #f8fafc;
    --bg-soft: #eef2f7;
    --card: #ffffff;

    --text-main: #111827;
    --text-dark: #334155;
    --text-muted: #64748b;
    --text-soft: #94a3b8;

    --border: #e5e7eb;
    --border-soft: #eef2f7;

    --blue: #47c4f7;
    --purple: #a98bde;
    --mint: #6ee8c8;
    --green: #88d96a;

    --danger: #ef4444;

    --radius-sm: 2px;
    --radius-md: 4px;

    --shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.06);
    --shadow-hover: 0 14px 28px rgba(15, 23, 42, 0.12);

    --gradient-main: linear-gradient(90deg, #47f7a2, #a98bde, #6ee8c8, #88d96a);
    --gradient-dark: linear-gradient(135deg, #0f172a, #334155);

    --topbar-height: 68px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Nunito", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
    background:
        radial-gradient(circle at top left, rgba(71, 196, 247, 0.10), transparent 32%),
        radial-gradient(circle at top right, rgba(169, 139, 222, 0.10), transparent 30%),
        var(--bg-main);
    color: var(--text-main);
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* =====================================================
   TOP NAVBAR - CORPORATE PREMIUM
===================================================== */

.top-navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    min-height: var(--topbar-height);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96)),
        #ffffff;
    border-bottom: 1px solid rgba(203, 213, 225, 0.78);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.85) inset,
        0 10px 26px rgba(15, 23, 42, 0.055);
    backdrop-filter: blur(14px);
}



.navbar-inner {
    min-height: var(--topbar-height);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 18px;
    position: relative;
}

/* =====================================================
   BRAND
===================================================== */

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    padding: 6px 10px 6px 0;
}

.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: var(--gradient-dark);
    color: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.10);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

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

.brand-copy {
    display: grid;
    line-height: 1.15;
}

.brand-title {
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.2px;
    color: #0f172a;
}

.brand-subtitle {
    margin-top: 3px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.7px;
    text-transform: uppercase;
    color: #64748b;
}

/* =====================================================
   MOBILE MENU BUTTON
===================================================== */

.mobile-menu-btn {
    display: none;
    width: 38px;
    height: 38px;
    border: 1px solid #dbe3ee;
    border-radius: var(--radius-md);
    background: #ffffff;
    color: #334155;
    align-items: center;
    justify-content: center;
    transition:
        background 0.22s ease,
        border-color 0.22s ease,
        color 0.22s ease,
        box-shadow 0.22s ease;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 6px 14px rgba(15, 23, 42, 0.04);
}

.mobile-menu-btn:hover {
    background: #f8fafc;
    border-color: #bae6fd;
    color: #0284c7;
    box-shadow: 0 9px 18px rgba(15, 23, 42, 0.075);
}

.mobile-menu-btn svg {
    width: 18px;
    height: 18px;
}

/* =====================================================
   NAV ROUTES
===================================================== */

.navbar-menu {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 3px;
    overflow: visible;
}

.nav-item {
    position: relative;
    flex: 0 1 auto;
    min-width: 0;
    overflow: visible;
}

.nav-link,
.nav-dropdown-btn {
    height: 38px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
    color: #334155;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 10px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.05px;
    white-space: nowrap;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease,
        max-width 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-dropdown-btn {
    appearance: none;
}

.nav-link svg,
.nav-dropdown-btn svg {
    width: 16px;
    height: 16px;
    color: #64748b;
    flex-shrink: 0;
    stroke-width: 2.1;
    transition: color 0.2s ease;
}

.nav-link span,
.nav-dropdown-btn span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-link:hover,
.nav-dropdown-btn:hover {
    background: #f8fafc;
    border-color: #dbeafe;
    color: #0f172a;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.045);
}

.nav-link:hover svg,
.nav-dropdown-btn:hover svg {
    color: #0284c7;
}

.nav-link.is-active {
    color: #0369a1;
    background: linear-gradient(180deg, #eff6ff, #e0f2fe);
    border-color: #bae6fd;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 8px 18px rgba(14, 165, 233, 0.12);
}

.nav-link.is-active svg {
    color: #0284c7;
}

.nav-chevron {
    width: 14px !important;
    height: 14px !important;
    margin-left: 2px;
    transition: transform 0.2s ease;
}

.nav-item.is-open>.nav-dropdown-btn .nav-chevron {
    transform: rotate(180deg);
}

/* =====================================================
   DROPDOWN
===================================================== */

.dropdown-menu {
    position: absolute;
    top: calc(100% + 9px);
    left: 0;
    z-index: 250;
    min-width: 220px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    box-shadow:
        0 18px 42px rgba(15, 23, 42, 0.13),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
    padding: 7px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    transition:
        opacity 0.18s ease,
        visibility 0.18s ease,
        transform 0.18s ease;
}

.dropdown-menu::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, #47c4f7, #6ee8c8);
    border-radius: 4px 4px 0 0;
}

.nav-item:hover>.dropdown-menu,
.nav-item.is-open>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.dropdown-link {
    width: 100%;
    border: none;
    border-radius: var(--radius-sm);
    background: transparent;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 9px;
    color: #334155;
    font-size: 12px;
    font-weight: 850;
    text-align: left;
    transition:
        background 0.18s ease,
        color 0.18s ease;
}

.dropdown-link svg {
    width: 16px;
    height: 16px;
    color: #64748b;
    flex-shrink: 0;
    transition: color 0.18s ease;
}

.dropdown-link:hover,
.dropdown-link.is-active {
    background: #f1f5f9;
    color: #0369a1;
}

.dropdown-link:hover svg,
.dropdown-link.is-active svg {
    color: #0284c7;
}

/* =====================================================
   RIGHT ACTIONS
===================================================== */

.navbar-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    position: relative;
}

.icon-btn,
.search-toggle-btn,
.profile-btn {
    border: 1px solid #dbe3ee;
    border-radius: var(--radius-sm);
    background: #ffffff;
    color: #334155;
    transition:
        background 0.22s ease,
        border-color 0.22s ease,
        color 0.22s ease,
        box-shadow 0.22s ease;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 6px 14px rgba(15, 23, 42, 0.04);
}

.icon-btn,
.search-toggle-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover,
.search-toggle-btn:hover,
.profile-btn:hover {
    background: #f8fafc;
    border-color: #bae6fd;
    color: #0284c7;
    box-shadow: 0 9px 18px rgba(15, 23, 42, 0.075);
}

.icon-btn svg,
.search-toggle-btn svg,
.profile-btn svg {
    width: 17px;
    height: 17px;
    color: currentColor;
}

.icon-btn {
    position: relative;
}

.notify-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--danger);
    border: 2px solid #ffffff;
}

.profile-btn {
    height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 8px 4px 4px;
}

.profile-avatar {
    width: 29px;
    height: 29px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #47c4f7, #6ee8c8);
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(14, 165, 233, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
}

.profile-info {
    display: grid;
    line-height: 1.1;
    text-align: left;
}

.profile-name {
    font-size: 12px;
    font-weight: 900;
    color: #0f172a;
    white-space: nowrap;
}

.profile-role {
    margin-top: 2px;
    font-size: 9px;
    font-weight: 900;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

/* =====================================================
   EXPANDABLE SEARCH
===================================================== */

.nav-search {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    overflow: visible;
    transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-search.is-open {
    width: 330px;
}

.search-toggle-btn {
    position: relative;
    flex: 0 0 38px;
    z-index: 3;
}

.nav-search.is-open .search-toggle-btn {
    color: #0369a1;
    background: #eff6ff;
    border-color: #bae6fd;
}

.search-open-icon,
.search-close-icon {
    transition: opacity 0.18s ease;
}

.search-close-icon {
    display: none;
}

.nav-search.is-open .search-open-icon {
    display: none;
}

.nav-search.is-open .search-close-icon {
    display: block;
}

.search-expand-panel {
    width: 0;
    height: 38px;
    margin-right: 0;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    transform: scaleX(0.94);
    transform-origin: right center;
    transition:
        width 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.18s ease,
        margin-right 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        padding 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.22s ease,
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 8px 18px rgba(15, 23, 42, 0.055);
    flex: 0 0 auto;
}

.nav-search.is-open .search-expand-panel {
    width: 284px;
    margin-right: 8px;
    padding: 0 10px;
    opacity: 1;
    border-color: #dbe3ee;
    transform: scaleX(1);
}

.search-expand-panel svg {
    width: 16px;
    height: 16px;
    color: #64748b;
    flex-shrink: 0;
}

.search-expand-panel input {
    width: 100%;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: #111827;
    font-size: 12px;
    font-weight: 850;
}

.search-expand-panel input::placeholder {
    color: #94a3b8;
}

/* Search results */
.nav-item.is-search-hidden {
    display: none !important;
}

.dropdown-link.is-search-hidden {
    display: none !important;
}

.nav-item.is-search-match>.nav-link,
.nav-item.is-search-match>.nav-dropdown-btn {
    color: #0369a1;
    background: linear-gradient(135deg, rgba(71, 196, 247, 0.16), rgba(110, 232, 200, 0.10));
    border-color: rgba(71, 196, 247, 0.32);
}

.nav-item.is-search-match>.nav-link svg,
.nav-item.is-search-match>.nav-dropdown-btn svg {
    color: #0284c7;
}

/* Desktop: search open hote hi first 4 route hide honge */
@media (min-width: 1121px) {
    .navbar-menu .nav-item {
        max-width: 190px;
        transition:
            max-width 0.28s cubic-bezier(0.22, 1, 0.36, 1),
            opacity 0.2s ease,
            transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .navbar-inner.has-search-open .navbar-menu .nav-item:nth-child(-n + 4) {
        max-width: 0;
        opacity: 0;
        transform: translateX(-8px);
        pointer-events: none;
        overflow: hidden;
    }

    .navbar-inner.has-search-open .navbar-menu {
        gap: 2px;
    }
}

@media (min-width: 1121px) and (max-width: 1320px) {
    .nav-search.is-open {
        width: 290px;
    }

    .nav-search.is-open .search-expand-panel {
        width: 244px;
    }
}

/* =====================================================
   PAGE CONTENT
===================================================== */

.page-content {
    padding: 22px;
}

.page-card {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 12px 28px rgba(15, 23, 42, 0.055);
    padding: 20px;
}

.page-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--gradient-main);
}

.page-card h1 {
    margin: 0;
    color: var(--text-main);
    font-size: 20px;
    font-weight: 900;
}

.page-card p {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
    font-weight: 600;
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 1280px) {
    .navbar-inner {
        gap: 10px;
        padding: 0 14px;
    }

    .nav-link,
    .nav-dropdown-btn {
        padding: 0 8px;
    }
}

@media (max-width: 1120px) {
    .top-navbar {
        transition: padding-bottom 0.26s cubic-bezier(0.22, 1, 0.36, 1);
    }

    .top-navbar.is-search-open {
        padding-bottom: 52px;
    }

    .mobile-menu-btn {
        display: inline-flex;
    }

    .navbar-menu {
        position: absolute;
        left: 14px;
        right: 14px;
        top: calc(100% + 8px);
        z-index: 220;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        background: #ffffff;
        border: 1px solid #dbe3ee;
        border-radius: var(--radius-md);
        box-shadow: 0 18px 42px rgba(15, 23, 42, 0.13);
        padding: 8px;
        overflow: visible;
    }

    .navbar-menu.is-open {
        display: flex;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link,
    .nav-dropdown-btn {
        width: 100%;
        justify-content: flex-start;
        height: 40px;
    }

    .dropdown-menu {
        position: static;
        display: none;
        min-width: 100%;
        margin-top: 6px;
        box-shadow: none;
        border-radius: var(--radius-sm);
        background: #f8fafc;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        padding: 6px;
    }

    .dropdown-menu::before {
        display: none;
    }

    .nav-item:hover>.dropdown-menu {
        display: none;
    }

    .nav-item.is-open>.dropdown-menu {
        display: block;
    }

    .navbar-actions {
        position: static;
    }

    .nav-search {
        width: 38px;
        height: 38px;
    }

    .nav-search.is-open {
        position: absolute;
        left: 14px;
        right: 14px;
        bottom: 8px;
        top: auto;
        width: auto;
        height: 40px;
        z-index: 260;
        display: flex;
        align-items: center;
        background: #ffffff;
        border: 1px solid #bae6fd;
        border-radius: var(--radius-md);
        box-shadow: 0 14px 34px rgba(15, 23, 42, 0.13);
        padding: 4px;
    }

    .nav-search.is-open .search-expand-panel {
        width: auto;
        flex: 1 1 auto;
        height: 32px;
        margin-right: 6px;
        padding: 0 8px;
        opacity: 1;
        border-color: transparent;
        box-shadow: none;
        transform: scaleX(1);
    }

    .nav-search.is-open .search-toggle-btn {
        width: 32px;
        height: 32px;
        flex: 0 0 32px;
    }

    .nav-search.is-open .search-expand-panel input {
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    :root {
        --topbar-height: 62px;
    }

    .navbar-inner {
        padding: 0 10px;
        gap: 8px;
    }

    .brand-subtitle {
        display: none;
    }

    .brand-title {
        font-size: 13px;
    }

    .brand-icon {
        width: 34px;
        height: 34px;
    }

    .profile-info {
        display: none;
    }

    .profile-btn {
        padding: 4px;
    }

    .navbar-actions {
        gap: 6px;
    }

    .top-navbar.is-search-open {
        padding-bottom: 50px;
    }

    .nav-search {
        width: 36px;
        height: 36px;
    }

    .search-toggle-btn {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .nav-search.is-open {
        left: 10px;
        right: 10px;
        bottom: 7px;
        height: 39px;
    }

    .navbar-menu {
        left: 10px;
        right: 10px;
        top: calc(100% + 8px);
    }

    .page-content {
        padding: 14px;
    }

    .page-card {
        padding: 16px;
    }
}

@media (max-width: 420px) {
    .brand-copy {
        display: none;
    }

    .icon-btn {
        width: 36px;
        height: 36px;
    }

    .profile-btn {
        height: 36px;
    }

    .profile-avatar {
        width: 27px;
        height: 27px;
    }
}

/* =====================================================
   FINAL PATCH: Click dropdowns + Mobile search fix
   + Notification/Admin dropdowns
===================================================== */

/* Desktop route dropdown: hover disabled, only click works */
@media (min-width: 1121px) {
    .nav-item:hover>.dropdown-menu {
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        pointer-events: none;
    }

    .nav-item.is-open>.dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .dropdown-menu {
        top: calc(100% + 6px);
    }
}

/* Mobile/iPad search: no big navbar blank */
@media (max-width: 1120px) {
    .top-navbar.is-search-open {
        padding-bottom: 0;
    }

    .top-navbar.is-search-open+.page-content {
        padding-top: 64px;
    }

    .nav-search.is-open {
        position: absolute;
        left: 14px;
        right: 14px;
        top: calc(100% + 8px);
        bottom: auto;
        width: auto;
        height: 40px;
        z-index: 320;
        background: #ffffff;
        border: 1px solid #bae6fd;
        border-radius: var(--radius-md);
        box-shadow: 0 14px 34px rgba(15, 23, 42, 0.13);
        padding: 4px;
    }

    .nav-search.is-open .search-expand-panel {
        width: auto;
        flex: 1 1 auto;
        height: 32px;
        margin-right: 6px;
        padding: 0 8px;
        opacity: 1;
        border-color: transparent;
        box-shadow: none;
        transform: scaleX(1);
    }

    .nav-search.is-open .search-toggle-btn {
        width: 32px;
        height: 32px;
        flex: 0 0 32px;
    }

    .nav-search.is-open .search-expand-panel input {
        font-size: 13px;
    }
}

@media (max-width: 767px) {
    .top-navbar.is-search-open+.page-content {
        padding-top: 62px;
    }

    .nav-search.is-open {
        left: 10px;
        right: 10px;
        top: calc(100% + 7px);
        height: 39px;
    }
}

/* =====================================================
   RIGHT ACTION DROPDOWNS
===================================================== */

.action-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.action-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 360;
    width: 330px;
    max-width: calc(100vw - 24px);
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    box-shadow:
        0 18px 42px rgba(15, 23, 42, 0.14),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    pointer-events: none;
    overflow: hidden;
    transition:
        opacity 0.18s ease,
        visibility 0.18s ease,
        transform 0.18s ease;
}

.action-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, #47c4f7, #a98bde, #6ee8c8, #88d96a);
}

.action-dropdown.is-open>.action-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.action-dropdown.is-open>.icon-btn,
.action-dropdown.is-open>.profile-btn {
    background: #eff6ff;
    border-color: #bae6fd;
    color: #0369a1;
}

.panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 16px 12px;
    border-bottom: 1px solid #eef2f7;
}

.panel-head h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 900;
    color: #0f172a;
}

.panel-head p {
    margin: 3px 0 0;
    font-size: 11px;
    font-weight: 800;
    color: #64748b;
}

.panel-count {
    min-width: 24px;
    height: 24px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #47c4f7, #6ee8c8);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
}

.notification-list {
    display: grid;
    padding: 6px;
    gap: 3px;
}

.notification-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: var(--radius-sm);
    transition:
        background 0.18s ease,
        color 0.18s ease;
}

.notification-item:hover {
    background: #f8fafc;
}

.notification-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.notification-icon svg {
    width: 16px;
    height: 16px;
}

.notification-icon.is-blue {
    background: #eff6ff;
    color: #0284c7;
}

.notification-icon.is-green {
    background: #ecfdf5;
    color: #047857;
}

.notification-icon.is-purple {
    background: #f5f3ff;
    color: #7c3aed;
}

.notification-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.notification-copy strong {
    font-size: 12px;
    font-weight: 900;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-copy small {
    font-size: 11px;
    font-weight: 750;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notification-time {
    font-size: 10px;
    font-weight: 900;
    color: #94a3b8;
}

.panel-footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 11px 14px;
    border-top: 1px solid #eef2f7;
    background: #f8fafc;
    color: #0369a1;
    font-size: 12px;
    font-weight: 900;
}

.panel-footer-link:hover {
    background: #eff6ff;
}

/* Profile dropdown */
.profile-panel {
    width: 230px;
}

.profile-panel-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    border-bottom: 1px solid #eef2f7;
}

.profile-panel-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #47c4f7, #6ee8c8);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 900;
    box-shadow: 0 6px 14px rgba(14, 165, 233, 0.18);
}

.profile-panel-head strong {
    display: block;
    font-size: 13px;
    font-weight: 900;
    color: #0f172a;
}

.profile-panel-head small {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    font-weight: 900;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.profile-menu-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px 14px;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
    transition:
        background 0.18s ease,
        color 0.18s ease;
}

.profile-menu-link svg {
    width: 16px;
    height: 16px;
    color: #64748b;
}

.profile-menu-link:hover {
    background: #f8fafc;
    color: #0369a1;
}

.profile-menu-link:hover svg {
    color: #0284c7;
}

.profile-menu-link.is-danger {
    color: #b91c1c;
    border-top: 1px solid #eef2f7;
}

.profile-menu-link.is-danger svg {
    color: #ef4444;
}

.profile-menu-link.is-danger:hover {
    background: #fef2f2;
}

/* Mobile panels */
@media (max-width: 767px) {
    .action-panel {
        position: fixed;
        left: 10px;
        right: 10px;
        top: calc(var(--topbar-height) + 10px);
        width: auto;
        max-width: none;
    }

    .profile-panel {
        width: auto;
    }
}

/* =====================================================
   DASHBOARD PAGE - CORPORATE PREMIUM
===================================================== */

.dashboard-page {
    padding: 22px;
}

.dashboard-shell {
    display: grid;
    gap: 18px;
}

.dashboard-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.dashboard-kicker {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 900;
    color: #0284c7;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.dashboard-head h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
    color: #0f172a;
}

.dashboard-head span {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
}

.dashboard-head-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.live-status {
    min-height: 36px;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid #bbf7d0;
    border-radius: 2px;
    background: #ecfdf5;
    color: #047857 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
    margin: 0 !important;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.dashboard-refresh-btn {
    min-height: 36px;
    border: 1px solid #dbe3ee;
    border-radius: 2px;
    background: #ffffff;
    color: #334155;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 900;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 6px 14px rgba(15, 23, 42, 0.04);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.dashboard-refresh-btn:hover {
    background: #f8fafc;
    border-color: #bae6fd;
    color: #0284c7;
    box-shadow: 0 9px 18px rgba(15, 23, 42, 0.075);
}

.dashboard-refresh-btn svg {
    width: 15px;
    height: 15px;
}

.dashboard-refresh-btn.is-spinning svg {
    animation: dashboardSpin 0.45s linear;
}

@keyframes dashboardSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 0.95fr);
    gap: 18px;
    align-items: stretch;
}

.dashboard-card,
.metric-card {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 12px 28px rgba(15, 23, 42, 0.055);
}

.dashboard-card::before,
.metric-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--gradient-main);
}

.chart-card {
    padding: 18px;
    min-height: 390px;
}

.card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 10px;
}

.card-head h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 900;
    color: #0f172a;
}

.card-head p {
    margin: 5px 0 0;
    font-size: 12px;
    font-weight: 750;
    color: #64748b;
}

.metric-select-wrap {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
}

.metric-select {
    height: 36px;
    min-width: 136px;
    border: 1px solid #dbe3ee;
    border-radius: 2px;
    background: #ffffff;
    color: #334155;
    padding: 0 10px;
    outline: none;
    font-size: 12px;
    font-weight: 900;
}

.chart-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.chart-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 26px;
    padding: 0 9px;
    border: 1px solid #e2e8f0;
    border-radius: 2px;
    background: #f8fafc;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
}

.chart-chip svg {
    width: 13px;
    height: 13px;
    color: #0284c7;
}

.chart-box {
    width: 100%;
    height: 300px;
    border: 1px solid #eef2f7;
    border-radius: 4px;
    background:
        linear-gradient(180deg, rgba(248, 250, 252, 0.75), rgba(255, 255, 255, 0.96)),
        #ffffff;
    padding: 12px;
}

.chart-box canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.side-card-stack {
    display: grid;
    gap: 18px;
}

.metric-card {
    padding: 20px;
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.metric-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #334155;
    font-size: 13px;
    font-weight: 900;
}

.metric-icon {
    width: 38px;
    height: 38px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.metric-icon svg {
    width: 18px;
    height: 18px;
}

.metric-icon.pink {
    background: #fff1f2;
    color: #f43f5e;
}

.metric-icon.purple {
    background: #f5f3ff;
    color: #7c3aed;
}

.metric-card h3 {
    margin: 18px 0 12px;
    color: #0f172a;
    font-size: 20px;
    line-height: 1.18;
    font-weight: 900;
}

.metric-pink {
    background:
        linear-gradient(135deg, rgba(255, 241, 242, 0.96), rgba(255, 255, 255, 0.96)),
        #ffffff;
}

.metric-purple {
    background:
        linear-gradient(135deg, rgba(245, 243, 255, 0.98), rgba(255, 255, 255, 0.96)),
        #ffffff;
}

.live-user-lines {
    display: grid;
    gap: 6px;
    margin: 16px 0 12px;
}

.live-user-lines strong {
    color: #0f172a;
    font-size: 24px;
    line-height: 1.1;
    font-weight: 900;
}

.big-metric {
    margin: 18px 0 12px;
    color: #0f172a;
    font-size: 25px;
    line-height: 1.12;
    font-weight: 900;
}

.small-pill {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 8px;
    border: 1px solid #cbd5e1;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.72);
    color: #334155;
    font-size: 11px;
    font-weight: 900;
}

@media (min-width: 1121px) {
    .dashboard-grid {
        grid-template-areas:
            "chart side"
            "cpu ram"
            "disk disk";
    }

    .chart-card {
        grid-area: chart;
    }

    .side-card-stack {
        grid-area: side;
    }

    .dashboard-grid>.metric-card:nth-of-type(1) {
        grid-area: cpu;
    }

    .dashboard-grid>.metric-card:nth-of-type(2) {
        grid-area: ram;
    }

    .dashboard-grid>.metric-card:nth-of-type(3) {
        grid-area: disk;
    }
}

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

    .side-card-stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .chart-card {
        min-height: auto;
    }

    .chart-box {
        height: 290px;
    }
}

@media (max-width: 767px) {
    .dashboard-page {
        padding: 14px;
    }

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

    .dashboard-head-actions {
        justify-content: flex-start;
    }

    .dashboard-head h1 {
        font-size: 22px;
    }

    .card-head {
        flex-direction: column;
    }

    .metric-select-wrap,
    .metric-select {
        width: 100%;
    }

    .side-card-stack {
        grid-template-columns: 1fr;
    }

    .chart-card,
    .metric-card {
        padding: 16px;
    }

    .chart-box {
        height: 240px;
        padding: 8px;
    }

    .live-user-lines strong,
    .big-metric {
        font-size: 22px;
    }

    .metric-card h3 {
        font-size: 18px;
    }
}

@media (max-width: 420px) {
    .dashboard-head-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .dashboard-refresh-btn,
    .live-status {
        width: 100%;
        justify-content: center;
    }

    .chart-box {
        height: 220px;
    }
}

/* =====================================================
   PREMIUM APEX DASHBOARD CHART
===================================================== */

.apex-chart-box {
    height: 320px;
    padding: 8px 10px 4px;
    overflow: hidden;
}

.apex-chart-box #usageChart {
    width: 100%;
    height: 100%;
    min-height: 280px;
}

.apexcharts-canvas,
.apexcharts-svg {
    font-family: "Nunito", sans-serif !important;
}

.apexcharts-tooltip {
    border-radius: 4px !important;
    border: 1px solid #dbe3ee !important;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14) !important;
    font-family: "Nunito", sans-serif !important;
}

.apexcharts-tooltip-title {
    background: #f8fafc !important;
    border-bottom: 1px solid #eef2f7 !important;
    font-weight: 900 !important;
}

.apexcharts-menu {
    border-radius: 4px !important;
    border: 1px solid #dbe3ee !important;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14) !important;
}

@media (max-width: 767px) {
    .apex-chart-box {
        height: 260px;
    }

    .apex-chart-box #usageChart {
        min-height: 235px;
    }
}

@media (max-width: 420px) {
    .apex-chart-box {
        height: 235px;
        padding: 4px;
    }

    .apex-chart-box #usageChart {
        min-height: 215px;
    }
}

/* =====================================================
   USERS DASHBOARD PAGE
===================================================== */

.users-page {
    padding: 22px;
}

.users-shell {
    display: grid;
    gap: 18px;
}

.users-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.users-kicker {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 900;
    color: #0284c7;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.users-head h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
    color: #0f172a;
}

.users-head span {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    font-weight: 700;
    color: #64748b;
}

.users-refresh-btn {
    min-height: 38px;
    border: 1px solid #dbe3ee;
    border-radius: 2px;
    background: #ffffff;
    color: #334155;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 900;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 6px 14px rgba(15, 23, 42, 0.04);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.users-refresh-btn:hover {
    background: #f8fafc;
    border-color: #bae6fd;
    color: #0284c7;
    box-shadow: 0 9px 18px rgba(15, 23, 42, 0.075);
}

.users-refresh-btn svg {
    width: 15px;
    height: 15px;
}

.users-refresh-btn.is-spinning svg {
    animation: usersSpin 0.45s linear;
}

@keyframes usersSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

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

.users-overview-card,
.users-table-card {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 12px 28px rgba(15, 23, 42, 0.055);
}

.users-overview-card::before,
.users-table-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--gradient-main);
}

.users-overview-card {
    padding: 18px;
    display: grid;
    gap: 10px;
}

.users-overview-card span {
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

.users-overview-card strong {
    color: #0f172a;
    font-size: 28px;
    line-height: 1;
    font-weight: 900;
}

.users-table-card {
    padding: 18px;
}

.users-table-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.users-toolbar-left,
.users-toolbar-right {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.users-field,
.users-search-field {
    display: grid;
    gap: 6px;
}

.users-field>span,
.users-search-field>span {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
}

.users-field {
    display: flex;
    align-items: center;
    gap: 8px;
}

.users-field select {
    height: 36px;
    min-width: 78px;
    border: 1px solid #dbe3ee;
    border-radius: 2px;
    background: #ffffff;
    color: #334155;
    padding: 0 10px;
    outline: none;
    font-size: 12px;
    font-weight: 900;
}

.users-search-input-wrap {
    min-width: 290px;
    height: 38px;
    border: 1px solid #dbe3ee;
    border-radius: 2px;
    background: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 10px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.users-search-input-wrap svg {
    width: 16px;
    height: 16px;
    color: #64748b;
    flex-shrink: 0;
}

.users-search-input-wrap input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: #111827;
    font-size: 12px;
    font-weight: 800;
}

.users-search-input-wrap input::placeholder {
    color: #94a3b8;
}

.users-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #eef2f7;
    border-radius: 4px;
}

.users-data-table {
    width: 100%;
    min-width: 1280px;
    border-collapse: collapse;
}

.users-data-table thead th {
    background: #f8fafc;
    color: #475569;
    font-size: 12px;
    font-weight: 900;
    text-align: left;
    padding: 14px 12px;
    border-bottom: 1px solid #e5e7eb;
    border-right: 1px solid #eef2f7;
    white-space: nowrap;
}

.users-data-table tbody td {
    padding: 14px 12px;
    border-bottom: 1px solid #eef2f7;
    border-right: 1px solid #f1f5f9;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
    vertical-align: middle;
    white-space: nowrap;
}

.users-data-table tbody tr:hover {
    background: #fbfdff;
}

.users-empty-row td {
    text-align: center;
    padding: 26px 12px !important;
    color: #64748b;
    font-weight: 800;
}

.users-type-badge,
.users-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 900;
    border: 1px solid transparent;
}

.users-type-badge.is-pppoe {
    background: #eff6ff;
    color: #0369a1;
    border-color: #bae6fd;
}

.users-type-badge.is-ipoe {
    background: #f5f3ff;
    color: #6d28d9;
    border-color: #ddd6fe;
}

.users-status-badge.is-active {
    background: #ecfdf5;
    color: #047857;
    border-color: #bbf7d0;
}

.users-status-badge.is-inactive {
    background: #fff1f2;
    color: #be123c;
    border-color: #fecdd3;
}

.users-action-group {
    display: inline-flex;
    gap: 6px;
}

.users-action-btn {
    height: 28px;
    padding: 0 10px;
    border: 1px solid #dbe3ee;
    border-radius: 2px;
    background: #ffffff;
    color: #334155;
    font-size: 11px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.users-action-btn:hover {
    background: #f8fafc;
    border-color: #bae6fd;
    color: #0284c7;
}

.users-action-btn.is-danger:hover {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.users-table-footer {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.users-table-summary {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.users-pagination {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.users-page-btn {
    min-width: 38px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #dbe3ee;
    border-radius: 2px;
    background: #ffffff;
    color: #334155;
    font-size: 12px;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.users-page-btn:hover:not(:disabled) {
    background: #f8fafc;
    border-color: #bae6fd;
    color: #0284c7;
}

.users-page-btn.is-active {
    background: #eff6ff;
    border-color: #bae6fd;
    color: #0369a1;
}

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

@media (max-width: 1120px) {
    .users-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .users-search-input-wrap {
        min-width: 240px;
    }
}

@media (max-width: 767px) {
    .users-page {
        padding: 14px;
    }

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

    .users-refresh-btn {
        width: 100%;
        justify-content: center;
    }

    .users-overview-grid {
        grid-template-columns: 1fr;
    }

    .users-table-card {
        padding: 14px;
    }

    .users-table-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .users-toolbar-left,
    .users-toolbar-right {
        width: 100%;
    }

    .users-field {
        width: 100%;
        flex-wrap: wrap;
    }

    .users-search-field {
        width: 100%;
    }

    .users-search-input-wrap {
        min-width: 100%;
    }

    .users-table-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .users-pagination {
        justify-content: flex-start;
    }
}

/* =====================================================
   USERS TABLE FINAL POLISH + MODALS
===================================================== */

.users-table-wrap {
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f8fafc;
}

.users-table-wrap::-webkit-scrollbar {
    height: 8px;
}

.users-table-wrap::-webkit-scrollbar-track {
    background: #f8fafc;
}

.users-table-wrap::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
}

.users-data-table {
    min-width: 1060px;
}

.users-data-table thead th {
    text-transform: uppercase;
    letter-spacing: 0.45px;
    font-size: 11px;
}

.users-data-table tbody td {
    padding: 12px 12px;
}

.users-data-table th:first-child,
.users-data-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #ffffff;
    box-shadow: 1px 0 0 #eef2f7;
}

.users-data-table thead th:first-child {
    z-index: 3;
    background: #f8fafc;
}

.users-subscriber-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 190px;
}

.users-subscriber-avatar {
    width: 34px;
    height: 34px;
    border-radius: 2px;
    background: linear-gradient(135deg, #47c4f7, #6ee8c8);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    flex-shrink: 0;
    box-shadow: 0 6px 14px rgba(14, 165, 233, 0.16);
}

.users-subscriber-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.users-subscriber-copy strong {
    color: #0f172a;
    font-size: 12px;
    font-weight: 900;
}

.users-subscriber-copy small {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
}

.users-session-cell,
.users-traffic-cell {
    display: inline-grid;
    gap: 5px;
}

.users-rate-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 2px;
    background: #bff9e9;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 11px;
    font-weight: 900;
}

.users-traffic-line {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #334155;
    font-size: 11px;
    font-weight: 900;
}

.users-traffic-line i {
    font-style: normal;
    color: #64748b;
    min-width: 18px;
}

.users-action-group {
    gap: 7px;
}

.users-action-btn {
    height: 30px;
    border-radius: 2px;
    font-size: 11px;
    font-weight: 900;
}

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

.users-action-btn.is-view {
    background: #eff6ff;
    border-color: #bae6fd;
    color: #0369a1;
}

.users-action-btn.is-view:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.users-action-btn.is-danger {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #be123c;
}

.users-action-btn.is-danger:hover {
    background: #ffe4e6;
    border-color: #fda4af;
    color: #be123c;
}

.users-action-btn.is-disabled,
.users-action-btn:disabled {
    background: #f8fafc;
    border-color: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

/* Modal base */
.user-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 900;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(6px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.user-modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.user-modal {
    position: fixed;
    inset: 0;
    z-index: 910;
    display: grid;
    place-items: center;
    padding: 18px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.user-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.user-modal-card {
    width: min(720px, 100%);
    max-height: min(86vh, 780px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 4px;
    box-shadow:
        0 28px 70px rgba(15, 23, 42, 0.22),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
    transform: translateY(10px) scale(0.98);
    transition: transform 0.22s ease;
    position: relative;
}

.user-modal.is-open .user-modal-card {
    transform: translateY(0) scale(1);
}

.user-modal-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--gradient-main);
}

.user-confirm-modal-card {
    width: min(460px, 100%);
}

.user-modal-head {
    padding: 18px 18px 14px;
    border-bottom: 1px solid #eef2f7;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.user-modal-kicker {
    margin: 0 0 4px;
    color: #0284c7;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.65px;
    text-transform: uppercase;
}

.user-modal-kicker.danger {
    color: #be123c;
}

.user-modal-head h2 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    font-weight: 900;
}

.user-modal-close {
    width: 34px;
    height: 34px;
    border: 1px solid #dbe3ee;
    border-radius: 2px;
    background: #ffffff;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-modal-close:hover {
    background: #f8fafc;
    border-color: #bae6fd;
    color: #0284c7;
}

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

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

.user-profile-strip {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid #eef2f7;
    border-radius: 4px;
    background: linear-gradient(135deg, #f8fafc, #ffffff);
    margin-bottom: 14px;
}

.user-profile-avatar {
    width: 42px;
    height: 42px;
    border-radius: 2px;
    background: linear-gradient(135deg, #47c4f7, #6ee8c8);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 900;
}

.user-profile-strip strong {
    display: block;
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
}

.user-profile-strip small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
}

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

.user-detail-item {
    padding: 12px;
    border: 1px solid #eef2f7;
    border-radius: 4px;
    background: #ffffff;
    display: grid;
    gap: 4px;
    min-width: 0;
}

.user-detail-item span {
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.user-detail-item strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
    word-break: break-word;
}

.disconnect-warning-box {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
    border: 1px solid #fecdd3;
    border-radius: 4px;
    background: #fff1f2;
}

.disconnect-warning-box>span {
    width: 44px;
    height: 44px;
    border-radius: 2px;
    background: #e11d48;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.disconnect-warning-box svg {
    width: 18px;
    height: 18px;
}

.disconnect-warning-box strong {
    display: block;
    color: #9f1239;
    font-size: 14px;
    font-weight: 900;
}

.disconnect-warning-box small {
    display: block;
    margin-top: 4px;
    color: #be123c;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.45;
}

.user-modal-footer {
    padding: 14px 18px;
    border-top: 1px solid #eef2f7;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    background: #f8fafc;
}

.user-modal-btn {
    min-height: 36px;
    border-radius: 2px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 900;
    border: 1px solid transparent;
}

.user-modal-btn svg {
    width: 15px;
    height: 15px;
}

.user-modal-btn-soft {
    background: #ffffff;
    color: #334155;
    border-color: #dbe3ee;
}

.user-modal-btn-soft:hover {
    background: #f8fafc;
    border-color: #bae6fd;
    color: #0284c7;
}

.user-modal-btn-danger {
    background: #e11d48;
    color: #ffffff;
    border-color: #e11d48;
}

.user-modal-btn-danger:hover {
    background: #be123c;
    border-color: #be123c;
}

/* Toast */


body.user-modal-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .users-data-table {
        min-width: 980px;
    }

    .users-action-group {
        display: grid;
        gap: 6px;
    }

    .users-action-btn {
        width: 100%;
        justify-content: center;
    }

    .user-modal {
        padding: 10px;
        align-items: end;
    }

    .user-modal-card {
        width: 100%;
        max-height: 88vh;
    }

    .user-modal-head {
        padding: 16px 14px 12px;
    }

    .user-modal-body {
        padding: 14px;
    }

    .user-profile-strip {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .user-profile-strip .users-status-badge {
        grid-column: 1 / -1;
        width: fit-content;
    }

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

    .user-modal-footer {
        padding: 12px 14px;
        display: grid;
        grid-template-columns: 1fr;
    }

    .user-modal-btn {
        width: 100%;
    }


}

/* =====================================================
   NOTYF CORPORATE TOAST THEME
===================================================== */

.notyf {
  z-index: 1300 !important;
  padding: 16px 16px 0 0;
}

.notyf__toast {
    max-width: 380px;
    border-radius: 4px !important;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16) !important;
    font-family: "Nunito", ui-sans-serif, system-ui, sans-serif !important;
    border: 1px solid transparent;
}

.notyf__wrapper {
    padding: 13px 14px !important;
}

.notyf__message {
    font-size: 12px !important;
    line-height: 1.4 !important;
    font-weight: 900 !important;
}

.app-notyf-success {
    background: #ecfdf5 !important;
    color: #047857 !important;
    border-color: #bbf7d0 !important;
}

.app-notyf-error {
    background: #fff1f2 !important;
    color: #be123c !important;
    border-color: #fecdd3 !important;
}

.app-notyf-info {
    background: #eff6ff !important;
    color: #0369a1 !important;
    border-color: #bae6fd !important;
}

.app-notyf-warning {
    background: #fffbeb !important;
    color: #b45309 !important;
    border-color: #fde68a !important;
}

@media (max-width: 767px) {
  .notyf {
    padding: 10px 10px 0;
  }

  .notyf__toast {
    width: 100%;
    max-width: calc(100vw - 20px);
  }
}

/* =====================================================
   INTERFACES PAGE - CORPORATE PREMIUM
===================================================== */

.interfaces-page {
  padding: 22px;
}

.interfaces-shell {
  display: grid;
  gap: 18px;
}

.interfaces-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.interfaces-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 900;
  color: #0284c7;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.interfaces-head h1 {
  margin: 0;
  color: #0f172a;
  font-size: 24px;
  font-weight: 900;
}

.interfaces-head span {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.interfaces-refresh-btn {
  min-height: 38px;
  border: 1px solid #dbe3ee;
  border-radius: 2px;
  background: #ffffff;
  color: #334155;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 6px 14px rgba(15, 23, 42, 0.04);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.interfaces-refresh-btn:hover {
  background: #f8fafc;
  border-color: #bae6fd;
  color: #0284c7;
  box-shadow: 0 9px 18px rgba(15, 23, 42, 0.075);
}

.interfaces-refresh-btn svg {
  width: 15px;
  height: 15px;
}

.interfaces-refresh-btn.is-spinning svg {
  animation: interfacesSpin 0.45s linear;
}

@keyframes interfacesSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

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

.interfaces-overview-card,
.interfaces-table-card {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 28px rgba(15, 23, 42, 0.055);
}

.interfaces-overview-card::before,
.interfaces-table-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--gradient-main);
}

.interfaces-overview-card {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.interfaces-overview-card span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.interfaces-overview-card strong {
  color: #0f172a;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
}

.interfaces-table-card {
  padding: 18px;
}

.interfaces-table-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.interfaces-toolbar-left,
.interfaces-toolbar-right {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.interfaces-field,
.interfaces-filter-field,
.interfaces-search-field {
  display: grid;
  gap: 6px;
}

.interfaces-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.interfaces-field > span,
.interfaces-filter-field > span,
.interfaces-search-field > span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.interfaces-field select,
.interfaces-filter-field select {
  height: 36px;
  min-width: 86px;
  border: 1px solid #dbe3ee;
  border-radius: 2px;
  background: #ffffff;
  color: #334155;
  padding: 0 10px;
  outline: none;
  font-size: 12px;
  font-weight: 900;
}

.interfaces-filter-field select {
  min-width: 145px;
}

.interfaces-search-input-wrap {
  min-width: 300px;
  height: 38px;
  border: 1px solid #dbe3ee;
  border-radius: 2px;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.interfaces-search-input-wrap svg {
  width: 16px;
  height: 16px;
  color: #64748b;
  flex-shrink: 0;
}

.interfaces-search-input-wrap input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: #111827;
  font-size: 12px;
  font-weight: 800;
}

.interfaces-search-input-wrap input::placeholder {
  color: #94a3b8;
}

.interfaces-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #eef2f7;
  border-radius: 4px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f8fafc;
}

.interfaces-table-wrap::-webkit-scrollbar {
  height: 8px;
}

.interfaces-table-wrap::-webkit-scrollbar-track {
  background: #f8fafc;
}

.interfaces-table-wrap::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}

.interfaces-data-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.interfaces-data-table thead th {
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  padding: 14px 12px;
  border-bottom: 1px solid #e5e7eb;
  border-right: 1px solid #eef2f7;
  white-space: nowrap;
}

.interfaces-data-table tbody td {
  padding: 13px 12px;
  border-bottom: 1px solid #eef2f7;
  border-right: 1px solid #f1f5f9;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  vertical-align: middle;
  white-space: nowrap;
}

.interfaces-data-table tbody tr:nth-child(odd) {
  background: #f8fbff;
}

.interfaces-data-table tbody tr:hover {
  background: #f1f7ff;
}

.interface-name-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

.interface-icon {
  width: 34px;
  height: 34px;
  border-radius: 2px;
  background: linear-gradient(135deg, #eff6ff, #ecfdf5);
  border: 1px solid #dbeafe;
  color: #0284c7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.interface-icon svg {
  width: 16px;
  height: 16px;
}

.interface-name-copy {
  display: grid;
  gap: 2px;
}

.interface-name-copy strong {
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
}

.interface-name-copy small {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.interface-type-badge,
.interface-status-badge {
  min-height: 24px;
  padding: 0 9px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
  border: 1px solid transparent;
}

.interface-type-badge.is-physical {
  background: #eff6ff;
  color: #0369a1;
  border-color: #bae6fd;
}

.interface-type-badge.is-vlan {
  background: #f5f3ff;
  color: #6d28d9;
  border-color: #ddd6fe;
}

.interface-status-badge.is-active {
  background: #ecfdf5;
  color: #047857;
  border-color: #bbf7d0;
}

.interface-status-badge.is-inactive {
  background: #fff1f2;
  color: #be123c;
  border-color: #fecdd3;
}

.interface-users-pill {
  min-height: 24px;
  min-width: 46px;
  padding: 0 9px;
  border-radius: 2px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 900;
}

.interface-action-btn {
  height: 30px;
  border: 1px solid #bae6fd;
  border-radius: 2px;
  background: #eff6ff;
  color: #0369a1;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 900;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.interface-action-btn:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1d4ed8;
}

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

.interfaces-empty-row td {
  text-align: center;
  padding: 28px 12px !important;
  color: #64748b;
  font-weight: 900;
}

.interfaces-table-footer {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.interfaces-table-summary {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.interfaces-pagination {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.interfaces-page-btn {
  min-width: 38px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #dbe3ee;
  border-radius: 2px;
  background: #ffffff;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.interfaces-page-btn:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #bae6fd;
  color: #0284c7;
}

.interfaces-page-btn.is-active {
  background: #eff6ff;
  border-color: #bae6fd;
  color: #0369a1;
}

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

/* Interface graph modal */
.interface-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.interface-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.interface-modal {
  position: fixed;
  inset: 0;
  z-index: 910;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.interface-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.interface-modal-card {
  width: min(860px, 100%);
  max-height: min(88vh, 780px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  box-shadow:
    0 28px 70px rgba(15, 23, 42, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transform: translateY(10px) scale(0.98);
  transition: transform 0.22s ease;
  position: relative;
}

.interface-modal.is-open .interface-modal-card {
  transform: translateY(0) scale(1);
}

.interface-modal-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--gradient-main);
}

.interface-modal-head {
  padding: 18px 18px 14px;
  border-bottom: 1px solid #eef2f7;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.interface-modal-kicker {
  margin: 0 0 4px;
  color: #0284c7;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.65px;
}

.interface-modal-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
}

.interface-modal-head span {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.interface-modal-close {
  width: 34px;
  height: 34px;
  border: 1px solid #dbe3ee;
  border-radius: 2px;
  background: #ffffff;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.interface-modal-close:hover {
  background: #f8fafc;
  border-color: #bae6fd;
  color: #0284c7;
}

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

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

.interface-graph-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.interface-graph-summary article {
  border: 1px solid #eef2f7;
  border-radius: 4px;
  background: linear-gradient(135deg, #f8fafc, #ffffff);
  padding: 12px;
  display: grid;
  gap: 5px;
}

.interface-graph-summary span {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.interface-graph-summary strong {
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
  word-break: break-word;
}

.interface-graph-box {
  height: 330px;
  border: 1px solid #eef2f7;
  border-radius: 4px;
  background: #ffffff;
  padding: 8px;
}

.interface-graph-box #interfaceUsageChart {
  width: 100%;
  height: 100%;
}

.interface-modal-footer {
  padding: 14px 18px;
  border-top: 1px solid #eef2f7;
  background: #f8fafc;
  display: flex;
  justify-content: flex-end;
}

.interface-modal-btn {
  min-height: 36px;
  border-radius: 2px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid transparent;
}

.interface-modal-btn-soft {
  background: #ffffff;
  color: #334155;
  border-color: #dbe3ee;
}

.interface-modal-btn-soft:hover {
  background: #f8fafc;
  border-color: #bae6fd;
  color: #0284c7;
}

body.interface-modal-open {
  overflow: hidden;
}

@media (max-width: 1120px) {
  .interfaces-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .interfaces-search-input-wrap {
    min-width: 250px;
  }

  .interface-graph-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .interfaces-page {
    padding: 14px;
  }

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

  .interfaces-refresh-btn {
    width: 100%;
    justify-content: center;
  }

  .interfaces-overview-grid {
    grid-template-columns: 1fr;
  }

  .interfaces-table-card {
    padding: 14px;
  }

  .interfaces-table-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .interfaces-toolbar-left,
  .interfaces-toolbar-right,
  .interfaces-search-field,
  .interfaces-filter-field {
    width: 100%;
  }

  .interfaces-field {
    width: 100%;
    flex-wrap: wrap;
  }

  .interfaces-field select,
  .interfaces-filter-field select,
  .interfaces-search-input-wrap {
    width: 100%;
    min-width: 100%;
  }

  .interfaces-data-table {
    min-width: 920px;
  }

  .interfaces-table-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .interfaces-pagination {
    justify-content: flex-start;
  }

  .interface-modal {
    padding: 10px;
    align-items: end;
  }

  .interface-modal-card {
    width: 100%;
    max-height: 88vh;
  }

  .interface-modal-head {
    padding: 16px 14px 12px;
  }

  .interface-modal-body {
    padding: 14px;
  }

  .interface-graph-summary {
    grid-template-columns: 1fr;
  }

  .interface-graph-box {
    height: 260px;
  }

  .interface-modal-footer {
    padding: 12px 14px;
  }

  .interface-modal-btn {
    width: 100%;
  }
}

/* =====================================================
   IPFIX LOGS PAGE
===================================================== */

.ipfix-page {
  padding: 22px;
}

.ipfix-shell {
  display: grid;
  gap: 18px;
}

.ipfix-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.ipfix-kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 900;
  color: #0284c7;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.ipfix-head h1 {
  margin: 0;
  color: #0f172a;
  font-size: 24px;
  font-weight: 900;
}

.ipfix-head span {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

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

.ipfix-refresh-btn,
.ipfix-soft-btn {
  min-height: 38px;
  border: 1px solid #dbe3ee;
  border-radius: 2px;
  background: #ffffff;
  color: #334155;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 6px 14px rgba(15, 23, 42, 0.04);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.ipfix-refresh-btn:hover,
.ipfix-soft-btn:hover {
  background: #f8fafc;
  border-color: #bae6fd;
  color: #0284c7;
  box-shadow: 0 9px 18px rgba(15, 23, 42, 0.075);
}

.ipfix-refresh-btn svg,
.ipfix-soft-btn svg {
  width: 15px;
  height: 15px;
}

.ipfix-refresh-btn.is-spinning svg {
  animation: ipfixSpin 0.45s linear;
}

@keyframes ipfixSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

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

.ipfix-overview-card,
.ipfix-card {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 28px rgba(15, 23, 42, 0.055);
}

.ipfix-overview-card::before,
.ipfix-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--gradient-main);
}

.ipfix-overview-card {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.ipfix-overview-card span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.ipfix-overview-card strong {
  color: #0f172a;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
}

.ipfix-layout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
  gap: 18px;
  align-items: stretch;
}

.ipfix-card {
  padding: 18px;
}

.ipfix-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.ipfix-card-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 17px;
  font-weight: 900;
}

.ipfix-card-head p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.ipfix-status-pill {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #bbf7d0;
  border-radius: 2px;
  background: #ecfdf5;
  color: #047857;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 900;
}

.ipfix-status-pill span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.ipfix-raw-output {
  margin: 0;
  max-height: 430px;
  overflow: auto;
  border: 1px solid #eef2f7;
  border-radius: 4px;
  background: #f8fafc;
  color: #334155;
  padding: 14px;
  font-family: "Consolas", "SFMono-Regular", "Menlo", monospace;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f8fafc;
}

.ipfix-raw-output::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.ipfix-raw-output::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}

.ipfix-detail-list {
  display: grid;
  gap: 10px;
}

.ipfix-detail-list div {
  border: 1px solid #eef2f7;
  border-radius: 4px;
  padding: 12px;
  background: linear-gradient(135deg, #f8fafc, #ffffff);
  display: grid;
  gap: 5px;
}

.ipfix-detail-list span {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.45px;
}

.ipfix-detail-list strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 900;
  word-break: break-word;
}

.ipfix-table-card {
  padding: 18px;
}

.ipfix-table-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.ipfix-table-toolbar h2 {
  margin: 0;
  color: #0f172a;
  font-size: 17px;
  font-weight: 900;
}

.ipfix-table-toolbar p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.ipfix-search-field {
  min-width: 290px;
  height: 38px;
  border: 1px solid #dbe3ee;
  border-radius: 2px;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
}

.ipfix-search-field svg {
  width: 16px;
  height: 16px;
  color: #64748b;
}

.ipfix-search-field input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: #111827;
  font-size: 12px;
  font-weight: 800;
}

.ipfix-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #eef2f7;
  border-radius: 4px;
}

.ipfix-data-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.ipfix-data-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  padding: 14px 12px;
  border-bottom: 1px solid #e5e7eb;
  border-right: 1px solid #eef2f7;
  white-space: nowrap;
}

.ipfix-data-table td {
  padding: 13px 12px;
  border-bottom: 1px solid #eef2f7;
  border-right: 1px solid #f1f5f9;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.ipfix-data-table tbody tr:nth-child(odd) {
  background: #f8fbff;
}

.ipfix-data-table tbody tr:hover {
  background: #f1f7ff;
}

.ipfix-cpu-badge {
  min-height: 24px;
  padding: 0 9px;
  border-radius: 2px;
  background: #eff6ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 900;
}

.ipfix-drop-good {
  color: #047857;
  font-weight: 900;
}

.ipfix-empty-row td {
  text-align: center;
  padding: 28px 12px !important;
  color: #64748b;
  font-weight: 900;
}

@media (max-width: 1120px) {
  .ipfix-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ipfix-layout-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .ipfix-page {
    padding: 14px;
  }

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

  .ipfix-head-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ipfix-refresh-btn,
  .ipfix-soft-btn {
    width: 100%;
    justify-content: center;
  }

  .ipfix-overview-grid {
    grid-template-columns: 1fr;
  }

  .ipfix-card,
  .ipfix-table-card {
    padding: 14px;
  }

  .ipfix-card-head,
  .ipfix-table-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .ipfix-search-field {
    min-width: 100%;
    width: 100%;
  }

  .ipfix-raw-output {
    max-height: 330px;
    font-size: 11px;
  }
}

/* =====================================================
   IP POOL PAGE
===================================================== */

.ip-pool-page {
  padding: 22px;
}

.ip-pool-shell {
  display: grid;
  gap: 18px;
}

.ip-pool-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.ip-pool-kicker,
.ip-pool-section-kicker {
  margin: 0 0 4px;
  color: #0284c7;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.ip-pool-head h1 {
  margin: 0;
  color: #0f172a;
  font-size: 24px;
  font-weight: 900;
}

.ip-pool-head span,
.ip-pool-card-head span,
.ip-pool-table-toolbar p {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.ip-pool-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ip-pool-refresh-btn,
.ip-pool-soft-btn,
.ip-pool-mini-btn {
  min-height: 38px;
  border: 1px solid #dbe3ee;
  border-radius: 2px;
  background: #ffffff;
  color: #334155;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 6px 14px rgba(15, 23, 42, 0.04);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.ip-pool-refresh-btn:hover,
.ip-pool-soft-btn:hover,
.ip-pool-mini-btn:hover {
  background: #f8fafc;
  border-color: #bae6fd;
  color: #0284c7;
  box-shadow: 0 9px 18px rgba(15, 23, 42, 0.075);
}

.ip-pool-refresh-btn svg,
.ip-pool-soft-btn svg,
.ip-pool-mini-btn svg {
  width: 15px;
  height: 15px;
}

.ip-pool-refresh-btn.is-spinning svg {
  animation: ipPoolSpin 0.45s linear;
}

@keyframes ipPoolSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.ip-pool-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ip-pool-overview-card,
.ip-pool-card {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 28px rgba(15, 23, 42, 0.055);
}

.ip-pool-overview-card::before,
.ip-pool-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--gradient-main);
}

.ip-pool-overview-card {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.ip-pool-overview-card span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.ip-pool-overview-card strong {
  color: #0f172a;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 900;
  word-break: break-word;
}

.ip-pool-config-grid,
.ip-pool-table-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ip-pool-card {
  padding: 18px;
}

.ip-pool-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.ip-pool-card-head h2,
.ip-pool-table-toolbar h2 {
  margin: 0;
  color: #0f172a;
  font-size: 17px;
  font-weight: 900;
}

.ip-pool-raw-output {
  margin: 0;
  min-height: 170px;
  max-height: 320px;
  overflow: auto;
  border: 1px solid #1f2937;
  border-radius: 4px;
  background: #111827;
  color: #22c55e;
  padding: 14px;
  font-family: "Consolas", "SFMono-Regular", "Menlo", monospace;
  font-size: 12px;
  line-height: 1.65;
  font-weight: 800;
  white-space: pre;
  scrollbar-width: thin;
  scrollbar-color: #475569 #111827;
}

.ip-pool-raw-output::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.ip-pool-raw-output::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 2px;
}

.ip-pool-table-card {
  padding: 18px;
}

.ip-pool-table-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.ip-pool-search-field {
  min-width: 260px;
  height: 38px;
  border: 1px solid #dbe3ee;
  border-radius: 2px;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
}

.ip-pool-search-field svg {
  width: 16px;
  height: 16px;
  color: #64748b;
}

.ip-pool-search-field input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: #111827;
  font-size: 12px;
  font-weight: 800;
}

.ip-pool-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #eef2f7;
  border-radius: 4px;
}

.ip-pool-data-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.ip-pool-data-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  padding: 14px 12px;
  border-bottom: 1px solid #e5e7eb;
  border-right: 1px solid #eef2f7;
  white-space: nowrap;
}

.ip-pool-data-table td {
  padding: 13px 12px;
  border-bottom: 1px solid #eef2f7;
  border-right: 1px solid #f1f5f9;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.ip-pool-data-table tbody tr:nth-child(odd) {
  background: #f8fbff;
}

.ip-pool-data-table tbody tr:hover {
  background: #f1f7ff;
}

.ip-pool-network-badge {
  min-height: 24px;
  padding: 0 9px;
  border-radius: 2px;
  background: #eff6ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 900;
}

.ip-pool-status-badge {
  min-height: 24px;
  padding: 0 9px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 900;
  border: 1px solid transparent;
}

.ip-pool-status-badge.is-active {
  background: #ecfdf5;
  color: #047857;
  border-color: #bbf7d0;
}

.ip-pool-status-badge.is-disabled {
  background: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}

.ip-pool-status-badge.is-expired {
  background: #fff1f2;
  color: #be123c;
  border-color: #fecdd3;
}

.ip-pool-empty-row td {
  text-align: center;
  padding: 28px 12px !important;
  color: #64748b;
  font-weight: 900;
}

@media (max-width: 1120px) {
  .ip-pool-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ip-pool-config-grid,
  .ip-pool-table-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .ip-pool-page {
    padding: 14px;
  }

  .ip-pool-head {
    flex-direction: column;
    align-items: stretch;
  }

  .ip-pool-head-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ip-pool-refresh-btn,
  .ip-pool-soft-btn {
    width: 100%;
  }

  .ip-pool-overview-grid {
    grid-template-columns: 1fr;
  }

  .ip-pool-card {
    padding: 14px;
  }

  .ip-pool-card-head,
  .ip-pool-table-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .ip-pool-mini-btn,
  .ip-pool-search-field {
    width: 100%;
    min-width: 100%;
  }

  .ip-pool-raw-output {
    min-height: 150px;
    max-height: 270px;
    font-size: 11px;
  }

  .ip-pool-data-table {
    min-width: 560px;
  }
}

/* =====================================================
   FIREWALL PAGE
===================================================== */

.firewall-page {
  padding: 22px;
}

.firewall-shell {
  display: grid;
  gap: 18px;
}

.firewall-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.firewall-kicker {
  margin: 0 0 4px;
  color: #0284c7;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.firewall-head h1 {
  margin: 0;
  color: #0f172a;
  font-size: 24px;
  font-weight: 900;
}

.firewall-head span {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.firewall-primary-btn {
  min-height: 38px;
  border: 1px solid #0284c7;
  border-radius: 2px;
  background: #0284c7;
  color: #ffffff;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(14, 165, 233, 0.18);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.firewall-primary-btn:hover {
  background: #0369a1;
  border-color: #0369a1;
  box-shadow: 0 12px 26px rgba(14, 165, 233, 0.24);
}

.firewall-primary-btn svg {
  width: 15px;
  height: 15px;
}

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

.firewall-overview-card,
.firewall-table-card {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 28px rgba(15, 23, 42, 0.055);
}

.firewall-overview-card::before,
.firewall-table-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--gradient-main);
}

.firewall-overview-card {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.firewall-overview-card span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.firewall-overview-card strong {
  color: #0f172a;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
}

.firewall-table-card {
  padding: 18px;
}

.firewall-table-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.firewall-toolbar-left,
.firewall-toolbar-right {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.firewall-field,
.firewall-filter-field,
.firewall-search-field {
  display: grid;
  gap: 6px;
}

.firewall-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.firewall-field > span,
.firewall-filter-field > span,
.firewall-search-field > span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.firewall-field select,
.firewall-filter-field select {
  height: 36px;
  min-width: 86px;
  border: 1px solid #dbe3ee;
  border-radius: 2px;
  background: #ffffff;
  color: #334155;
  padding: 0 10px;
  outline: none;
  font-size: 12px;
  font-weight: 900;
}

.firewall-filter-field select {
  min-width: 155px;
}

.firewall-search-input-wrap {
  min-width: 300px;
  height: 38px;
  border: 1px solid #dbe3ee;
  border-radius: 2px;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
}

.firewall-search-input-wrap svg {
  width: 16px;
  height: 16px;
  color: #64748b;
}

.firewall-search-input-wrap input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: #111827;
  font-size: 12px;
  font-weight: 800;
}

.firewall-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #eef2f7;
  border-radius: 4px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f8fafc;
}

.firewall-table-wrap::-webkit-scrollbar {
  height: 8px;
}

.firewall-table-wrap::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}

.firewall-data-table {
  width: 100%;
  min-width: 1050px;
  border-collapse: collapse;
}

.firewall-data-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  padding: 14px 12px;
  border-bottom: 1px solid #e5e7eb;
  border-right: 1px solid #eef2f7;
  white-space: nowrap;
}

.firewall-data-table td {
  padding: 13px 12px;
  border-bottom: 1px solid #eef2f7;
  border-right: 1px solid #f1f5f9;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  vertical-align: middle;
  white-space: nowrap;
}

.firewall-data-table tbody tr:nth-child(odd) {
  background: #f8fbff;
}

.firewall-data-table tbody tr:hover {
  background: #f1f7ff;
}

.firewall-chain-badge,
.firewall-action-badge,
.firewall-protocol-badge {
  min-height: 24px;
  padding: 0 9px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 900;
  border: 1px solid transparent;
}

.firewall-chain-badge.is-prerouting {
  background: #eff6ff;
  color: #0369a1;
  border-color: #bae6fd;
}

.firewall-chain-badge.is-postrouting {
  background: #f5f3ff;
  color: #6d28d9;
  border-color: #ddd6fe;
}

.firewall-action-badge.is-dnat {
  background: #ecfdf5;
  color: #047857;
  border-color: #bbf7d0;
}

.firewall-action-badge.is-netmap {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}

.firewall-action-badge.is-other {
  background: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}

.firewall-protocol-badge {
  background: #f8fafc;
  color: #334155;
  border-color: #e2e8f0;
}

.firewall-delete-btn {
  height: 30px;
  border: 1px solid #fecdd3;
  border-radius: 2px;
  background: #fff1f2;
  color: #be123c;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 900;
}

.firewall-delete-btn:hover {
  background: #ffe4e6;
  border-color: #fda4af;
}

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

.firewall-empty-row td {
  text-align: center;
  padding: 28px 12px !important;
  color: #64748b;
  font-weight: 900;
}

.firewall-table-footer {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.firewall-table-summary {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.firewall-pagination {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.firewall-page-btn {
  min-width: 38px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #dbe3ee;
  border-radius: 2px;
  background: #ffffff;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

.firewall-page-btn:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #bae6fd;
  color: #0284c7;
}

.firewall-page-btn.is-active {
  background: #eff6ff;
  border-color: #bae6fd;
  color: #0369a1;
}

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

/* Firewall modals */
.firewall-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.firewall-modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.firewall-modal {
  position: fixed;
  inset: 0;
  z-index: 910;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.firewall-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.firewall-modal-card {
  width: min(620px, 100%);
  max-height: min(88vh, 780px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  box-shadow:
    0 28px 70px rgba(15, 23, 42, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
  transform: translateY(10px) scale(0.98);
  transition: transform 0.22s ease;
  position: relative;
}

.firewall-modal.is-open .firewall-modal-card {
  transform: translateY(0) scale(1);
}

.firewall-modal-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--gradient-main);
}

.firewall-confirm-card {
  width: min(460px, 100%);
}

.firewall-modal-head {
  padding: 18px 18px 14px;
  border-bottom: 1px solid #eef2f7;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.firewall-modal-kicker {
  margin: 0 0 4px;
  color: #0284c7;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.65px;
}

.firewall-modal-kicker.danger {
  color: #be123c;
}

.firewall-modal-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
}

.firewall-modal-head span {
  display: block;
  margin-top: 5px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.firewall-modal-close {
  width: 34px;
  height: 34px;
  border: 1px solid #dbe3ee;
  border-radius: 2px;
  background: #ffffff;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.firewall-modal-close:hover {
  background: #f8fafc;
  border-color: #bae6fd;
  color: #0284c7;
}

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

.firewall-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.firewall-form-grid {
  padding: 18px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.firewall-form-field {
  display: grid;
  gap: 6px;
}

.firewall-form-field span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.firewall-form-field input,
.firewall-form-field select {
  height: 40px;
  border: 1px solid #dbe3ee;
  border-radius: 2px;
  background: #ffffff;
  color: #111827;
  outline: none;
  padding: 0 11px;
  font-size: 13px;
  font-weight: 800;
}

.firewall-form-field input::placeholder {
  color: #94a3b8;
}

.firewall-modal-body {
  padding: 18px;
}

.firewall-warning-box {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid #fecdd3;
  border-radius: 4px;
  background: #fff1f2;
}

.firewall-warning-box > span {
  width: 44px;
  height: 44px;
  border-radius: 2px;
  background: #e11d48;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.firewall-warning-box svg {
  width: 18px;
  height: 18px;
}

.firewall-warning-box strong {
  display: block;
  color: #9f1239;
  font-size: 14px;
  font-weight: 900;
}

.firewall-warning-box small {
  display: block;
  margin-top: 4px;
  color: #be123c;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.firewall-modal-footer {
  padding: 14px 18px;
  border-top: 1px solid #eef2f7;
  background: #f8fafc;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.firewall-modal-btn {
  min-height: 36px;
  border-radius: 2px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid transparent;
}

.firewall-modal-btn svg {
  width: 15px;
  height: 15px;
}

.firewall-modal-btn-soft {
  background: #ffffff;
  color: #334155;
  border-color: #dbe3ee;
}

.firewall-modal-btn-soft:hover {
  background: #f8fafc;
  border-color: #bae6fd;
  color: #0284c7;
}

.firewall-modal-btn-primary {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
}

.firewall-modal-btn-primary:hover {
  background: #0369a1;
  border-color: #0369a1;
}

.firewall-modal-btn-danger {
  background: #e11d48;
  color: #ffffff;
  border-color: #e11d48;
}

.firewall-modal-btn-danger:hover {
  background: #be123c;
  border-color: #be123c;
}

body.firewall-modal-open {
  overflow: hidden;
}

@media (max-width: 1120px) {
  .firewall-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .firewall-search-input-wrap {
    min-width: 250px;
  }
}

@media (max-width: 767px) {
  .firewall-page {
    padding: 14px;
  }

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

  .firewall-primary-btn {
    width: 100%;
  }

  .firewall-overview-grid {
    grid-template-columns: 1fr;
  }

  .firewall-table-card {
    padding: 14px;
  }

  .firewall-table-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .firewall-toolbar-left,
  .firewall-toolbar-right,
  .firewall-search-field,
  .firewall-filter-field {
    width: 100%;
  }

  .firewall-field {
    width: 100%;
    flex-wrap: wrap;
  }

  .firewall-field select,
  .firewall-filter-field select,
  .firewall-search-input-wrap {
    width: 100%;
    min-width: 100%;
  }

  .firewall-data-table {
    min-width: 960px;
  }

  .firewall-table-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .firewall-pagination {
    justify-content: flex-start;
  }

  .firewall-modal {
    padding: 10px;
    align-items: end;
  }

  .firewall-modal-card {
    width: 100%;
    max-height: 88vh;
  }

  .firewall-modal-head {
    padding: 16px 14px 12px;
  }

  .firewall-form-grid {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .firewall-modal-body {
    padding: 14px;
  }

  .firewall-modal-footer {
    padding: 12px 14px;
    display: grid;
    grid-template-columns: 1fr;
  }

  .firewall-modal-btn {
    width: 100%;
  }
}

/* =====================================================
   PPPOE SERVER PAGE
===================================================== */

.pppoe-server-page {
  padding: 22px;
}

.pppoe-server-shell {
  display: grid;
  gap: 18px;
}

.pppoe-server-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.pppoe-server-kicker {
  margin: 0 0 4px;
  color: #0284c7;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.pppoe-server-head h1 {
  margin: 0;
  color: #0f172a;
  font-size: 24px;
  font-weight: 900;
}

.pppoe-server-head span {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.pppoe-server-refresh-btn {
  min-height: 38px;
  border: 1px solid #dbe3ee;
  border-radius: 2px;
  background: #ffffff;
  color: #334155;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 6px 14px rgba(15, 23, 42, 0.04);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.pppoe-server-refresh-btn:hover {
  background: #f8fafc;
  border-color: #bae6fd;
  color: #0284c7;
  box-shadow: 0 9px 18px rgba(15, 23, 42, 0.075);
}

.pppoe-server-refresh-btn svg {
  width: 15px;
  height: 15px;
}

.pppoe-server-refresh-btn.is-spinning svg {
  animation: pppoeServerSpin 0.45s linear;
}

@keyframes pppoeServerSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.pppoe-server-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.pppoe-server-overview-card,
.pppoe-server-table-card {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 28px rgba(15, 23, 42, 0.055);
}

.pppoe-server-overview-card::before,
.pppoe-server-table-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--gradient-main);
}

.pppoe-server-overview-card {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.pppoe-server-overview-card span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.pppoe-server-overview-card strong {
  color: #0f172a;
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
}

.pppoe-server-table-card {
  padding: 18px;
}

.pppoe-server-table-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.pppoe-server-toolbar-left,
.pppoe-server-toolbar-right {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.pppoe-server-field,
.pppoe-server-filter-field,
.pppoe-server-search-field {
  display: grid;
  gap: 6px;
}

.pppoe-server-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pppoe-server-field > span,
.pppoe-server-filter-field > span,
.pppoe-server-search-field > span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.pppoe-server-field select,
.pppoe-server-filter-field select {
  height: 36px;
  min-width: 86px;
  border: 1px solid #dbe3ee;
  border-radius: 2px;
  background: #ffffff;
  color: #334155;
  padding: 0 10px;
  outline: none;
  font-size: 12px;
  font-weight: 900;
}

.pppoe-server-filter-field select {
  min-width: 140px;
}

.pppoe-server-search-input-wrap {
  min-width: 300px;
  height: 38px;
  border: 1px solid #dbe3ee;
  border-radius: 2px;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
}

.pppoe-server-search-input-wrap svg {
  width: 16px;
  height: 16px;
  color: #64748b;
}

.pppoe-server-search-input-wrap input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: #111827;
  font-size: 12px;
  font-weight: 800;
}

.pppoe-server-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #eef2f7;
  border-radius: 4px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f8fafc;
}

.pppoe-server-table-wrap::-webkit-scrollbar {
  height: 8px;
}

.pppoe-server-table-wrap::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}

.pppoe-server-data-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.pppoe-server-data-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  padding: 14px 12px;
  border-bottom: 1px solid #e5e7eb;
  border-right: 1px solid #eef2f7;
  white-space: nowrap;
}

.pppoe-server-data-table td {
  padding: 13px 12px;
  border-bottom: 1px solid #eef2f7;
  border-right: 1px solid #f1f5f9;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  vertical-align: middle;
  white-space: nowrap;
}

.pppoe-server-data-table tbody tr:nth-child(odd) {
  background: #f8fbff;
}

.pppoe-server-data-table tbody tr:hover {
  background: #f1f7ff;
}

.pppoe-interface-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pppoe-interface-icon {
  width: 34px;
  height: 34px;
  border-radius: 2px;
  background: linear-gradient(135deg, #eff6ff, #ecfdf5);
  border: 1px solid #dbeafe;
  color: #0284c7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pppoe-interface-icon svg {
  width: 16px;
  height: 16px;
}

.pppoe-interface-copy {
  display: grid;
  gap: 2px;
}

.pppoe-interface-copy strong {
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
}

.pppoe-interface-copy small {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.pppoe-connection-pill,
.pppoe-state-badge {
  min-height: 24px;
  padding: 0 9px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 900;
  border: 1px solid transparent;
}

.pppoe-connection-pill {
  background: #f8fafc;
  color: #334155;
  border-color: #e2e8f0;
}

.pppoe-state-badge.is-active {
  background: #ecfdf5;
  color: #047857;
  border-color: #bbf7d0;
}

.pppoe-state-badge.is-inactive {
  background: #fff1f2;
  color: #be123c;
  border-color: #fecdd3;
}

.pppoe-server-empty-row td {
  text-align: center;
  padding: 28px 12px !important;
  color: #64748b;
  font-weight: 900;
}

.pppoe-server-table-footer {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pppoe-server-table-summary {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.pppoe-server-pagination {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.pppoe-server-page-btn {
  min-width: 38px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #dbe3ee;
  border-radius: 2px;
  background: #ffffff;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

.pppoe-server-page-btn:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #bae6fd;
  color: #0284c7;
}

.pppoe-server-page-btn.is-active {
  background: #eff6ff;
  border-color: #bae6fd;
  color: #0369a1;
}

.pppoe-server-page-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 1120px) {
  .pppoe-server-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pppoe-server-search-input-wrap {
    min-width: 250px;
  }
}

@media (max-width: 767px) {
  .pppoe-server-page {
    padding: 14px;
  }

  .pppoe-server-head {
    flex-direction: column;
    align-items: stretch;
  }

  .pppoe-server-refresh-btn {
    width: 100%;
  }

  .pppoe-server-overview-grid {
    grid-template-columns: 1fr;
  }

  .pppoe-server-table-card {
    padding: 14px;
  }

  .pppoe-server-table-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .pppoe-server-toolbar-left,
  .pppoe-server-toolbar-right,
  .pppoe-server-search-field,
  .pppoe-server-filter-field {
    width: 100%;
  }

  .pppoe-server-field {
    width: 100%;
    flex-wrap: wrap;
  }

  .pppoe-server-field select,
  .pppoe-server-filter-field select,
  .pppoe-server-search-input-wrap {
    width: 100%;
    min-width: 100%;
  }

  .pppoe-server-data-table {
    min-width: 680px;
  }

  .pppoe-server-table-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .pppoe-server-pagination {
    justify-content: flex-start;
  }
}

/* =====================================================
   IPOE SERVER PAGE
===================================================== */

.ipoe-server-page,
.ipoe-pool-page {
  padding: 22px;
}

.ipoe-server-shell,
.ipoe-pool-shell {
  display: grid;
  gap: 18px;
}

.ipoe-server-head,
.ipoe-pool-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.ipoe-server-kicker,
.ipoe-pool-kicker {
  margin: 0 0 4px;
  color: #0284c7;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.ipoe-server-head h1,
.ipoe-pool-head h1 {
  margin: 0;
  color: #0f172a;
  font-size: 24px;
  font-weight: 900;
}

.ipoe-server-head span,
.ipoe-pool-head span {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.ipoe-server-refresh-btn,
.ipoe-pool-refresh-btn {
  min-height: 38px;
  border: 1px solid #dbe3ee;
  border-radius: 2px;
  background: #ffffff;
  color: #334155;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 6px 14px rgba(15, 23, 42, 0.04);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.ipoe-server-refresh-btn:hover,
.ipoe-pool-refresh-btn:hover {
  background: #f8fafc;
  border-color: #bae6fd;
  color: #0284c7;
  box-shadow: 0 9px 18px rgba(15, 23, 42, 0.075);
}

.ipoe-server-refresh-btn svg,
.ipoe-pool-refresh-btn svg {
  width: 15px;
  height: 15px;
}

.ipoe-server-refresh-btn.is-spinning svg,
.ipoe-pool-refresh-btn.is-spinning svg {
  animation: ipoeSpin 0.45s linear;
}

@keyframes ipoeSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.ipoe-server-overview-grid,
.ipoe-pool-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ipoe-server-overview-card,
.ipoe-server-table-card,
.ipoe-pool-overview-card,
.ipoe-pool-table-card {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 28px rgba(15, 23, 42, 0.055);
}

.ipoe-server-overview-card::before,
.ipoe-server-table-card::before,
.ipoe-pool-overview-card::before,
.ipoe-pool-table-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--gradient-main);
}

.ipoe-server-overview-card,
.ipoe-pool-overview-card {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.ipoe-server-overview-card span,
.ipoe-pool-overview-card span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.ipoe-server-overview-card strong,
.ipoe-pool-overview-card strong {
  color: #0f172a;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 900;
  word-break: break-word;
}

.ipoe-pool-overview-card strong {
  font-size: 20px;
}

.ipoe-server-table-card,
.ipoe-pool-table-card {
  padding: 18px;
}

.ipoe-server-table-toolbar,
.ipoe-pool-table-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.ipoe-server-toolbar-left,
.ipoe-server-toolbar-right,
.ipoe-pool-toolbar-left,
.ipoe-pool-toolbar-right {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.ipoe-server-field,
.ipoe-server-filter-field,
.ipoe-server-search-field,
.ipoe-pool-field,
.ipoe-pool-search-field {
  display: grid;
  gap: 6px;
}

.ipoe-server-field,
.ipoe-pool-field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ipoe-server-field > span,
.ipoe-server-filter-field > span,
.ipoe-server-search-field > span,
.ipoe-pool-field > span,
.ipoe-pool-search-field > span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
}

.ipoe-server-field select,
.ipoe-server-filter-field select,
.ipoe-pool-field select {
  height: 36px;
  min-width: 86px;
  border: 1px solid #dbe3ee;
  border-radius: 2px;
  background: #ffffff;
  color: #334155;
  padding: 0 10px;
  outline: none;
  font-size: 12px;
  font-weight: 900;
}

.ipoe-server-filter-field select {
  min-width: 145px;
}

.ipoe-server-search-input-wrap,
.ipoe-pool-search-input-wrap {
  min-width: 300px;
  height: 38px;
  border: 1px solid #dbe3ee;
  border-radius: 2px;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
}

.ipoe-server-search-input-wrap svg,
.ipoe-pool-search-input-wrap svg {
  width: 16px;
  height: 16px;
  color: #64748b;
}

.ipoe-server-search-input-wrap input,
.ipoe-pool-search-input-wrap input {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: #111827;
  font-size: 12px;
  font-weight: 800;
}

.ipoe-server-table-wrap,
.ipoe-pool-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid #eef2f7;
  border-radius: 4px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 #f8fafc;
}

.ipoe-server-table-wrap::-webkit-scrollbar,
.ipoe-pool-table-wrap::-webkit-scrollbar {
  height: 8px;
}

.ipoe-server-table-wrap::-webkit-scrollbar-thumb,
.ipoe-pool-table-wrap::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}

.ipoe-server-data-table,
.ipoe-pool-data-table {
  width: 100%;
  border-collapse: collapse;
}

.ipoe-server-data-table {
  min-width: 720px;
}

.ipoe-pool-data-table {
  min-width: 760px;
}

.ipoe-server-data-table th,
.ipoe-pool-data-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  padding: 14px 12px;
  border-bottom: 1px solid #e5e7eb;
  border-right: 1px solid #eef2f7;
  white-space: nowrap;
}

.ipoe-server-data-table td,
.ipoe-pool-data-table td {
  padding: 13px 12px;
  border-bottom: 1px solid #eef2f7;
  border-right: 1px solid #f1f5f9;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  vertical-align: middle;
  white-space: nowrap;
}

.ipoe-server-data-table tbody tr:nth-child(odd),
.ipoe-pool-data-table tbody tr:nth-child(odd) {
  background: #f8fbff;
}

.ipoe-server-data-table tbody tr:hover,
.ipoe-pool-data-table tbody tr:hover {
  background: #f1f7ff;
}

.ipoe-interface-cell,
.ipoe-pool-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ipoe-interface-icon,
.ipoe-pool-icon {
  width: 34px;
  height: 34px;
  border-radius: 2px;
  background: linear-gradient(135deg, #eff6ff, #ecfdf5);
  border: 1px solid #dbeafe;
  color: #0284c7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ipoe-interface-icon svg,
.ipoe-pool-icon svg {
  width: 16px;
  height: 16px;
}

.ipoe-interface-copy,
.ipoe-pool-copy {
  display: grid;
  gap: 2px;
}

.ipoe-interface-copy strong,
.ipoe-pool-copy strong {
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
}

.ipoe-interface-copy small,
.ipoe-pool-copy small {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.ipoe-status-badge {
  min-height: 24px;
  padding: 0 9px;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 900;
  border: 1px solid transparent;
}

.ipoe-status-badge.is-active {
  background: #ecfdf5;
  color: #047857;
  border-color: #bbf7d0;
}

.ipoe-status-badge.is-inactive {
  background: #fff1f2;
  color: #be123c;
  border-color: #fecdd3;
}

.ipoe-gateway-badge {
  min-height: 24px;
  padding: 0 9px;
  border-radius: 2px;
  background: #f5f3ff;
  border: 1px solid #ddd6fe;
  color: #6d28d9;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 900;
}

.ipoe-server-empty-row td,
.ipoe-pool-empty-row td {
  text-align: center;
  padding: 28px 12px !important;
  color: #64748b;
  font-weight: 900;
}

.ipoe-server-table-footer,
.ipoe-pool-table-footer {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.ipoe-server-table-summary,
.ipoe-pool-table-summary {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
}

.ipoe-server-pagination,
.ipoe-pool-pagination {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ipoe-server-page-btn,
.ipoe-pool-page-btn {
  min-width: 38px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #dbe3ee;
  border-radius: 2px;
  background: #ffffff;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

.ipoe-server-page-btn:hover:not(:disabled),
.ipoe-pool-page-btn:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #bae6fd;
  color: #0284c7;
}

.ipoe-server-page-btn.is-active,
.ipoe-pool-page-btn.is-active {
  background: #eff6ff;
  border-color: #bae6fd;
  color: #0369a1;
}

.ipoe-server-page-btn:disabled,
.ipoe-pool-page-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

@media (max-width: 1120px) {
  .ipoe-server-overview-grid,
  .ipoe-pool-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ipoe-server-search-input-wrap,
  .ipoe-pool-search-input-wrap {
    min-width: 250px;
  }
}

@media (max-width: 767px) {
  .ipoe-server-page,
  .ipoe-pool-page {
    padding: 14px;
  }

  .ipoe-server-head,
  .ipoe-pool-head {
    flex-direction: column;
    align-items: stretch;
  }

  .ipoe-server-refresh-btn,
  .ipoe-pool-refresh-btn {
    width: 100%;
  }

  .ipoe-server-overview-grid,
  .ipoe-pool-overview-grid {
    grid-template-columns: 1fr;
  }

  .ipoe-server-table-card,
  .ipoe-pool-table-card {
    padding: 14px;
  }

  .ipoe-server-table-toolbar,
  .ipoe-pool-table-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .ipoe-server-toolbar-left,
  .ipoe-server-toolbar-right,
  .ipoe-server-search-field,
  .ipoe-server-filter-field,
  .ipoe-pool-toolbar-left,
  .ipoe-pool-toolbar-right,
  .ipoe-pool-search-field {
    width: 100%;
  }

  .ipoe-server-field,
  .ipoe-pool-field {
    width: 100%;
    flex-wrap: wrap;
  }

  .ipoe-server-field select,
  .ipoe-server-filter-field select,
  .ipoe-server-search-input-wrap,
  .ipoe-pool-field select,
  .ipoe-pool-search-input-wrap {
    width: 100%;
    min-width: 100%;
  }

  .ipoe-server-data-table {
    min-width: 650px;
  }

  .ipoe-pool-data-table {
    min-width: 680px;
  }

  .ipoe-server-table-footer,
  .ipoe-pool-table-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .ipoe-server-pagination,
  .ipoe-pool-pagination {
    justify-content: flex-start;
  }
}

/* =====================================================
   TOOLS - PING / TRACEROUTE PAGE
===================================================== */

.tools-ping-page {
  padding: 22px;
}

.tools-ping-shell {
  display: grid;
  gap: 18px;
}

.tools-ping-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.tools-ping-kicker {
  margin: 0 0 4px;
  color: #0284c7;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.tools-ping-head h1 {
  margin: 0;
  color: #0f172a;
  font-size: 24px;
  font-weight: 900;
}

.tools-ping-head span {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.tools-ping-soft-btn,
.tools-ping-copy-btn,
.tools-ping-run-btn {
  min-height: 38px;
  border-radius: 2px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tools-ping-soft-btn,
.tools-ping-copy-btn {
  border: 1px solid #dbe3ee;
  background: #ffffff;
  color: #334155;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 6px 14px rgba(15, 23, 42, 0.04);
}

.tools-ping-soft-btn:hover,
.tools-ping-copy-btn:hover {
  background: #f8fafc;
  border-color: #bae6fd;
  color: #0284c7;
  box-shadow: 0 9px 18px rgba(15, 23, 42, 0.075);
}

.tools-ping-run-btn {
  border: 1px solid #0284c7;
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(14, 165, 233, 0.18);
}

.tools-ping-run-btn:hover {
  background: #0369a1;
  border-color: #0369a1;
}

.tools-ping-run-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.tools-ping-soft-btn svg,
.tools-ping-copy-btn svg,
.tools-ping-run-btn svg {
  width: 15px;
  height: 15px;
}

.tools-ping-run-btn.is-running svg {
  animation: toolsPingSpin 0.75s linear infinite;
}

@keyframes toolsPingSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.tools-ping-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.tools-ping-overview-card,
.tools-ping-card {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 28px rgba(15, 23, 42, 0.055);
}

.tools-ping-overview-card::before,
.tools-ping-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--gradient-main);
}

.tools-ping-overview-card {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.tools-ping-overview-card span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.tools-ping-overview-card strong {
  color: #0f172a;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 900;
  word-break: break-word;
}

.tools-ping-card {
  padding: 18px;
}

.tools-ping-card-head,
.tools-ping-console-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.tools-ping-card-head h2,
.tools-ping-console-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 17px;
  font-weight: 900;
}

.tools-ping-card-head p,
.tools-ping-console-head p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.tools-ping-form {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) minmax(150px, 0.55fr) minmax(180px, 0.65fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 20px;
}

.tools-ping-field {
  display: grid;
  gap: 6px;
}

.tools-ping-field span {
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
}

.tools-ping-input-wrap {
  height: 42px;
  border: 1px solid #dbe3ee;
  border-radius: 2px;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
}

.tools-ping-input-wrap:focus-within {
  border-color: #7dd3fc;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.tools-ping-input-wrap svg {
  width: 16px;
  height: 16px;
  color: #64748b;
  flex-shrink: 0;
}

.tools-ping-input-wrap input,
.tools-ping-input-wrap select {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: #111827;
  font-size: 13px;
  font-weight: 800;
  min-width: 0;
}

.tools-ping-input-wrap input::placeholder {
  color: #94a3b8;
}

.tools-ping-live-pill {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #cbd5e1;
  border-radius: 2px;
  background: #f8fafc;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 900;
  flex-shrink: 0;
}

.tools-ping-live-pill span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #94a3b8;
}

.tools-ping-live-pill.is-running {
  border-color: #bae6fd;
  background: #eff6ff;
  color: #0369a1;
}

.tools-ping-live-pill.is-running span {
  background: #0284c7;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

.tools-ping-live-pill.is-success {
  border-color: #bbf7d0;
  background: #ecfdf5;
  color: #047857;
}

.tools-ping-live-pill.is-success span {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.tools-ping-live-pill.is-error {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #be123c;
}

.tools-ping-live-pill.is-error span {
  background: #e11d48;
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.15);
}

.tools-ping-console {
  margin: 0;
  min-height: 330px;
  max-height: 520px;
  overflow: auto;
  border: 1px solid #111827;
  border-radius: 4px;
  background: #020617;
  color: #22c55e;
  padding: 16px;
  font-family: "Consolas", "SFMono-Regular", "Menlo", monospace;
  font-size: 12px;
  line-height: 1.65;
  font-weight: 800;
  white-space: pre-wrap;
  scrollbar-width: thin;
  scrollbar-color: #475569 #020617;
}

.tools-ping-console::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.tools-ping-console::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 2px;
}

@media (max-width: 1120px) {
  .tools-ping-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tools-ping-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tools-ping-run-btn {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .tools-ping-page {
    padding: 14px;
  }

  .tools-ping-head {
    flex-direction: column;
    align-items: stretch;
  }

  .tools-ping-soft-btn {
    width: 100%;
  }

  .tools-ping-overview-grid {
    grid-template-columns: 1fr;
  }

  .tools-ping-card {
    padding: 14px;
  }

  .tools-ping-card-head,
  .tools-ping-console-head {
    flex-direction: column;
    align-items: stretch;
  }

  .tools-ping-copy-btn {
    width: 100%;
  }

  .tools-ping-form {
    grid-template-columns: 1fr;
  }

  .tools-ping-console {
    min-height: 280px;
    max-height: 420px;
    font-size: 11px;
  }
}

/* =====================================================
   AUTH LOGS PAGE
===================================================== */

.auth-logs-page {
  padding: 22px;
}

.auth-logs-shell {
  display: grid;
  gap: 18px;
}

.auth-logs-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.auth-logs-kicker {
  margin: 0 0 4px;
  color: #0284c7;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.auth-logs-head h1 {
  margin: 0;
  color: #0f172a;
  font-size: 24px;
  font-weight: 900;
}

.auth-logs-head span {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.auth-logs-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.auth-logs-soft-btn,
.auth-logs-start-btn,
.auth-logs-stop-btn {
  min-height: 38px;
  border-radius: 2px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.auth-logs-soft-btn {
  border: 1px solid #dbe3ee;
  background: #ffffff;
  color: #334155;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 6px 14px rgba(15, 23, 42, 0.04);
}

.auth-logs-soft-btn:hover {
  background: #f8fafc;
  border-color: #bae6fd;
  color: #0284c7;
  box-shadow: 0 9px 18px rgba(15, 23, 42, 0.075);
}

.auth-logs-start-btn {
  border: 1px solid #16a34a;
  background: #16a34a;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(22, 163, 74, 0.18);
}

.auth-logs-start-btn:hover {
  background: #15803d;
  border-color: #15803d;
}

.auth-logs-stop-btn {
  border: 1px solid #dc2626;
  background: #dc2626;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.16);
}

.auth-logs-stop-btn:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

.auth-logs-start-btn:disabled,
.auth-logs-stop-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.auth-logs-soft-btn svg,
.auth-logs-start-btn svg,
.auth-logs-stop-btn svg {
  width: 15px;
  height: 15px;
}

.auth-logs-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.auth-logs-overview-card,
.auth-logs-card {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 28px rgba(15, 23, 42, 0.055);
}

.auth-logs-overview-card::before,
.auth-logs-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--gradient-main);
}

.auth-logs-overview-card {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.auth-logs-overview-card span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.auth-logs-overview-card strong {
  color: #0f172a;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 900;
  word-break: break-word;
}

.auth-logs-card {
  padding: 18px;
}

.auth-logs-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 14px;
  align-items: end;
  margin-bottom: 16px;
}

.auth-logs-filter-field {
  display: grid;
  gap: 6px;
}

.auth-logs-filter-field > span {
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
}

.auth-logs-input-wrap {
  height: 42px;
  border: 1px solid #dbe3ee;
  border-radius: 2px;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
}

.auth-logs-input-wrap:focus-within {
  border-color: #7dd3fc;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.12);
}

.auth-logs-input-wrap svg {
  width: 16px;
  height: 16px;
  color: #64748b;
}

.auth-logs-input-wrap input {
  width: 100%;
  height: 100%;
  border: none;
  outline: none;
  background: transparent;
  color: #111827;
  font-size: 13px;
  font-weight: 800;
}

.auth-logs-input-wrap input::placeholder {
  color: #94a3b8;
}

.auth-logs-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.auth-logs-console-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.auth-logs-console-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 17px;
  font-weight: 900;
}

.auth-logs-console-head p {
  margin: 5px 0 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.auth-logs-live-pill {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #cbd5e1;
  border-radius: 2px;
  background: #f8fafc;
  color: #475569;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 900;
  flex-shrink: 0;
}

.auth-logs-live-pill span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #94a3b8;
}

.auth-logs-live-pill.is-running {
  border-color: #bbf7d0;
  background: #ecfdf5;
  color: #047857;
}

.auth-logs-live-pill.is-running span {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.auth-logs-live-pill.is-stopped {
  border-color: #fecdd3;
  background: #fff1f2;
  color: #be123c;
}

.auth-logs-live-pill.is-stopped span {
  background: #e11d48;
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.15);
}

.auth-logs-console {
  margin: 0;
  min-height: 440px;
  max-height: 620px;
  overflow: auto;
  border: 1px solid #111827;
  border-radius: 4px;
  background: #020617;
  color: #22c55e;
  padding: 16px;
  font-family: "Consolas", "SFMono-Regular", "Menlo", monospace;
  font-size: 12px;
  line-height: 1.65;
  font-weight: 800;
  white-space: pre-wrap;
  scrollbar-width: thin;
  scrollbar-color: #475569 #020617;
}

.auth-logs-console::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.auth-logs-console::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 2px;
}

@media (max-width: 1120px) {
  .auth-logs-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-logs-toolbar {
    grid-template-columns: 1fr;
  }

  .auth-logs-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  .auth-logs-page {
    padding: 14px;
  }

  .auth-logs-head {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-logs-head-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .auth-logs-soft-btn {
    width: 100%;
  }

  .auth-logs-overview-grid {
    grid-template-columns: 1fr;
  }

  .auth-logs-card {
    padding: 14px;
  }

  .auth-logs-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .auth-logs-start-btn,
  .auth-logs-stop-btn {
    width: 100%;
  }

  .auth-logs-console-head {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-logs-console {
    min-height: 360px;
    max-height: 520px;
    font-size: 11px;
  }
}

/* =====================================================
   ROUTER STATS PAGE
===================================================== */

.router-stats-page {
  padding: 22px;
}

.router-stats-shell {
  display: grid;
  gap: 18px;
}

.router-stats-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.router-stats-kicker {
  margin: 0 0 4px;
  color: #0284c7;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}

.router-stats-head h1 {
  margin: 0;
  color: #0f172a;
  font-size: 24px;
  font-weight: 900;
}

.router-stats-head span {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
}

.router-stats-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.router-stats-soft-btn,
.router-stats-refresh-btn {
  min-height: 38px;
  border-radius: 2px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.router-stats-soft-btn {
  border: 1px solid #dbe3ee;
  background: #ffffff;
  color: #334155;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 6px 14px rgba(15, 23, 42, 0.04);
}

.router-stats-refresh-btn {
  border: 1px solid #0284c7;
  background: #0284c7;
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(14, 165, 233, 0.18);
}

.router-stats-soft-btn:hover {
  background: #f8fafc;
  border-color: #bae6fd;
  color: #0284c7;
  box-shadow: 0 9px 18px rgba(15, 23, 42, 0.075);
}

.router-stats-refresh-btn:hover {
  background: #0369a1;
  border-color: #0369a1;
}

.router-stats-soft-btn svg,
.router-stats-refresh-btn svg {
  width: 15px;
  height: 15px;
}

.router-stats-refresh-btn.is-spinning svg {
  animation: routerStatsSpin 0.45s linear;
}

@keyframes routerStatsSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

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

.router-stats-overview-card,
.router-stats-card {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 12px 28px rgba(15, 23, 42, 0.055);
}

.router-stats-overview-card::before,
.router-stats-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--gradient-main);
}

.router-stats-overview-card {
  padding: 18px;
  display: grid;
  gap: 10px;
}

.router-stats-overview-card span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.router-stats-overview-card strong {
  color: #0f172a;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 900;
  word-break: break-word;
}

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

.router-stats-card {
  padding: 18px;
}

.router-stats-card-wide {
  grid-column: 1 / -1;
}

.router-stats-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.router-stats-card-head h2 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
  padding-bottom: 10px;
  border-bottom: 2px solid #6366f1;
}

.router-stats-card-head p {
  margin: 7px 0 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.router-stats-title-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  margin-left: 6px;
  border-radius: 2px;
  background: #eff6ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
  font-size: 11px;
  font-weight: 900;
  vertical-align: middle;
}

.router-stats-list {
  display: grid;
  border: 1px solid #eef2f7;
  border-radius: 4px;
  overflow: hidden;
}

.router-stats-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.75fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 11px 14px;
  border-bottom: 1px solid #eef2f7;
  background: #ffffff;
}

.router-stats-row:nth-child(odd) {
  background: #f8fbff;
}

.router-stats-row:last-child {
  border-bottom: none;
}

.router-stats-row span {
  color: #334155;
  font-size: 12px;
  font-weight: 900;
  text-transform: capitalize;
}

.router-stats-row strong {
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
  word-break: break-word;
}

.router-stats-list-compact .router-stats-row {
  min-height: 38px;
  padding: 10px 12px;
}

.router-stats-value-badge {
  width: fit-content;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 2px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 900;
}

.router-stats-value-badge.is-green {
  background: #ecfdf5;
  color: #047857;
  border-color: #bbf7d0;
}

.router-stats-value-badge.is-blue {
  background: #eff6ff;
  color: #0369a1;
  border-color: #bae6fd;
}

.router-stats-value-badge.is-purple {
  background: #f5f3ff;
  color: #6d28d9;
  border-color: #ddd6fe;
}

@media (max-width: 1120px) {
  .router-stats-overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 767px) {
  .router-stats-page {
    padding: 14px;
  }

  .router-stats-head {
    flex-direction: column;
    align-items: stretch;
  }

  .router-stats-head-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .router-stats-soft-btn,
  .router-stats-refresh-btn {
    width: 100%;
  }

  .router-stats-overview-grid {
    grid-template-columns: 1fr;
  }

  .router-stats-card {
    padding: 14px;
  }

  .router-stats-row {
    grid-template-columns: 1fr;
    gap: 5px;
    align-items: start;
  }

  .router-stats-card-head h2 {
    font-size: 17px;
  }
}
/* =====================================================
   AUTH + PROFILE PAGES
===================================================== */

.auth-page-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 12%, rgba(71, 196, 247, 0.16), transparent 28%),
        radial-gradient(circle at 88% 18%, rgba(169, 139, 222, 0.16), transparent 30%),
        linear-gradient(135deg, #f8fafc 0%, #eef7ff 48%, #f8fafc 100%);
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card {
    width: min(960px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.98);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.92) inset,
        0 28px 70px rgba(15, 23, 42, 0.14);
}

.auth-brand-block {
    position: relative;
    overflow: hidden;
    min-height: 520px;
    padding: 38px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.90)),
        radial-gradient(circle at top left, rgba(71, 247, 162, 0.36), transparent 30%);
    color: #ffffff;
}

.auth-brand-block::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -110px;
    top: -90px;
    border-radius: 999px;
    background: rgba(110, 232, 200, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.auth-brand-block::after {
    content: "";
    position: absolute;
    inset: auto 32px 32px auto;
    width: 160px;
    height: 160px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.06);
    transform: rotate(12deg);
}

.auth-brand-block > * {
    position: relative;
    z-index: 1;
}

.auth-brand-icon {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #47f7a2, #6ee8c8);
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 18px 36px rgba(71, 247, 162, 0.22);
}

.auth-brand-icon svg {
    width: 28px;
    height: 28px;
}

.auth-brand-block p,
.auth-form-head p {
    margin: 0;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.9px;
    text-transform: uppercase;
}

.auth-brand-block p {
    color: #86efac;
}

.auth-brand-block h1 {
    margin: 8px 0 10px;
    font-size: 34px;
    line-height: 1.08;
    letter-spacing: -0.8px;
    font-weight: 900;
}

.auth-brand-block span {
    display: block;
    max-width: 420px;
    color: rgba(226, 232, 240, 0.88);
    font-size: 14px;
    line-height: 1.7;
    font-weight: 700;
}

.auth-form {
    padding: 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 17px;
}

.auth-form-head h2 {
    margin: 0;
    font-size: 24px;
    line-height: 1.2;
    font-weight: 900;
    color: #0f172a;
}

.auth-form-head p {
    margin-top: 7px;
    color: #64748b;
}

.auth-alert,
.profile-alert {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    border-radius: var(--radius-sm);
    padding: 11px 12px;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 900;
}

.auth-alert svg,
.profile-alert svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.auth-alert.is-error,
.profile-alert.is-error {
    color: #be123c;
    background: #fff1f2;
    border: 1px solid #fecdd3;
}

.profile-alert.is-success {
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
}

.auth-field,
.profile-field {
    display: grid;
    gap: 7px;
}

.auth-field > span,
.profile-field > span {
    color: #334155;
    font-size: 12px;
    font-weight: 900;
}

.auth-input-wrap,
.profile-input-wrap {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid #dbe3ee;
    background: #ffffff;
    border-radius: var(--radius-sm);
    padding: 0 12px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-input-wrap:focus-within,
.profile-input-wrap:focus-within {
    border-color: #38bdf8;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.13);
}

.auth-input-wrap > svg,
.profile-input-wrap > svg {
    width: 17px;
    height: 17px;
    color: #64748b;
    flex-shrink: 0;
}

.auth-input-wrap input,
.profile-input-wrap input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
}

.auth-input-wrap input::placeholder,
.profile-input-wrap input::placeholder {
    color: #94a3b8;
    font-weight: 800;
}

.auth-password-toggle {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: var(--radius-xs);
    background: transparent;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.auth-password-toggle:hover {
    background: #f1f5f9;
    color: #0284c7;
}

.auth-password-toggle svg {
    width: 16px;
    height: 16px;
}

.auth-submit-btn,
.profile-save-btn,
.profile-logout-btn {
    min-height: 44px;
    border: 0;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 900;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.auth-submit-btn,
.profile-save-btn {
    background: linear-gradient(135deg, #0f172a, #334155);
    color: #ffffff;
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
}

.auth-submit-btn:hover,
.profile-save-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
}

.auth-submit-btn svg,
.profile-save-btn svg,
.profile-logout-btn svg {
    width: 17px;
    height: 17px;
}

.auth-demo-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    color: #64748b;
    font-size: 12px;
    font-weight: 850;
}

.auth-demo-note strong {
    color: #0f172a;
}

.profile-menu-link.is-active {
    background: #eff6ff;
    color: #0369a1;
}

.profile-menu-link.is-active svg {
    color: #0284c7;
}

.profile-page {
    padding: 22px;
}

.profile-shell {
    display: grid;
    gap: 18px;
}

.profile-hero-card,
.profile-info-card,
.profile-password-card {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-md);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 12px 28px rgba(15, 23, 42, 0.055);
}

.profile-hero-card::before,
.profile-info-card::before,
.profile-password-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--gradient-main);
}

.profile-hero-card {
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.profile-hero-left {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.profile-page-avatar {
    width: 58px;
    height: 58px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #47c4f7, #6ee8c8);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(14, 165, 233, 0.18);
    flex-shrink: 0;
}

.profile-kicker,
.profile-section-head p {
    margin: 0;
    color: #0284c7;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.75px;
    text-transform: uppercase;
}

.profile-hero-card h1,
.profile-section-head h2 {
    margin: 5px 0 0;
    color: #0f172a;
    font-weight: 900;
    letter-spacing: -0.3px;
}

.profile-hero-card h1 {
    font-size: 22px;
}

.profile-hero-card span:not(.profile-page-avatar) {
    display: block;
    margin-top: 5px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 750;
}

.profile-logout-btn {
    min-height: 40px;
    padding: 0 14px;
    color: #be123c;
    background: #fff1f2;
    border: 1px solid #fecdd3;
}

.profile-logout-btn:hover {
    background: #ffe4e6;
    transform: translateY(-1px);
}

.profile-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1.08fr);
    gap: 18px;
}

.profile-info-card,
.profile-password-card {
    padding: 20px;
}

.profile-section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.profile-section-head h2 {
    font-size: 18px;
}

.profile-role-badge,
.profile-lock-icon {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.profile-role-badge {
    padding: 0 10px;
    color: #0369a1;
    background: #eff6ff;
    border: 1px solid #bae6fd;
}

.profile-lock-icon {
    width: 34px;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
}

.profile-lock-icon svg {
    width: 16px;
    height: 16px;
}

.profile-detail-list,
.profile-password-form {
    display: grid;
    gap: 13px;
}

.profile-detail-row {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid #eef2f7;
    border-radius: var(--radius-sm);
    background: #f8fafc;
}

.profile-detail-row span {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
}

.profile-detail-row strong {
    color: #0f172a;
    font-size: 13px;
    font-weight: 900;
    word-break: break-word;
}

.profile-save-btn {
    width: fit-content;
    min-width: 180px;
    margin-top: 2px;
    padding: 0 18px;
}

@media (max-width: 980px) {
    .auth-card,
    .profile-grid {
        grid-template-columns: 1fr;
    }

    .auth-brand-block {
        min-height: auto;
        padding: 30px;
    }

    .auth-form {
        padding: 30px;
    }
}

@media (max-width: 640px) {
    .auth-page,
    .profile-page {
        padding: 14px;
    }

    .auth-card {
        border-radius: var(--radius-md);
    }

    .auth-brand-block,
    .auth-form,
    .profile-hero-card,
    .profile-info-card,
    .profile-password-card {
        padding: 18px;
    }

    .auth-brand-icon {
        width: 48px;
        height: 48px;
    }

    .auth-brand-block h1 {
        font-size: 26px;
    }

    .auth-demo-note,
    .profile-hero-card,
    .profile-hero-left,
    .profile-section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-hero-left {
        align-items: flex-start;
    }

    .profile-logout-btn,
    .profile-save-btn {
        width: 100%;
    }

    .profile-detail-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* =====================================================
   DASHBOARD DESKTOP FIT PATCH - NO EXTRA SCROLL
   Paste at END of style.css
===================================================== */

@media (min-width: 1121px) {
  .dashboard-page {
    padding: 14px 22px;
  }

  .dashboard-shell {
    gap: 12px;
  }

  .dashboard-head {
    align-items: flex-end;
    gap: 12px;
  }

  .dashboard-head h1 {
    font-size: 22px;
  }

  .dashboard-head span {
    margin-top: 4px;
    font-size: 12px;
  }

  .dashboard-head-actions {
    gap: 8px;
  }

  .live-status,
  .dashboard-refresh-btn {
    min-height: 34px;
  }

  .dashboard-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(185px, 0.46fr) minmax(185px, 0.46fr);
    grid-template-areas:
      "chart live uptime"
      "chart cpu ram"
      "chart disk disk";
    gap: 12px;
    align-items: stretch;
  }

  .chart-card {
    grid-area: chart;
    min-height: 0;
    padding: 14px;
    display: flex;
    flex-direction: column;
  }

  .side-card-stack {
    display: contents;
  }

  .side-card-stack .metric-card:nth-child(1) {
    grid-area: live;
  }

  .side-card-stack .metric-card:nth-child(2) {
    grid-area: uptime;
  }

  .dashboard-grid > .metric-card:nth-child(3) {
    grid-area: cpu;
  }

  .dashboard-grid > .metric-card:nth-child(4) {
    grid-area: ram;
  }

  .dashboard-grid > .metric-card:nth-child(5) {
    grid-area: disk;
  }

  .metric-card {
    min-height: 132px;
    padding: 15px 16px;
  }

  .metric-card-top {
    font-size: 12px;
    gap: 8px;
  }

  .metric-icon {
    width: 32px;
    height: 32px;
  }

  .metric-icon svg {
    width: 16px;
    height: 16px;
  }

  .metric-card h3 {
    margin: 12px 0 8px;
    font-size: 15px;
    line-height: 1.25;
  }

  .live-user-lines {
    margin: 10px 0 8px;
    gap: 4px;
  }

  .live-user-lines strong {
    font-size: 21px;
  }

  .big-metric {
    margin: 12px 0 8px;
    font-size: 22px;
  }

  .small-pill {
    min-height: 21px;
    font-size: 10px;
  }

  .card-head {
    margin-bottom: 8px;
  }

  .card-head h2 {
    font-size: 16px;
  }

  .card-head p {
    margin-top: 3px;
    font-size: 11px;
  }

  .metric-select {
    height: 34px;
    min-width: 126px;
  }

  .chart-toolbar {
    margin-bottom: 8px;
  }

  .chart-chip {
    min-height: 24px;
    font-size: 10px;
  }

  .apex-chart-box {
    flex: 1 1 auto;
    height: auto;
    min-height: 310px;
    padding: 6px 8px 2px;
  }

  .apex-chart-box #usageChart {
    height: 100%;
    min-height: 300px;
  }
}

@media (min-width: 1121px) and (max-height: 780px) {
  .dashboard-page {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .dashboard-shell {
    gap: 10px;
  }

  .dashboard-head h1 {
    font-size: 21px;
  }

  .dashboard-head span {
    font-size: 12px;
  }

  .metric-card {
    min-height: 118px;
    padding: 13px 14px;
  }

  .live-user-lines strong {
    font-size: 19px;
  }

  .big-metric {
    font-size: 20px;
  }

  .metric-card h3 {
    font-size: 14px;
    margin: 9px 0 7px;
  }

  .apex-chart-box {
    min-height: 285px;
  }

  .apex-chart-box #usageChart {
    min-height: 275px;
  }
}

/* =====================================================
   DASHBOARD HEIGHT BALANCE PATCH
   Paste after previous dashboard desktop patch
===================================================== */

@media (min-width: 1121px) {
  .dashboard-grid {
    min-height: calc(100vh - var(--topbar-height) - 150px);
    grid-template-rows: minmax(135px, 1fr) minmax(135px, 1fr) minmax(135px, 1fr);
  }

  .chart-card {
    height: 100%;
  }

  .apex-chart-box {
    min-height: 0;
    height: 100%;
  }

  .apex-chart-box #usageChart {
    min-height: 0;
    height: 100%;
  }

  .metric-card {
    min-height: 0;
    height: 100%;
  }

  .dashboard-grid > .metric-card:nth-child(5) {
    min-height: 135px;
  }
}

@media (min-width: 1121px) and (max-height: 820px) {
  .dashboard-grid {
    min-height: calc(100vh - var(--topbar-height) - 142px);
    grid-template-rows: minmax(120px, 1fr) minmax(120px, 1fr) minmax(120px, 1fr);
  }
}

/* =====================================================
   ZETRIKCLOUD LOGO PATCH
   Paste at END of style.css
===================================================== */

.brand-with-image {
  gap: 9px;
}

.brand-logo-box {
  width: 42px;
  height: 42px;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid #dbeafe;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10);
}

.brand-logo-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 3px;
  display: block;
}

.brand-with-image .brand-title {
  color: #0f172a;
}

.brand-with-image .brand-subtitle {
  color: #64748b;
}

.auth-brand-logo {
  width: 150px;
  min-height: 112px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(2, 132, 199, 0.24);
}

.auth-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  display: block;
}

@media (max-width: 767px) {
  .brand-logo-box {
    width: 36px;
    height: 36px;
  }

  .auth-brand-logo {
    width: 128px;
    min-height: 96px;
    margin-bottom: 18px;
  }
}

@media (max-width: 420px) {
  .brand-with-image .brand-copy {
    display: none;
  }
}
