﻿/* ============================================================
   BioScan License Portal - Global theme
   All page-level styling derives from the tokens below.
   Page components SHOULD use the .lp-* classes rather than
   defining their own colors / spacing / shadows.
   ============================================================ */

:root {
    --primary:       #8B88E8;
    --primary-dark:  #6F6CD1;
    --primary-soft:  #E9E8FF;

    --accent:        #9EDC29;
    --accent-dark:   #8AC11F;

    --bg:            #F5F6FA;
    --card:          #FFFFFF;
    --border:        #E5E7EB;

    --text-dark:     #1F2937;
    --text-light:    #6B7280;

    --danger:        #DC2626;
    --warning:       #F59E0B;
    --success:       #16A34A;
    --info:          #0EA5E9;

    --radius-sm:     8px;
    --radius-md:     12px;
    --radius-lg:     16px;
    --radius-xl:     20px;

    --shadow-sm:     0 4px 12px rgba(31, 41, 55, 0.06);
    --shadow-md:     0 10px 30px rgba(31, 41, 55, 0.08);
    --shadow-lg:     0 24px 80px rgba(31, 41, 55, 0.12);
}

/* ----- Base ----- */
html, body {
    height: 100%;
    margin: 0;
}

body {
    background: var(--bg);
    color: var(--text-dark);
    font-family: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-font-smoothing: antialiased;
}

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

/* ============================================================
   App shell, sidebar, topbar (used by MainLayout)
   ============================================================ */

.lp-app-shell {
    display: flex;
    min-height: 100vh;
    background: var(--bg);
}

.lp-sidebar {
    width: 252px;
    flex-shrink: 0;
    margin: 16px 0 16px 16px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.lp-sidebar-brand {
    padding: 22px 18px 14px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.lp-sidebar-brand img {
    max-width: 168px;
    height: auto;
}

.lp-sidebar-brand .lp-tagline {
    margin-top: 8px;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--text-light);
    text-transform: uppercase;
}

.lp-sidebar-nav {
    padding: 14px 12px;
    flex: 1;
    overflow-y: auto;
}

.lp-sidebar-footer {
    padding: 14px 18px;
    border-top: 1px solid var(--border);
    color: var(--text-light);
    font-size: 12px;
    text-align: center;
}

/* Nav items inside the sidebar */
.lp-nav { display: flex; flex-direction: column; gap: 4px; }

.lp-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-md);
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.15s ease, color 0.15s ease;
}

.lp-nav-link i {
    font-size: 17px;
    width: 18px;
    text-align: center;
}

.lp-nav-link:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.lp-nav-link.active {
    background: var(--primary-soft);
    color: var(--primary-dark);
    box-shadow: inset 3px 0 0 var(--primary);
}

/* Topbar (right of sidebar) */
.lp-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 16px 16px 16px 16px;
}

.lp-topbar {
    height: 64px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    margin-bottom: 16px;
}

.lp-topbar-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 0.4px;
}

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

.lp-topbar-user {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-light);
    font-size: 13px;
}

.lp-content {
    flex: 1;
    overflow-y: auto;
    padding: 6px 6px 24px;
}

/* ============================================================
   Cards & layout primitives
   ============================================================ */

.lp-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 22px;
}

.lp-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: -22px -22px 18px;
    padding: 16px 22px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #fbfbff 0%, #ffffff 100%);
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

.lp-card-header h5,
.lp-card-header h4,
.lp-card-header h3 {
    margin: 0;
    font-weight: 700;
    color: var(--text-dark);
}

.lp-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.lp-page-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    margin: 0 0 6px;
    letter-spacing: 0.2px;
}

.lp-page-subtitle {
    color: var(--text-light);
    font-size: 14px;
    margin: 0 0 18px;
}

/* ============================================================
   Stat cards
   ============================================================ */

.lp-stat-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    height: 100%;
}

.lp-stat-card .lp-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.lp-stat-card .lp-stat-body { line-height: 1.15; }

.lp-stat-card .lp-stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    font-weight: 700;
}

.lp-stat-card .lp-stat-value {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-dark);
    margin-top: 4px;
}

/* Variants - colour the icon tile, keep the card neutral. */
.lp-stat-card.lp-stat--primary .lp-stat-icon { background: var(--primary-soft);          color: var(--primary-dark); }
.lp-stat-card.lp-stat--success .lp-stat-icon { background: rgba(22, 163, 74, 0.12);      color: var(--success); }
.lp-stat-card.lp-stat--warning .lp-stat-icon { background: rgba(245, 158, 11, 0.14);     color: var(--warning); }
.lp-stat-card.lp-stat--danger  .lp-stat-icon { background: rgba(220, 38, 38, 0.12);      color: var(--danger);  }
.lp-stat-card.lp-stat--muted   .lp-stat-icon { background: rgba(107, 114, 128, 0.14);    color: #6b7280; }
.lp-stat-card.lp-stat--dark    .lp-stat-icon { background: rgba(33, 37, 41, 0.14);       color: #212529; }
.lp-stat-card.lp-stat--info    .lp-stat-icon { background: rgba(14, 165, 233, 0.12);     color: var(--info);    }
.lp-stat-card.lp-stat--accent  .lp-stat-icon { background: rgba(158, 220, 41, 0.18);     color: var(--accent-dark); }

/* ============================================================
   Buttons
   ============================================================ */

.lp-btn-primary,
.lp-btn-accent,
.lp-btn-ghost,
.lp-btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    padding: 0 18px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 14px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    text-decoration: none;
}

.lp-btn-primary {
    background: var(--primary);
    color: #fff;
}
.lp-btn-primary:hover {
    background: var(--primary-dark);
    color: #fff;
}

.lp-btn-accent {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 20px rgba(158, 220, 41, 0.20);
}
.lp-btn-accent:hover {
    background: var(--accent-dark);
    color: #fff;
}

.lp-btn-ghost {
    background: transparent;
    color: var(--primary-dark);
    border-color: var(--border);
}
.lp-btn-ghost:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.lp-btn-danger {
    background: var(--danger);
    color: #fff;
}
.lp-btn-danger:hover {
    background: #B91C1C;
    color: #fff;
}

.lp-btn-sm {
    height: 32px;
    padding: 0 12px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

.lp-btn-primary:disabled,
.lp-btn-accent:disabled,
.lp-btn-ghost:disabled,
.lp-btn-danger:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

/* ============================================================
   Tables
   ============================================================ */

.lp-table-wrap {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.lp-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 0;
    font-size: 14px;
}

.lp-table thead th {
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 12px 16px;
    border: none;
    text-align: left;
}

.lp-table tbody td {
    padding: 13px 16px;
    border-top: 1px solid var(--border);
    color: var(--text-dark);
    vertical-align: middle;
}

.lp-table tbody tr:hover td { background: #FAFAFE; }

.lp-table.lp-table--striped tbody tr:nth-child(odd) td {
    background: rgba(249, 250, 251, 0.85);
}

.lp-table.lp-table--striped tbody tr:nth-child(odd):hover td {
    background: #FAFAFE;
}

.lp-sortable-th {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.lp-sortable-th:hover {
    background: rgba(139, 136, 232, 0.12) !important;
}

.lp-sortable-th--active .lp-sortable-th__label {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lp-sortable-th__arrow {
    margin-left: 6px;
    font-size: 11px;
    opacity: 0.9;
}

.lp-sortable-th__hint {
    margin-left: 4px;
    font-size: 10px;
    opacity: 0.35;
}

.lp-cell-numeric {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.lp-truncate {
    max-width: 12rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: bottom;
}

.lp-empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--text-light);
}

.lp-empty-state .bi {
    font-size: 2.25rem;
    opacity: 0.35;
    display: block;
    margin-bottom: 0.75rem;
}

.lp-report-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1rem;
    margin-bottom: 0.5rem;
}

.lp-report-filters .lp-report-filters__field {
    flex: 1 1 140px;
    min-width: 120px;
    max-width: 220px;
}

.lp-report-filters__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-left: auto;
}

/* Dashboard distribution stat accents (issuer + organisation) */
.lp-stat-card.lp-stat--dist-lcu .lp-stat-icon {
    background: rgba(13, 110, 253, 0.14);
    color: #0d6efd;
}

.lp-stat-card.lp-stat--dist-user .lp-stat-icon {
    background: rgba(13, 202, 240, 0.18);
    color: #0aa2c0;
}

.lp-stat-card.lp-stat--dist-portal .lp-stat-icon {
    background: rgba(25, 135, 84, 0.14);
    color: #198754;
}

.lp-stat-card.lp-stat--dist-expired .lp-stat-icon {
    background: rgba(220, 53, 69, 0.14);
    color: #dc3545;
}

.lp-stat-card.lp-stat--dist-revoked .lp-stat-icon {
    background: rgba(33, 37, 41, 0.12);
    color: #212529;
}

.lp-stat-card.lp-stat--dist-pending .lp-stat-icon {
    background: rgba(253, 126, 20, 0.16);
    color: #fd7e14;
}

.lp-stat-card.lp-stat--dist-pool .lp-stat-icon {
    background: rgba(108, 117, 125, 0.16);
    color: #6c757d;
}

.lp-chart-card canvas {
    max-height: 260px;
}

.lp-table .lp-actions {
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* User Management: keep each row on one line; scroll horizontally if needed */
.lp-user-mgmt-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.lp-user-mgmt-table-wrap .lp-table {
    width: max-content;
    min-width: 100%;
}

.lp-user-mgmt-table-wrap .lp-table thead th,
.lp-user-mgmt-table-wrap .lp-table tbody td {
    white-space: nowrap;
    vertical-align: middle;
}

.lp-user-mgmt-table-wrap .lp-table .lp-actions {
    flex-wrap: nowrap;
}

/* ============================================================
   Badges
   ============================================================ */

.lp-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.lp-badge.lp-badge--success { background: rgba(22, 163, 74, 0.12); color: var(--success); }
.lp-badge.lp-badge--warning { background: rgba(245, 158, 11, 0.16); color: #B45309; }
.lp-badge.lp-badge--danger  { background: rgba(220, 38, 38, 0.12); color: var(--danger);  }
.lp-badge.lp-badge--neutral { background: #F1F5F9;                 color: #475569;        }
.lp-badge.lp-badge--info    { background: rgba(14, 165, 233, 0.12); color: var(--info);   }

/* ============================================================
   Form controls
   ============================================================ */

.lp-form-label {
    display: block;
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 7px;
}

.lp-form-control,
.lp-input,
.lp-textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 11px 14px;
    font-size: 15px;
    color: var(--text-dark);
    background: #fff;
}

.lp-input { height: 46px; }

.lp-form-control:focus,
.lp-input:focus,
.lp-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 0.15rem rgba(139, 136, 232, 0.22);
}

.lp-search {
    position: relative;
}
.lp-search .bi {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: var(--text-light);
    pointer-events: none;
}
.lp-search .lp-input { padding-left: 40px; }

/* ============================================================
   Alerts / banners (lightweight, complements Bootstrap)
   ============================================================ */

.lp-alert {
    border-radius: var(--radius-md);
    padding: 12px 14px;
    font-size: 14px;
    border: 1px solid transparent;
    margin-bottom: 14px;
}

.lp-alert--danger  { background: rgba(220, 38, 38, 0.07); border-color: rgba(220, 38, 38, 0.25); color: #991B1B; }
.lp-alert--warning { background: rgba(245, 158, 11, 0.10); border-color: rgba(245, 158, 11, 0.30); color: #92400E; }
.lp-alert--success { background: rgba(22, 163, 74, 0.08); border-color: rgba(22, 163, 74, 0.25); color: #166534; }
.lp-alert--info    { background: var(--primary-soft);     border-color: rgba(139, 136, 232, 0.30); color: var(--primary-dark); }

/* ============================================================
   Misc
   ============================================================ */

.lp-json {
    font-size: 12.5px;
    color: var(--text-dark);
    background: #FAFAFE;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    max-width: 520px;
}

/* Audit log details (jsonb) — readable key/value layout */
.audit-details-view {
    max-width: 440px;
}

.audit-details {
    display: grid;
    gap: 4px;
    min-width: 260px;
}

.audit-detail-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 8px;
    padding: 4px 0;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

.audit-detail-row:last-child {
    border-bottom: none;
}

.audit-detail-key {
    font-weight: 600;
    color: #64748b;
}

.audit-detail-value {
    color: #0f172a;
    word-break: break-word;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12.5px;
}

.audit-details-empty {
    color: #94a3b8;
}

.audit-details-fallback {
    margin: 0;
    font-size: 12px;
    color: #64748b;
    background: #f1f5f9;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 6px;
    padding: 8px 10px;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 160px;
    overflow: auto;
}

/* SIEM-style audit tables + event badges */
.lp-audit-action-badge {
    font-weight: 600;
    font-size: 11px;
    line-height: 1.35;
    padding: 0.4em 0.75em;
    max-width: 15rem;
    white-space: normal;
    text-align: left;
    hyphens: auto;
}

.lp-audit-metric-strip .lp-stat-card {
    min-height: 100%;
}

.lp-table.lp-table--audit-rows {
    border-collapse: separate;
    border-spacing: 0;
}

.lp-table.lp-table--audit-rows thead th {
    border-bottom: 2px solid rgba(15, 23, 42, 0.1);
    padding: 10px 12px;
}

.lp-table.lp-table--audit-rows tbody tr {
    border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}

.lp-table.lp-table--audit-rows tbody tr:last-child {
    border-bottom: none;
}

.lp-table.lp-table--audit-rows tbody tr:hover td {
    background: rgba(248, 250, 252, 0.98);
}

.lp-table.lp-table--audit-rows tbody td {
    vertical-align: top;
    padding: 12px 12px;
}

.lp-table th.col-audit-details,
.lp-table td.col-audit-details {
    min-width: 280px;
    max-width: 460px;
    width: 28%;
}

.lp-modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    z-index: 1040;
}
.lp-modal {
    position: fixed; inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.lp-modal-card {
    width: 100%;
    max-width: 460px;
    background: var(--card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.lp-modal-card .lp-modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center;
}
.lp-modal-card .lp-modal-body   { padding: 18px 20px; color: var(--text-dark); }
.lp-modal-card .lp-modal-footer { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 900px) {
    .lp-app-shell { flex-direction: column; }
    .lp-sidebar {
        width: auto;
        margin: 12px 12px 0;
    }
    .lp-sidebar-nav { padding: 8px; }
    .lp-main { padding: 12px; }
}

/* ============================================================
   Top navigation (horizontal) - replaces the sidebar layout in
   MainLayout.razor. Palette mirrors Login.razor: white card,
   primary-soft hover pill, accent-coloured CTA.
   ============================================================ */

.lp-app-shell--topnav {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--bg);
}

.lp-topnav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 28px;
    height: 68px;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.lp-topnav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 800;
    font-size: 16px;
    flex-shrink: 0;
}

.lp-topnav-brand img {
    height: 36px;
    width: auto;
}

.lp-topnav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    margin: 0 24px;
    /* overflow:auto clips absolutely-positioned .dropdown-menu (Bootstrap + Popper) */
    overflow: visible;
    min-width: 0;
}

/* NavMenu: dropdown triggers match top nav links; menus sit above page content */
.lp-topnav-links .nav-group.dropdown {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.lp-topnav-dropdown-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: var(--radius-md);
    color: var(--text-light);
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
    border: none;
    background: transparent;
    line-height: 1.2;
}

.lp-topnav-dropdown-btn i { font-size: 16px; }

.lp-topnav-dropdown-btn:hover,
.lp-topnav-dropdown-btn:focus-visible {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.lp-topnav-dropdown-btn.dropdown-toggle::after {
    margin-left: 0.35em;
    vertical-align: 0.15em;
}

.lp-topnav-links .dropdown-menu {
    min-width: 12rem;
    border-radius: var(--radius-md);
    margin-top: 6px !important;
    z-index: 2000;
}

.lp-topnav-links .dropdown-item.nav-link.sub-link {
    font-weight: 600;
    font-size: 14px;
    padding: 8px 16px;
    color: var(--text-dark);
}

.lp-topnav-links .dropdown-item.nav-link.sub-link:hover,
.lp-topnav-links .dropdown-item.nav-link.sub-link:focus {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.lp-topnav-links .dropdown-item.nav-link.sub-link.active {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.lp-topnav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: var(--radius-md);
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    transition: background 0.15s ease, color 0.15s ease;
    border: none;
    background: transparent;
}

.lp-topnav-link i { font-size: 16px; }

.lp-topnav-link:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.lp-topnav-link.active {
    background: var(--primary-soft);
    color: var(--primary-dark);
    box-shadow: inset 0 -2px 0 var(--primary);
}

.lp-topnav-link.disabled {
    color: #B0B6C0;
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.85;
}

.lp-topnav-link .soon {
    font-size: 10px;
    font-weight: 700;
    background: #F1F5F9;
    color: #64748B;
    padding: 2px 6px;
    border-radius: 999px;
    margin-left: 6px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.lp-topnav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.lp-topnav-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-dark);
    background: var(--primary-soft);
    font-weight: 700;
    font-size: 13px;
    padding: 7px 12px;
    border-radius: var(--radius-md);
}

.lp-topnav-user i { font-size: 16px; }

.lp-page {
    flex: 1;
    padding: 28px 32px 40px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 1024px) {
    .lp-topnav { padding: 0 14px; }
    .lp-topnav-links { margin: 0 12px; gap: 2px; }
    .lp-topnav-link { padding: 8px 10px; font-size: 13px; }
    .lp-topnav-brand-text { display: none; }
    .lp-page { padding: 18px 14px 32px; }
}

@media (max-width: 720px) {
    .lp-topnav { flex-wrap: wrap; height: auto; padding: 10px 14px; gap: 8px; }
    .lp-topnav-links { width: 100%; order: 3; margin: 8px 0 4px; }
    .lp-topnav-actions { margin-left: auto; }
    .lp-topnav-user span { display: none; }
}
