/* ============================================================
   Nagorik Pay — Admin / content design system
   Shared by every admin page (loaded from navbar.php) and by the
   public content pages. Plain CSS, no build step, no frameworks
   beyond the Bootstrap already used by the pages.
   ============================================================ */

:root {
    --np-navy: #0b1220;
    --np-navy-soft: #111c30;
    --np-blue: #2563eb;
    --np-blue-dark: #1d4ed8;
    --np-blue-soft: #eef4ff;
    --np-bg: #f5f7fb;
    --np-surface: #ffffff;
    --np-border: #e4e9f2;
    --np-border-strong: #d5dce9;
    --np-text: #0f172a;
    --np-muted: #64748b;
    --np-muted-2: #94a3b8;
    --np-green: #15803d;
    --np-green-soft: #dcfce7;
    --np-amber: #b45309;
    --np-amber-soft: #fef3c7;
    --np-red: #b91c1c;
    --np-red-soft: #fee2e2;
    --np-radius: 16px;
    --np-radius-sm: 12px;
    --np-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 10px 30px rgba(15, 23, 42, .05);
    --np-shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --np-font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

body {
    margin: 0;
    font-family: var(--np-font);
    background: var(--np-bg);
    color: var(--np-text);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--np-text);
    letter-spacing: -.015em;
}

a {
    color: var(--np-blue);
}

a:hover {
    color: var(--np-blue-dark);
}

.np-break {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* ------------------------------------------------------------
   Page shell
   ------------------------------------------------------------ */
.np-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 20px 56px;
}

.np-page--narrow {
    max-width: 780px;
}

.np-page--wide {
    max-width: 1320px;
}

.np-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
}

.np-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--np-blue);
    margin-bottom: 6px;
}

.np-page-title {
    font-size: clamp(1.35rem, 2.4vw, 1.65rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.np-page-sub {
    margin: 6px 0 0;
    color: var(--np-muted);
    font-size: .925rem;
    max-width: 70ch;
}

.np-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 575.98px) {
    .np-page {
        padding: 18px 14px 40px;
    }
    .np-page-head {
        margin-bottom: 18px;
    }
}

/* ------------------------------------------------------------
   Top bar (admin)
   ------------------------------------------------------------ */
.np-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 16px;
    background: var(--np-navy);
    color: #fff;
    z-index: 1035;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.np-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    min-width: 0;
}

.np-brand:hover {
    color: #fff;
}

.np-brand-mark {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 11px;
    background: var(--np-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, .35);
}

.np-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}

.np-brand-name {
    font-size: .975rem;
    font-weight: 700;
    letter-spacing: -.01em;
    white-space: nowrap;
}

.np-brand-sub {
    font-size: .66rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 600;
    white-space: nowrap;
}

.np-topbar-spacer {
    flex: 1 1 auto;
}

.np-topbar-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: .82rem;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 8px;
}

.np-topbar-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.np-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 5px 10px 5px 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .1);
    min-width: 0;
}

.np-avatar {
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    background: var(--np-blue);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
}

.np-user-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    min-width: 0;
}

.np-user-name {
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.np-user-role {
    font-size: .64rem;
    color: #94a3b8;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-weight: 600;
}

.np-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
}

.np-menu-btn:hover {
    background: rgba(255, 255, 255, .14);
}

/* ------------------------------------------------------------
   Sidebar (admin)
   ------------------------------------------------------------ */
.np-sidebar {
    position: fixed;
    top: 64px;
    bottom: 0;
    left: 0;
    width: 264px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 12px 24px;
    background: var(--np-surface);
    border-right: 1px solid var(--np-border);
    overflow-y: auto;
    z-index: 1030;
    transition: left .24s ease;
    scrollbar-width: thin;
}

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

.np-nav-group-label {
    padding: 14px 12px 6px;
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--np-muted-2);
}

.np-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    color: #334155;
    text-decoration: none;
    font-size: .875rem;
    font-weight: 500;
    line-height: 1.25;
    transition: background .15s ease, color .15s ease;
}

.np-nav-link i {
    width: 20px;
    flex: 0 0 20px;
    text-align: center;
    font-size: 16px;
    color: var(--np-muted);
}

.np-nav-link:hover {
    background: #f1f5f9;
    color: var(--np-navy);
}

.np-nav-link:hover i {
    color: var(--np-navy);
}

.np-nav-link.active {
    background: var(--np-blue-soft);
    color: var(--np-blue-dark);
    font-weight: 600;
    box-shadow: inset 3px 0 0 var(--np-blue);
}

.np-nav-link.active i {
    color: var(--np-blue);
}

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

.np-nav-link--danger {
    color: var(--np-red);
}

.np-nav-link--danger i {
    color: var(--np-red);
}

.np-nav-link--danger:hover {
    background: var(--np-red-soft);
    color: var(--np-red);
}

.np-nav-link--danger:hover i {
    color: var(--np-red);
}

.np-overlay {
    position: fixed;
    inset: 64px 0 0 0;
    background: rgba(2, 6, 23, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .24s ease, visibility .24s ease;
    z-index: 1032;
}

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

@media (max-width: 991.98px) {
    .np-sidebar {
        left: -300px;
        width: 284px;
        max-width: 86vw;
        z-index: 1034;
        box-shadow: 18px 0 40px rgba(2, 6, 23, .18);
    }
    .np-sidebar.is-open {
        left: 0;
    }
    .np-user-meta {
        display: none;
    }
}

@media (min-width: 992px) {
    .np-menu-btn {
        display: none;
    }
    .np-overlay {
        display: none;
    }
}

/* ------------------------------------------------------------
   Cards
   ------------------------------------------------------------ */
.np-card {
    background: var(--np-surface);
    border: 1px solid var(--np-border);
    border-radius: var(--np-radius);
    box-shadow: var(--np-shadow);
    overflow: hidden;
}

.np-card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--np-border);
    background: #fff;
}

.np-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: .975rem;
    font-weight: 700;
}

.np-card-title i {
    color: var(--np-blue);
}

.np-card-sub {
    margin: 3px 0 0;
    font-size: .8rem;
    color: var(--np-muted);
}

.np-card-body {
    padding: 20px;
}

.np-card-section {
    padding: 20px;
    border-top: 1px solid var(--np-border);
}

@media (max-width: 575.98px) {
    .np-card-head,
    .np-card-body,
    .np-card-section {
        padding: 16px;
    }
}

/* Bootstrap .card aligned with the design system */
.card {
    background: var(--np-surface);
    border: 1px solid var(--np-border);
    border-radius: var(--np-radius);
    box-shadow: var(--np-shadow);
}

.card-header {
    background: #fff;
    border-bottom: 1px solid var(--np-border);
    font-weight: 600;
    padding: 14px 20px;
}

.card-body {
    padding: 20px;
}

.card-footer {
    background: #fff;
    border-top: 1px solid var(--np-border);
}

/* ------------------------------------------------------------
   Hero (login + dashboard only)
   ------------------------------------------------------------ */
.np-hero {
    position: relative;
    overflow: hidden;
    border-radius: var(--np-radius);
    padding: 26px;
    color: #fff;
    background: linear-gradient(135deg, #0b1220 0%, #1e3a8a 100%);
    box-shadow: 0 18px 40px rgba(11, 18, 32, .18);
}

.np-hero::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -90px;
    top: -110px;
    border-radius: 50%;
    background: rgba(37, 99, 235, .28);
    pointer-events: none;
}

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

.np-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #93c5fd;
    margin-bottom: 8px;
}

.np-hero-title {
    margin: 0;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}

.np-hero-sub {
    margin: 8px 0 0;
    color: #cbd5e1;
    font-size: .925rem;
    max-width: 60ch;
}

@media (max-width: 575.98px) {
    .np-hero {
        padding: 20px;
    }
}

/* ------------------------------------------------------------
   Stat cards
   ------------------------------------------------------------ */
.np-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.np-stat {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: var(--np-surface);
    border: 1px solid var(--np-border);
    border-radius: var(--np-radius-sm);
    box-shadow: var(--np-shadow-sm);
    min-width: 0;
}

.np-stat-icon {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    background: var(--np-blue-soft);
    color: var(--np-blue);
}

.np-stat-icon--green {
    background: var(--np-green-soft);
    color: var(--np-green);
}

.np-stat-icon--amber {
    background: var(--np-amber-soft);
    color: var(--np-amber);
}

.np-stat-meta {
    min-width: 0;
}

.np-stat-label {
    font-size: .66rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--np-muted);
    margin-bottom: 3px;
}

.np-stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.15;
    color: var(--np-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.np-stat-hint {
    margin: 3px 0 0;
    font-size: .76rem;
    color: var(--np-muted);
    line-height: 1.3;
}

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

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

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
    border-radius: 10px;
    font-weight: 600;
    font-size: .9rem;
    padding: .55rem 1rem;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.btn-sm {
    border-radius: 8px;
    font-size: .78rem;
    padding: .34rem .62rem;
}

.btn-lg {
    border-radius: 12px;
    font-size: 1rem;
}

.btn-primary,
.btn-primary:focus {
    background-color: var(--np-blue);
    border-color: var(--np-blue);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:active {
    background-color: var(--np-blue-dark);
    border-color: var(--np-blue-dark);
    color: #fff;
}

.btn-outline-primary {
    color: var(--np-blue);
    border-color: #bfd3ff;
    background: #fff;
}

.btn-outline-primary:hover {
    background: var(--np-blue);
    border-color: var(--np-blue);
    color: #fff;
}

.btn-secondary {
    background-color: #eef2f7;
    border-color: #dfe5ef;
    color: #334155;
}

.btn-secondary:hover {
    background-color: #e2e8f0;
    border-color: #d5dce9;
    color: #0f172a;
}

.btn-outline-secondary {
    color: #475569;
    border-color: var(--np-border-strong);
    background: #fff;
}

.btn-outline-secondary:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: var(--np-border-strong);
}

.btn-success {
    background-color: #15803d;
    border-color: #15803d;
}

.btn-success:hover {
    background-color: #166534;
    border-color: #166534;
}

.btn-danger {
    background-color: #dc2626;
    border-color: #dc2626;
}

.btn-danger:hover {
    background-color: #b91c1c;
    border-color: #b91c1c;
}

.btn-warning {
    background-color: #f59e0b;
    border-color: #f59e0b;
    color: #3b2602;
}

.btn-warning:hover {
    background-color: #d97706;
    border-color: #d97706;
    color: #2a1a01;
}

.btn-info {
    background-color: var(--np-blue-soft);
    border-color: #c9dbff;
    color: var(--np-blue-dark);
}

.btn-info:hover {
    background-color: #dbe7ff;
    border-color: #b6cdff;
    color: var(--np-blue-dark);
}

.btn-light {
    background: #f8fafc;
    border-color: var(--np-border);
    color: #334155;
}

.btn-dark {
    background: var(--np-navy);
    border-color: var(--np-navy);
}

/* ------------------------------------------------------------
   Forms
   ------------------------------------------------------------ */
.form-label {
    font-size: .82rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: .4rem;
}

.form-control,
.form-select {
    border-radius: 10px;
    border: 1px solid var(--np-border-strong);
    background-color: #fff;
    color: var(--np-text);
    font-size: .9rem;
    padding: .58rem .8rem;
}

.form-control::placeholder,
.form-select::placeholder {
    color: var(--np-muted-2);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--np-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
    background-color: #fff;
}

.form-control:disabled,
.form-select:disabled {
    background-color: #f8fafc;
}

textarea.form-control {
    min-height: 96px;
}

.form-text {
    color: var(--np-muted);
    font-size: .78rem;
}

.form-check-input:checked {
    background-color: var(--np-blue);
    border-color: var(--np-blue);
}

.input-group-text {
    background: #f8fafc;
    border-color: var(--np-border-strong);
    border-radius: 10px;
    color: var(--np-muted);
}

/* ------------------------------------------------------------
   Tables
   ------------------------------------------------------------ */
.table {
    --bs-table-border-color: var(--np-border);
    --bs-table-color: var(--np-text);
    --bs-table-hover-bg: #f7faff;
    margin-bottom: 0;
    font-size: .875rem;
}

.table > :not(caption) > * > * {
    padding: .8rem 1rem;
    vertical-align: middle;
    border-bottom-color: var(--np-border);
}

.table > thead th {
    background: #f8fafc;
    color: var(--np-muted);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    white-space: nowrap;
    border-bottom: 1px solid var(--np-border);
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
    --bs-table-accent-bg: #fbfcff;
    background-color: #fbfcff;
}

.table-hover > tbody > tr:hover > * {
    background-color: #f6f9ff;
}

.table-responsive {
    border-radius: var(--np-radius-sm);
}

.table a {
    text-decoration: none;
}

.table a:hover {
    text-decoration: underline;
}

@media (max-width: 575.98px) {
    .table > :not(caption) > * > * {
        padding: .7rem .7rem;
    }
}

/* ------------------------------------------------------------
   Badges (status colours only)
   ------------------------------------------------------------ */
.badge {
    font-weight: 600;
    font-size: .72rem;
    letter-spacing: .01em;
    padding: .4em .68em;
    border-radius: 999px;
}

.badge.bg-success {
    background-color: var(--np-green-soft) !important;
    color: var(--np-green) !important;
}

.badge.bg-primary,
.badge.bg-info {
    background-color: var(--np-blue-soft) !important;
    color: var(--np-blue-dark) !important;
}

.badge.bg-secondary {
    background-color: #eef2f7 !important;
    color: #475569 !important;
}

.badge.bg-warning {
    background-color: var(--np-amber-soft) !important;
    color: var(--np-amber) !important;
}

.badge.bg-danger {
    background-color: var(--np-red-soft) !important;
    color: var(--np-red) !important;
}

.badge.bg-light {
    background-color: #f1f5f9 !important;
    color: #475569 !important;
}

.np-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: .34em .7em;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    background: #eef2f7;
    color: #475569;
    line-height: 1.1;
}

.np-badge--active {
    background: var(--np-green-soft);
    color: var(--np-green);
}

.np-badge--inactive {
    background: #eef2f7;
    color: #475569;
}

.np-badge--warning {
    background: var(--np-amber-soft);
    color: var(--np-amber);
}

.np-badge--danger {
    background: var(--np-red-soft);
    color: var(--np-red);
}

.np-badge--info {
    background: var(--np-blue-soft);
    color: var(--np-blue-dark);
}

/* ------------------------------------------------------------
   Alerts
   ------------------------------------------------------------ */
.alert {
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: .875rem;
    padding: .78rem 1rem;
}

.alert-success {
    background: var(--np-green-soft);
    border-color: #bbf7d0;
    color: #166534;
}

.alert-danger {
    background: var(--np-red-soft);
    border-color: #fecaca;
    color: #991b1b;
}

.alert-warning {
    background: var(--np-amber-soft);
    border-color: #fde68a;
    color: #92400e;
}

.alert-info {
    background: var(--np-blue-soft);
    border-color: #c7dbff;
    color: #1e40af;
}

.alert .btn-close {
    font-size: .7rem;
}

/* ------------------------------------------------------------
   Empty states
   ------------------------------------------------------------ */
.np-empty {
    text-align: center;
    padding: 48px 20px;
    color: var(--np-muted);
}

.np-empty-icon {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: #f1f5f9;
    color: var(--np-muted-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 14px;
}

.np-empty h3,
.np-empty h5 {
    margin: 0 0 6px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--np-text);
}

.np-empty p {
    margin: 0 auto;
    max-width: 380px;
    font-size: .88rem;
    line-height: 1.5;
}

/* ------------------------------------------------------------
   Notification history cards
   ------------------------------------------------------------ */
.np-notice {
    display: flex;
    flex-direction: column;
    background: var(--np-surface);
    border: 1px solid var(--np-border);
    border-radius: var(--np-radius);
    box-shadow: var(--np-shadow-sm);
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
}

.np-notice:hover {
    box-shadow: var(--np-shadow);
    transform: translateY(-2px);
}

.np-notice-media {
    background: #f8fafc;
    border-bottom: 1px solid var(--np-border);
}

.np-notice-media img {
    display: block;
    width: 100%;
    max-height: 260px;
    object-fit: cover;
}

.np-notice-body {
    padding: 18px 20px;
}

.np-notice-title {
    margin: 0 0 8px;
    font-size: 1.02rem;
    font-weight: 700;
}

.np-notice-text {
    margin: 0;
    color: #475569;
    font-size: .9rem;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.np-notice-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--np-border);
    color: var(--np-muted);
    font-size: .78rem;
}

@media (max-width: 575.98px) {
    .np-notice-body {
        padding: 16px;
    }
}

/* ------------------------------------------------------------
   Module cards
   ------------------------------------------------------------ */
.np-module-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.np-module-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    height: 100%;
    padding: 18px;
    background: var(--np-surface);
    border: 1px solid var(--np-border);
    border-radius: var(--np-radius);
    box-shadow: var(--np-shadow-sm);
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.np-module-card:hover {
    transform: translateY(-3px);
    border-color: #c7d7ff;
    box-shadow: var(--np-shadow);
}

.np-module-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.np-module-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 13px;
    background: var(--np-blue-soft);
    color: var(--np-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.np-version {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: .3em .65em;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid var(--np-border);
    color: #475569;
    font-size: .7rem;
    font-weight: 700;
    white-space: nowrap;
}

.np-module-name {
    margin: 14px 0 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}

@media (max-width: 1199.98px) {
    .np-module-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .np-module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .np-module-grid {
        grid-template-columns: 1fr;
    }
}

/* ------------------------------------------------------------
   Search box
   ------------------------------------------------------------ */
.np-search {
    position: relative;
}

.np-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--np-muted-2);
    font-size: 1rem;
    pointer-events: none;
}

.np-search .form-control {
    padding-left: 40px;
}

/* ------------------------------------------------------------
   Login / auth
   ------------------------------------------------------------ */
.np-auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--np-bg);
}

.np-auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--np-surface);
    border: 1px solid var(--np-border);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .12);
}

.np-auth-hero {
    padding: 28px 24px 26px;
    text-align: center;
    color: #fff;
    background: linear-gradient(135deg, #0b1220 0%, #1e3a8a 100%);
}

.np-auth-hero .np-brand-mark {
    margin: 0 auto 12px;
}

.np-auth-hero h1 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.np-auth-hero p {
    margin: 6px 0 0;
    font-size: .8rem;
    color: #cbd5e1;
}

.np-auth-main {
    padding: 24px;
}

.np-auth-foot {
    margin-top: 16px;
    text-align: center;
    font-size: .72rem;
    color: var(--np-muted);
}

@media (max-width: 575.98px) {
    .np-auth-body {
        padding: 16px;
    }
    .np-auth-hero {
        padding: 22px 18px;
    }
    .np-auth-main {
        padding: 18px;
    }
}

/* ------------------------------------------------------------
   Public content pages (catalog / support / app update)
   ------------------------------------------------------------ */
.np-public-bar {
    background: var(--np-navy);
    color: #fff;
}

.np-public-bar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.np-public-bar .np-brand-sub {
    color: #94a3b8;
}

.np-public-bar .np-topbar-link {
    color: #cbd5e1;
}

@media (max-width: 575.98px) {
    .np-public-bar-inner {
        padding: 12px 14px;
    }
}

/* Simple definition rows used by the app-update page */
.np-kv {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--np-border);
    font-size: .9rem;
}

.np-kv:last-child {
    border-bottom: 0;
}

.np-kv-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--np-muted);
    font-weight: 600;
}

.np-kv-value {
    font-weight: 700;
    text-align: right;
}

.np-changelog {
    background: #f8fafc;
    border: 1px solid var(--np-border);
    border-radius: 12px;
    padding: 14px 16px;
    max-height: 260px;
    overflow-y: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: .85rem;
    color: #334155;
    margin: 0;
    font-family: inherit;
}

/* Profile / logo preview */
.np-logo-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    border: 1px solid var(--np-border);
    background: #f8fafc;
    object-fit: cover;
}

/* Admin quick action tiles */
.np-tile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
    padding: 20px;
    background: var(--np-surface);
    border: 1px solid var(--np-border);
    border-radius: var(--np-radius);
    box-shadow: var(--np-shadow-sm);
    color: var(--np-text);
    text-decoration: none;
    transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}

.np-tile:hover {
    color: var(--np-text);
    transform: translateY(-3px);
    border-color: #c7d7ff;
    box-shadow: var(--np-shadow);
}

.np-tile-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--np-blue-soft);
    color: var(--np-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.np-tile h3 {
    margin: 0;
    font-size: .98rem;
    font-weight: 700;
}

.np-tile p {
    margin: 0;
    font-size: .82rem;
    color: var(--np-muted);
    line-height: 1.45;
}

.np-tile--danger {
    background: #fff7f7;
    border-color: #fecaca;
}

.np-tile--danger .np-tile-icon {
    background: var(--np-red-soft);
    color: var(--np-red);
}

/* ------------------------------------------------------------
   404
   ------------------------------------------------------------ */
.np-error-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--np-bg);
}

.np-error-card {
    width: 100%;
    max-width: 440px;
    text-align: center;
    padding: 36px 28px;
    background: var(--np-surface);
    border: 1px solid var(--np-border);
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .1);
}

.np-error-code {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.04em;
    color: var(--np-navy);
}

.np-error-card h1 {
    margin: 10px 0 8px;
    font-size: 1.25rem;
    font-weight: 700;
}

.np-error-card p {
    margin: 0 0 22px;
    color: var(--np-muted);
    font-size: .9rem;
    line-height: 1.5;
}

/* ------------------------------------------------------------
   Small helpers
   ------------------------------------------------------------ */
.np-muted {
    color: var(--np-muted) !important;
}

.min-w-0 {
    min-width: 0;
}

/* Public support channel rows */
.np-channel {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid var(--np-border);
    border-radius: 12px;
    color: var(--np-text);
    text-decoration: none;
    transition: background .15s ease, border-color .15s ease;
}

.np-channel:hover {
    background: #f8faff;
    border-color: #c7d7ff;
    color: var(--np-text);
}

.np-channel img {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--np-border);
}

/* Bootstrap modals aligned with the cards */
.modal-content {
    border: 1px solid var(--np-border);
    border-radius: var(--np-radius);
    box-shadow: 0 24px 60px rgba(15, 23, 42, .18);
}

.modal-header,
.modal-footer {
    border-color: var(--np-border);
    padding: 14px 20px;
}

.modal-body {
    padding: 20px;
}

.np-divider {
    height: 1px;
    background: var(--np-border);
    border: 0;
    margin: 20px 0;
}

.np-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
}

.np-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

@media (max-width: 575.98px) {
    .np-form-actions {
        flex-direction: column-reverse;
        align-items: stretch;
    }
    .np-form-actions .btn {
        width: 100%;
    }
}
