:root {
    /* Institutional Swiss Palette - High Contrast */
    --primary: #0E1A2B;       /* Deep Navy - Institutional Authority */
    --primary-dark: #091222;  /* Darker Navy */
    --primary-light: #162A40; /* Lighter Navy for interactions */
    
    --accent: #334155;        /* Slate Blue - Serious & Professional */
    --accent-hover: #1e293b;
    --accent-text: #334155;   /* Slate Blue Text */
    
    /* Text Colors - Maximum Contrast */
    --text-main: #111111;      /* Dark Charcoal - On White */
    --text-secondary: #1f2937; /* Dark Slate - Secondary Info */
    --text-muted: #374151;     /* Darker Meta Info */
    --text-inverse: #ffffff;  /* White - On Dark Backgrounds */
    
    --white: #ffffff;         /* Pure White */
    --off-white: #F5F7FA;     /* Very Light Grey */
    --black: #000000;
    
    /* Functional Colors */
    --success: #15803d;       /* Accessible Green */
    --error: #b91c1c;         /* Accessible Red */
    --warning: #a16207;       /* Accessible Yellow/Orange */
    --info: #1d4ed8;          /* Accessible Blue */
    
    --border: #e5e7eb;        /* Light Gray Border */
    --border-soft: #f3f4f6;   /* Very Light Border */
    --border-strong: #d1d5db; /* Stronger Border */
    
    /* Backgrounds */
    --bg-body: #ffffff;       /* Pure White default */
    --bg-dark: #0E1A2B;       /* Deep Institutional Navy Section Background */
    --bg-secondary: #F5F7FA;  /* Very Light Grey Section Background */
    --bg-card: #ffffff;
    
    /* Typography - Institutional Hierarchy */
    /* Headings: Strong Serif for Authority */
    --font-heading: 'Spectral', 'Times New Roman', Times, serif;
    
    /* Body: Clean Sans-Serif for Readability */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    /* Spacing & Layout */
    --radius-sm: 0px;         /* No rounded corners - Strict Institutional Look */
    --radius-md: 0px;         /* No rounded corners */
    --radius-lg: 0px;         /* No rounded corners */
    --spacing-unit: 1rem;
    --container-width: 1280px;
    --container-padding: 2rem;
    --section-padding: 7rem;
    
    /* Effects */
    --transition: all 0.2s ease-in-out;
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
    --focus-ring: 0 0 0 2px var(--primary);
}

@media (max-width: 900px) {
    :root {
        --section-padding: 5.5rem;
        --container-padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    :root {
        --section-padding: 4.75rem;
        --container-padding: 1.25rem;
    }
}

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary); /* Deep Navy Headings */
    margin: 0 0 1.25rem 0;
    line-height: 1.3;
    font-weight: 700; /* Bold Authority */
    letter-spacing: -0.01em;
}

/* Specific Heading Sizes - High Contrast */
h1 { font-size: 3.25rem; letter-spacing: -0.02em; color: var(--primary); }
h2 { font-size: 2.5rem; letter-spacing: -0.015em; }
h3 { font-size: 1.9rem; font-weight: 700; }
h4 { font-size: 1.45rem; font-weight: 700; }
h5 { font-size: 1.2rem; font-weight: 700; }
h6 { font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--font-main); font-weight: 800; color: var(--text-muted); }

p {
    margin-bottom: 1.5rem;
    color: var(--text-main);
    font-size: 1.125rem; /* 18px base size for better readability */
    line-height: 1.7;    /* Relaxed line height */
    font-weight: 400;    /* No thin weights */
    max-width: 75ch;     /* Optimal reading length */
}

@media (max-width: 576px) {
    h1 { font-size: 2.6rem; }
    h2 { font-size: 2.1rem; }
    h3 { font-size: 1.6rem; }
    p { font-size: 1.05rem; margin-bottom: 1.25rem; }
}

/* Links */
a { color: var(--primary); text-decoration: none; transition: var(--transition); font-weight: 600; }
a:hover { color: var(--info); text-decoration: underline; } /* Accessible Blue on Hover */

::placeholder { color: var(--text-muted); opacity: 0.85; }

/* Utility Classes for Backgrounds */
.bg-dark { background-color: var(--bg-dark); color: var(--text-inverse); }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6 { color: var(--text-inverse); }
.bg-dark p { color: var(--bg-secondary); } /* High contrast light text on dark bg */
.bg-dark .text-muted { color: var(--bg-secondary) !important; }
.bg-light { background-color: var(--bg-secondary); }
.bg-navy { background-color: var(--primary); color: var(--white); }
.bg-navy-light { background-color: var(--primary-light); }
.bg-black { background-color: #000000 !important; color: #ffffff; }

/* Text Utilities */
/* Removed text-gold */
.text-white { color: var(--text-inverse) !important; }
.text-navy { color: var(--primary) !important; }
.text-white-50 { color: #DDE7F2 !important; opacity: 1 !important; } /* Solid light text */
.text-slate-light { color: #DDE7F2 !important; }
.hover-white:hover { color: var(--white) !important; }
.hover-bg-navy-light:hover { background-color: var(--primary-light) !important; }
.hover-text-navy:hover { color: var(--primary) !important; }
.hover-bg-white:hover { background-color: var(--white) !important; }


button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; box-shadow: var(--focus-ring); }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus { -webkit-text-fill-color: var(--text-main); box-shadow: 0 0 0 1000px var(--white) inset; border: 1px solid var(--border-strong); }
ul { list-style: none; }

/* Content Readability - Lists */
.content-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.content-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.content-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: var(--radius-sm); /* Sharp bullets */
}

/* Fortress UI Components - High Security Aesthetic */

/* Fortress Card */
.card-fortress {
    border: 1px solid var(--primary);
    border-radius: 0;
    box-shadow: none;
    background-color: var(--white);
    margin-bottom: 1.5rem;
}

.card-fortress .card-header {
    background-color: var(--primary);
    color: var(--white);
    border-bottom: 1px solid var(--primary);
    padding: 1rem 1.5rem;
    border-radius: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-fortress .card-title {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 1.1rem;
    margin: 0;
    color: var(--white);
}

.card-fortress .card-body {
    padding: 0;
}

/* Fortress Table */
.table-fortress {
    width: 100%;
    margin-bottom: 0;
    border-collapse: collapse;
}

.table-fortress th {
    background-color: var(--bg-secondary);
    color: var(--primary);
    font-family: var(--font-main);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    padding: 1rem 1.5rem;
    border-bottom: 2px solid var(--primary);
    border-top: none;
}

.table-fortress td {
    padding: 1rem 1.5rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--border);
    font-family: var(--font-main);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.table-fortress tr:last-child td {
    border-bottom: none;
}

.table-fortress tr:hover td {
    background-color: var(--bg-secondary);
}

/* Fortress Badge */
.badge-fortress {
    border-radius: 0;
    padding: 0.35em 0.65em;
    font-family: monospace;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
    font-size: 0.75rem;
    border: 1px solid currentColor;
}

.badge-fortress.badge-success { color: var(--success); background-color: transparent; border-color: var(--success); }
.badge-fortress.badge-warning { color: var(--warning); background-color: transparent; border-color: var(--warning); }
.badge-fortress.badge-danger { color: var(--error); background-color: transparent; border-color: var(--error); }
.badge-fortress.badge-info { color: var(--info); background-color: transparent; border-color: var(--info); }
.badge-fortress.badge-neutral { color: var(--text-muted); background-color: transparent; border-color: var(--text-muted); }

/* Fortress Button */
.btn-fortress {
    border-radius: 0;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    transition: all 0.2s ease;
    border: 1px solid var(--primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-fortress-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-fortress-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

.btn-fortress-outline {
    background-color: transparent;
    color: var(--primary);
}

.btn-fortress-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

.btn-fortress-danger {
    border-color: var(--error);
    color: var(--error);
    background-color: transparent;
}

.btn-fortress-danger:hover {
    background-color: var(--error);
    color: var(--white);
}

/* Monospace Data */
.font-mono-data {
    font-family: monospace;
    font-size: 0.85rem;
    letter-spacing: -0.02em;
}

.icon-text {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}
.icon-text i {
    color: var(--accent);
    flex-shrink: 0;
    line-height: 1;
}

/* Paragraph Spacing Enforcement */
p + p {
    margin-top: 1.5rem;
}

img { max-width: 100%; height: auto; display: block; }

/* Selection */
::selection { background: var(--accent-text); color: var(--white); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: var(--radius-sm); border: 2px solid var(--bg-secondary); }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Utilities */
.text-center { text-align: center; }
.text-right { text-align: right; }
.flex { display: flex !important; }
.border-start { border-left: 1px solid var(--border) !important; }

/* Structural Layout & Grid System */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.measure { max-width: 72ch; }
.measure-sm { max-width: 60ch; }
.measure-xs { max-width: 40ch; }

.panel-sm { max-width: 480px; width: 100%; }
.panel-md { max-width: 640px; width: 100%; }

.mx-auto { margin-left: auto; margin-right: auto; }
.whitespace-nowrap { white-space: nowrap; }
.font-mono { font-family: monospace; }
.text-dark { color: var(--text-main) !important; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.mb-6 { margin-bottom: 3rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.h-fit { height: fit-content; }

.card {
    background: var(--white);
    border: 1px solid var(--border-strong);
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.card-title {
    margin: 0;
    font-family: var(--font-heading);
    color: var(--primary);
    letter-spacing: 0.02em;
    font-weight: 800;
    font-size: 1.05rem;
}

.card-body { padding: 1.5rem; }

.admin-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    background: var(--bg-secondary);
}

.admin-sidebar {
    background: var(--bg-dark);
    border-right: 1px solid var(--primary-light);
    padding: 1.75rem 1.25rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: auto;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.95rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--primary-light);
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.admin-nav .nav-label {
    margin-top: 1.25rem;
    margin-bottom: 0.35rem;
    color: #DDE7F2;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 800;
    opacity: 0.9;
    font-family: var(--font-main);
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    color: #DDE7F2;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    font-size: 0.75rem;
    border: 1px solid transparent;
}

.admin-nav a:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: var(--white);
}

.admin-nav a.active {
    background: transparent;
    border-color: #DDE7F2;
    color: var(--white);
}

.admin-nav-spacer { margin-top: auto; }

.admin-nav-logout {
    margin-top: 0.75rem;
    border-color: rgba(221, 231, 242, 0.35) !important;
}

.admin-main { min-width: 0; }

.admin-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem var(--container-padding);
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
}

.admin-content {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 2rem var(--container-padding) 4rem;
}

.client-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    background: var(--bg-secondary);
}

.client-sidebar {
    background: var(--bg-dark);
    border-right: 1px solid var(--primary-light);
    padding: 1.75rem 1.25rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: auto;
}

.client-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.95rem;
    padding-bottom: 1.25rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--primary-light);
}

.client-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.client-nav a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    color: #DDE7F2;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    font-size: 0.75rem;
    border: 1px solid transparent;
}

.client-nav a:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: var(--white);
}

.client-nav a.active {
    background: transparent;
    border-color: #DDE7F2;
    color: var(--white);
}

.client-nav-separator {
    margin: 1.25rem 0;
    border-top: 1px solid var(--primary-light);
    opacity: 0.8;
}

.client-nav-logout {
    margin-top: 0.75rem;
    border-color: rgba(221, 231, 242, 0.35) !important;
}

.client-main {
    min-width: 0;
    background: var(--bg-body);
    padding: 2rem var(--container-padding) 4rem;
}

.client-main > * {
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.client-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-bottom: 1.25rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.session-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
    font-size: 0.75rem;
    color: var(--primary);
    font-family: var(--font-main);
}

.client-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-profile {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding-left: 1rem;
    border-left: 1px solid var(--border);
}

.avatar {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border-strong);
    background: var(--bg-secondary);
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-name {
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
}

.profile-role {
    font-size: 0.85rem;
}

@media (max-width: 992px) {
    .admin-layout,
    .client-layout { grid-template-columns: 1fr; }
    .admin-sidebar,
    .client-sidebar {
        position: relative;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--primary-light);
    }
}

body.no-scroll { overflow: hidden; }

.top-bar {
    background: #000000;
    border-bottom: 1px solid var(--primary-light);
    color: #DDE7F2;
    font-family: monospace;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 0.5rem 0;
}

.top-bar-left,
.top-bar-right {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    flex-wrap: wrap;
}

.top-bar i {
    margin-right: 0.4rem;
    color: #DDE7F2;
}

.top-bar-secure {
    color: var(--success);
    font-weight: 800;
}

@media (max-width: 992px) {
    .top-bar { display: none; }
}

.site-header {
    background-color: var(--bg-dark);
    border-bottom: 1px solid var(--primary-light);
}

.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    padding: 1.25rem 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
    text-decoration: none;
}

.brand img {
    height: 34px;
    filter: brightness(0) invert(1);
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.brand-name {
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    font-size: 1.1rem;
}

.brand-subtitle {
    color: #DDE7F2;
    font-family: var(--font-main);
    text-transform: uppercase;
    letter-spacing: 0.22em;
    font-weight: 800;
    line-height: 1;
    font-size: 0.65rem;
}

.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: var(--white);
    border: 1px solid var(--primary-light);
    border-radius: 0;
    cursor: pointer;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.site-nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.site-nav-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-left: 2rem;
    margin-left: 2rem;
    border-left: 1px solid var(--primary-light);
}

.site-nav-link {
    color: #DDE7F2;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    padding: 0.35rem 0;
}

.site-nav-link:hover {
    color: var(--white);
    text-decoration: none;
}

.site-nav-link.is-active {
    color: var(--white);
    border-bottom: 2px solid #DDE7F2;
}

.has-dropdown {
    position: relative;
}

.has-dropdown.is-active > .site-nav-link {
    color: var(--white);
    border-bottom: 2px solid #DDE7F2;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.8rem);
    left: 0;
    min-width: 280px;
    background: var(--bg-dark);
    border: 1px solid var(--primary-light);
    padding: 0.5rem 0;
    z-index: 20;
}

.has-dropdown:hover .nav-dropdown-menu {
    display: block;
}

.has-dropdown.open .nav-dropdown-menu {
    display: block;
}

.nav-dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: #DDE7F2;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    font-size: 0.75rem;
}

.nav-dropdown-item:hover {
    background-color: var(--primary-light);
    color: var(--white);
    text-decoration: none;
}

.nav-dropdown-separator {
    border-top: 1px solid var(--primary-light);
    margin: 0.5rem 0;
}

.nav-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.1rem;
    border: 1px solid #DDE7F2;
    color: var(--white);
    background: transparent;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
}

.nav-login-btn:hover {
    background-color: var(--primary-light);
    color: var(--white);
    text-decoration: none;
}

.nav-backdrop {
    position: fixed;
    inset: 0;
    background: var(--primary-dark);
    z-index: 15;
}

@media (max-width: 992px) {
    .mobile-menu-toggle { display: inline-flex; }
    .site-nav {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 340px;
        max-width: 88vw;
        background: var(--bg-dark);
        border-left: 1px solid var(--primary-light);
        padding: 5.5rem 1.5rem 2rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
        transform: translateX(100%);
        z-index: 25;
    }
    .site-nav.active { transform: translateX(0); }
    .site-nav-links {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    .site-nav-actions {
        width: 100%;
        padding-left: 0;
        margin-left: 0;
        border-left: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .site-nav-link {
        width: 100%;
        padding: 0.9rem 0;
        border-bottom: 1px solid var(--primary-light);
    }
    .site-nav-link.is-active { border-bottom: 2px solid #DDE7F2; }
    .nav-login-btn { width: 100%; }
    .nav-dropdown-menu {
        position: static;
        min-width: 0;
        width: 100%;
        margin-top: 0.5rem;
    }
    .has-dropdown:hover .nav-dropdown-menu { display: none; }
}

/* Section Blocks */
section {
    padding: var(--section-padding) 0;
    position: relative;
    border-bottom: 1px solid var(--border); /* Clear separation lines */
}

section:last-child {
    border-bottom: none;
}

.section-block {
    padding: var(--section-padding) 0;
}

.section-padding {
    padding: var(--section-padding) 0;
}

.section-a {
    background-color: var(--white);
    color: var(--text-main);
}

.section-b {
    background-color: var(--bg-dark);
    color: var(--white);
    border-bottom: 1px solid var(--primary-light);
}

.section-b h1,
.section-b h2,
.section-b h3,
.section-b h4,
.section-b h5,
.section-b h6 {
    color: var(--white);
}

.section-b p,
.section-b .text-muted {
    color: #DDE7F2 !important;
}

.section-c {
    background-color: var(--bg-secondary);
    color: var(--text-main);
}

.section-intro {
    max-width: 72ch;
    margin-bottom: 3.25rem;
}

.section-intro-center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-intro p {
    max-width: 70ch;
}

.surface-card {
    background: var(--white);
    border: 1px solid var(--border-strong);
    padding: 2.75rem;
}

.surface-card-accent {
    border-top: 3px solid var(--primary);
}

.plan-flag {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    color: var(--primary);
    padding-left: 0.75rem;
    border-left: 2px solid var(--primary);
    background: transparent;
}

.plan-flag.plan-flag-center {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

.trust-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding-left: 0;
    margin: 0;
    color: #DDE7F2;
    font-family: var(--font-main);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.8rem;
}

.trust-list li {
    padding-left: 0.9rem;
    border-left: 2px solid var(--primary-light);
}

.site-footer {
    background: var(--primary);
    color: var(--white);
    border-top: 1px solid var(--primary-light);
    padding: 3.5rem 0 2rem;
}

.footer-top { align-items: start; }

.footer-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    margin-bottom: 1.25rem;
}

.footer-logo {
    height: 42px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-brand-text { display: flex; flex-direction: column; }

.footer-wordmark {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--white);
    line-height: 1.1;
}

.footer-submark {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 0.25rem;
}

.footer-tagline {
    margin: 0 0 1.25rem;
    max-width: 60ch;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.7;
}

.footer-meta {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.78);
}

.footer-cert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer-cert-icon {
    height: 28px;
    width: auto;
    opacity: 0.9;
}

.footer-heading {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-weight: 600;
}

.footer-link:hover {
    color: var(--white);
    text-decoration: none;
}

.footer-mono { font-family: monospace; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.callout-panel {
    background: var(--bg-secondary);
    border: 1px solid var(--border-strong);
    padding: 3rem;
}

.callout-center {
    text-align: center;
    max-width: 80ch;
    margin-left: auto;
    margin-right: auto;
}

.callout-center p {
    margin-left: auto;
    margin-right: auto;
}

.trust-col {
    max-width: 70ch;
}

.trust-col .icon-text i {
    color: var(--primary);
}

.institution-panel {
    border: 1px solid var(--border-strong);
    background: var(--bg-secondary);
    padding: 2.5rem;
}

.institution-panel-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: transparent;
    border-left: 2px solid var(--primary);
    padding: 0.75rem 1rem;
    font-family: monospace;
}

.institution-panel-badge .badge-left {
    font-weight: 800;
    color: var(--primary);
}

.institution-panel-badge .badge-right {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.cert-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.25rem 0;
    font-weight: 700;
    color: var(--text-secondary);
    letter-spacing: 0.02em;
    font-size: 0.95rem;
}

.cert-item i {
    color: var(--success);
}

.offering-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.offering-card {
    background: var(--white);
    border: 1px solid var(--border-strong);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    box-shadow: none;
}

.offering-head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.offering-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-strong);
    background: var(--bg-secondary);
    color: var(--primary);
    flex-shrink: 0;
}

.offering-title {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.2;
    color: var(--primary);
}

.offering-subtitle {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
    color: var(--text-muted);
    font-family: var(--font-main);
}

.offering-desc {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 70ch;
}

.offering-cta {
    margin-top: auto;
    padding-top: 1.25rem;
    margin-top: 1.75rem;
    border-top: 1px solid var(--border);
}

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

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

@media (max-width: 600px) {
    .institution-panel { padding: 1.5rem; }
    .cert-grid { grid-template-columns: 1fr; }
}

/* Alternating Backgrounds */
section.bg-light {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

section.bg-dark {
    background-color: var(--primary);
    color: var(--white);
    border: none;
}

section.bg-dark h1, 
section.bg-dark h2, 
section.bg-dark h3, 
section.bg-dark p {
    color: var(--white);
}

section.bg-dark .text-muted {
    color: var(--bg-secondary);
}

/* Hero Section - High Impact */
.hero {
    position: relative;
    padding: 8rem 0 6rem;
    background-color: var(--bg-dark);
    background-image: url('../img/hero-facility.svg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-blend-mode: multiply;
    color: var(--white);
    overflow: hidden;
    border-bottom: 1px solid var(--primary-light);
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.hero-home {
    min-height: 85vh;
    display: flex;
    align-items: center;
}

.hero-topline {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-main);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bg-secondary);
    margin-bottom: 1.75rem;
    font-size: 0.85rem;
}

.hero h1 {
    font-size: 4.25rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--white);
    max-width: 22ch;
    text-wrap: balance;
    word-break: normal;
    hyphens: none;
}

.hero p {
    font-size: 1.25rem;
    color: var(--bg-secondary);
    margin-bottom: 2.5rem;
    max-width: 70ch;
    line-height: 1.7;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    align-items: center;
}

.hero-actions .btn {
    min-width: 220px;
}

.hero-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--primary-light);
}

.hero-trust-item {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.85rem;
    color: var(--bg-secondary);
}

.hero-trust-item i {
    color: var(--bg-secondary);
}

@media (max-width: 900px) {
    .hero { padding: 7rem 0 5rem; }
    .hero h1 { font-size: 3.25rem; }
    .hero-actions .btn { min-width: 200px; }
}

@media (max-width: 576px) {
    .hero { padding: 6rem 0 4rem; }
    .hero h1 { font-size: 2.6rem; }
    .hero-actions { width: 100%; }
    .hero-actions .btn { width: 100%; min-width: 0; }
}

/* Mobile-first Grids */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--row-gap, 1.5rem);
}

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

/* Full width button utility */
.btn-block {
    display: block;
    width: 100%;
}

/* Button System - Institutional Grade */
.btn-group {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-sm); /* Sharp corners */
    transition: var(--transition);
    text-decoration: none;
    letter-spacing: 0.02em;
    cursor: pointer;
    min-width: 180px;
    text-align: center;
}

/* Primary Button: Institutional Navy */
.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    color: var(--white);
    text-decoration: none;
}

/* Navy Button: Solid Institutional Navy */
.btn-navy {
    background-color: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
}

.btn-navy:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    color: var(--white);
    text-decoration: none;
}

/* Outline Navy Button */
.btn-outline-navy {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline-navy:hover {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    text-decoration: none;
}

/* Secondary Button: Outlined White */
.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--primary-light);
    border-color: var(--white);
    color: var(--white);
    text-decoration: none;
}

/* White Button: Solid White (for dark backgrounds) */
.btn-white {
    background-color: var(--white);
    color: var(--primary);
    border: 1px solid var(--white);
}

.btn-white:hover {
    background-color: var(--off-white);
    color: var(--primary-dark);
    transform: translateY(-1px);
    text-decoration: none;
}

/* Outline Light Button - Explicit White Outline */
.btn-outline-light {
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--white);
}

.btn-outline-light:hover {
    background-color: var(--white);
    color: var(--primary);
    border-color: var(--white);
    text-decoration: none;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

button.btn-outline:not(.btn),
button.btn-outline-light:not(.btn) {
    padding: 0.55rem 0.75rem;
    min-width: 0;
    line-height: 1;
}

/* Dashboard Button Override */
.btn-dashboard {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    background-color: var(--primary-light);
    color: var(--white);
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
}

.btn-dashboard:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    text-decoration: none;
}
.d-block { display: block; }
.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.m-0 { margin: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mr-2 { margin-right: 0.5rem; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }
.text-muted { color: var(--text-muted) !important; }
/* Removed text-gold definition */
.text-main { color: var(--text-main) !important; }
.text-danger { color: var(--error) !important; }
.text-success { color: var(--success) !important; }
.font-bold { font-weight: 700; }
.border { border: 1px solid var(--border); }
.border-strong { border: 1px solid var(--border-strong); }
.border-bottom { border-bottom: 1px solid var(--border); }
.border-top { border-top: 1px solid var(--border); }
.radius-sm { border-radius: var(--radius-sm); }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded { border-radius: var(--radius-md); }
.bg-secondary { background-color: var(--bg-secondary); }
.bg-primary { background-color: var(--bg-dark); }
.bg-card { background-color: var(--bg-card); }
.bg-light { background-color: var(--bg-secondary); }
.bg-white { background-color: var(--white); }
.text-center { text-align: center; }
.text-decoration-none { text-decoration: none; }
.list-unstyled { list-style: none; padding-left: 0; margin: 0; }

.d-inline-flex { display: inline-flex; }
.d-none { display: none !important; }
.flex-grow-1 { flex-grow: 1; }
.flex-shrink-0 { flex-shrink: 0; }
.w-100 { width: 100% !important; }
.h-100 { height: 100%; }
.min-vh-100 { min-height: 100vh; }
.shadow-none { box-shadow: none !important; }

.align-items-start { align-items: flex-start; }
.align-items-center { align-items: center; }
.align-items-end { align-items: flex-end; }
.justify-content-start { justify-content: flex-start; }
.justify-content-center { justify-content: center; }
.justify-content-end { justify-content: flex-end; }
.justify-content-between { justify-content: space-between; }

.rounded-0 { border-radius: 0 !important; }
.rounded-circle { border-radius: 9999px; }

.border-0 { border: 0 !important; }
.border-start { border-left: 1px solid var(--border) !important; }
.border-end { border-right: 1px solid var(--border) !important; }
.border-4 { border-width: 4px !important; }
.border-secondary { border-color: var(--primary-light) !important; }
.border-danger { border-color: var(--error) !important; }
.border-success { border-color: var(--success) !important; }

.opacity-25 { opacity: 0.25; }
.opacity-50 { opacity: 0.5; }

.mb-0 { margin-bottom: 0; }
.mb-5 { margin-bottom: 3rem; }
.mt-5 { margin-top: 3rem; }
.my-5 { margin-top: 3rem; margin-bottom: 3rem; }
.me-2 { margin-right: 0.5rem; }
.ms-2 { margin-left: 0.5rem; }
.mr-1 { margin-right: 0.25rem; }
.mr-3 { margin-right: 1rem; }
.ml-auto { margin-left: auto; }
.mr-auto { margin-right: auto; }

.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }
.pt-5 { padding-top: 3rem; }
.pb-4 { padding-bottom: 2rem; }
.px-4 { padding-left: 1.5rem; padding-right: 1.5rem; }

.small { font-size: 0.875rem; }
.text-2xl { font-size: 1.5rem; }
.font-weight-bold { font-weight: 700; }
.fw-bold { font-weight: 700; }
.text-end { text-align: right !important; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }

.space-y-2 > * + * { margin-top: 0.5rem; }

.row {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--row-gap, 1.5rem);
}

.g-3 { --row-gap: 1rem; }
.g-4 { --row-gap: 2rem; }
.g-5 { --row-gap: 3rem; }

.col-6 { grid-column: span 6; }
.col-12 { grid-column: span 12; }
.col-md-6,
.col-lg-2,
.col-lg-3,
.col-lg-4,
.col-lg-8 { grid-column: span 12; }

@media (min-width: 768px) {
    .d-md-flex { display: flex !important; }
    .text-md-start { text-align: left !important; }
    .text-md-end { text-align: right !important; }
    .mb-md-0 { margin-bottom: 0 !important; }
    .col-md-6 { grid-column: span 6; }
}

@media (min-width: 992px) {
    .mb-lg-0 { margin-bottom: 0 !important; }
    .col-lg-2 { grid-column: span 2; }
    .col-lg-3 { grid-column: span 3; }
    .col-lg-4 { grid-column: span 4; }
    .col-lg-8 { grid-column: span 8; }
}

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

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

.form-floating { position: relative; }

.form-floating > label {
    position: absolute;
    left: 1rem;
    top: 0.95rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    pointer-events: none;
    transform-origin: left top;
    transition: transform 140ms ease, top 140ms ease, opacity 140ms ease;
}

.form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-strong);
    background: var(--white);
    color: var(--text-main);
    border-radius: 0;
    line-height: 1.25;
}

.form-control:focus {
    outline: 0;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(11, 35, 66, 0.09);
}

.form-floating > .form-control {
    padding: 1.6rem 1rem 0.85rem;
}

.form-floating > .form-control::placeholder { color: transparent; }

.form-floating > .form-control:focus + label,
.form-floating > .form-control:not(:placeholder-shown) + label {
    top: 0.55rem;
    transform: scale(0.85);
    opacity: 0.9;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.text-right { text-align: right !important; }
.text-uppercase { text-transform: uppercase; }
.tracking-wider { letter-spacing: 0.05em; }
.font-monospace { font-family: monospace; }
.font-medium { font-weight: 600; }
.rounded-full { border-radius: 9999px; }
.inline-block { display: inline-block; }
.w-2 { width: 0.5rem; }
.h-2 { height: 0.5rem; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }

.text-primary { color: var(--primary) !important; }
.hover-text-primary:hover { color: var(--primary) !important; }
.hover-underline:hover { text-decoration: underline; }

.btn-sm {
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
    min-width: 0;
}

.btn-xs {
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
    min-width: 0;
}

.btn-success {
    background-color: var(--success);
    border: 1px solid var(--success);
    color: var(--white);
}

.btn-success:hover {
    filter: brightness(0.95);
    color: var(--white);
}

.btn-danger {
    background-color: var(--error);
    border: 1px solid var(--error);
    color: var(--white);
}

.btn-danger:hover {
    filter: brightness(0.95);
    color: var(--white);
}

.btn-outline-danger {
    background-color: transparent;
    border: 1px solid var(--error);
    color: var(--error);
}

.btn-outline-danger:hover {
    background-color: var(--error);
    border-color: var(--error);
    color: var(--white);
}

.bg-success { background-color: var(--success) !important; }
.bg-warning { background-color: var(--warning) !important; }
.text-warning { color: var(--warning) !important; }

.p-0 { padding: 0; }
.pb-2 { padding-bottom: 0.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }

.input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.input-group-text {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border-strong);
    border-right: 0;
    background: var(--bg-secondary);
    color: var(--text-muted);
}

.input-group .form-control {
    border-left: 0;
}

.input-group-sm .input-group-text {
    padding: 0.45rem 0.65rem;
    font-size: 0.875rem;
}

.input-group-sm .form-control {
    padding-top: 1.1rem;
    padding-bottom: 0.6rem;
}

.table-responsive { width: 100%; overflow-x: auto; }
.card-actions { display: flex; align-items: center; }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.admin-table th {
    text-align: left;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--primary);
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
}

.admin-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
    vertical-align: top;
}

.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tr:hover td { background: var(--bg-secondary); }

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1.5rem;
}

.dashboard-col-4,
.dashboard-col-8 { grid-column: span 12; }

@media (min-width: 1024px) {
    .dashboard-col-4 { grid-column: span 4; }
    .dashboard-col-8 { grid-column: span 8; }
}

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

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

.leading-relaxed { line-height: 1.6; }

.message-bubble { max-width: 72ch; }

.message-bubble-admin {
    background: var(--bg-dark);
    border: 1px solid var(--primary-light);
    color: var(--white);
}

.message-bubble-client {
    background: var(--bg-secondary);
    border: 1px solid var(--border-strong);
}

.message-avatar {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
}

.message-avatar-admin { background: var(--accent); color: var(--bg-dark); }
.message-avatar-client { background: var(--white); border: 1px solid var(--border-strong); color: var(--text-muted); }

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.65rem;
    font-family: var(--font-main);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    border: 1px solid currentColor;
}

.badge-success { color: var(--success); }
.badge-danger { color: var(--error); }
.badge-warning { color: var(--warning); }
.badge-neutral { color: var(--text-muted); }
