:root {
    --blue: #1257d6;
    --blue-dark: #0b2f73;
    --green: #18a66a;
    --background: #f4f7fb;
    --surface: #ffffff;
    --border: #dfe7f1;
    --text: #17243b;
    --muted: #718096;
    --danger: #c9364f;
    --shadow: 0 22px 60px rgba(24, 50, 89, 0.13);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--text);
    background: var(--background);
    font-family:
        Inter, ui-sans-serif, system-ui, -apple-system,
        BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
    font: inherit;
}

.login-page {
    min-height: 100vh;
    background:
        radial-gradient(
            circle at top left,
            rgba(18, 87, 214, 0.12),
            transparent 35%
        ),
        radial-gradient(
            circle at bottom right,
            rgba(24, 166, 106, 0.12),
            transparent 35%
        ),
        #f7f9fd;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
}

.login-card {
    width: 100%;
    max-width: 450px;
    padding: 38px;
    border: 1px solid rgba(223, 231, 241, 0.9);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: var(--shadow);
}

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

.brand-mark {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    color: #fff;
    background:
        linear-gradient(135deg, var(--blue), var(--green));
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -1px;
    box-shadow: 0 10px 25px rgba(18, 87, 214, 0.24);
}

.brand-mark.small {
    width: 44px;
    height: 44px;
    border-radius: 13px;
    font-size: 16px;
}

.brand-block h1,
.brand-block p,
.login-heading h2,
.login-heading p {
    margin: 0;
}

.brand-block h1 {
    font-size: 25px;
    letter-spacing: -0.7px;
}

.brand-block p {
    margin-top: 2px;
    color: var(--muted);
    font-size: 13px;
}

.login-heading {
    margin: 38px 0 26px;
}

.login-heading h2 {
    font-size: 24px;
    letter-spacing: -0.5px;
}

.login-heading p {
    margin-top: 9px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 19px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #34445e;
    font-size: 13px;
    font-weight: 700;
}

.form-control {
    width: 100%;
    height: 49px;
    padding: 0 15px;
    border: 1px solid #ced9e8;
    border-radius: 12px;
    outline: none;
    background: #fbfcfe;
    color: var(--text);
    transition: 0.2s ease;
}

.form-control:focus {
    border-color: var(--blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(18, 87, 214, 0.1);
}

.primary-button {
    width: 100%;
    min-height: 49px;
    margin-top: 5px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--blue), #2874ee);
    font-weight: 750;
    cursor: pointer;
    box-shadow: 0 12px 25px rgba(18, 87, 214, 0.2);
}

.primary-button:hover {
    filter: brightness(1.04);
}

.security-note,
.sidebar-status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}

.security-note {
    justify-content: center;
    margin-top: 24px;
}

.status-dot {
    width: 8px;
    height: 8px;
    display: inline-block;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 4px rgba(24, 166, 106, 0.12);
}

.alert {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
}

.alert-danger {
    color: #a5233a;
    background: #fff0f3;
    border: 1px solid #ffd2da;
}

.alert-success {
    color: #107149;
    background: #ecfbf4;
    border: 1px solid #c6f1dd;
}

.alert-warning {
    color: #865d00;
    background: #fff8dd;
    border: 1px solid #f4e3a7;
}

.field-error {
    display: block;
    margin-top: 6px;
    color: var(--danger);
    font-size: 12px;
}

.topbar {
    height: 74px;
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
}

.topbar-brand strong,
.topbar-brand span {
    display: block;
}

.topbar-brand strong {
    font-size: 19px;
}

.topbar-brand span {
    color: var(--muted);
    font-size: 12px;
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.admin-name {
    font-size: 13px;
    font-weight: 700;
}

.logout-button {
    padding: 9px 14px;
    border: 1px solid #d9e2ee;
    border-radius: 10px;
    color: #35445c;
    background: #fff;
    cursor: pointer;
}

.portal-layout {
    min-height: calc(100vh - 74px);
    display: grid;
    grid-template-columns: 235px minmax(0, 1fr);
}

.sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 25px 18px;
    border-right: 1px solid var(--border);
    background: #fff;
}

.sidebar nav {
    display: grid;
    gap: 7px;
}

.nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 10px;
    color: #516078;
    text-decoration: none;
    font-size: 14px;
    font-weight: 650;
}

.nav-item.active {
    color: var(--blue);
    background: #edf4ff;
}

.nav-item.disabled {
    cursor: default;
}

.nav-item span {
    padding: 2px 6px;
    border-radius: 10px;
    color: var(--green);
    background: #e9f9f2;
    font-size: 10px;
}

.sidebar-status {
    padding: 12px 10px;
}

.dashboard-content {
    min-width: 0;
    padding: 32px;
}

.page-heading,
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.page-heading {
    margin-bottom: 25px;
}

.page-heading h1,
.page-heading p,
.section-heading h2,
.section-heading p {
    margin: 0;
}

.page-heading h1 {
    font-size: 29px;
    letter-spacing: -0.8px;
}

.page-heading > div > p:last-child {
    margin-top: 7px;
    color: var(--muted);
    font-size: 14px;
}

.eyebrow {
    margin-bottom: 5px !important;
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.platform-badges {
    display: flex;
    gap: 8px;
}

.platform-badges span,
.plan-count {
    padding: 8px 11px;
    border: 1px solid var(--border);
    border-radius: 20px;
    color: #4f5d73;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 15px;
}

.metric-card,
.content-card,
.plan-card {
    border: 1px solid var(--border);
    background: var(--surface);
}

.metric-card {
    min-height: 145px;
    padding: 20px;
    border-radius: 16px;
    border-top: 4px solid var(--blue);
}

.metric-card.green {
    border-top-color: var(--green);
}

.metric-card.violet {
    border-top-color: #7558d9;
}

.metric-card.orange {
    border-top-color: #ef8b30;
}

.metric-card.cyan {
    border-top-color: #08a6b8;
}

.metric-card span,
.metric-card small {
    display: block;
    color: var(--muted);
}

.metric-card span {
    font-size: 12px;
    font-weight: 700;
}

.metric-card strong {
    display: block;
    margin: 12px 0 8px;
    font-size: 30px;
}

.metric-card small {
    font-size: 11px;
}

.content-card {
    margin-top: 22px;
    padding: 24px;
    border-radius: 18px;
}

.section-heading h2 {
    font-size: 20px;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.plan-card {
    padding: 17px;
    border-radius: 14px;
}

.plan-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.plan-title h3 {
    margin: 0;
    font-size: 15px;
}

.trial-badge {
    padding: 4px 7px;
    border-radius: 12px;
    color: #107149;
    background: #e9f9f2;
    font-size: 10px;
    font-weight: 800;
}

.plan-platforms {
    margin: 9px 0 15px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
    text-transform: capitalize;
}

.plan-limits {
    display: grid;
    gap: 8px;
}

.plan-limits span {
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: 12px;
}

.plan-limits strong {
    color: var(--text);
}

@media (max-width: 1150px) {
    .metrics-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .plan-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 760px) {
    .topbar {
        padding: 0 16px;
    }

    .admin-name {
        display: none;
    }

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

    .sidebar {
        display: none;
    }

    .dashboard-content {
        padding: 22px 16px;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .metrics-grid,
    .plan-grid {
        grid-template-columns: 1fr;
    }

    .login-card {
        padding: 28px 22px;
    }
}

.primary-link,
.search-button,
.clear-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 750;
}

.primary-link,
.search-button {
    color: #fff;
    background: var(--blue);
}

.disabled-button {
    cursor: not-allowed;
    opacity: 0.55;
}

.users-card {
    margin-top: 0;
}

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

.search-form {
    width: min(720px, 100%);
    display: flex;
    align-items: center;
    gap: 9px;
}

.search-form .form-control {
    flex: 1;
}

.clear-button {
    color: #4f5d73;
    background: #edf2f7;
}

.result-count {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.table-scroll {
    margin-top: 20px;
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 13px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.data-table th,
.data-table td {
    padding: 14px 15px;
    border-bottom: 1px solid #e8eef5;
    text-align: left;
    vertical-align: middle;
    font-size: 13px;
}

.data-table th {
    color: #607087;
    background: #f8fafd;
    font-size: 11px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.data-table td strong,
.data-table td small {
    display: block;
}

.data-table td small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

.status-badge {
    display: inline-flex;
    padding: 5px 8px;
    border-radius: 14px;
    font-size: 10px;
    font-weight: 800;
}

.status-active {
    color: #107149;
    background: #e7f8f0;
}

.status-expired,
.status-blocked {
    color: #aa3044;
    background: #ffedf1;
}

.status-none {
    color: #6d7787;
    background: #edf1f5;
}

.empty-state {
    min-height: 320px;
    display: grid;
    place-items: center;
    align-content: center;
    text-align: center;
}

.empty-state h3,
.empty-state p {
    margin: 0;
}

.empty-state h3 {
    margin-top: 15px;
    font-size: 18px;
}

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

.empty-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: var(--blue);
    background: #edf4ff;
    font-weight: 850;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 20px;
    font-size: 12px;
}

.pagination a {
    color: var(--blue);
    font-weight: 750;
    text-decoration: none;
}

@media (max-width: 760px) {
    .users-toolbar,
    .search-form {
        align-items: stretch;
        flex-direction: column;
    }

    .result-count {
        text-align: right;
    }
}

.user-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 20px;
    align-items: start;
}

.user-form-card {
    margin-top: 0;
}

.user-form {
    margin-top: 24px;
}

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

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.form-submit {
    width: auto;
    min-width: 230px;
    padding: 0 20px;
}

.trial-info-card {
    padding: 24px;
    border: 1px solid #cfe9dd;
    border-radius: 18px;
    background:
        linear-gradient(
            145deg,
            #f1fbf7,
            #ffffff
        );
}

.trial-info-card h2 {
    margin: 18px 0 8px;
    font-size: 21px;
}

.trial-info-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.trial-info-card ul {
    display: grid;
    gap: 11px;
    margin: 22px 0;
    padding: 0;
    list-style: none;
}

.trial-info-card li {
    position: relative;
    padding-left: 21px;
    color: #415169;
    font-size: 13px;
}

.trial-info-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 900;
}

.trial-badge.large {
    padding: 6px 10px;
    font-size: 11px;
}

.trial-note {
    padding: 13px;
    border-radius: 11px;
    color: #596980;
    background: #edf5f1;
    font-size: 12px;
    line-height: 1.5;
}

@media (max-width: 950px) {
    .user-form-layout {
        grid-template-columns: 1fr;
    }
}

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

    .form-submit {
        width: 100%;
    }
}

.filter-tabs {
    display: inline-flex;
    padding: 4px;
    border-radius: 11px;
    background: #edf2f7;
}

.filter-tabs a {
    padding: 8px 13px;
    border-radius: 8px;
    color: #617087;
    text-decoration: none;
    font-size: 12px;
    font-weight: 750;
}

.filter-tabs a.active {
    color: var(--blue);
    background: #fff;
    box-shadow: 0 3px 10px rgba(23, 51, 91, 0.08);
}

.platform-label {
    display: inline-flex;
    padding: 6px 9px;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 800;
}

.platform-android {
    color: #147448;
    background: #e7f8ef;
}

.platform-windows {
    color: #1154b4;
    background: #eaf2ff;
}

.status-optional {
    color: #75520b;
    background: #fff5d9;
}

.status-mandatory {
    color: #aa3044;
    background: #ffedf1;
}

.status-draft {
    color: #5f6978;
    background: #edf1f5;
}

.table-action {
    padding: 7px 10px;
    border: 1px solid #cbdaf0;
    border-radius: 8px;
    color: var(--blue);
    background: #f3f7ff;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
}

.release-form-card {
    max-width: 980px;
    margin-top: 0;
}

.full-width {
    grid-column: 1 / -1;
}

.text-area {
    min-height: 120px;
    padding-top: 13px;
    resize: vertical;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: 8px;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #f8fafd;
    cursor: pointer;
}

.checkbox-row input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
}

.checkbox-row span,
.checkbox-row strong,
.checkbox-row small {
    display: block;
}

.checkbox-row strong {
    font-size: 13px;
}

.checkbox-row small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 11px;
}

.heading-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.danger-outline-button {
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid #f0b7c1;
    border-radius: 10px;
    color: #aa3044;
    background: #fff5f7;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}

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

.detail-card {
    margin-top: 0;
}

.detail-card h2 {
    margin: 0 0 20px;
    font-size: 19px;
}

.detail-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.detail-list div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 11px 0;
    border-bottom: 1px solid #edf1f5;
}

.detail-list div:last-child {
    border-bottom: 0;
}

.detail-list dt {
    color: var(--muted);
    font-size: 12px;
}

.detail-list dd {
    margin: 0;
    text-align: right;
    font-size: 13px;
    font-weight: 650;
}

.active-plan-box {
    padding: 18px;
    border: 1px solid #cfe9dd;
    border-radius: 14px;
    background: #f3fbf7;
}

.active-plan-box h3 {
    display: inline-block;
    margin: 0 8px 14px 0;
}

.active-plan-box p {
    margin: 0 0 17px;
    color: var(--muted);
    font-size: 13px;
}

.empty-inline {
    margin-top: 18px;
    padding: 22px;
    border: 1px dashed #ccd8e7;
    border-radius: 12px;
    color: var(--muted);
    background: #fafbfd;
    text-align: center;
    font-size: 13px;
}

.status-replaced {
    color: #765d18;
    background: #fff4d5;
}

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

    .heading-actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column;
    }
}

.device-filter-form {
    display: grid;
    grid-template-columns:
        minmax(220px, 1fr)
        170px
        160px
        auto
        auto;
    gap: 9px;
    align-items: center;
}

.result-line {
    margin-top: 18px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.user-link {
    color: var(--text);
    font-weight: 750;
    text-decoration: none;
}

.user-link:hover {
    color: var(--blue);
}

.danger-action {
    color: #aa3044;
    border-color: #f0c1ca;
    background: #fff3f5;
}

.success-action {
    color: #107149;
    border-color: #bfe8d4;
    background: #effaf5;
}

@media (max-width: 900px) {
    .device-filter-form {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .device-filter-form {
        grid-template-columns: 1fr;
    }
}

.subscription-filter-form {
    display: grid;
    grid-template-columns:
        minmax(220px, 1fr)
        170px
        210px
        auto
        auto;
    gap: 9px;
    align-items: center;
}

.status-expired {
    color: #aa3044;
    background: #ffedf1;
}

@media (max-width: 950px) {
    .subscription-filter-form {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .subscription-filter-form {
        grid-template-columns: 1fr;
    }
}
/* NetPulse App Platform Distinct Theme 20260802 */

:root {
    --blue: #2563eb;
    --blue-dark: #0f172a;
    --green: #14b8a6;
    --background: #eef2f7;
    --surface: #ffffff;
    --border: #d9e2ec;
    --text: #0f172a;
    --muted: #64748b;
    --danger: #dc3651;
    --shadow:
        0 18px 45px rgba(15, 23, 42, 0.09);
}

button,
input,
select,
textarea {
    font: inherit;
}

.dashboard-page {
    min-height: 100vh;
    background:
        linear-gradient(
            180deg,
            #e9eff7 0,
            #f6f8fb 310px,
            #f6f8fb 100%
        );
}

/* Distinct dark application header */

.topbar {
    height: 80px;
    padding: 0 28px;
    border-bottom: 0;
    background: #0f172a;
    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.18);
    backdrop-filter: none;
}

.topbar-brand {
    min-width: 310px;
    height: 80px;
    margin-left: -28px;
    padding: 0 30px;
    gap: 17px;
    border-radius: 0 24px 24px 0;
    background: #ffffff;
}

.topbar-logo {
    width: 174px;
    height: 55px;
    display: block;
    object-fit: contain;
    object-position: left center;
}

.product-label {
    padding-left: 16px;
    border-left: 1px solid #dbe4ee;
    color: #64748b !important;
    font-size: 11px !important;
    font-weight: 750;
    letter-spacing: 0.45px;
    line-height: 1.35;
    text-transform: uppercase;
}

.admin-name {
    color: #e2e8f0;
    font-size: 13px;
}

.admin-actions form {
    margin: 0;
}

.logout-button {
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}

.logout-button:hover {
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.15);
}

/* Light navigation rail */

.portal-layout {
    min-height: calc(100vh - 80px);
    grid-template-columns: 245px minmax(0, 1fr);
}

.sidebar {
    height: calc(100vh - 80px);
    position: sticky;
    top: 80px;
    padding: 28px 17px 22px;
    border-right: 1px solid #dbe3ed;
    background: #f8fafc;
}

.sidebar nav {
    gap: 9px;
}

.nav-item {
    position: relative;
    justify-content: flex-start;
    min-height: 47px;
    padding: 0 16px 0 30px;
    border: 1px solid transparent;
    border-radius: 13px;
    color: #526078;
    font-size: 13px;
    font-weight: 700;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.nav-item::before {
    content: "";
    width: 7px;
    height: 7px;
    position: absolute;
    left: 14px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.38;
}

.nav-item:hover {
    color: #1d4ed8;
    border-color: #e0e8f2;
    background: #ffffff;
    box-shadow:
        0 8px 20px rgba(15, 23, 42, 0.06);
    transform: translateX(2px);
}

.nav-item.active {
    color: #ffffff;
    border-color: transparent;
    background:
        linear-gradient(
            135deg,
            #2563eb,
            #0ea5e9
        );
    box-shadow:
        0 12px 25px rgba(37, 99, 235, 0.24);
}

.nav-item.active::before {
    background: #ffffff;
    opacity: 1;
}

.sidebar-status {
    margin: 0 3px;
    padding: 13px;
    border: 1px solid #dce5ee;
    border-radius: 13px;
    background: #ffffff;
    box-shadow:
        0 8px 20px rgba(15, 23, 42, 0.04);
}

/* Main workspace */

.dashboard-content {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 36px;
}

.page-heading {
    margin-bottom: 28px;
}

.page-heading h1 {
    color: #0f172a;
    font-size: 31px;
    letter-spacing: -1px;
}

.eyebrow {
    color: #0891b2;
    letter-spacing: 1.5px;
}

.platform-badges span,
.plan-count {
    padding: 9px 13px;
    border-color: #d8e2ed;
    background: rgba(255, 255, 255, 0.82);
    box-shadow:
        0 6px 16px rgba(15, 23, 42, 0.04);
}

/* Dashboard cards */

.metric-card,
.content-card,
.plan-card {
    border-color: #dce4ed;
    box-shadow:
        0 12px 30px rgba(15, 23, 42, 0.055);
}

.metric-card {
    min-height: 150px;
    position: relative;
    overflow: visible;
    padding: 22px;
    border-top: 1px solid #dce4ed;
    border-radius: 20px;
    background: #ffffff;
}

.metric-card::before {
    content: "";
    width: 5px;
    position: absolute;
    inset: 0 auto 0 0;
    background: #2563eb;
}

.metric-card::after {
    content: "";
    width: 82px;
    height: 82px;
    position: absolute;
    top: -36px;
    right: -30px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.07);
}

.metric-card.green::before {
    background: #10b981;
}

.metric-card.green::after {
    background: rgba(16, 185, 129, 0.08);
}

.metric-card.violet::before {
    background: #8b5cf6;
}

.metric-card.violet::after {
    background: rgba(139, 92, 246, 0.08);
}

.metric-card.orange::before {
    background: #f97316;
}

.metric-card.orange::after {
    background: rgba(249, 115, 22, 0.08);
}

.metric-card.cyan::before {
    background: #06b6d4;
}

.metric-card.cyan::after {
    background: rgba(6, 182, 212, 0.08);
}

.metric-card strong {
    margin: 13px 0 8px;
    color: #0f172a;
    font-size: 32px;
}

.content-card {
    padding: 26px;
    border-radius: 21px;
    background: rgba(255, 255, 255, 0.96);
}

.plan-card {
    border-radius: 16px;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.plan-card:hover {
    border-color: #bfdbfe;
    box-shadow:
        0 18px 35px rgba(37, 99, 235, 0.1);
    transform: translateY(-3px);
}

/* Forms and actions */

.form-control {
    border-color: #cbd7e5;
    border-radius: 11px;
    background: #ffffff;
}

.form-control:focus {
    border-color: #2563eb;
    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.11);
}

.primary-button,
.primary-link,
.search-button {
    border-radius: 11px;
    background:
        linear-gradient(
            135deg,
            #2563eb,
            #0ea5e9
        );
    box-shadow:
        0 9px 20px rgba(37, 99, 235, 0.18);
    transition:
        filter 0.2s ease,
        transform 0.2s ease;
}

.primary-button:hover,
.primary-link:hover,
.search-button:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.clear-button,
.table-action,
.danger-outline-button {
    border-radius: 10px;
}

/* Tables */

.table-scroll {
    border-color: #dce5ef;
    border-radius: 15px;
    background: #ffffff;
    box-shadow:
        0 8px 24px rgba(15, 23, 42, 0.045);
}

.data-table th {
    color: #475569;
    background: #f1f5f9;
    letter-spacing: 0.55px;
}

.data-table tbody tr {
    transition: background 0.16s ease;
}

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

.data-table td {
    border-bottom-color: #e7edf4;
}

/* Distinct split-style login screen */

.login-page {
    position: relative;
    overflow-x: hidden;
    background: #edf2f7;
}

.login-page::before {
    content: "";
    position: fixed;
    z-index: 0;
    inset: 0 48% 0 0;
    background:
        radial-gradient(
            circle at 24% 24%,
            rgba(14, 165, 233, 0.24),
            transparent 34%
        ),
        radial-gradient(
            circle at 72% 76%,
            rgba(20, 184, 166, 0.19),
            transparent 31%
        ),
        #0f172a;
    clip-path:
        polygon(
            0 0,
            88% 0,
            100% 100%,
            0 100%
        );
}

.login-page::after {
    content: "";
    width: 240px;
    height: 240px;
    position: fixed;
    z-index: 0;
    left: 9%;
    bottom: 12%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.login-shell {
    width: min(1180px, 100%);
    position: relative;
    z-index: 1;
    justify-items: end;
    margin: 0 auto;
    padding: 48px;
}

.login-card {
    max-width: 480px;
    position: relative;
    overflow: hidden;
    padding: 42px;
    border: 0;
    border-radius: 27px;
    background: #ffffff;
    box-shadow:
        0 30px 80px rgba(15, 23, 42, 0.22);
}

.login-card::before {
    content: "";
    height: 5px;
    position: absolute;
    inset: 0 0 auto;
    background:
        linear-gradient(
            90deg,
            #2563eb,
            #0ea5e9,
            #14b8a6
        );
}

.brand-block {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e3e9f0;
}

.login-logo {
    width: 255px;
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.login-product-label {
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.15px;
    text-transform: uppercase;
}

.login-heading {
    margin: 28px 0 25px;
}

.login-heading h2 {
    color: #0f172a;
    font-size: 25px;
}

.login-heading p {
    color: #64748b;
}

.security-note {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid #e9eef4;
}

/* Responsive adjustments */

@media (max-width: 760px) {
    .topbar {
        height: 70px;
        padding: 0 14px;
    }

    .topbar-brand {
        min-width: 0;
        height: 70px;
        margin-left: -14px;
        padding: 0 18px;
        border-radius: 0 18px 18px 0;
    }

    .topbar-logo {
        width: 145px;
        height: 46px;
    }

    .product-label {
        display: none !important;
    }

    .portal-layout {
        min-height: calc(100vh - 70px);
    }

    .dashboard-content {
        padding: 23px 16px;
    }

    .login-page {
        background: #edf2f7;
    }

    .login-page::before,
    .login-page::after {
        display: none;
    }

    .login-shell {
        justify-items: center;
        padding: 20px;
    }

    .login-card {
        max-width: 450px;
        padding: 31px 24px;
        border-radius: 22px;
    }

    .login-logo {
        width: 220px;
    }
}


/* Compact aligned topbar 20260802 */

.topbar-brand {
    width: 245px;
    min-width: 245px;
    flex: 0 0 245px;
    justify-content: flex-start;
    margin-left: -28px;
    padding: 0 23px;
    gap: 0;
    border-right: 1px solid #dbe4ee;
    border-radius: 0;
}

.topbar-logo {
    width: 195px;
    height: 57px;
    object-position: left center;
}

.product-label {
    display: none !important;
}

@media (max-width: 760px) {
    .topbar-brand {
        width: 180px;
        min-width: 180px;
        flex-basis: 180px;
        margin-left: -14px;
        padding: 0 17px;
        border-radius: 0 17px 17px 0;
    }

    .topbar-logo {
        width: 148px;
        height: 48px;
    }
}


/* Light NetPulse topbar 20260802 */

.topbar {
    border-bottom: 1px solid #d9e4ef;
    background:
        linear-gradient(
            105deg,
            #ffffff 0%,
            #f4f8ff 58%,
            #edfafa 100%
        );
    box-shadow:
        0 7px 24px rgba(30, 64, 175, 0.08);
}

.topbar-brand {
    background: transparent;
    border-right: 1px solid #dde7f0;
}

.admin-name {
    color: #263750;
}

.logout-button {
    border: 1px solid #c9d8eb;
    color: #1d4ed8;
    background: #ffffff;
    box-shadow:
        0 5px 14px rgba(37, 99, 235, 0.08);
}

.logout-button:hover {
    border-color: #93b4e2;
    color: #ffffff;
    background: #2563eb;
}


/* Topbar context and quick actions 20260802 */

.topbar-tools {
    min-width: 0;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 0 26px;
}

.topbar-context {
    min-width: 0;
}

.topbar-context strong,
.topbar-context span {
    display: block;
}

.topbar-context strong {
    color: #17243b;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.15px;
}

.topbar-context span {
    margin-top: 3px;
    color: #738198;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.55px;
    text-transform: uppercase;
}

.topbar-quick-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.topbar-action {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 11px;
    text-decoration: none;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 800;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.topbar-action:hover {
    transform: translateY(-1px);
}

.topbar-action.primary {
    color: #ffffff;
    background: #2563eb;
    box-shadow:
        0 7px 16px rgba(37, 99, 235, 0.18);
}

.topbar-action.primary:hover {
    background: #1d4ed8;
}

.topbar-action.secondary {
    border-color: #b9e1dc;
    color: #0f766e;
    background: #f0fdfa;
}

.topbar-action.secondary:hover {
    border-color: #75c9bf;
    background: #e2f8f4;
}

.admin-actions {
    flex: 0 0 auto;
}

@media (max-width: 1100px) {
    .topbar-context {
        display: none;
    }

    .topbar-tools {
        justify-content: flex-start;
    }
}

@media (max-width: 850px) {
    .topbar-tools {
        display: none;
    }
}

/* Integrated subtle topbar accents 20260802 */

.topbar {
    isolation: isolate;
    overflow: visible;
    background:
        radial-gradient(
            circle at 58% -105px,
            rgba(37, 99, 235, 0.11) 0,
            rgba(37, 99, 235, 0.11) 108px,
            transparent 109px
        ),
        radial-gradient(
            circle at 72% 168px,
            rgba(20, 184, 166, 0.09) 0,
            rgba(20, 184, 166, 0.09) 112px,
            transparent 113px
        ),
        linear-gradient(
            105deg,
            #ffffff 0%,
            #f5f9ff 58%,
            #eefaf8 100%
        );
}

.topbar::before {
    content: "";
    width: 150px;
    height: 150px;
    position: absolute;
    z-index: 0;
    top: -108px;
    right: 310px;
    border: 1px solid rgba(14, 165, 233, 0.13);
    border-radius: 50%;
    pointer-events: none;
}

.topbar::after {
    content: "";
    height: 2px;
    position: absolute;
    z-index: 0;
    right: 0;
    bottom: 0;
    left: 245px;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(37, 99, 235, 0.26),
            rgba(14, 165, 233, 0.22),
            rgba(20, 184, 166, 0.24),
            transparent
        );
    pointer-events: none;
}

.topbar > * {
    position: relative;
    z-index: 1;
}

.topbar-tools {
    justify-content: flex-start;
}

@media (max-width: 850px) {
    .topbar::before {
        display: none;
    }

    .topbar::after {
        left: 180px;
    }
}



/* Compact administrator account menu 20260802 */

.account-menu {
    position: relative;
    z-index: 50;
}

.account-trigger {
    display: flex;
    min-width: 170px;
    height: 52px;
    align-items: center;
    gap: 11px;
    padding: 6px 12px 6px 7px;
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 28px;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.94);
    cursor: pointer;
    box-shadow:
        0 7px 20px rgba(15, 23, 42, 0.08);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.account-trigger:hover,
.account-menu.open .account-trigger {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow:
        0 10px 26px rgba(15, 23, 42, 0.12);
    transform: translateY(-1px);
}

.account-avatar,
.account-dropdown-avatar {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #2563eb,
            #0ea5e9
        );
    font-weight: 800;
    text-transform: uppercase;
}

.account-avatar {
    width: 38px;
    height: 38px;
    font-size: 15px;
}

.account-trigger-text {
    display: grid;
    min-width: 0;
    gap: 2px;
    text-align: left;
}

.account-trigger-text strong {
    overflow: hidden;
    color: #0f172a;
    font-size: 13px;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-trigger-text small {
    color: #64748b;
    font-size: 10px;
    font-weight: 650;
}

.account-dropdown {
    width: 270px;
    position: absolute;
    top: calc(100% + 11px);
    right: 0;
    overflow: hidden;
    border: 1px solid #dce4ee;
    border-radius: 18px;
    background: #ffffff;
    box-shadow:
        0 22px 55px rgba(15, 23, 42, 0.18);
}

.account-dropdown[hidden] {
    display: none;
}

.account-dropdown-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
    background:
        linear-gradient(
            135deg,
            #f8fbff,
            #f4f9ff
        );
}

.account-dropdown-avatar {
    width: 44px;
    height: 44px;
    font-size: 16px;
}

.account-dropdown-profile div {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.account-dropdown-profile strong {
    overflow: hidden;
    color: #0f172a;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-dropdown-profile span {
    color: #64748b;
    font-size: 11px;
    font-weight: 650;
}

.account-dropdown-divider {
    height: 1px;
    background: #e8edf3;
}

.account-dropdown-item {
    display: flex;
    width: 100%;
    min-height: 49px;
    align-items: center;
    gap: 11px;
    padding: 0 17px;
    border: 0;
    color: #334155;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
    transition:
        color 0.18s ease,
        background 0.18s ease;
}

.account-dropdown-item:hover {
    color: #1d4ed8;
    background: #f1f6ff;
}

.account-dropdown-item.danger {
    color: #dc2626;
}

.account-dropdown-item.danger:hover {
    color: #b91c1c;
    background: #fff1f2;
}

.account-item-icon {
    display: inline-grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 9px;
    background: #f1f5f9;
    font-size: 13px;
}

.account-dropdown-item.danger
.account-item-icon {
    background: #fff1f2;
}

.account-logout-form {
    margin: 0;
    border-top: 1px solid #edf1f5;
}

/* Administrator change-password page */

.password-settings-card {
    width: 100%;
    max-width: 680px;
    overflow: hidden;
    border: 1px solid #dce4ee;
    border-radius: 22px;
    background: #ffffff;
    box-shadow:
        0 16px 40px rgba(15, 23, 42, 0.07);
}

.password-settings-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 24px 26px;
    border-bottom: 1px solid #e7edf3;
    background:
        linear-gradient(
            135deg,
            #f8fbff,
            #f3f8ff
        );
}

.password-settings-icon {
    display: inline-grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    border-radius: 14px;
    color: #1d4ed8;
    background: #e8f1ff;
    font-size: 19px;
}

.password-settings-header h2,
.password-settings-header p {
    margin: 0;
}

.password-settings-header h2 {
    color: #0f172a;
    font-size: 18px;
}

.password-settings-header p {
    margin-top: 5px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.password-settings-form {
    display: grid;
    gap: 20px;
    padding: 26px;
}

.password-form-group {
    display: grid;
    gap: 8px;
}

.password-form-group label {
    color: #334155;
    font-size: 13px;
    font-weight: 750;
}

.password-form-group input {
    width: 100%;
    height: 47px;
    padding: 0 14px;
    border: 1px solid #d7e0ea;
    border-radius: 12px;
    outline: none;
    color: #0f172a;
    background: #ffffff;
    font: inherit;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.password-form-group input:focus {
    border-color: #3b82f6;
    box-shadow:
        0 0 0 4px rgba(59, 130, 246, 0.12);
}

.field-error {
    color: #dc2626;
    font-size: 11px;
    font-weight: 650;
}

.password-requirements {
    padding: 13px 15px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    color: #1e40af;
    background: #eff6ff;
    font-size: 12px;
    line-height: 1.5;
}

.password-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 3px;
}

.password-cancel-button,
.password-save-button {
    display: inline-flex;
    min-height: 43px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 11px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}

.password-cancel-button {
    border: 1px solid #d8e0ea;
    color: #475569;
    background: #ffffff;
}

.password-save-button {
    border: 0;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #2563eb,
            #0ea5e9
        );
    box-shadow:
        0 10px 22px rgba(37, 99, 235, 0.22);
}

@media (max-width: 760px) {
    .account-trigger {
        min-width: auto;
        width: 44px;
        height: 44px;
        padding: 3px;
    }

    .account-avatar {
        width: 36px;
        height: 36px;
    }

    .account-trigger-text {
        display: none;
    }

    .account-dropdown {
        width: min(270px, calc(100vw - 28px));
    }

    .password-settings-header,
    .password-settings-form {
        padding: 20px;
    }

    .password-form-actions {
        flex-direction: column-reverse;
    }

    .password-cancel-button,
    .password-save-button {
        width: 100%;
    }
}


/* Account dropdown visibility fix 20260802 */

.topbar {
    overflow: visible !important;
    z-index: 1000;
}

.account-menu {
    position: relative;
    z-index: 1100;
}

.account-dropdown {
    z-index: 1200;
}


/* Account menu animation polish 20260802 */

.account-dropdown {
    display: block;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform:
        translateY(-9px)
        scale(0.975);
    transform-origin: top right;
    transition:
        opacity 0.18s ease,
        visibility 0.18s ease,
        transform 0.18s ease;
}

.account-menu.open .account-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform:
        translateY(0)
        scale(1);
}

.account-trigger {
    user-select: none;
}

.account-menu.open .account-avatar {
    box-shadow:
        0 0 0 4px rgba(37, 99, 235, 0.12);
}

.account-dropdown-item {
    position: relative;
}

.account-dropdown-item::after {
    content: "";
    width: 3px;
    height: 0;
    position: absolute;
    top: 50%;
    left: 0;
    border-radius: 0 4px 4px 0;
    background: #2563eb;
    transform: translateY(-50%);
    transition: height 0.18s ease;
}

.account-dropdown-item:hover::after {
    height: 24px;
}

.account-dropdown-item.danger::after {
    background: #dc2626;
}

@media (prefers-reduced-motion: reduce) {
    .account-dropdown,
    .account-trigger,
    .account-avatar,
    .account-dropdown-item::after {
        transition: none;
    }
}
