:root {
    color-scheme: light;
    --white: #ffffff;
    --page: #f8fafc;
    --panel: #ffffff;
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --indigo: #4f46e5;
    --purple: #8b5cf6;
    --emerald: #059669;
    --emerald-soft: #d1fae5;
    --amber: #d97706;
    --amber-soft: #fef3c7;
    --orange: #f97316;
    --text: #0f172a;
    --muted: #64748b;
    --soft: #e2e8f0;
    --line: #dbe4ef;
    --shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

.container {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

.status-bar {
    border-bottom: 1px solid var(--line);
    background: #f1f7ff;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.status-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 36px;
    padding: 6px 0;
}

.status-scroll {
    display: flex;
    align-items: center;
    gap: 24px;
    overflow-x: auto;
    white-space: nowrap;
}

.status-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1e293b;
    font-weight: 900;
    text-transform: uppercase;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--emerald);
    box-shadow: 0 0 0 5px rgba(5, 150, 105, 0.12);
}

.ok {
    color: var(--emerald);
}

.warn {
    color: var(--amber);
}

.status-inner a {
    flex: 0 0 auto;
    color: var(--blue-600);
}

.top-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(12px);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 64px;
}

.brand,
.company-identity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue-600), var(--indigo));
    color: var(--white);
    font-size: 21px;
    font-weight: 950;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.22);
}

.brand strong {
    display: block;
    color: var(--text);
    font-size: 20px;
    line-height: 1.1;
}

.brand small {
    display: block;
    color: var(--blue-600);
    font-size: 12px;
    font-weight: 800;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    color: #475569;
    font-size: 14px;
    font-weight: 800;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--blue-600);
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
}

.nav-dot.blue {
    background: var(--blue-500);
}

.nav-dot.green {
    background: var(--emerald);
}

.nav-dot.purple {
    background: var(--purple);
}

.nav-dot.amber {
    background: var(--amber);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-link-row {
    display: none;
}

.signin {
    border: 0;
    background: transparent;
    color: #334155;
    padding: 10px 12px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
}

.claim {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border-radius: 8px;
    background: linear-gradient(90deg, var(--blue-600), var(--indigo));
    color: var(--white);
    padding: 0 16px;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.22);
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 64px 0 80px;
    background:
        radial-gradient(circle at top left, rgba(59, 130, 246, 0.14), transparent 34%),
        linear-gradient(180deg, #ffffff, #f4f8ff 64%, var(--page));
}

.grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(148, 163, 184, 0.18) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(148, 163, 184, 0.18) 1px, transparent 1px);
    background-size: 64px 64px;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    border: 1px solid var(--blue-100);
    border-radius: 999px;
    background: var(--blue-50);
    color: var(--blue-600);
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.hero-kicker span {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--blue-600);
    color: var(--white);
    font-size: 11px;
}

.hero-content h1 {
    margin: 0 0 24px;
    color: var(--text);
    font-size: clamp(42px, 6vw, 72px);
    font-weight: 950;
    line-height: 1.08;
    letter-spacing: 0;
}

.hero-content h1 span {
    background: linear-gradient(90deg, var(--blue-600), var(--indigo), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-content p {
    max-width: 780px;
    margin: 0 auto 40px;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.65;
}

.portal-search {
    max-width: 768px;
    margin: 0 auto 30px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.94);
    padding: 10px;
    box-shadow: 0 24px 58px rgba(37, 99, 235, 0.13);
}

.portal-search form {
    display: flex;
    gap: 8px;
}

.search-field {
    position: relative;
    flex: 1;
}

.search-field span {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--blue-600);
    font-size: 13px;
    font-weight: 950;
}

.search-field input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8fbff;
    color: var(--text);
    padding: 0 14px 0 44px;
    font: inherit;
    font-size: 14px;
    outline: none;
}

.search-field input:focus {
    border-color: var(--blue-500);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

.portal-search button {
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    background: var(--blue-600);
    color: var(--white);
    padding: 0 32px;
    font: inherit;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px 48px;
    color: #475569;
    font-size: 14px;
    font-weight: 800;
}

.trust-badges span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.trust-badges b {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    color: var(--white);
    font-size: 10px;
    background: var(--blue-600);
}

.pillars-section {
    padding: 64px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: #eef5ff;
}

.section-title {
    margin-bottom: 48px;
    text-align: center;
}

.section-title h2 {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 30px;
    letter-spacing: 0;
}

.section-title p {
    margin: 0;
    color: var(--muted);
}

.facility-app-section {
    padding: 54px 0 34px;
}

.facility-app-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.facility-app-card {
    display: grid;
    min-height: 174px;
    gap: 9px;
    align-content: start;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    text-decoration: none;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.facility-app-card:hover {
    transform: translateY(-2px);
    border-color: #93c5fd;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
}

.facility-app-card .app-art {
    width: 64px;
    height: 64px;
    margin-bottom: 4px;
}

.app-art {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.13);
}

.app-art::before,
.app-art::after,
.app-art i,
.app-art b {
    content: "";
    position: absolute;
    display: block;
}

.app-art-default::before {
    width: 36px;
    height: 36px;
    left: 14px;
    top: 14px;
    border-radius: 10px;
    background: #14b8a6;
    box-shadow: 11px 9px 0 rgba(245, 158, 11, 0.9);
}

.app-art-default::after {
    width: 34px;
    height: 8px;
    left: 15px;
    top: 28px;
    border-radius: 999px;
    background: #8b5cf6;
    transform: rotate(-38deg);
}

.app-art-directory::before {
    inset: 14px 15px 16px 22px;
    border-radius: 6px;
    background: #14b8a6;
    box-shadow: -12px 9px 0 #f59e0b, 14px -8px 0 #2563eb;
}

.app-art-directory::after {
    width: 30px;
    height: 8px;
    left: 17px;
    bottom: 14px;
    border-radius: 999px;
    background: #0f766e;
}

.app-art-requirements::before {
    width: 28px;
    height: 36px;
    left: 16px;
    top: 13px;
    border-radius: 6px;
    background: #f8fafc;
    border: 5px solid #2dd4bf;
}

.app-art-requirements::after {
    width: 29px;
    height: 12px;
    right: 12px;
    bottom: 17px;
    border-radius: 10px;
    background: #f59e0b;
    transform: rotate(-28deg);
}

.app-art-requirements i {
    width: 28px;
    height: 8px;
    right: 10px;
    top: 18px;
    border-radius: 10px;
    background: #2563eb;
    transform: rotate(44deg);
}

.app-art-forum::before {
    width: 38px;
    height: 28px;
    left: 12px;
    top: 16px;
    border-radius: 14px 14px 14px 4px;
    background: #22c55e;
}

.app-art-forum::after {
    width: 32px;
    height: 24px;
    right: 11px;
    bottom: 14px;
    border-radius: 13px 13px 4px 13px;
    background: #f97316;
}

.app-art-forum i {
    width: 22px;
    height: 5px;
    left: 22px;
    top: 27px;
    border-radius: 999px;
    background: #ffffff;
}

.app-art-transport::before {
    width: 38px;
    height: 22px;
    left: 10px;
    top: 23px;
    border-radius: 6px;
    background: #14b8a6;
}

.app-art-transport::after {
    width: 19px;
    height: 18px;
    right: 10px;
    top: 27px;
    border-radius: 4px 10px 6px 4px;
    background: #2563eb;
}

.app-art-transport i,
.app-art-transport b {
    width: 11px;
    height: 11px;
    bottom: 12px;
    border-radius: 999px;
    background: #0f172a;
    box-shadow: inset 0 0 0 4px #f8fafc;
}

.app-art-transport i { left: 17px; }
.app-art-transport b { right: 16px; }

.app-art-filing::before {
    width: 42px;
    height: 26px;
    left: 12px;
    top: 20px;
    clip-path: polygon(0 40%, 100% 0, 73% 100%, 43% 61%);
    background: #38bdf8;
}

.app-art-filing::after {
    width: 38px;
    height: 22px;
    left: 18px;
    top: 24px;
    clip-path: polygon(0 32%, 100% 0, 76% 100%, 44% 62%);
    background: #8b5cf6;
    opacity: 0.86;
}

.app-art-billing::before {
    width: 13px;
    height: 32px;
    left: 14px;
    bottom: 14px;
    border-radius: 5px 5px 2px 2px;
    background: #14b8a6;
    box-shadow: 16px -10px 0 #f59e0b, 32px -18px 0 #ef4444;
}

.app-art-billing::after {
    width: 42px;
    height: 5px;
    left: 12px;
    bottom: 12px;
    border-radius: 999px;
    background: #0f172a;
    opacity: 0.2;
}

.app-art-invoicing::before {
    width: 34px;
    height: 42px;
    left: 15px;
    top: 10px;
    border-radius: 7px;
    background: linear-gradient(180deg, #fff 0 18%, #e0f2fe 18% 100%);
    border: 4px solid #0ea5e9;
}

.app-art-invoicing::after {
    width: 20px;
    height: 20px;
    right: 10px;
    bottom: 12px;
    border-radius: 999px;
    background: #f59e0b;
    box-shadow: -9px -7px 0 #22c55e;
}

.app-art-modules::before {
    width: 21px;
    height: 21px;
    left: 12px;
    top: 12px;
    border-radius: 6px;
    background: #2563eb;
    box-shadow: 24px 0 0 #14b8a6, 0 24px 0 #f59e0b, 24px 24px 0 #8b5cf6;
}

.app-art-modules::after {
    width: 28px;
    height: 7px;
    left: 18px;
    top: 29px;
    border-radius: 999px;
    background: #0f172a;
    opacity: 0.18;
    transform: rotate(-28deg);
}

.app-art-files::before {
    width: 42px;
    height: 29px;
    left: 11px;
    top: 23px;
    border-radius: 5px;
    background: #14b8a6;
}

.app-art-files::after {
    width: 24px;
    height: 10px;
    left: 13px;
    top: 16px;
    border-radius: 5px 5px 0 0;
    background: #0f766e;
}

.app-art-files i {
    width: 38px;
    height: 10px;
    left: 13px;
    top: 31px;
    border-radius: 4px;
    background: #f8fafc;
    opacity: 0.8;
}

.app-art-hsn::before {
    width: 31px;
    height: 31px;
    left: 13px;
    top: 13px;
    border-radius: 999px;
    border: 8px solid #2563eb;
}

.app-art-hsn::after {
    width: 23px;
    height: 8px;
    right: 12px;
    bottom: 17px;
    border-radius: 999px;
    background: #f97316;
    transform: rotate(43deg);
}

.app-art-knowledge::before {
    width: 21px;
    height: 41px;
    left: 16px;
    top: 11px;
    border-radius: 5px 5px 12px 12px;
    background: #8b5cf6;
    transform: rotate(-8deg);
}

.app-art-knowledge::after {
    width: 21px;
    height: 41px;
    right: 16px;
    top: 11px;
    border-radius: 5px 5px 12px 12px;
    background: #14b8a6;
    transform: rotate(8deg);
}

.app-art-admin::before {
    width: 46px;
    height: 10px;
    left: 9px;
    top: 27px;
    border-radius: 999px;
    background: #8b5cf6;
    transform: rotate(45deg);
}

.app-art-admin::after {
    width: 46px;
    height: 10px;
    left: 9px;
    top: 27px;
    border-radius: 999px;
    background: #0ea5e9;
    transform: rotate(-45deg);
}

.app-art-admin i {
    width: 16px;
    height: 16px;
    left: 10px;
    top: 10px;
    border-radius: 999px;
    background: #f59e0b;
    box-shadow: 28px 28px 0 #22c55e;
}

.facility-app-card strong {
    font-size: 16px;
    line-height: 1.2;
}

.facility-app-card small {
    color: #475569;
    font-size: 12px;
    line-height: 1.45;
}

.facility-app-card em {
    margin-top: auto;
    color: #0f766e;
    font-size: 11px;
    font-style: normal;
    font-weight: 950;
    text-transform: uppercase;
}

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

.pillar-card {
    min-height: 244px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.pillar-card:hover {
    transform: translateY(-2px);
}

.blue-card:hover {
    border-color: rgba(59, 130, 246, 0.42);
}

.green-card:hover {
    border-color: rgba(5, 150, 105, 0.42);
}

.purple-card:hover {
    border-color: rgba(139, 92, 246, 0.42);
}

.amber-card:hover {
    border-color: rgba(217, 119, 6, 0.42);
}

.pillar-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 900;
}

.blue-card .pillar-icon {
    background: var(--blue-50);
    color: var(--blue-600);
}

.green-card .pillar-icon {
    background: var(--emerald-soft);
    color: var(--emerald);
}

.purple-card .pillar-icon {
    background: #f3e8ff;
    color: var(--purple);
}

.amber-card .pillar-icon {
    background: var(--amber-soft);
    color: var(--amber);
}

.pillar-card h3,
.discussion-card h4,
.verified-card h4 {
    margin: 0 0 10px;
    color: var(--text);
    font-size: 18px;
    letter-spacing: 0;
}

.pillar-card p,
.discussion-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.feed-section {
    padding: 64px 0;
}

.filing-showcase-section {
    padding: 24px 0 64px;
}

.filing-showcase {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    gap: 28px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.78)),
        #fff;
    padding: 30px;
    box-shadow: var(--shadow);
}

.filing-showcase h2 {
    margin: 14px 0 12px;
    color: var(--text);
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.05;
    letter-spacing: 0;
}

.filing-showcase p {
    max-width: 620px;
    margin: 0 0 20px;
    color: #475569;
    font-size: 16px;
    line-height: 1.7;
}

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

.filing-card-grid article {
    display: grid;
    gap: 8px;
    min-height: 140px;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    background: #fff;
    padding: 18px;
}

.filing-card-grid strong {
    color: var(--text);
    font-size: 18px;
}

.filing-card-grid span {
    color: var(--muted);
    line-height: 1.55;
}

.feed-grid {
    display: grid;
    grid-template-columns: 7fr 5fr;
    gap: 32px;
}

.forum-column,
.directory-column {
    display: grid;
    align-content: start;
    gap: 16px;
}

.feed-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 2px;
}

.feed-heading h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--text);
    font-size: 21px;
    letter-spacing: 0;
}

.feed-heading a {
    flex: 0 0 auto;
    color: var(--blue-600);
    font-size: 12px;
    font-weight: 900;
}

.fire,
.badge-dot {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #ffedd5;
    color: var(--orange);
    font-size: 11px;
}

.badge-dot {
    background: var(--blue-50);
    color: var(--blue-600);
}

.discussion-card,
.verified-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
    padding: 20px;
    box-shadow: var(--shadow);
    transition: border-color 0.2s ease;
}

.discussion-card:hover,
.verified-card:hover {
    border-color: #bfdbfe;
}

.discussion-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 12px;
}

.discussion-meta strong {
    color: #334155;
}

.community-pill {
    flex: 0 0 auto;
    border-radius: 999px;
    background: var(--blue-50);
    color: var(--blue-600);
    padding: 4px 10px;
    font-weight: 900;
}

.discussion-card h4 {
    font-size: 16px;
}

.discussion-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.discussion-actions em {
    border-radius: 4px;
    background: var(--emerald-soft);
    color: var(--emerald);
    padding: 2px 8px;
    font-style: normal;
    font-size: 10px;
    font-weight: 950;
}

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

.company-logo {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue-600), var(--indigo));
    color: var(--white);
    font-size: 14px;
    font-weight: 950;
    box-shadow: 0 14px 24px rgba(37, 99, 235, 0.18);
}

.company-identity h4 {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    font-size: 14px;
}

.company-identity small {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.verified-mark {
    display: grid;
    place-items: center;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    background: var(--blue-50);
    color: var(--blue-600);
    font-size: 9px;
}

.certified {
    flex: 0 0 auto;
    border: 1px solid #fde68a;
    border-radius: 999px;
    background: var(--amber-soft);
    color: var(--amber);
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 900;
}

.ports-block {
    margin-bottom: 14px;
    color: #334155;
    font-size: 12px;
}

.ports-block > span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
}

.ports-block div,
.task-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ports-block em {
    border-radius: 4px;
    background: #f1f5f9;
    color: #475569;
    padding: 3px 8px;
    font-style: normal;
    font-size: 11px;
}

.task-badges {
    margin-bottom: 16px;
}

.task-badges span {
    border-radius: 4px;
    background: var(--blue-50);
    color: var(--blue-600);
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 900;
}

.task-badges span:nth-child(2) {
    background: #f3e8ff;
    color: var(--purple);
}

.task-badges span:nth-child(3) {
    background: var(--emerald-soft);
    color: var(--emerald);
}

.card-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.message-btn,
.claim-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 900;
}

.message-btn {
    flex: 1;
    background: var(--blue-600);
    color: var(--white);
}

.claim-btn {
    background: #eef2f7;
    color: #334155;
}

.mini-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.mini-stats div {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
    padding: 14px;
    box-shadow: var(--shadow);
}

.mini-stats strong {
    display: block;
    color: var(--text);
    font-size: 22px;
}

.mini-stats span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
}

.preview-footer {
    border-top: 1px solid var(--line);
    background:
        radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 32%),
        linear-gradient(180deg, #ffffff, #eef5ff);
    padding: 34px 0 26px;
}

.footer-cta {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 34px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.84);
    padding: 28px;
    box-shadow: var(--shadow);
}

.footer-cta span {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--blue-600);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.footer-cta h2 {
    max-width: 720px;
    margin: 0;
    color: var(--text);
    font-size: clamp(24px, 3.4vw, 38px);
    line-height: 1.12;
    letter-spacing: 0;
}

.footer-cta div:last-child {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
}

.footer-primary,
.footer-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 8px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 900;
}

.account-menu-wrap {
    position: relative;
}

.account-chip {
    display: inline-grid;
    grid-template-columns: 38px minmax(0, auto) 12px;
    align-items: center;
    column-gap: 10px;
    min-height: 48px;
    border: 1px solid #c7dcff;
    border-radius: 999px;
    background:
        linear-gradient(#ffffff, #ffffff) padding-box,
        linear-gradient(135deg, rgba(37, 99, 235, 0.55), rgba(5, 150, 105, 0.42)) border-box;
    color: var(--text);
    padding: 5px 12px 5px 5px;
    box-shadow: 0 16px 38px rgba(37, 99, 235, 0.18);
    cursor: pointer;
    font-family: inherit;
}

.account-chip:hover,
.account-chip[aria-expanded="true"] {
    border-color: transparent;
    box-shadow: 0 18px 46px rgba(37, 99, 235, 0.25);
}

.account-chip span,
.account-menu-head > span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--blue-600), var(--emerald));
    color: #fff;
    font-size: 12px;
    font-weight: 950;
}

.account-chip strong {
    overflow: hidden;
    max-width: 150px;
    color: var(--text);
    font-size: 14px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-chip i {
    width: 8px;
    height: 8px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.18s ease;
}

.account-chip[aria-expanded="true"] i {
    transform: rotate(225deg) translate(-1px, -1px);
}

.account-menu-card {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 80;
    width: min(360px, calc(100vw - 32px));
    border: 1px solid #bfdbfe;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    padding: 18px;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.18);
    backdrop-filter: blur(16px);
}

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

.account-menu-card::before {
    content: "";
    position: absolute;
    top: -7px;
    right: 28px;
    width: 14px;
    height: 14px;
    border-top: 1px solid #bfdbfe;
    border-left: 1px solid #bfdbfe;
    background: rgba(255, 255, 255, 0.96);
    transform: rotate(45deg);
}

.account-menu-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.account-menu-head strong {
    display: block;
    color: var(--text);
    font-size: 18px;
    line-height: 1.2;
}

.account-menu-head small {
    display: inline-flex;
    margin-top: 5px;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--blue-600);
    padding: 4px 9px;
    font-size: 11px;
    font-weight: 950;
}

.account-menu-row {
    display: grid;
    gap: 6px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}

.account-menu-row small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 950;
    text-transform: uppercase;
}

.account-menu-row strong {
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: 14px;
}

.account-menu-actions {
    display: grid;
    gap: 10px;
    padding-top: 16px;
}

.account-primary-action,
.account-menu-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 950;
}

.account-primary-action {
    background: linear-gradient(90deg, var(--blue-600), var(--emerald));
    color: #fff;
}

.account-menu-actions button {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    cursor: pointer;
    font-family: inherit;
}

.nav-logout-form {
    margin: 0;
}

.footer-primary {
    background: var(--blue-600);
    color: var(--white);
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.2);
}

.footer-secondary {
    border: 1px solid var(--line);
    background: var(--white);
    color: #334155;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(260px, 1.6fr) repeat(4, minmax(130px, 1fr));
    gap: 28px;
}

.footer-brand p {
    max-width: 360px;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.footer-grid h3 {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
}

.footer-grid div:not(.footer-brand) a {
    display: block;
    margin: 9px 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 850;
}

.footer-grid a:hover,
.footer-bottom a:hover {
    color: var(--blue-600);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.access-denied-shell {
    width: min(960px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0;
}

.access-denied-card {
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 246, 255, 0.82)),
        #fff;
    padding: clamp(24px, 5vw, 46px);
    box-shadow: var(--shadow);
}

.access-denied-kicker {
    display: inline-flex;
    border-radius: 999px;
    background: #eff6ff;
    color: var(--blue-600);
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.access-denied-card h1 {
    max-width: 720px;
    margin: 16px 0 12px;
    color: var(--text);
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.02;
    letter-spacing: 0;
}

.access-denied-card p {
    max-width: 760px;
    margin: 0;
    color: #475569;
    font-size: 17px;
    line-height: 1.7;
}

.access-denied-card small {
    display: block;
    margin-top: 12px;
    color: #64748b;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.6;
}

.access-denied-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.access-denied-primary,
.access-denied-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 8px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 950;
    text-decoration: none;
}

.access-denied-primary {
    background: linear-gradient(135deg, var(--blue-600), var(--emerald));
    color: #fff;
    box-shadow: 0 14px 30px rgba(37, 99, 235, 0.18);
}

.access-denied-secondary {
    border: 1px solid var(--line);
    background: #fff;
    color: #334155;
}

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

    .mobile-link-row {
        display: flex;
        gap: 8px;
        overflow-x: auto;
        padding: 0 0 12px;
    }

.mobile-link-row a {
        flex: 0 0 auto;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.78);
        color: #334155;
        padding: 8px 12px;
        font-size: 13px;
        font-weight: 900;
    }

    .mobile-link-row a.active {
        border-color: #bfdbfe;
        background: var(--blue-50);
        color: var(--blue-600);
    }

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

    .facility-app-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .feed-grid {
        grid-template-columns: 1fr;
    }

    .footer-cta,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .facility-app-grid {
        grid-template-columns: 1fr;
    }

    .status-inner,
    .discussion-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .nav-inner {
        min-height: auto;
        padding: 12px 0;
        gap: 12px;
    }

    .nav-actions {
        width: auto;
        align-self: stretch;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .signin,
    .claim,
    .account-menu-wrap,
    .account-chip,
    .nav-logout-form {
        flex: 1;
    }

    .account-menu-wrap {
        flex: 0 1 auto;
        margin-left: auto;
    }

    .account-chip {
        width: auto;
        min-width: 0;
        grid-template-columns: 36px minmax(78px, auto) 12px;
        min-height: 44px;
        padding-right: 10px;
    }

    .account-chip span {
        width: 34px;
        height: 34px;
    }

    .account-chip strong {
        max-width: 132px;
    }

    .account-menu-card {
        position: fixed;
        top: 76px;
        left: 16px;
        right: 16px;
        width: auto;
        max-height: calc(100vh - 96px);
        overflow: auto;
    }

    .account-menu-card::before {
        display: none;
    }

    .nav-logout-form .signin {
        width: 100%;
    }

    .mobile-link-row {
        width: calc(100% - 32px);
    }

    .hero-section {
        padding: 44px 0 58px;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .hero-content p {
        font-size: 16px;
    }

    .portal-search form,
    .card-actions {
        flex-direction: column;
    }

    .portal-search button,
    .message-btn,
    .claim-btn {
        width: 100%;
    }

    .pillar-grid,
    .mini-stats {
        grid-template-columns: 1fr;
    }

    .verified-top,
    .feed-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-cta {
        padding: 22px;
    }

    .footer-cta div:last-child {
        width: 100%;
        flex-direction: column;
    }

    .footer-primary,
    .footer-secondary {
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {
    .account-chip {
        grid-template-columns: 34px minmax(0, 88px) 10px;
    }

    .account-chip strong {
        max-width: 88px;
    }

    .account-menu-card {
        top: 70px;
        left: 10px;
        right: 10px;
        padding: 16px;
    }
}
