﻿:root {
    --bg: #12151c;
    --bg-2: #181d27;
    --surface: rgba(255, 255, 255, 0.045);
    --surface-2: rgba(255, 255, 255, 0.08);
    --line: rgba(255, 255, 255, 0.13);
    --text: #edf1f8;
    --muted: #aeb6c7;
    --accent: #ddb44e;
    --accent-2: #f2d784;
    --blue: #4e84f9;
    --shadow: 0 18px 40px rgba(5, 8, 13, 0.45);
    --gloss: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.03));
    --gloss-line: rgba(255, 255, 255, 0.32);
    color-scheme: dark;
}

:root[data-theme="light"] {
    --bg: #f6f8fc;
    --bg-2: #ffffff;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-2: rgba(16, 24, 40, 0.06);
    --line: rgba(15, 23, 42, 0.13);
    --text: #111827;
    --muted: #526073;
    --accent: #b77d18;
    --accent-2: #e0a93f;
    --blue: #285fd6;
    --shadow: 0 18px 40px rgba(23, 37, 84, 0.13);
    --gloss: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 245, 255, 0.35));
    --gloss-line: rgba(15, 23, 42, 0.16);
    color-scheme: light;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(980px 520px at 10% -8%, rgba(78, 132, 249, 0.18) 0, rgba(78, 132, 249, 0) 58%),
        radial-gradient(860px 460px at 94% -14%, rgba(221, 180, 78, 0.14) 0, rgba(221, 180, 78, 0) 56%),
        linear-gradient(180deg, #0f141e, #141b27 40%, #171f2c);
    animation: pageFade 420ms ease-out;
    position: relative;
    overflow-x: hidden;
}

html[lang="hi"] body {
    font-family: "Nirmala UI", "Mangal", "Kohinoor Devanagari", "Manrope", "Segoe UI", sans-serif;
    line-height: 1.58;
}

html[lang="hi"] h1,
html[lang="hi"] h2,
html[lang="hi"] h3,
html[lang="hi"] h4,
html[lang="hi"] h5 {
    font-family: "Nirmala UI", "Mangal", "Kohinoor Devanagari", "Manrope", "Segoe UI", sans-serif;
    line-height: 1.34;
    letter-spacing: 0;
}

:root[data-theme="light"] body {
    background:
        radial-gradient(980px 520px at 10% -8%, rgba(40, 95, 214, 0.12) 0, rgba(40, 95, 214, 0) 58%),
        radial-gradient(860px 460px at 94% -14%, rgba(224, 169, 63, 0.13) 0, rgba(224, 169, 63, 0) 56%),
        linear-gradient(180deg, #f7f9fd, #eef3fb 42%, #f8fafc);
}

body::before,
body::after {
    content: "";
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(68px);
    opacity: 0.22;
    z-index: -1;
}

body::before {
    top: -120px;
    left: -140px;
    background: rgba(78, 132, 249, 0.95);
}

body::after {
    right: -140px;
    bottom: -120px;
    background: rgba(221, 180, 78, 0.9);
}

.container {
    max-width: 1180px;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: "Sora", "Manrope", sans-serif;
    letter-spacing: -0.015em;
    color: var(--text);
}

p,
small,
li {
    color: var(--muted);
}

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

a:hover {
    color: var(--text);
}

.text-muted {
    color: var(--muted) !important;
}

.section-shell {
    position: relative;
}

.section-shell + .section-shell {
    margin-top: 0.35rem;
}

.top-nav {
    background: linear-gradient(120deg, rgba(13, 16, 24, 0.95), rgba(18, 24, 35, 0.94));
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(14px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

:root[data-theme="light"] .top-nav {
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 30px rgba(30, 41, 59, 0.12);
}

:root[data-theme="light"] .top-nav .navbar-brand,
:root[data-theme="light"] .top-nav .nav-link,
:root[data-theme="light"] .top-nav .navbar-toggler {
    color: #111827;
}

:root[data-theme="light"] .top-nav .navbar-toggler-icon {
    filter: none;
}

:root[data-theme="light"] .top-nav .btn-outline-light {
    border-color: rgba(15, 23, 42, 0.22);
    color: #111827;
}

:root[data-theme="light"] .top-nav .dropdown-menu-dark {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.12);
}

:root[data-theme="light"] .top-nav .dropdown-menu-dark .dropdown-item {
    color: #111827;
}

:root[data-theme="light"] .top-nav .dropdown-menu-dark .dropdown-item:hover {
    background: rgba(40, 95, 214, 0.08);
}

.theme-float {
    position: fixed;
    right: 22px;
    top: 92px;
    z-index: 1040;
    width: 54px;
    height: 54px;
    border-radius: 999px;
    border: 1px solid rgba(246, 210, 109, 0.55);
    background:
        radial-gradient(circle at 50% 35%, rgba(255, 239, 169, 0.96), rgba(221, 180, 78, 0.72) 45%, rgba(18, 24, 37, 0.88) 80%);
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
    transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.theme-float:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 22px 54px rgba(221, 180, 78, 0.26);
}

.theme-bulb {
    font-size: 1.45rem;
    line-height: 1;
    filter: drop-shadow(0 0 10px rgba(255, 241, 173, 0.9));
}

.theme-float.is-light {
    background:
        radial-gradient(circle at 50% 35%, #ffffff, #dbeafe 52%, #285fd6 95%);
    border-color: rgba(40, 95, 214, 0.35);
}

.page-visual-strip {
    padding: 1rem 0 0;
}

.page-banner-strip {
    padding: 0.75rem 0 0;
}

.page-managed-banner {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
        radial-gradient(circle at 14% 20%, rgba(78, 132, 249, 0.2), transparent 36%),
        radial-gradient(circle at 90% 16%, rgba(221, 180, 78, 0.2), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04));
    box-shadow: var(--shadow);
}

.page-managed-banner__content h2 {
    margin-top: 0.55rem;
}

.page-managed-banner__visual {
    display: grid;
    gap: 0.65rem;
}

.page-managed-banner__visual img,
.page-managed-banner__placeholder {
    width: 100%;
    min-height: 118px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    object-fit: cover;
    background:
        radial-gradient(circle at 30% 30%, rgba(240, 201, 110, 0.26), transparent 24%),
        radial-gradient(circle at 78% 74%, rgba(78, 132, 249, 0.25), transparent 28%),
        linear-gradient(130deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
}

.page-managed-banner__cta {
    justify-self: start;
}

.page-visual-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        radial-gradient(circle at 10% 20%, rgba(78, 132, 249, 0.16), transparent 34%),
        radial-gradient(circle at 88% 8%, rgba(221, 180, 78, 0.18), transparent 32%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.page-visual-card > div {
    min-width: 0;
}

.page-visual-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
    pointer-events: none;
}

.page-visual-card > * {
    position: relative;
    z-index: 1;
}

.page-visual-icon {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(246, 210, 109, 0.95), rgba(78, 132, 249, 0.74));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.38), 0 16px 34px rgba(0,0,0,.24);
}

.page-visual-icon span {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #0f172a;
    position: relative;
}

.page-visual-icon span::before,
.page-visual-icon span::after {
    content: "";
    position: absolute;
    background: #f8fafc;
    border-radius: 999px;
}

.page-visual-icon span::before {
    width: 18px;
    height: 4px;
    left: 8px;
    top: 10px;
}

.page-visual-icon span::after {
    width: 18px;
    height: 4px;
    left: 8px;
    top: 20px;
}

.page-visual-icon-search span {
    border-radius: 999px;
    background: transparent;
    border: 5px solid #0f172a;
}

.page-visual-icon-search span::before {
    width: 16px;
    height: 5px;
    left: 22px;
    top: 24px;
    transform: rotate(45deg);
    background: #0f172a;
}

.page-visual-icon-search span::after {
    display: none;
}

.page-visual-icon-directory span::before,
.page-visual-icon-category span::before {
    width: 22px;
}

.page-visual-icon-directory span::after,
.page-visual-icon-category span::after {
    width: 12px;
}

.page-visual-flow {
    display: flex;
    gap: 0.45rem;
}

.page-visual-flow i {
    width: 10px;
    height: 54px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(246, 210, 109, 0.95), rgba(78, 132, 249, 0.76));
    opacity: 0.78;
}

.page-visual-flow i:nth-child(2) {
    height: 38px;
    align-self: center;
}

.page-visual-flow i:nth-child(3) {
    height: 24px;
    align-self: center;
}

.top-nav .navbar-brand,
.top-nav .nav-link,
.top-nav .navbar-toggler {
    color: #fff;
}

.top-nav .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.top-nav .navbar-toggler-icon {
    filter: invert(1);
}

.top-nav .navbar-toggler {
    width: 42px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.top-nav .navbar-toggler-icon {
    position: relative;
    width: 20px;
    height: 2px;
    display: inline-block;
    background: currentColor;
    background-image: none !important;
    border-radius: 999px;
}

.top-nav .navbar-toggler-icon::before,
.top-nav .navbar-toggler-icon::after {
    content: "";
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 999px;
}

.top-nav .navbar-toggler-icon::before {
    top: -6px;
}

.top-nav .navbar-toggler-icon::after {
    top: 6px;
}

@media (min-width: 992px) {
    .top-nav .navbar-toggler {
        display: none !important;
    }
}

.top-nav .nav-link {
    opacity: 0.86;
    position: relative;
    transition: color 180ms ease, opacity 180ms ease;
}

.top-nav .nav-link:hover {
    color: var(--accent-2);
    opacity: 1;
}

.top-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0.45rem;
    right: 0.45rem;
    bottom: 0.25rem;
    height: 2px;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.top-nav .nav-link:hover::after,
.top-nav .nav-link:focus-visible::after {
    transform: scaleX(1);
}

.top-nav .btn-outline-light {
    border-color: rgba(255, 255, 255, 0.4);
    color: #fff;
}

.top-nav .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.65);
}

.top-nav,
.top-nav .navbar,
.top-nav .navbar-collapse {
    overflow: visible;
}

.top-nav .dropdown-menu {
    margin-top: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(140deg, rgba(11, 16, 25, 0.98), rgba(20, 27, 39, 0.98));
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.48);
    z-index: 2100;
    border-radius: 12px;
    overflow: hidden;
}

.top-nav .dropdown-item {
    color: #e9eef8;
}

.top-nav .dropdown-item:hover,
.top-nav .dropdown-item:focus {
    color: #ffffff;
    background: rgba(221, 180, 78, 0.18);
}

@media (min-width: 992px) {
    .top-nav .dropdown:hover > .dropdown-menu,
    .top-nav .dropdown:focus-within > .dropdown-menu {
        display: block;
    }
}

.hero {
    padding: 5.8rem 0 4rem;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
}

.lead {
    color: #c8cfde;
}

:root[data-theme="light"] .lead {
    color: #475569;
}

.btn {
    border-radius: 12px;
    font-weight: 700;
    transition: transform 180ms ease, box-shadow 220ms ease, background-color 180ms ease, border-color 180ms ease;
    position: relative;
    overflow: hidden;
}

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

.btn-primary {
    border: 0;
    color: #111;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    box-shadow: 0 12px 28px rgba(221, 180, 78, 0.33);
}

.btn-primary::after {
    content: "";
    position: absolute;
    top: -20%;
    left: -35%;
    width: 36%;
    height: 140%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
    transform: rotate(18deg);
    transition: left 320ms ease;
}

.btn-primary:hover::after {
    left: 120%;
}

.btn-primary:hover {
    background: linear-gradient(120deg, #cca53e, #efd173);
    color: #101010;
}

.btn-outline-dark,
.btn-outline-secondary {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    background: rgba(255, 255, 255, 0.02);
}

.btn-outline-dark:hover,
.btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline-primary {
    border-color: rgba(221, 180, 78, 0.45);
    color: #f2d784;
    background: rgba(221, 180, 78, 0.06);
}

.btn-outline-primary:hover {
    border-color: rgba(221, 180, 78, 0.8);
    color: #111;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
}

.hero-metrics {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.metric-item {
    min-width: 105px;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.65rem 0.85rem;
    background: rgba(255, 255, 255, 0.03);
    box-shadow: var(--shadow);
    border-color: rgba(255, 255, 255, 0.2);
}

.metric-item strong {
    font-size: 1rem;
    color: #fff;
}

.metric-item span {
    font-size: 0.76rem;
    color: #b8c0d0;
}

:root[data-theme="light"] .metric-item {
    background: rgba(15, 23, 42, 0.03);
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 18px 40px rgba(30, 41, 59, 0.1);
}

:root[data-theme="light"] .metric-item strong {
    color: #111827;
}

:root[data-theme="light"] .metric-item span {
    color: #526073;
}

.highlight-card,
.form-card,
.output-card,
.faq-card,
.feature-box,
.timeline-step,
.content-tile {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(8px);
    box-shadow: var(--shadow);
    transition: transform 220ms ease, box-shadow 260ms ease, border-color 220ms ease, background 220ms ease;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.highlight-card::before,
.form-card::before,
.output-card::before,
.faq-card::before,
.feature-box::before,
.timeline-step::before,
.content-tile::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--gloss);
    opacity: 0.55;
    pointer-events: none;
}

.highlight-card:hover,
.form-card:hover,
.output-card:hover,
.faq-card:hover,
.feature-box:hover,
.timeline-step:hover,
.content-tile:hover {
    transform: translateY(-3px);
    border-color: rgba(244, 215, 123, 0.45);
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.5);
}

.workspace-card {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}

.tool-hero .workspace-card,
.tool-hero .workspace-card h2,
.tool-hero .workspace-card h3,
.tool-hero .workspace-card h4,
.tool-hero .workspace-card h5,
.tool-hero .workspace-card strong,
.tool-hero .workspace-card label,
.tool-hero .workspace-card summary {
    color: #f7f9fd;
}

.tool-hero .workspace-card p,
.tool-hero .workspace-card .small,
.tool-hero .workspace-card li,
.tool-hero .workspace-card .text-muted {
    color: #c8d2e3 !important;
}

.tool-hero .workspace-card {
    background: linear-gradient(160deg, rgba(18, 24, 37, 0.94), rgba(25, 33, 48, 0.92));
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.44);
}

.tool-head {
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.notice-section {
    padding-top: 0.4rem !important;
}

.notice-box {
    border-style: solid;
    background: linear-gradient(120deg, rgba(221, 180, 78, 0.12), rgba(78, 132, 249, 0.08));
}

.feature-box,
.timeline-step,
.content-tile {
    padding: 1.1rem;
}

.faq-card {
    padding: 1.1rem;
}

.highlight-card > *,
.form-card > *,
.output-card > *,
.faq-card > *,
.feature-box > *,
.timeline-step > *,
.content-tile > * {
    position: relative;
    z-index: 1;
    overflow-wrap: anywhere;
}

.feature-box::after,
.timeline-step::after,
.content-tile::after,
.output-card::after,
.form-card::after,
.highlight-card::after,
.faq-card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.02));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.feature-box h5,
.timeline-step h5,
.content-tile strong {
    color: #fff;
}

.timeline-step h5 {
    font-size: 1.05rem;
    line-height: 1.3;
    margin-bottom: 0.45rem;
    word-break: break-word;
}

.timeline-step p {
    margin-bottom: 0;
}

.section-title {
    font-weight: 800;
    margin-bottom: 1rem;
    color: #fff;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    display: block;
    width: 56%;
    height: 3px;
    margin-top: 0.35rem;
    border-radius: 99px;
    background: linear-gradient(120deg, rgba(221, 180, 78, 0.95), rgba(78, 132, 249, 0.78));
}

.search-wrap {
    width: min(500px, 100%);
}

.form-control,
.form-select,
textarea {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.95rem;
    transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.form-control,
.form-select,
textarea,
.form-label,
.form-check-label {
    font-size: 0.95rem;
}

.form-control::placeholder,
textarea::placeholder {
    color: #98a4ba;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
    border-color: rgba(244, 215, 123, 0.7);
    box-shadow: 0 0 0 0.2rem rgba(221, 180, 78, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.form-label,
.form-check-label {
    color: #d8deea;
}

.form-select option {
    background: #10141d;
    color: #fff;
}

.surface-section {
    background: transparent;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.timeline-grid,
.content-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.faq-card,
.feature-box,
.timeline-step,
.content-tile {
    height: auto;
}

.row > [class*="col-"] > .faq-card,
.row > [class*="col-"] > .feature-box.h-100,
.row > [class*="col-"] > .timeline-step,
.row > [class*="col-"] > .content-tile {
    height: 100%;
}

.timeline-step > span {
    display: inline-flex;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    color: #111;
    font-weight: 800;
    margin-bottom: 0.6rem;
    flex: 0 0 auto;
}

.timeline-step {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 220px;
}

.content-tile {
    text-decoration: none;
    color: #fff;
    min-height: 122px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.65rem;
}

.content-tile small {
    color: #b7c0d1;
}

.gloss-strip {
    border: 1px solid var(--gloss-line);
    background: linear-gradient(120deg, rgba(78, 132, 249, 0.24), rgba(221, 180, 78, 0.26));
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.45);
}

.need-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.company-preview-grid,
.company-card-grid,
.solution-result-grid,
.solution-metrics {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.company-card-grid {
    align-items: stretch;
    gap: 0.75rem;
    grid-auto-rows: auto;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.company-preview-card,
.company-directory-card,
.category-mini-card,
.solution-result-card {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    padding: 1rem;
    background:
        radial-gradient(220px 120px at 90% -20%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0)),
        linear-gradient(160deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.03));
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 100%;
}

.company-directory-card {
    min-height: 0;
    height: 100%;
}

.company-directory-meta {
    display: grid;
    gap: 0.45rem;
    font-size: 0.9rem;
    color: #d5def0;
}

.category-directory-stack {
    display: grid;
    gap: 1rem;
}

.category-directory-panel {
    padding: 1.3rem;
}

.category-mini-card {
    background: rgba(10, 17, 30, 0.56);
}

.category-directory-card {
    min-height: 100%;
}

.directory-hero {
    padding: clamp(1rem, 2.4vw, 1.45rem);
    overflow: hidden;
}

.directory-hero-graphic {
    position: relative;
    min-height: 132px;
    border: 1px solid rgba(240, 201, 110, 0.32);
    border-radius: 24px;
    background:
        radial-gradient(circle at 24% 24%, rgba(240, 201, 110, 0.22), transparent 24%),
        radial-gradient(circle at 80% 70%, rgba(78, 132, 249, 0.22), transparent 28%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
    display: grid;
    place-items: center;
    text-align: center;
    isolation: isolate;
}

.directory-hero-graphic::before,
.directory-hero-graphic::after {
    content: "";
    position: absolute;
    width: 64%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(240, 201, 110, 0.62), transparent);
    transform: rotate(-22deg);
    z-index: -1;
}

.directory-hero-graphic::after {
    transform: rotate(28deg);
}

.directory-hero-graphic strong {
    display: block;
    color: #fff;
    font-family: "Sora", "Manrope", sans-serif;
    font-size: clamp(1.2rem, 2.6vw, 1.7rem);
}

.directory-hero-graphic small {
    color: #d7def0;
}

.directory-hero-graphic .node {
    position: absolute;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.32);
    background: linear-gradient(135deg, rgba(240, 201, 110, 0.95), rgba(78, 132, 249, 0.78));
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.directory-hero-graphic .node-a { left: 16%; top: 18%; }
.directory-hero-graphic .node-b { right: 18%; top: 28%; }
.directory-hero-graphic .node-c { left: 22%; bottom: 18%; }

.directory-filter-panel {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.055);
    box-shadow: var(--premium-card-shadow);
}

.directory-search-wrap {
    position: relative;
}

.directory-suggest-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.4rem);
    z-index: 60;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: linear-gradient(160deg, rgba(9, 14, 23, 0.98), rgba(20, 28, 42, 0.98));
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.48);
    max-height: 320px;
    overflow: auto;
}

.directory-suggest-list {
    list-style: none;
    margin: 0;
    padding: 0.35rem;
}

.directory-suggest-item {
    border-radius: 10px;
    padding: 0.48rem 0.55rem;
    display: grid;
    gap: 0.18rem;
    cursor: pointer;
}

.directory-suggest-item strong {
    color: #f4f7ff;
    font-size: 0.9rem;
    line-height: 1.25;
}

.directory-suggest-item small {
    color: #9fb0cb;
    font-size: 0.77rem;
    line-height: 1.2;
}

.directory-suggest-item:hover,
.directory-suggest-item.is-active {
    background: rgba(240, 201, 110, 0.16);
}

.system-assist-card {
    border-color: rgba(240, 201, 110, 0.25);
    background:
        radial-gradient(220px 130px at 100% 0%, rgba(240, 201, 110, 0.16), transparent 58%),
        linear-gradient(155deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.035));
}

.system-assist-card .btn {
    min-width: 170px;
    white-space: normal;
    line-height: 1.2;
}

.trust-strip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.1rem;
}

.trust-strip-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: flex-end;
}

.mini-source-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.source-card {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    min-height: 100%;
}

.source-card .source-meta {
    color: #b8c2d6;
    font-size: 0.9rem;
    line-height: 1.55;
}

.knowledge-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
    gap: 1rem;
    align-items: stretch;
}

.knowledge-visual {
    min-height: 180px;
    display: grid;
    place-items: center;
    text-align: center;
    background:
        radial-gradient(circle at 35% 28%, rgba(240, 201, 110, 0.28), transparent 22%),
        radial-gradient(circle at 70% 72%, rgba(78, 132, 249, 0.22), transparent 24%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
}

.knowledge-visual strong {
    font: 800 clamp(1.15rem, 2.2vw, 1.7rem) "Sora", "Manrope", sans-serif;
    color: #fff;
}

.knowledge-visual span {
    color: #c8d2e3;
}

.guide-card {
    display: grid;
    gap: 0.6rem;
}

.guide-card p,
.guide-card li {
    line-height: 1.65;
}

.pdf-preview-note {
    color: #7a4f00;
    background: #fff8dc;
    border: 1px solid #f0c96e;
    border-radius: 12px;
    padding: 0.7rem 0.85rem;
    font: 12px Arial, sans-serif;
    margin-bottom: 12px;
}

.compact-stat {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.compact-stat strong {
    font-size: 1.18rem;
    color: #fff;
}

.compact-stat span {
    color: #b8c2d6;
    font-size: 0.92rem;
}

.directory-category-head,
.directory-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
}

.directory-card-top {
    align-items: flex-start;
    gap: 0.5rem;
    min-height: 56px;
}

.directory-card-top > div:last-child {
    min-width: 0;
}

.directory-card-top h3 {
    font-size: clamp(0.9rem, 0.9vw, 1rem);
    line-height: 1.18;
    min-height: 2.45em;
    padding-top: 0.03em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.directory-card-top .small {
    font-size: 0.72rem;
    line-height: 1.22;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rich-directory-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 0;
    padding: 0.72rem;
    gap: 0.42rem;
    border-radius: 12px;
}

.rich-directory-card img,
.directory-avatar {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
}

.directory-avatar {
    display: grid;
    place-items: center;
    font-weight: 900;
    color: #111827;
    background: linear-gradient(135deg, #e8bd61, #f3d88f);
}

html[lang="hi"] .directory-card-top {
    min-height: 64px;
}

html[lang="hi"] .directory-card-top h3 {
    line-height: 1.34;
    min-height: 2.75em;
    padding-top: 0.08em;
}

html[lang="hi"] .directory-card-top .small {
    line-height: 1.35;
}

html[lang="hi"] .rich-directory-card .btn,
html[lang="hi"] .directory-more summary,
html[lang="hi"] .directory-contact-grid > div {
    line-height: 1.35;
}

.directory-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.directory-contact-grid {
    display: grid;
    gap: 0.32rem;
    min-height: 0;
}

.directory-contact-grid > div {
    padding: 0.32rem 0.42rem;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 9px;
    background: rgba(5, 10, 20, 0.18);
    color: #d6deee;
    font-size: 0.78rem;
    line-height: 1.28;
    overflow-wrap: anywhere;
    min-height: 42px;
    align-content: center;
}

.directory-contact-item {
    display: grid;
    gap: 0.22rem;
}

.directory-contact-label {
    font-weight: 700;
    color: #f4f7fe;
    font-size: 0.7rem;
}

.directory-contact-value {
    color: #d6deee;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.2;
}

.directory-primary-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
    margin-top: 0.1rem;
    padding-top: 0;
}

.directory-primary-actions.is-single {
    grid-template-columns: 1fr;
}

.rich-directory-card .btn {
    font-size: 0.74rem;
    line-height: 1.1;
    padding: 0.28rem 0.42rem;
    width: 100%;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.directory-more {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.42rem;
    margin-top: 0.12rem !important;
}

.directory-more summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    color: #dce5f5;
    font-weight: 600;
    font-size: 0.76rem;
    list-style: none;
}

.directory-more summary::-webkit-details-marker {
    display: none;
}

.directory-more summary::after {
    content: "▾";
    display: inline-block;
    margin-left: 0.45rem;
    color: #f0c96e;
}

.directory-more[open] summary::after {
    content: "▴";
}

.directory-contact-grid-secondary {
    grid-template-columns: 1fr;
}

.directory-contact-grid-secondary > div {
    min-height: 0;
}

.directory-more-body {
    display: grid;
    gap: 0.45rem;
    padding-top: 0.42rem;
    max-height: 170px;
    overflow: auto;
    padding-right: 0.1rem;
}

.directory-more-body p {
    margin: 0;
}

.directory-detail-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.35rem;
}

.directory-detail-actions > .btn:only-child {
    grid-column: 1 / -1;
}

.directory-hub .company-directory-card p {
    line-height: 1.65;
}

.directory-category-head p {
    max-width: 92ch;
}

.solution-hero {
    max-width: 960px;
}

.solution-search-form,
.home-solution-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
}

.solution-result-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.solution-result-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.solution-type {
    display: inline-flex;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 0.25rem 0.55rem;
    color: #d9e7ff;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    background: rgba(255, 255, 255, 0.06);
}

.solution-contact-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.solution-contact-strip span {
    border: 1px solid rgba(240, 201, 110, 0.26);
    border-radius: 999px;
    padding: 0.25rem 0.55rem;
    color: #f7dda0;
    background: rgba(240, 201, 110, 0.08);
    font-size: 0.78rem;
}

.need-card {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    padding: 1rem;
    background:
        radial-gradient(220px 120px at 90% -20%, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0)),
        linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
    box-shadow: var(--shadow);
}

.need-card h5 {
    margin-bottom: 0.5rem;
}

.proof-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    border: 1px solid rgba(221, 180, 78, 0.55);
    background: rgba(221, 180, 78, 0.1);
    color: #f7dda0;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.share-strip {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(110deg, rgba(78, 132, 249, 0.16), rgba(221, 180, 78, 0.15));
    backdrop-filter: blur(6px);
}

.faq-card details {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 0.75rem 0;
    width: 100%;
}

.faq-card details:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.faq-card summary {
    cursor: pointer;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
    line-height: 1.5;
    list-style: none;
}

.faq-card summary::-webkit-details-marker {
    display: none;
}

.faq-card details summary::after {
    content: "+";
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #f7dda0;
    font-size: 1rem;
    font-weight: 700;
}

.faq-card details[open] summary::after {
    content: "–";
}

.faq-card details p {
    margin: 0.6rem 0 0;
    line-height: 1.65;
}

.cta-band {
    background: linear-gradient(110deg, rgba(221, 180, 78, 0.2), rgba(78, 132, 249, 0.22));
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(1) brightness(1.8);
}

.carousel-item .feature-box {
    min-height: 180px;
}

.generator-wrap {
    margin-top: 1.5rem;
}

.tool-sticky {
    top: 88px;
}

.template-pills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pill {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.65rem;
    font-size: 0.78rem;
    color: #d4dbea;
}

.empty-state,
.result-text,
.route-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    padding: 1rem;
}

.result-text {
    min-height: 250px;
    white-space: pre-wrap;
    color: #fff;
    line-height: 1.55;
}

.route-item {
    border-left: 4px solid var(--accent);
    margin-bottom: 0.8rem;
}

.badge-soft {
    background: rgba(255, 255, 255, 0.11);
    color: #f2f5fb;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.82rem;
    font-weight: 700;
}

.rich-list {
    padding-left: 1.15rem;
}

.rich-list li {
    margin-bottom: 0.45rem;
    color: #c4cddd;
}

:root.reveal-enabled .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 520ms ease, transform 520ms ease;
}

:root.reveal-enabled .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.site-footer {
    background: #0e1219;
    color: #aab4c9;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer a {
    color: #d6deef;
    text-decoration: none;
}

.site-footer a:hover {
    color: #ffffff;
}

.footer-shell {
    display: grid;
    gap: 0.8rem 1.25rem;
    grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
    align-items: start;
}

.footer-meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    line-height: 1.4;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.8rem;
    align-items: center;
    align-content: start;
}

.footer-links a {
    white-space: nowrap;
}

.template-gallery {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.template-card {
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    padding: 1rem;
    background:
        radial-gradient(220px 120px at 90% -20%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0)),
        linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
    box-shadow: var(--shadow);
}

.template-preview {
    margin: 0 0 0.85rem;
    border: 1px dashed rgba(255, 255, 255, 0.24);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: #e9eef8;
    font-size: 0.84rem;
    line-height: 1.45;
    padding: 0.8rem;
    min-height: 122px;
    white-space: pre-wrap;
}

.template-gallery--pro {
    gap: 1.35rem;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.template-card--pro {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.template-card__top {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.template-fit,
.template-checklist,
.template-why,
.template-official,
.template-variants {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 17, 30, 0.54);
    border-radius: 16px;
    padding: 0.9rem 1rem;
}

.template-fit {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    color: rgba(236, 241, 247, 0.84);
    font-size: 0.95rem;
}

.template-fit strong,
.template-minihead {
    color: #f0c96e;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.template-bullets {
    margin: 0.75rem 0 0;
    padding-left: 1.1rem;
    color: rgba(236, 241, 247, 0.9);
    display: grid;
    gap: 0.55rem;
}

.template-bullets li::marker {
    color: #f0c96e;
}

.template-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.42rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(240, 201, 110, 0.34);
    background: rgba(240, 201, 110, 0.08);
    color: #f8e5b0;
    font-size: 0.78rem;
}

.template-preview--letter {
    margin-bottom: 0;
    padding: 1.05rem;
    min-height: 330px;
    border-style: solid;
    border-color: rgba(240, 201, 110, 0.16);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
        rgba(8, 13, 22, 0.8);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    font-size: 0.88rem;
    line-height: 1.7;
}

.template-pane {
    display: none;
}

.template-pane.is-active {
    display: block;
}

.template-lang-switch .btn.active {
    border-color: rgba(240, 201, 110, 0.7);
    background: rgba(240, 201, 110, 0.16);
    color: #fff2ca;
}

.template-why p {
    color: rgba(236, 241, 247, 0.82);
    line-height: 1.6;
}

.template-official .btn {
    border-radius: 999px;
}

.template-gallery--companies {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.template-card--company {
    padding: 1.1rem;
}

.cinematic-stage {
    position: relative;
    overflow: hidden;
}

.cinematic-stage::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -80px;
    top: -90px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(240, 201, 110, 0.28), rgba(240, 201, 110, 0));
    pointer-events: none;
}

.cinematic-lines {
    display: grid;
    gap: 0.6rem;
}

.cin-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 11px;
    padding: 0.55rem 0.65rem;
    background: rgba(7, 12, 22, 0.42);
}

.cin-line span {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #aeb9d3;
}

.cin-line strong {
    font-size: 0.85rem;
    color: #ffffff;
}

.cin-pulse {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #eac167;
    box-shadow: 0 0 0 0 rgba(234, 193, 103, 0.6);
    animation: pulseGlow 1.8s ease-out infinite;
}

@keyframes pulseGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(234, 193, 103, 0.55);
    }
    80% {
        box-shadow: 0 0 0 14px rgba(234, 193, 103, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(234, 193, 103, 0);
    }
}

@keyframes pageFade {
    from {
        opacity: 0.35;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 991px) {
    .tool-sticky {
        position: static !important;
    }

    .hero {
        padding-top: 4.8rem;
    }

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

    .section-title::after {
        width: 72%;
    }

    .intent-bot {
        right: 12px;
        bottom: 12px;
    }

    .intent-bot-panel {
        max-height: calc(100vh - 24px);
    }
}


/* Motion + Premium Smoothness Overrides */
:root {
    --motion-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
    animation: pageFade 520ms var(--motion-smooth);
}

.hero {
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(340px 200px at 84% 18%, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0)),
        radial-gradient(360px 220px at 10% 80%, rgba(78, 132, 249, 0.12), rgba(78, 132, 249, 0));
    pointer-events: none;
    z-index: -1;
}

.btn {
    transition: transform 220ms var(--motion-smooth), box-shadow 260ms var(--motion-smooth), background-color 220ms var(--motion-smooth), border-color 220ms var(--motion-smooth);
    will-change: transform;
}

.btn:hover {
    transform: translateY(-2px) scale(1.01);
}

.btn:active {
    transform: translateY(0) scale(0.985);
}

.highlight-card,
.form-card,
.output-card,
.faq-card,
.feature-box,
.timeline-step,
.content-tile {
    transition: transform 260ms var(--motion-smooth), box-shadow 320ms var(--motion-smooth), border-color 260ms var(--motion-smooth), background 260ms var(--motion-smooth);
    will-change: transform;
}

.highlight-card:hover,
.form-card:hover,
.output-card:hover,
.faq-card:hover,
.feature-box:hover,
.timeline-step:hover,
.content-tile:hover {
    transform: translateY(-4px) scale(1.006);
}

.metric-item {
    animation: metricFloat 5.2s ease-in-out infinite;
}

.metric-item:nth-child(2) {
    animation-delay: 0.6s;
}

.metric-item:nth-child(3) {
    animation-delay: 1.2s;
}

.hover-lift {
    transition: transform 260ms var(--motion-smooth), box-shadow 320ms var(--motion-smooth);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.48);
}

:root.reveal-enabled .reveal {
    transform: translateY(18px) scale(0.995);
    transition: opacity 620ms var(--motion-smooth), transform 620ms var(--motion-smooth);
}

:root.reveal-enabled .reveal.is-visible {
    transform: translateY(0) scale(1);
}

@keyframes metricFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* Premium V3 Visual Overrides */
:root {
    --premium-gold: #f0c96e;
    --premium-ice: #dfe9ff;
    --premium-blue: #6ea8ff;
    --premium-card-shadow: 0 22px 60px rgba(0, 0, 0, 0.46);
}

body {
    background:
        radial-gradient(1200px 640px at -10% -20%, rgba(110, 168, 255, 0.18), rgba(110, 168, 255, 0)),
        radial-gradient(980px 540px at 110% -18%, rgba(240, 201, 110, 0.14), rgba(240, 201, 110, 0)),
        radial-gradient(880px 500px at 50% 118%, rgba(130, 170, 255, 0.09), rgba(130, 170, 255, 0)),
        linear-gradient(180deg, #0d1320, #131b2a 40%, #0f1725);
}

.top-nav {
    background: linear-gradient(120deg, rgba(8, 12, 19, 0.86), rgba(16, 23, 36, 0.88));
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px) saturate(1.1);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
}

.top-nav .navbar-brand {
    letter-spacing: 0.02em;
    font-family: "Sora", "Manrope", sans-serif;
}

.top-nav .nav-link {
    padding: 0.45rem 0.6rem;
    border-radius: 8px;
}

.top-nav .nav-link:hover {
    background: rgba(255, 255, 255, 0.06);
}

.top-nav .nav-link.active,
.top-nav .nav-link.show {
    color: #f6dc92;
    opacity: 1;
    background: rgba(240, 201, 110, 0.12);
}

.top-nav .dropdown-menu {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(145deg, rgba(9, 14, 24, 0.98), rgba(18, 26, 40, 0.98));
    box-shadow: 0 26px 58px rgba(0, 0, 0, 0.56);
}

.top-nav .dropdown-item {
    border-radius: 8px;
    margin: 0.15rem 0.35rem;
    width: calc(100% - 0.7rem);
}

.top-nav .dropdown-item.active {
    color: #111827;
    background: linear-gradient(120deg, #e8bd61, #f3d88f);
    font-weight: 800;
}

.hero-premium h1 {
    color: #ffffff;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.hero-premium .lead {
    color: #d5dff4;
}

.metric-item {
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    border-color: rgba(255, 255, 255, 0.26);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.36);
}

.highlight-card,
.form-card,
.output-card,
.faq-card,
.feature-box,
.timeline-step,
.content-tile,
.template-card,
.need-card,
.company-preview-card,
.company-directory-card,
.category-mini-card,
.solution-result-card {
    border: 1px solid rgba(255, 255, 255, 0.17);
    background: linear-gradient(152deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04));
    box-shadow: var(--premium-card-shadow);
}

.feature-box:hover,
.content-tile:hover,
.template-card:hover,
.need-card:hover,
.company-preview-card:hover,
.company-directory-card:hover,
.category-mini-card:hover,
.solution-result-card:hover,
.timeline-step:hover,
.output-card:hover,
.form-card:hover,
.highlight-card:hover,
.faq-card:hover {
    box-shadow: 0 28px 68px rgba(0, 0, 0, 0.58);
    border-color: rgba(240, 201, 110, 0.55);
}

.section-title {
    font-size: clamp(1.25rem, 2.1vw, 1.95rem);
    letter-spacing: -0.02em;
}

.btn-primary {
    background: linear-gradient(120deg, #e8bd61, #f3d88f);
    box-shadow: 0 16px 34px rgba(232, 189, 97, 0.36);
}

.btn-primary:hover {
    background: linear-gradient(120deg, #dfb454, #f0d27f);
    box-shadow: 0 18px 40px rgba(232, 189, 97, 0.44);
}

.btn-outline-primary {
    border-color: rgba(240, 201, 110, 0.65);
    color: #f5d88d;
    background: rgba(240, 201, 110, 0.09);
}

.btn-outline-primary:hover {
    color: #111;
    background: linear-gradient(120deg, #e8bd61, #f3d88f);
}

.form-control,
.form-select,
textarea {
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.06);
}

.form-control:focus,
.form-select:focus,
textarea:focus {
    border-color: rgba(240, 201, 110, 0.84);
    box-shadow: 0 0 0 0.24rem rgba(240, 201, 110, 0.2);
}

.template-preview,
.result-text {
    background: rgba(8, 13, 22, 0.62);
    border-color: rgba(255, 255, 255, 0.2);
}

.notice-box,
.gloss-strip,
.share-strip,
.cta-band {
    border-color: rgba(255, 255, 255, 0.22);
}

.site-footer {
    background: linear-gradient(180deg, #0a101a, #0d1420);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-links a {
    padding: 0.2rem 0.35rem;
    border-radius: 6px;
}

.footer-links a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.intent-bot {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 2400;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.intent-bot-launch,
.intent-bot-close,
.intent-bot-chip {
    border: 0;
}

.intent-bot-launch {
    min-width: 230px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    color: #101318;
    background: linear-gradient(130deg, #efd173, #ddb44e 58%, #f7e29e);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.35);
    transition: transform 220ms ease, box-shadow 220ms ease, opacity 220ms ease;
    cursor: pointer;
}

.intent-bot-launch strong,
.intent-bot-launch small {
    color: #111;
}

.intent-bot-launch .text-muted,
.intent-bot-launch small.text-muted {
    color: rgba(17, 19, 24, 0.68) !important;
}

.intent-bot-launch__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.18rem 0.5rem;
    background: rgba(17, 19, 24, 0.12);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.intent-bot-panel {
    width: min(390px, calc(100vw - 24px));
    margin-top: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(10, 15, 23, 0.98), rgba(21, 28, 40, 0.98));
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.48);
    overflow: hidden;
    transform-origin: bottom right;
    animation: botPanelIn 220ms ease;
    max-height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
}

.intent-bot-panel[hidden] {
    display: none !important;
}

.intent-bot.is-open .intent-bot-launch {
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px) scale(0.96);
}

.intent-bot-panel__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1rem 0.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.intent-bot-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 auto;
}

.intent-bot-reset {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    background: rgba(255, 255, 255, 0.07);
    color: #eef3fb;
    font-size: 0.78rem;
    font-weight: 700;
}

.intent-bot-close {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    font-size: 1.3rem;
    line-height: 1;
    font-weight: 800;
    cursor: pointer;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.intent-bot-messages {
    overflow-y: auto;
    padding: 0.95rem 1rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    flex: 1 1 auto;
    min-height: 0;
}

.bot-msg,
.user-msg {
    border-radius: 16px;
    padding: 0.85rem 0.9rem;
    line-height: 1.5;
    font-size: 0.93rem;
    max-width: 94%;
}

.bot-msg {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #eff3fb;
}

.bot-msg a {
    color: #f7dda0;
}

.bot-msg p:last-child,
.user-msg p:last-child,
.bot-msg ol:last-child {
    margin-bottom: 0;
}

.user-msg {
    align-self: flex-end;
    max-width: 92%;
    background: linear-gradient(130deg, rgba(221, 180, 78, 0.2), rgba(78, 132, 249, 0.18));
    border: 1px solid rgba(221, 180, 78, 0.28);
    color: #fff;
}

.bot-msg--typing {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    min-height: 44px;
}

.typing-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(247, 221, 160, 0.95);
    animation: typingPulse 1s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.15s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.3s;
}

.intent-bot-prompts,
.intent-bot-form {
    padding: 0.85rem 1rem 1rem;
    flex: 0 0 auto;
}

.intent-bot-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.intent-bot-chip {
    border-radius: 999px;
    padding: 0.45rem 0.75rem;
    background: rgba(255, 255, 255, 0.08);
    color: #f1f5fc;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.intent-bot-form {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(8, 13, 21, 0.55);
}

.intent-bot-form textarea {
    width: 100%;
    resize: vertical;
    margin-bottom: 0.7rem;
    min-height: 88px;
}

.trust-graphic {
    width: 100%;
    display: block;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.category-purpose-card,
.term-card {
    background:
        radial-gradient(circle at top right, rgba(221, 180, 78, 0.16), transparent 38%),
        rgba(255, 255, 255, 0.055);
}

.premium-mission-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.premium-section-title::after {
    width: min(220px, 42%);
}

:root[data-theme="light"] .feature-box,
:root[data-theme="light"] .timeline-step,
:root[data-theme="light"] .content-tile,
:root[data-theme="light"] .template-card,
:root[data-theme="light"] .need-card,
:root[data-theme="light"] .company-preview-card,
:root[data-theme="light"] .company-directory-card,
:root[data-theme="light"] .category-mini-card,
:root[data-theme="light"] .solution-result-card,
:root[data-theme="light"] .highlight-card,
:root[data-theme="light"] .form-card,
:root[data-theme="light"] .output-card,
:root[data-theme="light"] .faq-card {
    background: linear-gradient(152deg, rgba(255, 255, 255, 0.92), rgba(244, 248, 255, 0.76));
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 18px 44px rgba(30, 41, 59, 0.12);
}

:root[data-theme="light"] .feature-box h5,
:root[data-theme="light"] .timeline-step h5,
:root[data-theme="light"] .content-tile strong,
:root[data-theme="light"] .section-title,
:root[data-theme="light"] .template-card h2,
:root[data-theme="light"] .template-card h3,
:root[data-theme="light"] .template-card h4,
:root[data-theme="light"] .template-card h5 {
    color: #111827;
}

:root[data-theme="light"] .content-tile small,
:root[data-theme="light"] p,
:root[data-theme="light"] small,
:root[data-theme="light"] li {
    color: #526073;
}

:root[data-theme="light"] .form-control,
:root[data-theme="light"] .form-select,
:root[data-theme="light"] textarea {
    background: rgba(255, 255, 255, 0.88);
    color: #111827;
    border-color: rgba(15, 23, 42, 0.18);
}

:root[data-theme="light"] .hero,
:root[data-theme="light"] .hero h1,
:root[data-theme="light"] .hero h2,
:root[data-theme="light"] .hero h3,
:root[data-theme="light"] .hero h4,
:root[data-theme="light"] .hero h5,
:root[data-theme="light"] .highlight-card h5,
:root[data-theme="light"] .page-visual-card h2,
:root[data-theme="light"] .page-visual-card h3,
:root[data-theme="light"] .page-visual-card h4,
:root[data-theme="light"] .page-visual-card h5 {
    color: #111827;
}

:root[data-theme="light"] .hero p,
:root[data-theme="light"] .hero .lead,
:root[data-theme="light"] .highlight-card p,
:root[data-theme="light"] .page-visual-card p,
:root[data-theme="light"] .page-visual-card .text-muted {
    color: #526073 !important;
}

:root[data-theme="light"] .btn-outline-dark {
    color: #111827;
    border-color: rgba(15, 23, 42, 0.32);
    background: rgba(255, 255, 255, 0.5);
}

:root[data-theme="light"] .btn-outline-secondary {
    color: #1f2937;
    border-color: rgba(15, 23, 42, 0.3);
    background: rgba(255, 255, 255, 0.54);
}

:root[data-theme="light"] .btn-outline-primary {
    color: #8a5a00;
    border-color: rgba(138, 90, 0, 0.42);
    background: rgba(183, 125, 24, 0.1);
}

:root[data-theme="light"] .btn-outline-primary:hover,
:root[data-theme="light"] .btn-outline-secondary:hover {
    color: #ffffff;
    border-color: rgba(138, 90, 0, 0.78);
    background: #8a5a00;
}

:root[data-theme="light"] .directory-filter-panel {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(15, 23, 42, 0.12);
}

:root[data-theme="light"] .directory-contact-grid > div {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(15, 23, 42, 0.1);
    color: #334155;
}

:root[data-theme="light"] .directory-contact-label {
    color: #111827;
}

:root[data-theme="light"] .directory-contact-value {
    color: #334155;
}

:root[data-theme="light"] .directory-more {
    border-top-color: rgba(15, 23, 42, 0.1);
}

:root[data-theme="light"] .directory-more summary {
    color: #1f2937;
}

:root[data-theme="light"] .directory-more summary::after {
    color: #8a5a00;
}

:root[data-theme="light"] .rich-directory-card {
    background:
        radial-gradient(180px 90px at 90% -20%, rgba(183, 125, 24, 0.12), transparent 64%),
        linear-gradient(152deg, rgba(255, 255, 255, 0.94), rgba(243, 247, 255, 0.78));
}

:root[data-theme="light"] .directory-hero-graphic {
    background:
        radial-gradient(circle at 24% 24%, rgba(221, 180, 78, 0.2), transparent 24%),
        radial-gradient(circle at 80% 70%, rgba(78, 132, 249, 0.14), transparent 28%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(243, 247, 255, 0.86));
}

:root[data-theme="light"] .directory-hero-graphic strong,
:root[data-theme="light"] .compact-stat strong {
    color: #111827;
}

:root[data-theme="light"] .directory-hero-graphic small,
:root[data-theme="light"] .compact-stat span,
:root[data-theme="light"] .source-card .source-meta,
:root[data-theme="light"] .knowledge-visual span {
    color: #526073;
}

:root[data-theme="light"] .knowledge-visual strong {
    color: #111827;
}

:root[data-theme="light"] .top-nav .nav-link.active,
:root[data-theme="light"] .top-nav .nav-link.show {
    color: #8a5a00;
    background: rgba(221, 180, 78, 0.16);
}

:root[data-theme="light"] .btn-outline-dark:hover {
    color: #ffffff;
    background: #111827;
}

:root[data-theme="light"] .template-tag,
:root[data-theme="light"] .proof-chip,
:root[data-theme="light"] .badge-soft {
    color: #1f2937;
    background: rgba(183, 125, 24, 0.12);
    border-color: rgba(183, 125, 24, 0.28);
}

:root[data-theme="light"] .page-managed-banner {
    background:
        radial-gradient(circle at 14% 20%, rgba(40, 95, 214, 0.12), transparent 36%),
        radial-gradient(circle at 90% 16%, rgba(183, 125, 24, 0.16), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 255, 0.88));
    border-color: rgba(15, 23, 42, 0.12);
}

:root[data-theme="light"] .page-managed-banner__visual img,
:root[data-theme="light"] .page-managed-banner__placeholder {
    border-color: rgba(15, 23, 42, 0.14);
}

:root[data-theme="light"] .directory-suggest-panel {
    border-color: rgba(15, 23, 42, 0.14);
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(30, 41, 59, 0.16);
}

:root[data-theme="light"] .directory-suggest-item strong {
    color: #111827;
}

:root[data-theme="light"] .directory-suggest-item small {
    color: #526073;
}

:root[data-theme="light"] .directory-suggest-item:hover,
:root[data-theme="light"] .directory-suggest-item.is-active {
    background: rgba(183, 125, 24, 0.14);
}

:root[data-theme="light"] .intent-bot-launch .text-muted,
:root[data-theme="light"] .intent-bot-launch small.text-muted {
    color: rgba(17, 19, 24, 0.74) !important;
}

:root[data-theme="light"] .intent-bot-panel {
    background: linear-gradient(160deg, rgba(250, 252, 255, 0.98), rgba(240, 246, 255, 0.97));
    border-color: rgba(15, 23, 42, 0.14);
}

:root[data-theme="light"] .bot-msg {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(15, 23, 42, 0.14);
    color: #1f2937;
}

:root[data-theme="light"] .bot-msg a {
    color: #8a5a00;
}

:root[data-theme="light"] .user-msg {
    color: #111827;
    background: linear-gradient(130deg, rgba(183, 125, 24, 0.18), rgba(40, 95, 214, 0.16));
    border-color: rgba(183, 125, 24, 0.26);
}

:root[data-theme="light"] .intent-bot-reset,
:root[data-theme="light"] .intent-bot-chip,
:root[data-theme="light"] .intent-bot-close {
    color: #1f2937;
    border-color: rgba(15, 23, 42, 0.14);
    background: rgba(15, 23, 42, 0.06);
}

:root[data-theme="light"] .intent-bot-form {
    border-top-color: rgba(15, 23, 42, 0.1);
    background: rgba(255, 255, 255, 0.82);
}

@keyframes botPanelIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes typingPulse {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 991px) {
    .knowledge-hero,
    .trust-strip {
        grid-template-columns: 1fr;
    }

    .page-managed-banner {
        grid-template-columns: 1fr;
    }

    .trust-strip-actions {
        justify-content: flex-start;
    }

    .top-nav .nav-link {
        padding: 0.45rem 0.52rem;
    }

    .highlight-card,
    .form-card,
    .output-card,
    .faq-card,
    .feature-box,
    .timeline-step,
    .content-tile,
    .template-card,
    .need-card {
        box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4);
    }
}

@media (max-width: 1199px) {
    .company-card-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .company-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .company-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .rich-directory-card {
        padding: 0.7rem;
    }

    .directory-avatar,
    .rich-directory-card img {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .directory-contact-grid > div {
        font-size: 0.76rem;
        padding: 0.32rem 0.42rem;
        min-height: 48px;
    }

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

    .solution-search-form,
    .home-solution-search {
        grid-template-columns: 1fr;
    }

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

    .intent-bot {
        right: 12px;
        left: 12px;
        bottom: 12px;
    }

    .intent-bot-launch,
    .intent-bot-panel {
        width: 100%;
    }

    .intent-bot-panel {
        max-height: calc(100vh - 24px);
    }

    .directory-suggest-panel {
        max-height: 260px;
    }
}

@media (max-width: 380px) {
    .company-card-grid {
        grid-template-columns: 1fr;
    }
}

/* Premium civic-tech visual system refresh */
:root {
    --brand-navy: #08111f;
    --brand-navy-2: #101b2c;
    --brand-gold: #f0c96e;
    --brand-gold-2: #d89b34;
    --brand-blue: #5c8df8;
    --brand-cyan: #66e0ff;
    --premium-radius: 24px;
    --premium-card-shadow: 0 24px 70px rgba(2, 6, 23, 0.36);
    --premium-inner-line: inset 0 1px 0 rgba(255,255,255,.16);
}

:root[data-theme="light"] {
    --brand-navy: #f7f9fd;
    --brand-navy-2: #ffffff;
    --premium-card-shadow: 0 24px 64px rgba(30, 41, 59, 0.13);
    --premium-inner-line: inset 0 1px 0 rgba(255,255,255,.92);
}

body {
    background:
        radial-gradient(900px 540px at 8% -10%, rgba(92, 141, 248, 0.18), transparent 60%),
        radial-gradient(820px 520px at 92% 4%, rgba(240, 201, 110, 0.13), transparent 58%),
        linear-gradient(180deg, #07101d 0%, #101827 42%, #131b28 100%);
}

:root[data-theme="light"] body {
    background:
        radial-gradient(900px 540px at 8% -10%, rgba(40, 95, 214, 0.11), transparent 60%),
        radial-gradient(820px 520px at 92% 4%, rgba(216, 155, 52, 0.12), transparent 58%),
        linear-gradient(180deg, #f8fbff 0%, #eef4fc 46%, #f8fafc 100%);
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.72rem;
    min-width: 0;
}

.brand-emblem {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    background:
        radial-gradient(circle at 30% 22%, rgba(255,255,255,.42), transparent 32%),
        linear-gradient(135deg, #ffe49b, #d89b34 72%);
    box-shadow: 0 14px 30px rgba(240, 201, 110, 0.26), inset 0 1px 0 rgba(255,255,255,.48);
    flex: 0 0 auto;
}

.brand-emblem svg {
    width: 27px;
    height: 27px;
    display: block;
}

.brand-emblem img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: inherit;
}

.brand-emblem svg path:first-child {
    fill: #0b1322;
}

.brand-emblem svg path:last-child {
    fill: none;
    stroke: #fff7d7;
    stroke-width: 2.4;
    stroke-linecap: round;
}

.top-nav {
    background:
        linear-gradient(120deg, rgba(7, 14, 26, 0.91), rgba(15, 24, 38, 0.86)),
        radial-gradient(circle at 18% 0%, rgba(240, 201, 110, 0.12), transparent 36%);
    backdrop-filter: blur(22px) saturate(1.18);
}

:root[data-theme="light"] .top-nav {
    background:
        linear-gradient(120deg, rgba(255,255,255,.91), rgba(246,249,255,.86)),
        radial-gradient(circle at 18% 0%, rgba(216,155,52,.12), transparent 36%);
}

.page-visual-strip {
    padding: clamp(0.8rem, 1.7vw, 1.25rem) 0 0;
}

.page-visual-card {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.47fr);
    gap: clamp(1rem, 2.6vw, 2rem);
    align-items: center;
    min-height: 220px;
    padding: clamp(1.05rem, 2.2vw, 1.65rem);
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,.16);
    background:
        linear-gradient(115deg, rgba(255,255,255,.12), rgba(255,255,255,.045) 52%, rgba(240,201,110,.08)),
        radial-gradient(420px 180px at 0% 0%, rgba(92,141,248,.24), transparent 72%),
        radial-gradient(400px 180px at 100% 0%, rgba(240,201,110,.17), transparent 70%);
    box-shadow: var(--premium-card-shadow), var(--premium-inner-line);
}

.page-visual-card::before {
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px),
        radial-gradient(circle at 12% 22%, rgba(240,201,110,.18), transparent 18%);
    background-size: 34px 34px, 34px 34px, 100% 100%;
    mask-image: linear-gradient(90deg, rgba(0,0,0,.9), rgba(0,0,0,.42) 54%, transparent);
}

:root[data-theme="light"] .page-visual-card {
    border-color: rgba(15,23,42,.12);
    background:
        linear-gradient(115deg, rgba(255,255,255,.98), rgba(244,248,255,.88) 52%, rgba(255,244,215,.76)),
        radial-gradient(420px 180px at 0% 0%, rgba(40,95,214,.12), transparent 72%),
        radial-gradient(400px 180px at 100% 0%, rgba(216,155,52,.15), transparent 70%);
}

.page-visual-copy {
    display: grid;
    gap: 0.65rem;
    align-content: center;
}

.page-visual-kicker {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 0.5rem;
    padding: 0.38rem 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(240,201,110,.42);
    background: rgba(240,201,110,.09);
    color: #ffe9ad;
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
}

.page-visual-kicker span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #66e0ff;
    box-shadow: 0 0 0 5px rgba(102,224,255,.12);
}

:root[data-theme="light"] .page-visual-kicker {
    color: #7a4f00;
    background: rgba(216,155,52,.12);
}

.page-visual-card h2 {
    margin: 0;
    font-size: clamp(1.35rem, 2.15vw, 2rem);
    line-height: 1.16;
    letter-spacing: -0.025em;
}

.page-visual-card p {
    max-width: 790px;
    margin: 0;
    color: #c7d2e7;
    font-size: clamp(0.94rem, 1.05vw, 1.04rem);
}

:root[data-theme="light"] .page-visual-card p {
    color: #4b5870;
}

.page-visual-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.25rem;
}

.page-visual-step {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 36px;
    padding: 0.34rem 0.68rem 0.34rem 0.42rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.15);
    background: rgba(7, 14, 26, .34);
    color: #eef4ff;
    font-weight: 750;
    font-size: 0.84rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.09);
}

.page-visual-step b {
    display: inline-grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffe49b, #d89b34);
    color: #111827;
    font-size: 0.72rem;
}

:root[data-theme="light"] .page-visual-step {
    color: #172033;
    background: rgba(255,255,255,.72);
    border-color: rgba(15,23,42,.11);
}

.page-visual-art {
    min-height: 180px;
    min-width: 0;
    max-width: 100%;
    align-self: stretch;
    display: grid;
    place-items: center;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,.14);
    background:
        radial-gradient(circle at 25% 22%, rgba(240,201,110,.20), transparent 28%),
        radial-gradient(circle at 80% 70%, rgba(92,141,248,.18), transparent 30%),
        rgba(8, 15, 28, .34);
    overflow: hidden;
}

:root[data-theme="light"] .page-visual-art {
    border-color: rgba(15,23,42,.12);
    background:
        radial-gradient(circle at 25% 22%, rgba(216,155,52,.17), transparent 28%),
        radial-gradient(circle at 80% 70%, rgba(40,95,214,.13), transparent 30%),
        rgba(255,255,255,.54);
}

.page-visual-art svg {
    width: min(100%, 430px);
    height: auto;
    display: block;
}

.page-visual-admin-img {
    width: min(100%, 430px);
    max-width: 100%;
    max-height: 210px;
    display: block;
    object-fit: contain;
    border-radius: 20px;
    filter: drop-shadow(0 18px 26px rgba(2,6,23,.26));
}

.page-visual-cta {
    justify-self: start;
    width: fit-content;
    margin-top: 0.2rem;
}

.pv-node {
    transform-origin: center;
    animation: civicPulse 3.6s ease-in-out infinite;
}

.pv-node-b {
    animation-delay: 0.5s;
}

.pv-node-c {
    animation-delay: 1s;
}

@keyframes civicPulse {
    0%, 100% {
        transform: scale(1);
        opacity: .76;
    }
    50% {
        transform: scale(1.35);
        opacity: 1;
    }
}

.page-managed-banner {
    border-radius: 28px;
    border-color: rgba(240,201,110,.24);
    box-shadow: var(--premium-card-shadow), var(--premium-inner-line);
}

.highlight-card,
.form-card,
.output-card,
.faq-card,
.feature-box,
.timeline-step,
.content-tile,
.template-card,
.need-card,
.company-preview-card,
.company-directory-card,
.category-mini-card,
.solution-result-card,
.rich-directory-card,
.directory-filter-panel,
.compact-stat {
    border-radius: 22px;
    box-shadow: var(--premium-card-shadow), var(--premium-inner-line);
}

.feature-box,
.timeline-step,
.content-tile,
.need-card,
.company-directory-card,
.rich-directory-card,
.directory-filter-panel {
    background:
        linear-gradient(150deg, rgba(255,255,255,.115), rgba(255,255,255,.04)),
        radial-gradient(280px 130px at 100% 0%, rgba(240,201,110,.08), transparent 70%);
}

:root[data-theme="light"] .feature-box,
:root[data-theme="light"] .timeline-step,
:root[data-theme="light"] .content-tile,
:root[data-theme="light"] .need-card,
:root[data-theme="light"] .company-directory-card,
:root[data-theme="light"] .rich-directory-card,
:root[data-theme="light"] .directory-filter-panel {
    background:
        linear-gradient(150deg, rgba(255,255,255,.96), rgba(246,249,255,.86)),
        radial-gradient(280px 130px at 100% 0%, rgba(216,155,52,.11), transparent 70%);
}

.section-title::after {
    width: min(180px, 58%);
    height: 4px;
    background: linear-gradient(90deg, #f0c96e, #5c8df8, #66e0ff);
}

.proof-chip,
.template-tag {
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}

:root[data-theme="light"] .proof-chip,
:root[data-theme="light"] .template-tag {
    color: #7a4f00;
    background: rgba(216,155,52,.11);
}

.btn,
.form-control,
.form-select,
textarea {
    border-radius: 14px;
}

.btn-primary {
    background: linear-gradient(135deg, #ffe49b, #d89b34);
    color: #111827;
}

.btn-outline-primary {
    border-color: rgba(240,201,110,.58);
    color: #ffe49b;
}

:root[data-theme="light"] .btn-outline-primary {
    color: #7a4f00;
    border-color: rgba(183,125,24,.5);
    background: rgba(216,155,52,.08);
}

.trust-graphic {
    border-radius: 24px;
    box-shadow: 0 22px 48px rgba(2,6,23,.24);
}

@media (prefers-reduced-motion: reduce) {
    .pv-node,
    .metric-item {
        animation: none !important;
    }
}

@media (max-width: 991px) {
    .page-visual-card {
        grid-template-columns: 1fr;
    }

    .page-visual-art {
        min-height: 160px;
    }
}

@media (max-width: 575px) {
    .brand-emblem {
        width: 34px;
        height: 34px;
        border-radius: 12px;
    }

    .page-visual-card {
        display: flex;
        flex-direction: column;
        min-height: 0;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 1rem;
        border-radius: 22px;
    }

    .page-visual-card h2 {
        font-size: 1.2rem;
    }

    .page-visual-card p {
        font-size: 0.9rem;
        overflow-wrap: anywhere;
    }

    .page-visual-art {
        width: 100%;
        min-height: 128px;
        max-width: 100%;
        min-width: 0;
    }

    .page-visual-admin-img,
    .page-visual-art svg {
        width: 100%;
        max-width: 100%;
    }

    .page-visual-copy,
    .page-visual-card h2,
    .page-visual-card p {
        min-width: 0;
        max-width: 100%;
    }

    .page-visual-step {
        font-size: 0.78rem;
        min-height: 32px;
    }

    .intent-bot {
        left: auto;
        right: 14px;
        bottom: 14px;
    }

    .intent-bot-launch {
        width: 64px !important;
        min-width: 64px;
        height: 64px;
        align-items: center;
        justify-content: center;
        padding: 0;
        border-radius: 999px;
        box-shadow: 0 18px 48px rgba(240, 201, 110, 0.36);
    }

    .intent-bot-launch::before {
        content: "⚖";
        font-size: 1.55rem;
        line-height: 1;
    }

    .intent-bot-launch strong,
    .intent-bot-launch small {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .intent-bot-launch__badge {
        position: absolute;
        top: -5px;
        right: -5px;
        width: 22px;
        height: 22px;
        padding: 0;
        font-size: 0;
        box-shadow: 0 0 0 4px rgba(240, 201, 110, 0.18);
    }

    .intent-bot-launch__badge::after {
        content: "";
        width: 8px;
        height: 8px;
        border-radius: 999px;
        background: #16a34a;
    }

    .intent-bot.is-open {
        left: 12px;
        right: 12px;
    }

    .intent-bot-panel {
        width: 100%;
    }
}

/* Launch polish: civic premium visual system, admin banners and readable density */
:root {
    --trust-ink: #09233d;
    --trust-blue: #2563eb;
    --trust-teal: #0f766e;
    --trust-mint: #2dd4bf;
    --trust-sky: #eaf6ff;
    --trust-paper: #f8fbff;
}

body {
    padding-bottom: 0;
}

.top-nav {
    border-bottom: 1px solid rgba(216, 229, 244, 0.13);
}

.home-managed-banner {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.75fr);
    align-items: center;
    gap: clamp(1rem, 2vw, 1.5rem);
    min-height: 260px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.045)),
        radial-gradient(360px 160px at 100% 0%, rgba(45,212,191,.13), transparent 72%) !important;
}

.home-managed-banner__copy {
    min-width: 0;
}

.home-managed-banner__copy h3 {
    color: var(--text);
    font-weight: 850;
    letter-spacing: -0.02em;
}

.home-managed-banner__copy p {
    max-width: 62ch;
    color: var(--muted);
}

.home-managed-banner__img {
    width: 100%;
    max-height: 210px;
    object-fit: cover;
    object-position: center;
    border-radius: 22px;
    border: 1px solid rgba(216,229,244,.18);
    box-shadow: 0 20px 48px rgba(3, 18, 38, .22);
}

.page-visual-card {
    overflow: hidden;
}

.page-visual-admin-img {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 16 / 5;
    max-height: none;
    object-fit: cover;
    border-radius: 22px;
}

.page-visual-art {
    padding: 0.55rem;
}

.directory-hub .directory-hero,
.directory-filter-panel,
.company-directory-group {
    overflow: visible !important;
}

.directory-suggest-panel {
    z-index: 1090;
}

.company-directory-group {
    padding: clamp(0.85rem, 1.3vw, 1.2rem) !important;
}

.directory-category-head {
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.directory-category-head .proof-chip,
.directory-service-meta {
    display: none !important;
}

.directory-category-head p {
    max-width: 96ch;
    font-size: 0.94rem;
    line-height: 1.56;
}

.company-card-grid {
    align-items: stretch;
}

.rich-directory-card {
    min-height: 204px !important;
    max-height: none;
}

.directory-card-top {
    align-items: center;
    min-height: 56px !important;
}

html[lang="hi"] .directory-card-top {
    min-height: 64px !important;
}

.directory-card-top h3 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

html[lang="hi"] .directory-card-top h3 {
    -webkit-line-clamp: 2;
    max-height: 3.3em;
}

.directory-contact-grid {
    display: grid;
    grid-template-columns: 1fr;
}

.directory-contact-grid > div {
    min-height: 42px;
    padding: 0.44rem 0.58rem;
}

.directory-contact-label {
    display: block;
    margin-bottom: 0.08rem;
}

.directory-primary-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 0.1rem;
}

.directory-primary-actions .btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.directory-more {
    margin-top: 0.1rem !important;
}

.directory-more summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.directory-more-body {
    max-height: 132px !important;
}

.directory-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.directory-detail-actions .btn {
    flex: 1 1 92px;
    min-width: 0;
}

.intent-bot {
    z-index: 1060;
}

.intent-bot-launch {
    color: #061522 !important;
    background: linear-gradient(135deg, #f7cc60, #f7e6a3) !important;
}

.intent-bot-launch__subtitle {
    color: rgba(6, 21, 34, .72) !important;
}

/* Launch polish: compact footer without reserving page-bottom space for floating help. */
html,
body {
    min-height: 100%;
}

body {
    padding-bottom: 0 !important;
}

.site-footer {
    margin-top: 1rem !important;
    background:
        linear-gradient(90deg, rgba(13, 19, 31, .98), rgba(12, 22, 34, .98)),
        radial-gradient(420px 140px at 90% 0%, rgba(78, 132, 249, .12), transparent 72%) !important;
}

.site-footer .container {
    padding-top: .9rem !important;
    padding-bottom: .9rem !important;
}

.footer-shell {
    grid-template-columns: minmax(260px, 430px) minmax(0, 1fr) !important;
    align-items: center !important;
}

.footer-meta {
    gap: .22rem !important;
}

.footer-meta small,
.footer-links a {
    font-size: clamp(.78rem, .85vw, .92rem) !important;
    line-height: 1.35 !important;
}

.footer-links {
    justify-content: flex-end !important;
    gap: .25rem .72rem !important;
}

.footer-links a {
    padding: .15rem .25rem !important;
}

@media (max-width: 991px) {
    .footer-shell {
        grid-template-columns: 1fr !important;
        align-items: start !important;
    }

    .footer-links {
        justify-content: flex-start !important;
    }
}

/* Final ComplaintMitra assistant polish: compact, readable, responsive. */
.intent-bot {
    z-index: 1100 !important;
}

.intent-bot-panel {
    width: min(520px, calc(100vw - 28px)) !important;
    height: min(720px, calc(100dvh - 34px)) !important;
    max-height: none !important;
    overflow: hidden !important;
    border-radius: 28px !important;
    background:
        radial-gradient(420px 220px at 15% 0%, rgba(45, 212, 191, .16), transparent 72%),
        linear-gradient(160deg, rgba(9, 18, 32, .98), rgba(14, 28, 48, .96)) !important;
    border: 1px solid rgba(148, 163, 184, .24) !important;
    box-shadow: 0 34px 90px rgba(0, 0, 0, .42) !important;
}

.intent-bot-panel__head {
    flex: 0 0 auto !important;
    padding: 1.05rem 1.15rem .92rem !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)) !important;
    border-bottom: 1px solid rgba(148, 163, 184, .14) !important;
}

.intent-bot-messages {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    padding: 1rem 1.05rem !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    scroll-behavior: smooth !important;
}

.intent-bot-messages::-webkit-scrollbar {
    width: 9px;
}

.intent-bot-messages::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(45, 212, 191, .8), rgba(37, 99, 235, .72));
}

.bot-msg,
.user-msg {
    max-width: 88% !important;
    margin-bottom: .78rem !important;
    padding: .86rem .95rem !important;
    border-radius: 20px !important;
    line-height: 1.55 !important;
    font-size: .95rem !important;
    word-break: normal !important;
    overflow-wrap: anywhere !important;
}

.bot-msg {
    margin-right: auto !important;
    background: rgba(255, 255, 255, .075) !important;
    border: 1px solid rgba(148, 163, 184, .16) !important;
}

.user-msg {
    margin-left: auto !important;
    color: #f9fbff !important;
    background: linear-gradient(135deg, rgba(20, 184, 166, .3), rgba(37, 99, 235, .36)) !important;
    border: 1px solid rgba(125, 211, 252, .25) !important;
}

.bot-msg ol,
.bot-msg ul {
    margin: .55rem 0 .15rem 1.15rem !important;
    padding: 0 !important;
}

.bot-msg li + li {
    margin-top: .35rem !important;
}

.bot-msg .btn {
    border-radius: 999px !important;
    padding: .5rem .75rem !important;
    font-weight: 800 !important;
}

.intent-bot-prompts {
    flex: 0 0 auto !important;
    padding: .74rem 1rem !important;
    gap: .45rem !important;
    background: rgba(4, 10, 20, .55) !important;
    border-top: 1px solid rgba(148, 163, 184, .14) !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
}

.intent-bot-chip {
    flex: 0 0 auto !important;
    border-radius: 999px !important;
    padding: .5rem .72rem !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
}

.intent-bot-compose textarea:disabled,
.intent-bot-send:disabled {
    opacity: .68 !important;
    cursor: progress !important;
}

.intent-bot.is-thinking .intent-bot-send span:first-child {
    font-size: 0 !important;
}

.intent-bot.is-thinking .intent-bot-send span:first-child::after {
    content: "..." !important;
    font-size: 1rem !important;
    letter-spacing: .08em;
}

.bot-msg--typing {
    width: fit-content !important;
    min-width: 74px !important;
    display: flex !important;
    gap: .35rem !important;
}

.typing-dot {
    width: 8px !important;
    height: 8px !important;
    border-radius: 999px !important;
    background: #5eead4 !important;
    animation: cmTypingPulse 1s infinite ease-in-out;
}

.typing-dot:nth-child(2) {
    animation-delay: .14s;
}

.typing-dot:nth-child(3) {
    animation-delay: .28s;
}

@keyframes cmTypingPulse {
    0%, 80%, 100% { transform: translateY(0); opacity: .45; }
    40% { transform: translateY(-5px); opacity: 1; }
}

:root[data-theme="light"] .intent-bot-panel {
    background:
        radial-gradient(420px 220px at 15% 0%, rgba(20, 184, 166, .14), transparent 72%),
        linear-gradient(160deg, rgba(255, 255, 255, .99), rgba(241, 247, 255, .97)) !important;
    border-color: rgba(15, 45, 77, .14) !important;
}

:root[data-theme="light"] .intent-bot-prompts {
    background: rgba(255, 255, 255, .78) !important;
    border-top-color: rgba(15, 45, 77, .11) !important;
}

:root[data-theme="light"] .bot-msg {
    color: #102033 !important;
    background: rgba(255, 255, 255, .92) !important;
}

:root[data-theme="light"] .user-msg {
    color: #072033 !important;
    background: linear-gradient(135deg, rgba(45, 212, 191, .26), rgba(37, 99, 235, .12)) !important;
}

@media (max-width: 575px) {
    .intent-bot.is-open {
        inset: auto 8px 8px 8px !important;
        right: 8px !important;
        bottom: 8px !important;
        width: auto !important;
    }

    .intent-bot.is-open .intent-bot-panel {
        width: calc(100vw - 16px) !important;
        height: min(690px, calc(100dvh - 18px)) !important;
        border-radius: 24px !important;
    }

    .intent-bot.is-open .intent-bot-panel__head {
        padding: .85rem .9rem .74rem !important;
    }

    .intent-bot.is-open .intent-bot-messages {
        padding: .78rem .74rem !important;
    }

    .bot-msg,
    .user-msg {
        max-width: 94% !important;
        font-size: .92rem !important;
        padding: .78rem .82rem !important;
        border-radius: 18px !important;
    }

    .intent-bot-prompts {
        padding: .62rem .68rem !important;
    }

    .intent-bot-chip {
        padding: .46rem .64rem !important;
        font-size: .86rem !important;
    }
}

/* Final live polish: compact chatbot launcher and mobile-style day/night switch. */
.theme-float {
    width: 62px !important;
    height: 34px !important;
    min-width: 62px !important;
    border-radius: 999px !important;
    padding: 3px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    background: linear-gradient(135deg, #101f34, #173456) !important;
    border: 1px solid rgba(148, 163, 184, .38) !important;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .28) !important;
}

.theme-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-block;
    position: absolute;
    transition: transform .22s ease, opacity .2s ease, box-shadow .22s ease;
}

.theme-icon-sun {
    background:
        radial-gradient(circle, #fff7b0 0 31%, #fbbf24 32% 54%, transparent 55%),
        conic-gradient(from 0deg, transparent 0 7%, #fde68a 7% 13%, transparent 13% 20%, #fde68a 20% 26%, transparent 26% 33%, #fde68a 33% 39%, transparent 39% 47%, #fde68a 47% 53%, transparent 53% 61%, #fde68a 61% 67%, transparent 67% 75%, #fde68a 75% 81%, transparent 81% 88%, #fde68a 88% 94%, transparent 94%);
    box-shadow: 0 0 18px rgba(251, 191, 36, .42);
    transform: translateX(27px) scale(.82);
    opacity: .32;
}

.theme-icon-moon {
    background:
        radial-gradient(circle at 62% 34%, #101f34 0 25%, transparent 26%),
        radial-gradient(circle at 44% 48%, #f8fafc 0 48%, #bfdbfe 49% 100%);
    box-shadow: 0 0 18px rgba(191, 219, 254, .38);
    transform: translateX(0) scale(1);
    opacity: 1;
}

:root[data-theme="light"] .theme-float {
    justify-content: flex-end !important;
    background: linear-gradient(135deg, #fef3c7, #dbeafe) !important;
}

:root[data-theme="light"] .theme-icon-sun {
    transform: translateX(27px) scale(1);
    opacity: 1;
}

:root[data-theme="light"] .theme-icon-moon {
    transform: translateX(0) scale(.82);
    opacity: .25;
}

.intent-bot {
    right: 18px !important;
    bottom: 18px !important;
    width: auto !important;
}

body .intent-bot .intent-bot-launch {
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
    height: 64px !important;
    padding: 0 !important;
    border-radius: 999px !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
    background: linear-gradient(135deg, #14b8a6, #2563eb) !important;
    color: #fff !important;
    box-shadow: 0 18px 44px rgba(37, 99, 235, .34), 0 0 0 6px rgba(20, 184, 166, .11) !important;
}

.intent-bot-avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background:
        radial-gradient(circle at 34% 24%, rgba(255,255,255,.58), transparent 34%),
        linear-gradient(145deg, #e0fbff, #2dd4bf 38%, #2563eb);
    border: 1px solid rgba(255,255,255,.48);
}

.intent-bot-avatar__mark {
    font-size: .78rem;
    font-weight: 950;
    letter-spacing: 0;
    color: #ffffff;
    text-shadow: 0 1px 8px rgba(15, 23, 42, .36);
}

.intent-bot-launch__text {
    position: absolute;
    right: 76px;
    bottom: 8px;
    width: max-content;
    max-width: min(280px, calc(100vw - 112px));
    padding: .72rem .88rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    color: #10243a;
    border: 1px solid rgba(15, 23, 42, .08);
    box-shadow: 0 18px 42px rgba(15, 23, 42, .18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px) scale(.96);
    transition: opacity .18s ease, transform .18s ease;
}

.intent-bot-launch__text::after {
    content: "";
    position: absolute;
    right: -7px;
    bottom: 18px;
    width: 14px;
    height: 14px;
    background: inherit;
    border-right: 1px solid rgba(15, 23, 42, .08);
    border-bottom: 1px solid rgba(15, 23, 42, .08);
    transform: rotate(-45deg);
}

.intent-bot-launch:hover .intent-bot-launch__text,
.intent-bot-launch:focus-visible .intent-bot-launch__text {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.intent-bot-launch__text strong,
.intent-bot-launch__text small {
    display: block;
    color: inherit !important;
    line-height: 1.35;
}

.intent-bot-launch__text small {
    color: rgba(16, 36, 58, .72) !important;
}

.intent-bot-launch__badge {
    position: absolute !important;
    top: -4px !important;
    right: -4px !important;
    min-width: 22px !important;
    height: 22px !important;
    padding: 0 !important;
    font-size: 0 !important;
    background: #22c55e !important;
    border: 3px solid #ffffff !important;
    box-shadow: 0 4px 14px rgba(34, 197, 94, .38) !important;
}

.intent-bot-launch__badge::after {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #fff;
    display: block;
    margin: 4.5px auto 0;
}

.intent-bot.is-open .intent-bot-launch {
    opacity: 0 !important;
    pointer-events: none !important;
}

@media (max-width: 575px) {
    .intent-bot-launch__text {
        right: 0;
        bottom: 74px;
        max-width: calc(100vw - 36px);
    }

    .intent-bot-launch__text::after {
        right: 24px;
        bottom: -7px;
        transform: rotate(45deg);
    }
}

:root[data-theme="light"] .home-managed-banner,
:root[data-theme="light"] .page-visual-card,
:root[data-theme="light"] .directory-filter-panel,
:root[data-theme="light"] .company-directory-group {
    background:
        linear-gradient(135deg, rgba(255,255,255,.98), rgba(243,249,255,.92)),
        radial-gradient(360px 160px at 100% 0%, rgba(15,118,110,.08), transparent 72%) !important;
}

:root[data-theme="light"] .home-managed-banner__copy h3,
:root[data-theme="light"] .directory-category-head h2,
:root[data-theme="light"] .rich-directory-card h3 {
    color: #102033;
}

:root[data-theme="light"] .home-managed-banner__copy p,
:root[data-theme="light"] .directory-category-head p {
    color: #526073;
}

@media (min-width: 1500px) {
    .company-card-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 1199px) {
    .home-managed-banner {
        grid-template-columns: 1fr;
    }

    .home-managed-banner__img {
        max-height: 180px;
    }
}

@media (max-width: 575px) {
    body {
        padding-bottom: 0;
    }

    .home-managed-banner {
        min-height: 0;
        padding: 0.9rem !important;
        grid-template-columns: 1fr;
    }

    .home-managed-banner__img {
        aspect-ratio: 16 / 6;
        max-height: 130px;
        border-radius: 16px;
    }

    .page-visual-admin-img {
        aspect-ratio: 16 / 7;
        max-height: 142px;
    }

    .company-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .rich-directory-card {
        min-height: 184px !important;
    }

    .directory-more-body {
        max-height: 118px !important;
    }
}

/* Civic premium palette pivot: expert-built, not black/gold-template */
:root {
    --bg: #10243a;
    --bg-2: #15314c;
    --surface: rgba(255, 255, 255, 0.075);
    --surface-2: rgba(255, 255, 255, 0.11);
    --line: rgba(216, 229, 244, 0.2);
    --text: #f7fbff;
    --muted: #bdd0e2;
    --accent: #2dd4bf;
    --accent-2: #60a5fa;
    --blue: #60a5fa;
    --brand-navy: #10243a;
    --brand-navy-2: #15314c;
    --brand-gold: #2dd4bf;
    --brand-gold-2: #60a5fa;
    --trust-accent: #0f766e;
    --warm-accent: #f59e0b;
    --shadow: 0 22px 54px rgba(7, 24, 45, 0.32);
    --premium-card-shadow: 0 24px 64px rgba(7, 24, 45, 0.28);
}

:root[data-theme="light"] {
    --bg: #f5f9ff;
    --bg-2: #ffffff;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-2: rgba(37, 99, 235, 0.055);
    --line: rgba(15, 45, 77, 0.13);
    --text: #102033;
    --muted: #55677d;
    --accent: #0f766e;
    --accent-2: #2563eb;
    --blue: #2563eb;
    --brand-navy: #f5f9ff;
    --brand-navy-2: #ffffff;
    --brand-gold: #0f766e;
    --brand-gold-2: #2563eb;
    --trust-accent: #0f766e;
    --warm-accent: #ea8a00;
    --shadow: 0 18px 46px rgba(31, 72, 120, 0.13);
    --premium-card-shadow: 0 22px 54px rgba(31, 72, 120, 0.12);
}

body {
    background:
        radial-gradient(900px 520px at 8% -12%, rgba(96, 165, 250, 0.20), transparent 62%),
        radial-gradient(840px 520px at 95% 5%, rgba(45, 212, 191, 0.14), transparent 58%),
        linear-gradient(180deg, #0f2138 0%, #10243a 46%, #132f49 100%);
}

:root[data-theme="light"] body {
    background:
        radial-gradient(920px 540px at 10% -10%, rgba(37, 99, 235, 0.10), transparent 62%),
        radial-gradient(820px 520px at 94% 4%, rgba(15, 118, 110, 0.10), transparent 58%),
        linear-gradient(180deg, #f8fbff 0%, #eef6ff 46%, #f8fafc 100%);
}

.brand-emblem,
.page-visual-step b,
.theme-float,
.intent-bot-launch {
    background:
        radial-gradient(circle at 28% 20%, rgba(255,255,255,.38), transparent 30%),
        linear-gradient(135deg, #2dd4bf, #2563eb 78%) !important;
}

.brand-emblem {
    box-shadow: 0 16px 30px rgba(37, 99, 235, 0.22), inset 0 1px 0 rgba(255,255,255,.5);
}

.brand-emblem svg path:first-child,
.page-visual-step b {
    color: #ffffff;
    fill: #10324f;
}

.top-nav {
    background:
        linear-gradient(120deg, rgba(12, 31, 52, 0.94), rgba(16, 50, 79, 0.88)),
        radial-gradient(circle at 16% 0%, rgba(45, 212, 191, 0.14), transparent 34%);
    border-bottom-color: rgba(216, 229, 244, 0.15);
}

:root[data-theme="light"] .top-nav {
    background:
        linear-gradient(120deg, rgba(255,255,255,.94), rgba(244,249,255,.9)),
        radial-gradient(circle at 16% 0%, rgba(15,118,110,.1), transparent 34%);
}

.page-visual-card {
    border-color: rgba(216, 229, 244, 0.19);
    background:
        linear-gradient(115deg, rgba(255,255,255,.11), rgba(255,255,255,.05) 52%, rgba(45,212,191,.07)),
        radial-gradient(440px 190px at 0% 0%, rgba(96,165,250,.22), transparent 72%),
        radial-gradient(400px 180px at 100% 10%, rgba(45,212,191,.15), transparent 70%);
}

:root[data-theme="light"] .page-visual-card {
    background:
        linear-gradient(115deg, rgba(255,255,255,.98), rgba(244,249,255,.9) 52%, rgba(236,253,245,.82)),
        radial-gradient(440px 190px at 0% 0%, rgba(37,99,235,.1), transparent 72%),
        radial-gradient(400px 180px at 100% 10%, rgba(15,118,110,.11), transparent 70%);
}

.page-visual-kicker,
.proof-chip,
.template-tag {
    border-color: rgba(45, 212, 191, 0.45);
    background: rgba(45, 212, 191, 0.095);
    color: #a7fff1;
}

:root[data-theme="light"] .page-visual-kicker,
:root[data-theme="light"] .proof-chip,
:root[data-theme="light"] .template-tag {
    color: #0f766e;
    background: rgba(15, 118, 110, 0.08);
    border-color: rgba(15, 118, 110, 0.24);
}

.page-visual-kicker span,
.pulse-dot {
    background: #60a5fa;
    box-shadow: 0 0 0 5px rgba(96, 165, 250, 0.13);
}

.page-visual-step {
    border-color: rgba(216, 229, 244, 0.18);
    background: rgba(12, 31, 52, .38);
}

:root[data-theme="light"] .page-visual-step {
    background: rgba(255,255,255,.76);
}

.page-visual-art {
    border-color: rgba(216, 229, 244, .18);
    background:
        radial-gradient(circle at 26% 24%, rgba(96,165,250,.17), transparent 28%),
        radial-gradient(circle at 80% 70%, rgba(45,212,191,.15), transparent 30%),
        rgba(12, 31, 52, .24);
}

:root[data-theme="light"] .page-visual-art {
    background:
        radial-gradient(circle at 26% 24%, rgba(37,99,235,.11), transparent 28%),
        radial-gradient(circle at 80% 70%, rgba(15,118,110,.11), transparent 30%),
        rgba(255,255,255,.58);
}

.btn-primary {
    background: linear-gradient(135deg, #2dd4bf, #2563eb) !important;
    color: #ffffff !important;
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #14b8a6, #1d4ed8) !important;
    color: #ffffff !important;
}

.btn-outline-primary {
    border-color: rgba(45, 212, 191, 0.52);
    color: #a7fff1;
    background: rgba(45, 212, 191, 0.075);
}

.btn-outline-primary:hover {
    background: rgba(45, 212, 191, 0.16);
    border-color: rgba(96, 165, 250, 0.66);
    color: #ffffff;
}

:root[data-theme="light"] .btn-outline-primary {
    color: #0f766e;
    border-color: rgba(15,118,110,.36);
    background: rgba(15,118,110,.06);
}

.section-title::after {
    background: linear-gradient(90deg, #0f766e, #2563eb, #2dd4bf);
}

.feature-box,
.timeline-step,
.content-tile,
.need-card,
.company-directory-card,
.rich-directory-card,
.directory-filter-panel,
.highlight-card,
.form-card,
.output-card,
.faq-card {
    border-color: rgba(216, 229, 244, 0.17);
    background:
        linear-gradient(150deg, rgba(255,255,255,.1), rgba(255,255,255,.042)),
        radial-gradient(280px 130px at 100% 0%, rgba(45,212,191,.075), transparent 70%);
}

:root[data-theme="light"] .feature-box,
:root[data-theme="light"] .timeline-step,
:root[data-theme="light"] .content-tile,
:root[data-theme="light"] .need-card,
:root[data-theme="light"] .company-directory-card,
:root[data-theme="light"] .rich-directory-card,
:root[data-theme="light"] .directory-filter-panel,
:root[data-theme="light"] .highlight-card,
:root[data-theme="light"] .form-card,
:root[data-theme="light"] .output-card,
:root[data-theme="light"] .faq-card {
    border-color: rgba(15, 45, 77, 0.12);
    background:
        linear-gradient(150deg, rgba(255,255,255,.97), rgba(244,249,255,.86)),
        radial-gradient(280px 130px at 100% 0%, rgba(15,118,110,.08), transparent 70%);
}

.intent-bot-launch {
    color: #ffffff;
}

.intent-bot-launch strong,
.intent-bot-launch small,
.intent-bot-launch .text-muted,
.intent-bot-launch small.text-muted {
    color: rgba(255,255,255,.92) !important;
}

.intent-bot-launch__badge {
    background: rgba(255,255,255,.2);
    color: #ffffff;
}

.theme-float {
    border-color: rgba(216, 229, 244, .36);
    box-shadow: 0 18px 42px rgba(37, 99, 235, 0.24);
}

.theme-bulb {
    filter: hue-rotate(135deg) saturate(.95);
}

/* Final agency QA pass: compact authentic directory, non-template civic palette */
.company-card-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    grid-auto-rows: 1fr;
    gap: clamp(0.7rem, 1vw, 1rem);
}

.company-directory-group {
    overflow: visible;
}

.rich-directory-card {
    position: relative;
    display: grid;
    grid-template-rows: auto auto auto auto;
    align-content: start;
    gap: 0.58rem;
    min-height: 212px;
    height: 100%;
    padding: 0.95rem;
    border-radius: 18px;
    overflow: hidden;
}

.rich-directory-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(135deg, rgba(255,255,255,.12), transparent 38%),
        radial-gradient(180px 90px at 95% -10%, rgba(45,212,191,.10), transparent 70%);
    opacity: 0.9;
}

.rich-directory-card > * {
    position: relative;
    z-index: 1;
}

.directory-card-top {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
    justify-content: initial;
    gap: 0.72rem;
    min-height: 54px !important;
}

.directory-card-top img,
.directory-avatar {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: 14px;
}

.directory-avatar {
    background: linear-gradient(135deg, #c7fff4, #85b9ff);
    color: #0d2a43;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.64);
}

.directory-service-meta {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    white-space: nowrap !important;
}

.directory-card-top h3 {
    margin: 0;
    min-height: 0 !important;
    max-height: 2.58em;
    padding-top: 0.04rem;
    color: var(--text);
    font-size: clamp(0.9rem, 0.78vw, 1.02rem);
    line-height: 1.28;
    letter-spacing: -0.02em;
    overflow: hidden;
    text-wrap: balance;
}

html[lang="hi"] .directory-card-top {
    min-height: 60px !important;
}

html[lang="hi"] .directory-card-top h3 {
    max-height: 3.05em;
    padding-top: 0.12rem;
    font-size: clamp(0.86rem, 0.78vw, 0.98rem);
    line-height: 1.46;
    letter-spacing: 0;
}

.rich-directory-card .directory-contact-grid.mt-3 {
    margin-top: 0 !important;
}

.directory-contact-grid {
    gap: 0.42rem;
}

.directory-contact-grid > div {
    min-height: 48px;
    padding: 0.48rem 0.56rem;
    border-radius: 13px;
    background: rgba(8, 26, 45, 0.28);
    border-color: rgba(216, 229, 244, 0.13);
}

.directory-contact-label {
    color: var(--muted);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.045em;
}

html[lang="hi"] .directory-contact-label {
    text-transform: none;
    letter-spacing: 0;
}

.directory-contact-value {
    color: var(--text);
    font-size: 0.9rem;
    line-height: 1.22;
    overflow-wrap: anywhere;
}

.directory-primary-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 0.45rem;
    margin: 0;
}

.directory-primary-actions .btn,
.directory-detail-actions .btn {
    min-height: 34px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
}

.directory-more {
    margin-top: auto !important;
    padding-top: 0.58rem;
    border-top-color: rgba(216, 229, 244, 0.13);
}

.directory-more summary {
    min-height: 30px;
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 800;
}

.directory-more summary::after {
    color: var(--accent);
}

.directory-more-body {
    max-height: 148px;
    gap: 0.5rem;
    overflow: auto;
    padding: 0.5rem 0.1rem 0 0;
    scrollbar-width: thin;
}

.directory-more-body p {
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.48;
}

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

.directory-suggest-panel {
    border-color: rgba(45, 212, 191, 0.25);
    background:
        linear-gradient(180deg, rgba(15, 36, 58, 0.98), rgba(10, 27, 45, 0.98));
    box-shadow: 0 24px 62px rgba(3, 16, 31, 0.46);
}

.directory-suggest-item:hover,
.directory-suggest-item.is-active {
    background: rgba(45, 212, 191, 0.14);
}

.directory-suggest-item strong {
    color: #f7fbff;
}

.directory-suggest-item small {
    color: #bdd0e2;
}

:root[data-theme="light"] .rich-directory-card,
:root[data-theme="light"] .company-directory-card {
    color: #102033;
    background:
        linear-gradient(150deg, rgba(255,255,255,.98), rgba(242,248,255,.91)),
        radial-gradient(200px 95px at 95% -10%, rgba(15,118,110,.08), transparent 72%);
}

:root[data-theme="light"] .directory-card-top h3,
:root[data-theme="light"] .directory-contact-value,
:root[data-theme="light"] .directory-more summary {
    color: #102033;
}

:root[data-theme="light"] .directory-contact-grid > div {
    background: rgba(255,255,255,.72);
    border-color: rgba(15, 45, 77, 0.12);
}

:root[data-theme="light"] .directory-contact-label,
:root[data-theme="light"] .directory-more-body p {
    color: #55677d;
}

:root[data-theme="light"] .directory-suggest-panel {
    background: rgba(255,255,255,.98);
    border-color: rgba(15,118,110,.18);
    box-shadow: 0 24px 58px rgba(31, 72, 120, 0.18);
}

:root[data-theme="light"] .directory-suggest-item:hover,
:root[data-theme="light"] .directory-suggest-item.is-active {
    background: rgba(15,118,110,.09);
}

:root[data-theme="light"] .form-label,
:root[data-theme="light"] .directory-filter-panel .form-label {
    color: #24384f;
}

:root[data-theme="light"] .directory-filter-panel .form-control,
:root[data-theme="light"] .directory-filter-panel .form-select {
    color: #102033;
    background-color: rgba(255,255,255,.86);
}

:root[data-theme="light"] .tool-hero .workspace-card,
:root[data-theme="light"] .tool-hero .output-card,
:root[data-theme="light"] .tool-hero .form-card {
    background:
        linear-gradient(150deg, rgba(255,255,255,.98), rgba(245,249,255,.9)),
        radial-gradient(260px 120px at 100% 0%, rgba(20,184,166,.08), transparent 72%);
    border-color: rgba(15, 45, 77, 0.14);
    box-shadow: 0 20px 48px rgba(32, 71, 113, 0.13);
}

:root[data-theme="light"] .tool-hero .workspace-card h2,
:root[data-theme="light"] .tool-hero .workspace-card h3,
:root[data-theme="light"] .tool-hero .workspace-card h4,
:root[data-theme="light"] .tool-hero .workspace-card h5,
:root[data-theme="light"] .tool-hero .workspace-card strong,
:root[data-theme="light"] .tool-hero .workspace-card label,
:root[data-theme="light"] .tool-hero .workspace-card summary {
    color: #102033;
}

:root[data-theme="light"] .tool-hero .workspace-card p,
:root[data-theme="light"] .tool-hero .workspace-card .small,
:root[data-theme="light"] .tool-hero .workspace-card li,
:root[data-theme="light"] .tool-hero .workspace-card .text-muted {
    color: #516174 !important;
}

.intent-bot-launch {
    min-width: 212px;
    border-radius: 22px;
}

@media (max-width: 1399px) {
    .company-card-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 991px) {
    .company-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 767px) {
    .company-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.66rem;
    }

    .rich-directory-card {
        min-height: 190px;
        padding: 0.72rem;
        border-radius: 16px;
    }

    .directory-card-top {
        grid-template-columns: 38px minmax(0, 1fr);
        gap: 0.55rem;
        min-height: 50px !important;
    }

    html[lang="hi"] .directory-card-top {
        min-height: 56px !important;
    }

    .directory-card-top img,
    .directory-avatar {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
        border-radius: 12px;
    }

    .directory-card-top h3 {
        font-size: 0.82rem;
        line-height: 1.32;
    }

    html[lang="hi"] .directory-card-top h3 {
        font-size: 0.8rem;
        line-height: 1.48;
    }

    .directory-contact-grid > div {
        min-height: 42px;
        padding: 0.38rem 0.42rem;
    }

    .directory-contact-label {
        font-size: 0.62rem;
    }

    .directory-contact-value {
        font-size: 0.78rem;
    }

    .directory-primary-actions .btn,
    .directory-detail-actions .btn {
        min-height: 32px;
        padding-inline: 0.4rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 390px) {
    .company-card-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Final mobile containment guard: no clipped Hindi text, no oversized bot bubble */
html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

@media (max-width: 575px) {
    .section-shell > .container {
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .section-shell > .container,
    .container {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding-left: 12px;
        padding-right: 12px;
        box-sizing: border-box;
    }

    .section-shell > .container {
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .section-shell,
    .page-visual-card,
    .directory-hero,
    .feature-box,
    .directory-filter-panel,
    .company-directory-group,
    .page-managed-banner {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: hidden;
        box-sizing: border-box;
    }

    .page-visual-strip {
        padding-top: 0.7rem;
    }

    .page-visual-card {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        gap: 0.8rem;
        padding: 0.9rem;
    }

    .page-visual-copy,
    .page-visual-card > *,
    .page-visual-card h2,
    .page-visual-card p,
    .directory-hero h1,
    .directory-hero p,
    .feature-box h1,
    .feature-box h2,
    .feature-box p {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .page-visual-card h2,
    .directory-hero h1,
    .feature-box h1,
    .feature-box h2 {
        inline-size: min(100%, 330px) !important;
        max-inline-size: 330px !important;
        max-width: 330px !important;
        white-space: normal !important;
    }

    .page-visual-card p,
    .directory-hero p,
    .feature-box p {
        display: block !important;
        inline-size: min(100%, 306px) !important;
        max-inline-size: 306px !important;
        max-width: 306px !important;
        white-space: normal !important;
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
    }

    .page-visual-card h2,
    .directory-hero h1,
    .display-6 {
        font-size: clamp(1.24rem, 6.3vw, 1.58rem) !important;
        line-height: 1.24;
        letter-spacing: -0.025em;
    }

    html[lang="hi"] .page-visual-card h2,
    html[lang="hi"] .directory-hero h1,
    html[lang="hi"] .display-6 {
        line-height: 1.36;
        letter-spacing: 0;
    }

    .lead {
        font-size: 0.92rem;
        line-height: 1.58;
    }

    .page-visual-art {
        box-sizing: border-box;
        width: min(100%, 330px);
        max-width: 330px;
        min-width: 0;
        min-height: 0;
        padding: 0.7rem;
        overflow: hidden;
        justify-self: center;
        align-self: center;
    }

    .page-visual-admin-img,
    .page-visual-art svg {
        width: 100%;
        max-width: 100%;
        max-height: 170px;
        object-fit: contain;
    }

    .directory-hero .row {
        --bs-gutter-x: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .directory-hero .row > * {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding-left: 0;
        padding-right: 0;
    }

    .company-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .intent-bot {
        left: auto !important;
        right: 12px !important;
        bottom: 12px !important;
        width: auto !important;
        max-width: calc(100vw - 24px);
    }

    body .intent-bot .intent-bot-launch {
        width: 58px !important;
        min-width: 58px !important;
        max-width: 58px !important;
        height: 58px !important;
        min-height: 58px;
        padding: 0 !important;
        border-radius: 999px !important;
    }

    .intent-bot.is-open {
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
    }

    .intent-bot-panel {
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
    }
}

@media (max-width: 350px) {
    .company-card-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Launch polish: blog, WebP banners, motion and dropdown stability */
html {
    scroll-behavior: smooth;
}

.top-nav .dropdown-menu {
    top: calc(100% - 2px);
    pointer-events: auto;
}

.top-nav .nav-item.dropdown:hover > .dropdown-menu,
.top-nav .nav-item.dropdown:focus-within > .dropdown-menu {
    display: block;
    visibility: visible;
    opacity: 1;
}

.page-visual-strip {
    padding: clamp(1rem, 2.5vw, 1.6rem) 0 !important;
}

.page-visual-card {
    min-height: 225px !important;
    padding: clamp(1.1rem, 2.4vw, 1.75rem) !important;
}

.page-visual-copy h2 {
    font-size: clamp(1.85rem, 3.4vw, 3.55rem) !important;
    line-height: 1.06 !important;
}

.page-visual-copy p {
    max-width: 760px;
}

.page-visual-art {
    max-height: 235px !important;
}

.page-visual-admin-img {
    aspect-ratio: 16 / 5 !important;
    max-height: 210px !important;
    object-fit: cover !important;
}

.home-managed-banner {
    min-height: 224px !important;
}

.home-managed-banner__img {
    max-height: 190px !important;
}

.blog-shell {
    padding-top: clamp(2rem, 4vw, 4rem);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(1rem, 2vw, 1.35rem);
}

.blog-card,
.blog-article {
    border: 1px solid var(--border-strong, rgba(148, 163, 184, .28));
    background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(2, 8, 23, .18);
}

.blog-card {
    overflow: hidden;
    min-height: 100%;
}

.blog-card img {
    width: 100%;
    aspect-ratio: 16 / 6;
    object-fit: cover;
    display: block;
}

.blog-card > div {
    padding: clamp(1rem, 2vw, 1.35rem);
}

.blog-card h2 {
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    line-height: 1.22;
    margin: .35rem 0 .7rem;
}

.blog-card p {
    color: var(--text-muted, rgba(226, 232, 240, .78));
}

.blog-kicker {
    color: var(--accent, #31d0c6);
    font-weight: 800;
    letter-spacing: .035em;
    text-transform: uppercase;
    font-size: .78rem;
}

.blog-breadcrumb {
    display: flex;
    gap: .55rem;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-muted, rgba(226, 232, 240, .72));
}

.blog-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.blog-article {
    max-width: 1040px;
    margin: 0 auto;
    padding: clamp(1.25rem, 3vw, 2.25rem);
}

.blog-article__header h1 {
    font-size: clamp(2rem, 5vw, 4.6rem);
    letter-spacing: -.05em;
    line-height: 1.03;
    margin-bottom: 1rem;
}

.blog-lead {
    font-size: clamp(1.05rem, 2vw, 1.34rem);
    color: var(--text-muted, rgba(226, 232, 240, .82));
    max-width: 880px;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--text-muted, rgba(226, 232, 240, .72));
    margin: 1rem 0 1.25rem;
}

.blog-hero-image {
    width: 100%;
    aspect-ratio: 16 / 5;
    object-fit: cover;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,.18);
    margin: .5rem 0 1.5rem;
}

.blog-content {
    font-size: clamp(1rem, 1.55vw, 1.12rem);
    line-height: 1.86;
    color: var(--text, #eaf2ff);
}

.blog-content h2,
.blog-content h3 {
    margin-top: 2rem;
    margin-bottom: .7rem;
    letter-spacing: -.02em;
}

.blog-content h2 {
    font-size: clamp(1.45rem, 2.8vw, 2.2rem);
}

.blog-content p,
.blog-content li {
    color: var(--text-muted, rgba(226, 232, 240, .82));
}

.blog-content ul,
.blog-content ol {
    padding-left: 1.3rem;
}

.blog-content a {
    color: var(--accent, #31d0c6);
}

.blog-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2rem 0;
    overflow: hidden;
    border-radius: 18px;
}

.blog-content th,
.blog-content td {
    border: 1px solid rgba(148, 163, 184, .22);
    padding: .8rem;
    vertical-align: top;
}

.blog-article__footer {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(148, 163, 184, .2);
}

@media (prefers-reduced-motion: no-preference) {
    .btn,
    .nav-link,
    .dropdown-item,
    .feature-card,
    .feature-box,
    .rich-directory-card,
    .blog-card,
    .page-visual-card {
        transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease, opacity .2s ease;
    }

    .blog-card:hover,
    .rich-directory-card:hover,
    .feature-box:hover {
        transform: translateY(-3px);
    }
}

section,
.section-shell {
    content-visibility: auto;
    contain-intrinsic-size: 1px 650px;
}

@media (max-width: 767px) {
    .page-visual-card {
        min-height: 0 !important;
    }

    .page-visual-copy h2 {
        font-size: clamp(1.7rem, 9vw, 2.5rem) !important;
    }

    .blog-hero-image,
    .blog-card img {
        aspect-ratio: 16 / 8;
    }
}

/* Final UX fixes: always-available navigation and usable assistant workspace */
.top-nav.sticky-top,
.top-nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    z-index: 2300 !important;
    transform: none !important;
    opacity: 1 !important;
}

html {
    scroll-padding-top: 92px;
}

body {
    padding-top: 76px;
}

.top-nav .dropdown-menu {
    z-index: 2400 !important;
}

.intent-bot {
    z-index: 2200 !important;
}

.intent-bot-panel {
    width: min(560px, calc(100vw - 28px)) !important;
    max-height: min(86vh, 760px) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.intent-bot-panel__head {
    flex: 0 0 auto;
    padding: 0.85rem 0.95rem 0.62rem !important;
}

.intent-bot-panel__head .small.text-muted:last-child {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    max-width: 380px;
    overflow: hidden;
}

.intent-bot-messages {
    min-height: clamp(260px, 38vh, 440px) !important;
    max-height: clamp(260px, 46vh, 500px) !important;
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    padding: 0.85rem 0.95rem 0.55rem !important;
}

.intent-bot-prompts {
    flex: 0 0 auto !important;
    max-height: 88px !important;
    overflow-y: auto !important;
    padding: 0.62rem 0.95rem !important;
    gap: 0.45rem !important;
}

.intent-bot-chip {
    padding: 0.38rem 0.62rem !important;
    font-size: 0.88rem !important;
}

.intent-bot-form {
    flex: 0 0 auto !important;
    padding: 0.72rem 0.95rem 0.9rem !important;
}

.intent-bot-form textarea {
    min-height: 72px !important;
    max-height: 128px !important;
}

.intent-bot-form .btn {
    min-height: 46px;
}

@media (max-width: 991px) {
    body {
        padding-top: 70px;
    }

    html {
        scroll-padding-top: 82px;
    }

    .top-nav .navbar-collapse.show {
        max-height: calc(100vh - 82px);
        overflow-y: auto;
    }
}

@media (max-width: 575px) {
    .intent-bot.is-open {
        top: 76px !important;
        left: 8px !important;
        right: 8px !important;
        bottom: 8px !important;
        width: auto !important;
        max-width: none !important;
    }

    .intent-bot.is-open .intent-bot-panel {
        width: 100% !important;
        height: 100% !important;
        max-width: 100% !important;
        max-height: 100% !important;
        margin-top: 0 !important;
    }

    .intent-bot.is-open .intent-bot-panel__head {
        padding: 0.72rem 0.78rem 0.5rem !important;
    }

    .intent-bot.is-open .intent-bot-panel__head .small.text-muted:last-child {
        display: none;
    }

    .intent-bot.is-open .intent-bot-messages {
        min-height: 0 !important;
        max-height: none !important;
        padding: 0.72rem 0.78rem 0.45rem !important;
    }

    .intent-bot.is-open .intent-bot-prompts {
        max-height: 78px !important;
        padding: 0.52rem 0.78rem !important;
    }

    .intent-bot.is-open .intent-bot-form {
        padding: 0.62rem 0.78rem 0.76rem !important;
    }

    .intent-bot.is-open .intent-bot-form textarea {
        min-height: 68px !important;
    }
}

/* ComplaintMitra article and error pages */
.article-shell {
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: clamp(1.15rem, 2.4vw, 2rem);
    background:
        linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.045)),
        radial-gradient(520px 220px at 4% 0%, rgba(96,165,250,.16), transparent 70%),
        radial-gradient(520px 220px at 100% 10%, rgba(45,212,191,.12), transparent 72%);
    box-shadow: var(--premium-card-shadow), var(--premium-inner-line);
}

.article-shell h1,
.article-shell h2,
.article-shell h3 {
    letter-spacing: -0.025em;
}

.article-shell h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.08;
}

.article-body {
    max-width: 980px;
    margin-inline: auto;
}

.article-body p,
.article-body li {
    color: var(--muted);
    font-size: clamp(1rem, 1.2vw, 1.08rem);
    line-height: 1.78;
}

.article-body h2 {
    margin-top: 1.8rem;
    color: var(--text);
}

.article-list {
    display: grid;
    gap: .55rem;
    padding-left: 1.15rem;
}

.article-divider {
    border: 0;
    height: 1px;
    margin: 2rem 0;
    background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.article-faq-q {
    margin-top: 1.35rem;
}

.article-faq-a {
    padding: .9rem 1rem;
    border-radius: 18px;
    background: rgba(255,255,255,.055);
}

.error-shell {
    max-width: 980px;
    margin-inline: auto;
}

:root[data-theme="light"] .article-shell {
    background:
        linear-gradient(135deg, rgba(255,255,255,.98), rgba(244,249,255,.92)),
        radial-gradient(520px 220px at 4% 0%, rgba(37,99,235,.10), transparent 70%),
        radial-gradient(520px 220px at 100% 10%, rgba(15,118,110,.10), transparent 72%);
}

:root[data-theme="light"] .article-body p,
:root[data-theme="light"] .article-body li {
    color: #475569;
}

/* Live-readiness fallback: local grid/forms/nav stay intact even if CDN is slow */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: calc(-0.5 * var(--bs-gutter-x, 1.5rem));
    margin-left: calc(-0.5 * var(--bs-gutter-x, 1.5rem));
}

.row > * {
    box-sizing: border-box;
    flex-shrink: 0;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
    padding-left: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
    margin-top: var(--bs-gutter-y, 0);
}

.g-3,
.gx-3 {
    --bs-gutter-x: 1rem;
}

.g-3,
.gy-3 {
    --bs-gutter-y: 1rem;
}

.g-4,
.gx-4 {
    --bs-gutter-x: 1.5rem;
}

.g-4,
.gy-4 {
    --bs-gutter-y: 1.5rem;
}

.form-control,
.form-select {
    display: block;
    width: 100%;
}

.form-label {
    display: block;
    margin-bottom: 0.35rem;
}

.d-flex { display: flex !important; }
.flex-wrap { flex-wrap: wrap !important; }
.align-items-center { align-items: center !important; }
.align-items-end { align-items: flex-end !important; }
.justify-content-between { justify-content: space-between !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }

@media (min-width: 768px) {
    .col-md-3 { flex: 0 0 auto; width: 25%; }
    .col-md-4 { flex: 0 0 auto; width: 33.333333%; }
    .col-md-6 { flex: 0 0 auto; width: 50%; }
}

@media (min-width: 992px) {
    .col-lg-2 { flex: 0 0 auto; width: 16.666667%; }
    .col-lg-3 { flex: 0 0 auto; width: 25%; }
    .col-lg-4 { flex: 0 0 auto; width: 33.333333%; }
    .col-lg-6 { flex: 0 0 auto; width: 50%; }
    .col-lg-8 { flex: 0 0 auto; width: 66.666667%; }

    .top-nav .navbar-collapse {
        display: flex !important;
        flex-basis: auto !important;
    }

    .top-nav .navbar-nav {
        flex-wrap: nowrap;
    }

    .top-nav .btn-outline-light {
        flex: 0 0 auto;
        margin-left: 0.75rem !important;
        white-space: nowrap;
    }
}

@media (min-width: 1200px) {
    .col-xl-3 { flex: 0 0 auto; width: 25%; }
}

/* Directory page: one strong banner, then useful search and cards without dead space */
.directory-hub {
    padding-top: 1.25rem !important;
}

.directory-hub > .container > .directory-hero {
    display: none !important;
}

.directory-filter-panel {
    padding: 1rem !important;
    border-radius: 24px !important;
}

.directory-filter-panel .row {
    align-items: end;
}

.directory-filter-panel .btn {
    width: 100%;
    min-height: 46px;
}

.compact-stat {
    min-height: 96px !important;
    padding: 1rem !important;
}

.compact-stat strong {
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
}

.company-directory-group {
    padding: clamp(0.95rem, 1.8vw, 1.25rem) !important;
}

.directory-category-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.directory-category-head p {
    max-width: 82ch;
    font-size: 0.92rem;
}

.rich-directory-card {
    min-height: 216px !important;
    padding: 1rem !important;
    display: flex !important;
    flex-direction: column;
}

.directory-card-top {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 0.78rem;
}

.directory-avatar,
.directory-card-top img {
    width: 44px !important;
    height: 44px !important;
    border-radius: 14px !important;
}

.directory-card-top h3 {
    font-size: clamp(0.92rem, 0.86vw, 1.02rem) !important;
}

.directory-contact-grid {
    margin-top: 0.65rem !important;
}

.directory-contact-item {
    padding: 0.5rem 0.58rem !important;
}

.directory-contact-label {
    font-size: 0.62rem !important;
}

.directory-contact-value {
    font-size: 0.86rem !important;
    line-height: 1.28;
}

.directory-primary-actions {
    margin-top: auto !important;
    padding-top: 0.75rem;
}

.directory-primary-actions .btn {
    min-height: 34px;
    padding: 0.34rem 0.5rem;
}

.directory-more {
    margin-top: 0.65rem !important;
    border-top: 1px solid rgba(216, 229, 244, 0.12);
    padding-top: 0.6rem;
}

.directory-more[open] {
    position: relative;
    z-index: 4;
}

.directory-more-body {
    max-height: 150px !important;
    overflow: auto;
    padding-right: 0.2rem;
}

@media (max-width: 991px) {
    .directory-category-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 575px) {
    .page-visual-art {
        width: 100% !important;
        max-width: 100% !important;
        justify-self: stretch !important;
    }

    .page-visual-admin-img,
    .page-visual-art svg {
        width: 100% !important;
        max-width: 100% !important;
        object-fit: contain !important;
    }

    .directory-filter-panel .row > * {
        margin-top: 0.65rem;
    }

    .compact-stat {
        min-height: 76px !important;
    }

    .rich-directory-card {
        min-height: 196px !important;
        padding: 0.82rem !important;
    }
}

/* Local navigation fallback: keeps menu premium even if CDN CSS is delayed */
.top-nav {
    min-height: 64px;
}

.top-nav > .container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-lockup,
.top-nav .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.72rem;
    text-decoration: none;
}

.top-nav .navbar-collapse {
    flex: 1 1 auto;
    align-items: center;
}

.top-nav .navbar-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-direction: row;
    gap: 0.35rem;
    margin: 0 0 0 auto;
    padding: 0;
    list-style: none;
}

.top-nav .nav-item {
    position: relative;
    list-style: none;
}

.top-nav .nav-link,
.top-nav .dropdown-item {
    text-decoration: none;
}

.top-nav .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 230px;
    margin: 0;
    padding: 0.7rem 0.45rem 0.45rem;
    list-style: none;
    border-radius: 18px;
    z-index: 1080;
}

.top-nav .nav-item.dropdown::after {
    content: "";
    position: absolute;
    left: -0.35rem;
    right: -0.35rem;
    top: 100%;
    height: 0.8rem;
    pointer-events: auto;
}

.top-nav .dropdown:hover > .dropdown-menu,
.top-nav .dropdown:focus-within > .dropdown-menu,
.top-nav .dropdown-menu.show {
    display: block;
}

.top-nav .dropdown-menu li {
    list-style: none;
}

.top-nav .dropdown-item {
    display: block;
    padding: 0.52rem 0.68rem;
}

@media (max-width: 991px) {
    .top-nav > .container {
        position: relative;
        flex-wrap: wrap;
        padding-right: 66px;
    }

    .top-nav .navbar-toggler {
        position: absolute;
        top: 50%;
        right: 12px;
        transform: translateY(-50%);
        margin-left: auto;
        display: inline-flex !important;
        color: #fff !important;
        background: rgba(15, 32, 54, 0.72);
        border: 1px solid rgba(255, 255, 255, 0.26);
        z-index: 30;
    }

    .top-nav .navbar-collapse:not(.show) {
        display: none;
    }

    .top-nav .navbar-collapse.show,
    .top-nav .navbar-collapse.collapsing {
        display: flex !important;
        flex-direction: column !important;
        flex-basis: 100%;
    }

    .top-nav .navbar-nav {
        align-items: stretch;
        flex-direction: column;
        gap: 0.25rem;
        margin: 0.75rem 0 0;
        width: 100%;
    }

    .top-nav .dropdown-menu {
        position: static;
        display: block;
        min-width: 0;
        margin-top: 0.28rem;
        box-shadow: none;
    }
}

/* Final override layer: must stay last */
body {
    padding-bottom: 7.5rem;
}

.home-managed-banner {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.75fr);
    align-items: center;
    gap: clamp(1rem, 2vw, 1.5rem);
    min-height: 260px;
    overflow: hidden;
}

.home-managed-banner__copy,
.home-managed-banner__copy h3,
.home-managed-banner__copy p {
    min-width: 0;
}

.home-managed-banner__img {
    width: 100%;
    aspect-ratio: 16 / 5;
    max-height: 210px;
    object-fit: cover;
    border-radius: 22px;
    border: 1px solid rgba(216,229,244,.18);
    box-shadow: 0 20px 48px rgba(3, 18, 38, .22);
}

.page-visual-admin-img {
    width: 100% !important;
    max-width: 520px !important;
    aspect-ratio: 16 / 5;
    max-height: none !important;
    object-fit: cover !important;
    border-radius: 22px;
}

.directory-hub .directory-hero,
.directory-filter-panel,
.company-directory-group,
.directory-search-wrap {
    overflow: visible !important;
}

.directory-suggest-panel {
    z-index: 1090 !important;
}

.directory-category-head .proof-chip,
.directory-service-meta {
    display: none !important;
}

.company-card-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    align-items: stretch;
}

.rich-directory-card {
    min-height: 204px !important;
    height: 100%;
    max-height: none !important;
}

.directory-card-top {
    align-items: center !important;
    min-height: 56px !important;
}

html[lang="hi"] .directory-card-top {
    min-height: 64px !important;
}

.directory-card-top h3 {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    max-height: 2.75em !important;
}

html[lang="hi"] .directory-card-top h3 {
    max-height: 3.35em !important;
    line-height: 1.48 !important;
}

.directory-primary-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 0.45rem;
}

.directory-primary-actions .btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.directory-more-body {
    max-height: 132px !important;
}

.directory-detail-actions {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.directory-detail-actions .btn {
    flex: 1 1 92px;
}

.intent-bot-launch {
    color: #061522 !important;
    background: linear-gradient(135deg, #f7cc60, #f7e6a3) !important;
}

.intent-bot-launch__subtitle {
    color: rgba(6, 21, 34, .72) !important;
}

@media (max-width: 1399px) {
    .company-card-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 991px) {
    .company-card-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }

    .home-managed-banner {
        grid-template-columns: 1fr;
        min-height: 0;
    }
}

@media (max-width: 575px) {
    body {
        padding-bottom: 7rem;
    }

    .company-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .rich-directory-card {
        min-height: 184px !important;
    }

    .home-managed-banner__img,
    .page-visual-admin-img {
        aspect-ratio: 16 / 7;
        max-height: 142px !important;
        object-fit: contain !important;
        object-position: center !important;
        border-radius: 16px;
    }

    .page-visual-art {
        width: 100% !important;
        max-width: 100% !important;
        justify-self: stretch !important;
        overflow: hidden !important;
    }
}

@media (max-width: 350px) {
    .company-card-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Ultimate launch polish: compact premium banners and app-like smoothness */
:root {
    --premium-ease: cubic-bezier(.2,.8,.2,1);
}

body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

.top-nav {
    position: sticky !important;
    top: 0 !important;
    z-index: 1060 !important;
    backdrop-filter: blur(18px) saturate(1.25);
}

.top-nav .dropdown-menu {
    top: calc(100% - 1px) !important;
    margin-top: 0 !important;
    padding-top: .85rem !important;
}

.top-nav .nav-item.dropdown::after {
    height: 1.05rem !important;
}

.hero.hero-premium {
    padding: clamp(2.35rem, 5vw, 5.25rem) 0 clamp(1.6rem, 3vw, 3.25rem) !important;
    min-height: auto !important;
}

.hero-premium h1 {
    max-width: 900px;
    font-size: clamp(2.55rem, 5.9vw, 5.6rem) !important;
    line-height: 1.05 !important;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.hero-premium .lead {
    max-width: 760px;
    font-size: clamp(1.05rem, 1.75vw, 1.28rem) !important;
    line-height: 1.68 !important;
}

.hero-premium .highlight-card {
    overflow: hidden !important;
    min-height: 0 !important;
    padding: clamp(1rem, 2vw, 1.25rem) !important;
}

html[lang="hi"] .hero-premium h1 {
    max-width: 100%;
    font-size: clamp(2rem, 4.05vw, 3.95rem) !important;
    line-height: 1.08 !important;
    letter-spacing: 0 !important;
}

.hero-title-line {
    display: block;
}

html[lang="hi"] .hero-premium .lead {
    max-width: 820px;
    font-size: clamp(1rem, 1.55vw, 1.22rem) !important;
    line-height: 1.82 !important;
}

.hero-premium .trust-graphic {
    width: 100%;
    aspect-ratio: 16 / 6.2;
    max-height: 210px;
    object-fit: cover;
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,.2);
    box-shadow: 0 22px 55px rgba(2, 10, 30, .16);
}

.page-visual-strip {
    padding: clamp(.85rem, 2vw, 1.35rem) 0 !important;
}

.page-visual-card {
    display: grid !important;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, .68fr) !important;
    align-items: center !important;
    gap: clamp(1rem, 2vw, 1.7rem) !important;
    min-height: 220px !important;
    padding: clamp(1.05rem, 2vw, 1.55rem) !important;
    overflow: hidden !important;
}

.page-visual-copy {
    min-width: 0 !important;
    max-width: 920px !important;
}

.page-visual-copy h2 {
    font-size: clamp(2rem, 3.9vw, 4.1rem) !important;
    line-height: 1.02 !important;
    letter-spacing: -.055em !important;
    margin-bottom: .65rem !important;
}

.page-visual-copy p {
    max-width: 760px !important;
    line-height: 1.56 !important;
    margin-bottom: .75rem !important;
}

.page-visual-steps {
    gap: .55rem !important;
}

.page-visual-step {
    padding: .42rem .72rem !important;
    min-height: 0 !important;
}

.page-visual-art {
    width: 100% !important;
    min-width: 0 !important;
    max-height: 210px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.page-visual-admin-img {
    width: 100% !important;
    max-width: 560px !important;
    height: auto !important;
    max-height: 190px !important;
    aspect-ratio: 16 / 5.2 !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 22px !important;
    box-shadow: 0 18px 48px rgba(2, 10, 30, .18) !important;
}

.banner-section {
    padding-top: .35rem !important;
}

.home-managed-banner {
    min-height: 190px !important;
    grid-template-columns: minmax(0, .9fr) minmax(300px, .85fr) !important;
    padding: clamp(1rem, 2vw, 1.35rem) !important;
    border-radius: 26px !important;
}

.home-managed-banner__copy h3 {
    font-size: clamp(1.15rem, 2vw, 1.55rem) !important;
    line-height: 1.18 !important;
}

.home-managed-banner__copy p {
    font-size: .98rem !important;
    line-height: 1.52 !important;
    margin-bottom: .75rem !important;
}

.home-managed-banner__img {
    width: 100% !important;
    max-height: 168px !important;
    aspect-ratio: 16 / 5.2 !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 20px !important;
}

.blog-card img,
.blog-hero-image {
    object-position: center !important;
}

@media (prefers-reduced-motion: no-preference) {
    body {
        animation: pageEnter .28s var(--premium-ease) both;
    }

    @keyframes pageEnter {
        from { opacity: .001; transform: translateY(4px); }
        to { opacity: 1; transform: translateY(0); }
    }

    a, button, .btn, .nav-link, .dropdown-item, .feature-box, .rich-directory-card, .blog-card, .page-visual-card, .home-managed-banner {
        transition: transform .18s var(--premium-ease), box-shadow .18s var(--premium-ease), border-color .18s var(--premium-ease), background-color .18s var(--premium-ease), color .18s var(--premium-ease), opacity .18s var(--premium-ease) !important;
    }

    .btn:hover,
    .blog-card:hover,
    .rich-directory-card:hover,
    .feature-box:hover {
        transform: translateY(-2px);
    }
}

@media (max-width: 991px) {
    .hero.hero-premium {
        padding-top: 2rem !important;
    }

    .hero-premium .highlight-card {
        margin-top: .5rem;
    }

    .page-visual-card,
    .home-managed-banner {
        grid-template-columns: 1fr !important;
    }

    .page-visual-art {
        max-height: 170px !important;
    }

    .page-visual-admin-img,
    .home-managed-banner__img {
        max-width: 100% !important;
        max-height: 155px !important;
    }
}

@media (max-width: 575px) {
    .hero-premium h1 {
        font-size: clamp(2.05rem, 11vw, 3.25rem) !important;
        line-height: 1.08 !important;
    }

    html[lang="hi"] .hero-premium h1 {
        font-size: clamp(1.95rem, 10vw, 3rem) !important;
        line-height: 1.18 !important;
        max-width: 100%;
    }

    .hero-premium .trust-graphic {
        aspect-ratio: 16 / 8;
        max-height: 160px;
    }

    .page-visual-card {
        padding: 1rem !important;
        border-radius: 24px !important;
    }

    .page-visual-copy h2 {
        font-size: clamp(1.65rem, 8.5vw, 2.45rem) !important;
    }

    .page-visual-steps {
        display: none !important;
    }

    .page-visual-admin-img,
    .home-managed-banner__img {
        aspect-ratio: 16 / 7 !important;
        max-height: 132px !important;
    }
}

/* Final footer compaction override. Keep this last. */
body {
    padding-bottom: 0 !important;
}

.site-footer {
    margin-top: 1rem !important;
}

.site-footer .container {
    padding-top: .9rem !important;
    padding-bottom: .9rem !important;
}

.footer-shell {
    grid-template-columns: minmax(260px, 430px) minmax(0, 1fr) !important;
    align-items: center !important;
    gap: .65rem 1.1rem !important;
}

.footer-meta {
    gap: .2rem !important;
}

.footer-meta small,
.footer-links a {
    font-size: clamp(.78rem, .85vw, .92rem) !important;
    line-height: 1.35 !important;
}

.footer-links {
    justify-content: flex-end !important;
    gap: .22rem .68rem !important;
}

.footer-links a {
    padding: .12rem .22rem !important;
}

/* Launch CTA emphasis: Complaint Generator is the primary action. */
.generator-nav-cta,
.generator-main-cta,
.generator-menu-link {
    position: relative !important;
    isolation: isolate;
}

.generator-nav-cta,
.generator-main-cta {
    border: 1px solid rgba(45, 212, 191, 0.64) !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #16b8ad 0%, #2563eb 72%, #1d4ed8 100%) !important;
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.34), 0 0 0 4px rgba(45, 212, 191, 0.11) !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    white-space: nowrap;
}

.generator-nav-cta {
    padding: .48rem .82rem !important;
    border-radius: 999px !important;
    font-size: .86rem !important;
}

.generator-main-cta {
    padding: .78rem 1.18rem !important;
    border-radius: 999px !important;
}

.generator-main-cta::after,
.generator-nav-cta::after {
    content: "";
    position: absolute;
    inset: -5px;
    z-index: -1;
    border-radius: inherit;
    border: 1px solid rgba(45, 212, 191, 0.24);
}

.generator-main-cta:hover,
.generator-nav-cta:hover {
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 18px 42px rgba(37, 99, 235, 0.42), 0 0 0 5px rgba(45, 212, 191, 0.15) !important;
}

.generator-main-cta--light {
    background: linear-gradient(135deg, #ffffff 0%, #dffcf7 45%, #b8e4ff 100%) !important;
    color: #0f2746 !important;
    border-color: rgba(255, 255, 255, .72) !important;
}

.generator-main-cta--light:hover {
    color: #0f2746 !important;
}

.top-nav .dropdown-item.generator-menu-link {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(20, 184, 166, .35), rgba(37, 99, 235, .32)) !important;
    border: 1px solid rgba(45, 212, 191, .28);
    font-weight: 900;
}

@media (max-width: 991px) {
    .generator-nav-cta {
        display: inline-flex;
        justify-content: center;
        margin: .65rem 0 .4rem !important;
        width: 100%;
    }
}

/* Premium nav/tool polish: highlight both primary discovery actions without extra labels. */
.top-nav .dropdown-menu {
    padding: .5rem;
}

.top-nav .dropdown-item.generator-menu-link,
.top-nav .dropdown-item.support-menu-link {
    margin: .12rem 0;
    border-radius: 10px;
    border: 1px solid transparent;
    font-weight: 850;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.top-nav .dropdown-item.generator-menu-link {
    color: #f7fffe !important;
    background:
        linear-gradient(135deg, rgba(20, 184, 166, .34), rgba(37, 99, 235, .28)) !important;
    border-color: rgba(45, 212, 191, .36);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.top-nav .dropdown-item.support-menu-link {
    color: #eef7ff !important;
    background:
        linear-gradient(135deg, rgba(59, 130, 246, .22), rgba(14, 165, 233, .15)) !important;
    border-color: rgba(125, 211, 252, .22);
}

.top-nav .dropdown-item.generator-menu-link::after,
.top-nav .dropdown-item.support-menu-link::after {
    content: none !important;
}

.top-nav .dropdown-item.generator-menu-link:hover,
.top-nav .dropdown-item.support-menu-link:hover,
.top-nav .dropdown-item.generator-menu-link.active,
.top-nav .dropdown-item.support-menu-link.active {
    color: #ffffff !important;
    transform: translateX(2px);
    border-color: rgba(94, 234, 212, .52);
    background:
        linear-gradient(135deg, rgba(20, 184, 166, .48), rgba(37, 99, 235, .38)) !important;
}

/* Final premium day/night switch override. */
.theme-float {
    width: 72px !important;
    height: 38px !important;
    min-width: 72px !important;
    padding: 4px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(148, 163, 184, .32) !important;
    background:
        radial-gradient(circle at 22% 20%, rgba(255, 255, 255, .22), transparent 32%),
        linear-gradient(135deg, #0b1729 0%, #14263f 58%, #1f3658 100%) !important;
    box-shadow:
        0 16px 42px rgba(2, 8, 23, .34),
        inset 0 1px 0 rgba(255, 255, 255, .13) !important;
    overflow: hidden;
}

.theme-float::before {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: inherit;
    background:
        radial-gradient(circle at 75% 28%, rgba(255,255,255,.7) 0 2px, transparent 3px),
        radial-gradient(circle at 60% 68%, rgba(255,255,255,.36) 0 1px, transparent 2px);
    opacity: .85;
    pointer-events: none;
}

.theme-icon {
    top: 4px !important;
    left: 4px !important;
    width: 30px !important;
    height: 30px !important;
    transition: transform .24s ease, opacity .2s ease, filter .2s ease !important;
}

.theme-icon-moon {
    background:
        radial-gradient(circle at 64% 32%, #14263f 0 27%, transparent 28%),
        radial-gradient(circle at 42% 48%, #f8fafc 0 52%, #b9d8ff 53% 100%) !important;
    box-shadow: 0 0 18px rgba(191, 219, 254, .34), inset -4px -5px 8px rgba(15, 23, 42, .18) !important;
    transform: translateX(0) scale(1) !important;
    opacity: 1 !important;
}

.theme-icon-sun {
    background:
        radial-gradient(circle, #fff7c2 0 34%, #f59e0b 35% 57%, transparent 58%),
        conic-gradient(from 0deg, transparent 0 7%, #fde68a 7% 13%, transparent 13% 20%, #fde68a 20% 26%, transparent 26% 33%, #fde68a 33% 39%, transparent 39% 47%, #fde68a 47% 53%, transparent 53% 61%, #fde68a 61% 67%, transparent 67% 75%, #fde68a 75% 81%, transparent 81% 88%, #fde68a 88% 94%, transparent 94%) !important;
    box-shadow: 0 0 20px rgba(251, 191, 36, .42) !important;
    transform: translateX(34px) scale(.82) !important;
    opacity: .48 !important;
}

:root[data-theme="light"] .theme-float {
    background:
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, .85), transparent 34%),
        linear-gradient(135deg, #fef3c7 0%, #bae6fd 52%, #60a5fa 100%) !important;
    border-color: rgba(59, 130, 246, .28) !important;
    box-shadow:
        0 16px 42px rgba(37, 99, 235, .22),
        inset 0 1px 0 rgba(255, 255, 255, .8) !important;
}

:root[data-theme="light"] .theme-float::before {
    opacity: 0;
}

:root[data-theme="light"] .theme-icon-sun {
    transform: translateX(34px) scale(1) !important;
    opacity: 1 !important;
    filter: drop-shadow(0 4px 10px rgba(245, 158, 11, .24));
}

:root[data-theme="light"] .theme-icon-moon {
    transform: translateX(0) scale(.78) !important;
    opacity: .32 !important;
}

/* Directory cards: custom details control, no browser-default focus pop, no row stretching. */
.company-card-grid {
    align-items: start !important;
    grid-auto-rows: auto !important;
}

.rich-directory-card {
    height: auto !important;
    align-self: start !important;
}

.rich-directory-card:hover,
.feature-box:hover {
    transform: translateY(-1px) !important;
}

.directory-more {
    border-top: 1px solid rgba(216, 229, 244, 0.13) !important;
    padding-top: .62rem !important;
}

.directory-more summary {
    width: 100%;
    min-height: 38px !important;
    padding: .48rem .58rem !important;
    border-radius: 12px;
    border: 1px solid transparent;
    background: rgba(8, 20, 35, .18);
    color: #edf7ff !important;
    font-size: .9rem !important;
    font-weight: 850 !important;
    line-height: 1.25 !important;
    outline: none !important;
    box-shadow: none !important;
    user-select: none;
}

.directory-more summary:focus {
    outline: none !important;
}

.directory-more summary:focus-visible {
    border-color: rgba(45, 212, 191, .55);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, .14) !important;
}

.directory-more summary:hover {
    background: rgba(20, 184, 166, .12);
    border-color: rgba(45, 212, 191, .22);
}

.directory-more summary::after {
    content: "" !important;
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: .78;
}

.directory-more[open] summary::after {
    transform: rotate(225deg);
}

.directory-more-body {
    margin-top: .62rem;
    border-radius: 14px;
}

:root[data-theme="light"] .directory-more summary {
    background: rgba(241, 247, 255, .78);
    color: #102033 !important;
}

:root[data-theme="light"] .directory-more summary:hover {
    background: rgba(226, 245, 255, .9);
}

/* Admin-uploaded banners: larger responsive visual area without disturbing page rhythm. */
.page-visual-card {
    grid-template-columns: minmax(0, .92fr) minmax(340px, .95fr) !important;
}

.page-visual-admin-img,
.page-visual-art img {
    width: 100% !important;
    min-height: clamp(190px, 18vw, 265px) !important;
    max-height: 285px !important;
    object-fit: cover !important;
    border-radius: 24px !important;
}

.page-managed-banner {
    grid-template-columns: minmax(0, .88fr) minmax(330px, .95fr) !important;
    min-height: 210px !important;
}

.page-managed-banner__visual img,
.page-managed-banner__placeholder {
    min-height: clamp(165px, 16vw, 235px) !important;
    max-height: 255px !important;
    object-fit: cover !important;
}

.home-managed-banner {
    min-height: 214px !important;
    grid-template-columns: minmax(0, .88fr) minmax(330px, .95fr) !important;
}

.home-managed-banner__img {
    max-height: 220px !important;
    aspect-ratio: 16 / 5.6 !important;
}

@media (max-width: 991px) {
    .page-visual-card,
    .page-managed-banner,
    .home-managed-banner {
        grid-template-columns: 1fr !important;
    }

    .page-visual-admin-img,
    .page-visual-art img,
    .page-managed-banner__visual img,
    .page-managed-banner__placeholder,
    .home-managed-banner__img {
        min-height: 150px !important;
        max-height: 190px !important;
        aspect-ratio: 16 / 7 !important;
        object-fit: cover !important;
    }
}

@media (max-width: 575px) {
    .page-visual-admin-img,
    .page-visual-art img,
    .page-managed-banner__visual img,
    .page-managed-banner__placeholder,
    .home-managed-banner__img {
        min-height: 128px !important;
        max-height: 160px !important;
        border-radius: 18px !important;
    }
}

/* Support directory compact cards: details live on the dedicated profile page. */
.rich-directory-card {
    min-height: 182px !important;
    padding: .9rem !important;
}

.directory-card-top {
    grid-template-columns: 40px minmax(0, 1fr) !important;
    gap: .7rem !important;
}

.directory-avatar,
.directory-card-top img {
    width: 40px !important;
    height: 40px !important;
    border-radius: 13px !important;
}

.directory-card-top h3 {
    font-size: clamp(.9rem, .82vw, 1rem) !important;
    line-height: 1.2 !important;
}

.directory-contact-grid {
    margin-top: .72rem !important;
}

.directory-contact-item {
    padding: .48rem .58rem !important;
    border-radius: 14px !important;
}

.directory-primary-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem !important;
    margin-top: auto !important;
    padding-top: .78rem !important;
}

.directory-primary-actions.is-single {
    grid-template-columns: 1fr !important;
}

.directory-primary-actions .btn {
    width: 100%;
    min-height: 38px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.directory-details-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    width: 100%;
    min-height: 40px;
    padding: .58rem .7rem;
    border-radius: 14px;
    border: 1px solid rgba(216, 229, 244, .12);
    background: rgba(8, 20, 35, .22);
    color: #edf7ff;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 850;
    line-height: 1.25;
}

.directory-details-link:hover,
.directory-details-link:focus-visible {
    color: #ffffff;
    border-color: rgba(45, 212, 191, .32);
    background: rgba(20, 184, 166, .13);
    transform: translateY(-1px);
    outline: none;
}

.directory-details-link span[aria-hidden="true"] {
    color: #5eead4;
    font-size: 1.2rem;
    line-height: 1;
}

:root[data-theme="light"] .directory-details-link {
    background: rgba(241, 247, 255, .82);
    border-color: rgba(15, 45, 77, .12);
    color: #102033;
}

:root[data-theme="light"] .directory-details-link:hover,
:root[data-theme="light"] .directory-details-link:focus-visible {
    background: rgba(226, 245, 255, .94);
    color: #102033;
}

/* Launch polish: premium scroll, pagination, balanced banners, and character chatbot. */
html {
    scrollbar-gutter: stable;
}

* {
    scrollbar-width: thin;
    scrollbar-color: rgba(94, 234, 212, .45) rgba(8, 18, 32, .55);
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: rgba(8, 18, 32, .55);
}

*::-webkit-scrollbar-thumb {
    min-height: 48px;
    border: 2px solid rgba(8, 18, 32, .55);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(45, 212, 191, .8), rgba(37, 99, 235, .75));
}

*::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(94, 234, 212, .95), rgba(59, 130, 246, .9));
}

.directory-pagination {
    padding: .85rem 1rem !important;
}

.directory-page-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: .42rem;
}

.directory-page-number,
.directory-page-gap {
    min-width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 850;
}

.directory-page-number {
    border: 1px solid rgba(216, 229, 244, .18);
    background: rgba(8, 20, 35, .2);
    color: #eaf7ff;
    text-decoration: none;
}

.directory-page-number:hover,
.directory-page-number.is-active {
    color: #061522;
    border-color: rgba(94, 234, 212, .68);
    background: linear-gradient(135deg, #5eead4, #93c5fd);
    box-shadow: 0 10px 24px rgba(45, 212, 191, .18);
}

.directory-page-gap {
    color: rgba(226, 232, 240, .62);
}

:root[data-theme="light"] .directory-page-number {
    color: #102033;
    background: rgba(241, 247, 255, .86);
    border-color: rgba(15, 45, 77, .12);
}

:root[data-theme="light"] .directory-page-gap {
    color: rgba(16, 32, 51, .52);
}

.page-visual-card {
    gap: clamp(1.1rem, 2.4vw, 2rem) !important;
    align-items: center !important;
}

.page-visual-art {
    justify-self: stretch !important;
}

.page-visual-admin-img,
.page-visual-art img {
    min-height: clamp(220px, 20vw, 310px) !important;
    max-height: 325px !important;
    object-fit: cover !important;
    object-position: center !important;
    box-shadow: 0 22px 54px rgba(2, 8, 23, .28);
}

.page-managed-banner__visual,
.home-managed-banner {
    align-items: center !important;
}

.page-managed-banner__visual img,
.page-managed-banner__placeholder,
.home-managed-banner__img {
    min-height: clamp(185px, 17vw, 260px) !important;
    max-height: 285px !important;
    object-fit: cover !important;
    object-position: center !important;
}

.intent-bot {
    right: 18px !important;
    bottom: 18px !important;
}

body .intent-bot .intent-bot-launch {
    width: auto !important;
    min-width: 274px !important;
    max-width: min(330px, calc(100vw - 28px)) !important;
    min-height: 76px !important;
    padding: .62rem .72rem .62rem .66rem !important;
    display: grid !important;
    grid-template-columns: 58px minmax(0, 1fr);
    grid-template-areas:
        "avatar badge"
        "avatar text";
    align-items: center !important;
    column-gap: .72rem !important;
    row-gap: .16rem !important;
    border-radius: 24px !important;
    color: #082033 !important;
    background:
        radial-gradient(circle at 18% 12%, rgba(255,255,255,.75), transparent 34%),
        linear-gradient(135deg, #f9d56f 0%, #ffe7a7 70%, #f4c95d 100%) !important;
    box-shadow: 0 18px 44px rgba(2, 8, 23, .28), inset 0 1px 0 rgba(255,255,255,.65) !important;
}

.intent-bot-avatar {
    grid-area: avatar;
    width: 58px !important;
    height: 58px !important;
    border-radius: 20px 20px 18px 18px !important;
    position: relative;
    background:
        radial-gradient(circle at 32% 34%, #ffffff 0 7%, transparent 8%),
        radial-gradient(circle at 68% 34%, #ffffff 0 7%, transparent 8%),
        radial-gradient(circle at 50% 62%, #5eead4 0 7%, transparent 8%),
        linear-gradient(145deg, #13314e, #2563eb 72%) !important;
    box-shadow: 0 10px 24px rgba(37, 99, 235, .34), inset 0 1px 0 rgba(255,255,255,.35);
}

.intent-bot-avatar::before,
.intent-bot-avatar::after {
    content: "";
    position: absolute;
    top: 22px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #082033;
}

.intent-bot-avatar::before {
    left: 18px;
}

.intent-bot-avatar::after {
    right: 18px;
}

.intent-bot-avatar__mark {
    position: absolute;
    left: 50%;
    bottom: 10px;
    width: 20px;
    height: 8px;
    transform: translateX(-50%);
    border-bottom: 3px solid rgba(255,255,255,.92);
    border-radius: 0 0 999px 999px;
    color: transparent !important;
    font-size: 0 !important;
}

.intent-bot-launch__badge {
    grid-area: badge;
    justify-self: start;
    color: #0f2746 !important;
    background: rgba(255, 255, 255, .5) !important;
}

.intent-bot-launch__text {
    grid-area: text;
    position: static !important;
    display: block !important;
    max-width: none !important;
    padding: 0 !important;
    color: #082033 !important;
    background: transparent !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.intent-bot-launch__text::after {
    display: none !important;
}

.intent-bot-launch__text strong,
.intent-bot-launch__text small,
.intent-bot-launch__text .text-muted {
    display: block;
    color: #082033 !important;
    white-space: normal;
}

.intent-bot-launch__text strong {
    font-size: .96rem;
    line-height: 1.15;
}

.intent-bot-launch__text small {
    margin-top: .12rem;
    color: rgba(8, 32, 51, .68) !important;
    font-size: .78rem;
}

@media (max-width: 767px) {
    .directory-pagination > .d-flex {
        align-items: flex-start !important;
        flex-direction: column;
    }

    .directory-page-links {
        justify-content: flex-start;
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: .2rem;
    }

    .page-visual-admin-img,
    .page-visual-art img,
    .page-managed-banner__visual img,
    .page-managed-banner__placeholder,
    .home-managed-banner__img {
        min-height: 150px !important;
        max-height: 195px !important;
    }

    body .intent-bot .intent-bot-launch {
        min-width: min(292px, calc(100vw - 24px)) !important;
        grid-template-columns: 52px minmax(0, 1fr);
        min-height: 68px !important;
    }

    .intent-bot-avatar {
        width: 52px !important;
        height: 52px !important;
        border-radius: 18px !important;
    }
}

@media (max-width: 420px) {
    body .intent-bot .intent-bot-launch {
        min-width: 64px !important;
        width: 64px !important;
        height: 64px !important;
        grid-template-columns: 1fr;
        grid-template-areas: "avatar";
        padding: .3rem !important;
        border-radius: 22px !important;
    }

    .intent-bot-launch__badge,
    .intent-bot-launch__text {
        display: none !important;
    }

    .intent-bot-avatar {
        justify-self: center;
    }
}

/* Complaint generator: assigned filing-agent guidance. */
.agent-brief-card {
    border: 1px solid rgba(88, 230, 214, .24);
    border-radius: 18px;
    padding: 1rem;
    background:
        radial-gradient(260px 120px at 0% 0%, rgba(37, 211, 179, .18), transparent 72%),
        linear-gradient(145deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .035));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
}

.agent-brief-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .55rem .7rem;
    margin-bottom: .45rem;
}

.agent-brief-head strong {
    color: #f7fbff;
    font-size: 1rem;
    line-height: 1.25;
}

.agent-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: .28rem .62rem;
    background: linear-gradient(135deg, rgba(34, 211, 238, .24), rgba(37, 99, 235, .24));
    color: #b9fff6;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: 0;
    border: 1px solid rgba(97, 255, 232, .24);
}

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

.agent-brief-grid > div {
    border-radius: 14px;
    padding: .78rem;
    background: rgba(5, 13, 24, .28);
    border: 1px solid rgba(255, 255, 255, .1);
}

.agent-brief-grid span,
.agent-checks span {
    display: block;
    color: rgba(229, 239, 255, .68);
    font-size: .72rem;
    font-weight: 800;
}

.agent-brief-grid strong {
    display: block;
    margin-top: .28rem;
    color: #f5fbff;
    font-size: .86rem;
    line-height: 1.42;
}

.agent-checks {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .75rem;
}

.agent-checks span {
    width: auto;
    border-radius: 999px;
    padding: .34rem .56rem;
    color: #dffdf8;
    background: rgba(45, 212, 191, .13);
    border: 1px solid rgba(45, 212, 191, .2);
}

:root[data-theme="light"] .agent-brief-card {
    background:
        radial-gradient(260px 120px at 0% 0%, rgba(19, 184, 166, .14), transparent 72%),
        linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(241, 247, 255, .86));
    border-color: rgba(15, 118, 110, .16);
}

:root[data-theme="light"] .agent-brief-head strong,
:root[data-theme="light"] .agent-brief-grid strong {
    color: #0c1f35;
}

:root[data-theme="light"] .agent-brief-card p,
:root[data-theme="light"] .agent-brief-grid span {
    color: rgba(15, 31, 53, .68);
}

:root[data-theme="light"] .agent-brief-grid > div {
    background: rgba(255, 255, 255, .62);
    border-color: rgba(15, 31, 53, .1);
}

@media (max-width: 767px) {
    .agent-brief-grid {
        grid-template-columns: 1fr;
    }
}

/* Live light-mode rescue: all public cards must stay readable after theme switch. */
:root[data-theme="light"] .highlight-card,
:root[data-theme="light"] .form-card,
:root[data-theme="light"] .output-card,
:root[data-theme="light"] .faq-card,
:root[data-theme="light"] .feature-box,
:root[data-theme="light"] .timeline-step,
:root[data-theme="light"] .content-tile,
:root[data-theme="light"] .need-card,
:root[data-theme="light"] .company-preview-card,
:root[data-theme="light"] .company-directory-card,
:root[data-theme="light"] .rich-directory-card,
:root[data-theme="light"] .solution-result-card,
:root[data-theme="light"] .page-visual-card,
:root[data-theme="light"] .page-managed-banner,
:root[data-theme="light"] .home-managed-banner {
    color: #102033 !important;
    background:
        linear-gradient(150deg, rgba(255, 255, 255, .98), rgba(244, 249, 255, .91)),
        radial-gradient(320px 150px at 100% 0%, rgba(15, 118, 110, .08), transparent 72%) !important;
    border-color: rgba(15, 45, 77, .14) !important;
}

:root[data-theme="light"] .highlight-card h1,
:root[data-theme="light"] .highlight-card h2,
:root[data-theme="light"] .highlight-card h3,
:root[data-theme="light"] .highlight-card h4,
:root[data-theme="light"] .highlight-card h5,
:root[data-theme="light"] .faq-card h1,
:root[data-theme="light"] .faq-card h2,
:root[data-theme="light"] .faq-card h3,
:root[data-theme="light"] .faq-card h4,
:root[data-theme="light"] .faq-card h5,
:root[data-theme="light"] .faq-card summary,
:root[data-theme="light"] .feature-box h1,
:root[data-theme="light"] .feature-box h2,
:root[data-theme="light"] .feature-box h3,
:root[data-theme="light"] .feature-box h4,
:root[data-theme="light"] .feature-box h5,
:root[data-theme="light"] .cin-line strong,
:root[data-theme="light"] .cin-line span,
:root[data-theme="light"] .content-tile strong,
:root[data-theme="light"] .need-card strong,
:root[data-theme="light"] .timeline-step h5,
:root[data-theme="light"] .page-managed-banner h2,
:root[data-theme="light"] .home-managed-banner h3 {
    color: #102033 !important;
    text-shadow: none !important;
}

:root[data-theme="light"] .highlight-card p,
:root[data-theme="light"] .highlight-card small,
:root[data-theme="light"] .faq-card p,
:root[data-theme="light"] .faq-card small,
:root[data-theme="light"] .feature-box p,
:root[data-theme="light"] .feature-box small,
:root[data-theme="light"] .timeline-step p,
:root[data-theme="light"] .content-tile small,
:root[data-theme="light"] .need-card p,
:root[data-theme="light"] .page-managed-banner p,
:root[data-theme="light"] .home-managed-banner p {
    color: #4f6278 !important;
    text-shadow: none !important;
}

:root[data-theme="light"] .faq-card details {
    border-top-color: rgba(15, 45, 77, .13) !important;
}

:root[data-theme="light"] .faq-card summary::after {
    color: #0f766e !important;
    background: rgba(15, 118, 110, .08) !important;
    border-color: rgba(15, 118, 110, .18) !important;
}

:root[data-theme="light"] .cin-line {
    background: rgba(255, 255, 255, .68) !important;
    border-color: rgba(15, 45, 77, .13) !important;
}

:root[data-theme="light"] .cinematic-stage .trust-graphic {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .78), rgba(240, 249, 255, .66)),
        radial-gradient(circle at 25% 25%, rgba(15, 118, 110, .08), transparent 40%) !important;
    border-color: rgba(15, 45, 77, .13) !important;
}

/* Clearer day/night toggle symbols. */
.theme-float {
    width: 82px !important;
    height: 42px !important;
    padding: 4px !important;
}

.theme-icon {
    top: 5px !important;
    left: 6px !important;
    width: 32px !important;
    height: 32px !important;
}

.theme-icon-sun {
    background: #f59e0b !important;
    border: 4px solid #fff7bd !important;
    box-shadow:
        0 0 0 2px rgba(245, 158, 11, .22),
        0 0 18px rgba(245, 158, 11, .52) !important;
    transform: translateX(38px) scale(.82) !important;
    opacity: .42 !important;
}

.theme-icon-sun::before,
.theme-icon-sun::after {
    content: "";
    position: absolute;
    inset: -9px;
    border-radius: inherit;
    background:
        linear-gradient(#facc15, #facc15) center top / 3px 7px no-repeat,
        linear-gradient(#facc15, #facc15) center bottom / 3px 7px no-repeat,
        linear-gradient(90deg, #facc15, #facc15) left center / 7px 3px no-repeat,
        linear-gradient(90deg, #facc15, #facc15) right center / 7px 3px no-repeat;
}

.theme-icon-sun::after {
    transform: rotate(45deg);
}

.theme-icon-moon {
    background: #dbeafe !important;
    border: 3px solid #eff6ff !important;
    box-shadow:
        inset -8px -4px 0 #27425f,
        0 0 18px rgba(191, 219, 254, .42) !important;
    transform: translateX(0) scale(1) !important;
    opacity: 1 !important;
}

.theme-icon-moon::before {
    content: "";
    position: absolute;
    width: 5px;
    height: 5px;
    left: 9px;
    top: 8px;
    border-radius: 999px;
    background: rgba(39, 66, 95, .45);
    box-shadow: 8px 8px 0 rgba(39, 66, 95, .34);
}

:root[data-theme="light"] .theme-icon-sun {
    transform: translateX(38px) scale(1) !important;
    opacity: 1 !important;
}

:root[data-theme="light"] .theme-icon-moon {
    transform: translateX(0) scale(.82) !important;
    opacity: .36 !important;
}

/* Emergency live contrast sweep: keep every interactive surface readable in both themes. */
:root[data-theme="light"] .top-nav .dropdown-menu,
:root[data-theme="light"] .top-nav .dropdown-menu-dark {
    background:
        linear-gradient(150deg, rgba(255, 255, 255, .99), rgba(244, 249, 255, .96)) !important;
    border: 1px solid rgba(15, 45, 77, .14) !important;
    box-shadow: 0 24px 56px rgba(28, 50, 78, .18) !important;
}

:root[data-theme="light"] .top-nav .dropdown-item,
:root[data-theme="light"] .top-nav .dropdown-menu-dark .dropdown-item {
    color: #102033 !important;
    text-shadow: none !important;
}

:root[data-theme="light"] .top-nav .dropdown-item:hover,
:root[data-theme="light"] .top-nav .dropdown-item:focus,
:root[data-theme="light"] .top-nav .dropdown-item.active {
    color: #081827 !important;
    background: rgba(15, 118, 110, .09) !important;
}

:root[data-theme="light"] .top-nav .dropdown-item.generator-menu-link,
:root[data-theme="light"] .top-nav .dropdown-item.support-menu-link,
:root[data-theme="light"] .top-nav .dropdown-item.generator-menu-link:hover,
:root[data-theme="light"] .top-nav .dropdown-item.support-menu-link:hover,
:root[data-theme="light"] .top-nav .dropdown-item.generator-menu-link.active,
:root[data-theme="light"] .top-nav .dropdown-item.support-menu-link.active {
    color: #082033 !important;
    background:
        linear-gradient(135deg, rgba(45, 212, 191, .28), rgba(37, 99, 235, .14)) !important;
    border-color: rgba(15, 118, 110, .26) !important;
    text-shadow: none !important;
}

:root[data-theme="light"] .hero-premium h1,
:root[data-theme="light"] .hero-title-line {
    color: #111827 !important;
    text-shadow: 0 10px 26px rgba(15, 23, 42, .12) !important;
}

:root[data-theme="light"] .hero-premium .lead,
:root[data-theme="light"] .hero-premium .text-muted,
:root[data-theme="light"] .cin-pulse small {
    color: #526073 !important;
}

:root[data-theme="light"] .badge-soft {
    color: #223247 !important;
    background: rgba(255, 255, 255, .72) !important;
    border-color: rgba(15, 45, 77, .16) !important;
}

:root[data-theme="light"] .form-control,
:root[data-theme="light"] .form-select,
:root[data-theme="light"] textarea,
:root[data-theme="light"] .intent-bot-form textarea {
    color: #102033 !important;
    background: rgba(255, 255, 255, .92) !important;
    border-color: rgba(15, 45, 77, .18) !important;
}

:root[data-theme="light"] .form-control::placeholder,
:root[data-theme="light"] textarea::placeholder,
:root[data-theme="light"] .intent-bot-form textarea::placeholder {
    color: #708197 !important;
    opacity: 1 !important;
}

:root[data-theme="light"] .intent-bot-panel {
    color: #102033 !important;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, .99), rgba(242, 247, 255, .98)) !important;
    border-color: rgba(15, 45, 77, .16) !important;
    box-shadow: 0 28px 72px rgba(15, 35, 60, .22) !important;
}

:root[data-theme="light"] .intent-bot-panel strong,
:root[data-theme="light"] .intent-bot-panel .bot-msg strong,
:root[data-theme="light"] .intent-bot-panel__head strong {
    color: #102033 !important;
}

:root[data-theme="light"] .intent-bot-panel p,
:root[data-theme="light"] .intent-bot-panel small,
:root[data-theme="light"] .intent-bot-panel .text-muted,
:root[data-theme="light"] .intent-bot-messages,
:root[data-theme="light"] .bot-msg,
:root[data-theme="light"] .user-msg {
    color: #4f6278 !important;
}

:root[data-theme="light"] .bot-msg,
:root[data-theme="light"] .user-msg {
    background: rgba(241, 247, 255, .9) !important;
    border-color: rgba(15, 45, 77, .12) !important;
}

:root[data-theme="light"] .intent-bot-chip,
:root[data-theme="light"] .intent-bot-reset,
:root[data-theme="light"] .intent-bot-close {
    color: #102033 !important;
    background: rgba(15, 118, 110, .08) !important;
    border: 1px solid rgba(15, 118, 110, .16) !important;
}

:root[data-theme="light"] .intent-bot-form {
    background: rgba(255, 255, 255, .9) !important;
    border-top-color: rgba(15, 45, 77, .12) !important;
}

:root[data-theme="light"] .intent-bot-launch {
    color: #082033 !important;
    background: linear-gradient(135deg, #ffe48a, #fff1bb) !important;
    border: 1px solid rgba(180, 125, 24, .2) !important;
}

:root[data-theme="light"] .intent-bot-launch__text strong,
:root[data-theme="light"] .intent-bot-launch__text small,
:root[data-theme="light"] .intent-bot-launch__text .text-muted {
    color: #082033 !important;
}

@media (max-width: 991px) {
    :root[data-theme="light"] .top-nav .dropdown-menu {
        background: rgba(255, 255, 255, .98) !important;
        box-shadow: none !important;
    }

    .hero-premium h1 {
        overflow-wrap: normal !important;
        word-break: normal !important;
    }
}

@media (max-width: 575px) {
    .theme-float {
        top: 82px !important;
        right: 12px !important;
        transform: scale(.9);
        transform-origin: right top;
    }

    .hero-premium .highlight-card {
        margin-top: 1rem !important;
    }

    body .intent-bot .intent-bot-launch {
        box-shadow: 0 16px 44px rgba(15, 35, 60, .24) !important;
    }
}

@media (max-width: 991px) {
    .footer-shell {
        grid-template-columns: 1fr !important;
        align-items: start !important;
    }

    .footer-links {
        justify-content: flex-start !important;
    }
}
/* Live chatbot compose fix: keep Send visible and Enter reliable on desktop/mobile. */
.intent-bot-panel:not([hidden]) {
    display: flex !important;
}

.intent-bot-form {
    position: relative !important;
    z-index: 2 !important;
    flex: 0 0 auto !important;
    padding: 0.72rem 0.95rem 0.9rem !important;
    background: rgba(8, 13, 21, 0.72) !important;
}

.intent-bot-compose {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 0.62rem !important;
    align-items: stretch !important;
}

.intent-bot-compose textarea {
    min-height: 56px !important;
    max-height: 92px !important;
    margin: 0 !important;
    resize: none !important;
    line-height: 1.35 !important;
}

.intent-bot-send {
    min-width: 92px !important;
    min-height: 56px !important;
    border: 0 !important;
    border-radius: 18px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.35rem !important;
    color: #fff !important;
    font-weight: 900 !important;
    background: linear-gradient(135deg, #2dd4bf, #2563eb) !important;
    box-shadow: 0 14px 30px rgba(37, 99, 235, .28) !important;
}

.intent-bot-send:hover,
.intent-bot-send:focus-visible {
    transform: translateY(-1px);
    outline: 2px solid rgba(45, 212, 191, .35);
    outline-offset: 2px;
}

:root[data-theme="light"] .intent-bot-form {
    background: rgba(255, 255, 255, .94) !important;
}

@media (max-width: 575px) {
    .intent-bot.is-open .intent-bot-form {
        padding: 0.54rem 0.62rem 0.64rem !important;
    }

    .intent-bot-compose {
        grid-template-columns: minmax(0, 1fr) 78px !important;
        gap: 0.45rem !important;
    }

    .intent-bot-send {
        min-width: 78px !important;
        border-radius: 16px !important;
        font-size: 0.9rem !important;
    }
}
/* Final mobile menu polish: app-like sheet, cleaner spacing, premium CTA. */
@media (max-width: 991px) {
    .top-nav {
        min-height: 76px !important;
        background: rgba(248, 252, 255, .94) !important;
        backdrop-filter: blur(18px) saturate(1.12) !important;
        border-bottom: 1px solid rgba(15, 45, 77, .1) !important;
        box-shadow: 0 16px 36px rgba(15, 35, 60, .08) !important;
    }

    :root[data-theme="dark"] .top-nav {
        background: rgba(8, 20, 35, .92) !important;
        border-bottom-color: rgba(255, 255, 255, .12) !important;
        box-shadow: 0 16px 36px rgba(0, 0, 0, .22) !important;
    }

    .top-nav .navbar-brand {
        font-size: clamp(1.12rem, 5vw, 1.55rem) !important;
        gap: .62rem !important;
        max-width: calc(100vw - 108px) !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .top-nav .navbar-toggler {
        width: 50px !important;
        height: 50px !important;
        right: 0 !important;
        border-radius: 18px !important;
        border: 1px solid rgba(15, 45, 77, .18) !important;
        background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(236,244,255,.86)) !important;
        box-shadow: 0 14px 28px rgba(15, 35, 60, .13) !important;
    }

    :root[data-theme="dark"] .top-nav .navbar-toggler {
        border-color: rgba(255, 255, 255, .16) !important;
        background: linear-gradient(145deg, rgba(30,44,64,.96), rgba(14,25,42,.94)) !important;
    }

    .top-nav .navbar-collapse.show,
    .top-nav .navbar-collapse.collapsing {
        margin-top: .8rem !important;
        padding: .82rem !important;
        border-radius: 24px !important;
        background:
            radial-gradient(circle at 12% 0%, rgba(45, 212, 191, .13), transparent 32%),
            linear-gradient(160deg, rgba(255,255,255,.98), rgba(244,249,255,.97)) !important;
        border: 1px solid rgba(15, 45, 77, .12) !important;
        box-shadow: 0 24px 58px rgba(15, 35, 60, .16) !important;
        max-height: calc(100vh - 96px) !important;
        overflow-y: auto !important;
        scrollbar-width: thin;
    }

    .top-nav .navbar-collapse .btn-outline-light {
        order: -3 !important;
    }

    .top-nav .navbar-collapse .generator-nav-cta {
        order: -2 !important;
    }

    .top-nav .navbar-collapse .navbar-nav {
        order: 1 !important;
    }

    :root[data-theme="dark"] .top-nav .navbar-collapse.show,
    :root[data-theme="dark"] .top-nav .navbar-collapse.collapsing {
        background:
            radial-gradient(circle at 12% 0%, rgba(45, 212, 191, .16), transparent 32%),
            linear-gradient(160deg, rgba(13,24,40,.98), rgba(8,16,29,.98)) !important;
        border-color: rgba(255,255,255,.12) !important;
    }

    .top-nav .navbar-nav {
        gap: .52rem !important;
    }

    .top-nav .nav-link {
        min-height: 46px !important;
        display: flex !important;
        align-items: center !important;
        border-radius: 16px !important;
        padding: .68rem .82rem !important;
        color: #102033 !important;
        background: rgba(15, 45, 77, .035) !important;
    }

    :root[data-theme="dark"] .top-nav .nav-link {
        color: #eef7ff !important;
        background: rgba(255, 255, 255, .045) !important;
    }

    .top-nav .dropdown-menu {
        margin: .42rem 0 .18rem !important;
        padding: .42rem !important;
        border-radius: 18px !important;
        background: rgba(255, 255, 255, .82) !important;
        border: 1px solid rgba(15, 45, 77, .1) !important;
        box-shadow: none !important;
    }

    :root[data-theme="dark"] .top-nav .dropdown-menu {
        background: rgba(255, 255, 255, .055) !important;
        border-color: rgba(255, 255, 255, .1) !important;
    }

    .top-nav .dropdown-item {
        min-height: 42px !important;
        border-radius: 14px !important;
        padding: .6rem .72rem !important;
        font-size: 1rem !important;
    }

    .top-nav .btn-primary {
        width: 100% !important;
        min-height: 52px !important;
        margin-top: .52rem !important;
        border-radius: 18px !important;
        font-size: 1.05rem !important;
        box-shadow: 0 18px 40px rgba(37, 99, 235, .22) !important;
    }

    .top-nav .btn-outline-light {
        width: 100% !important;
        min-height: 46px !important;
        margin-top: .35rem !important;
        border-radius: 16px !important;
        color: #102033 !important;
        border-color: rgba(15, 45, 77, .18) !important;
        background: rgba(255, 255, 255, .72) !important;
    }

    :root[data-theme="dark"] .top-nav .btn-outline-light {
        color: #eef7ff !important;
        border-color: rgba(255, 255, 255, .18) !important;
        background: rgba(255, 255, 255, .06) !important;
    }
}

/* Final chatbot override: keep this last so older hotfix layers cannot win. */
body .intent-bot {
    right: 18px !important;
    bottom: 18px !important;
}

body .intent-bot .intent-bot-launch {
    width: 62px !important;
    min-width: 62px !important;
    max-width: 62px !important;
    height: 62px !important;
    min-height: 62px !important;
    padding: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-areas: "avatar" !important;
    place-items: center !important;
    border-radius: 22px !important;
    background:
        radial-gradient(circle at 26% 18%, rgba(255,255,255,.42), transparent 30%),
        linear-gradient(145deg, #20c7bf 0%, #2563eb 82%) !important;
    border: 1px solid rgba(190, 242, 240, .42) !important;
    box-shadow: 0 18px 42px rgba(2, 8, 23, .32), inset 0 1px 0 rgba(255,255,255,.3) !important;
}

body .intent-bot .intent-bot-launch:hover,
body .intent-bot .intent-bot-launch:focus-visible {
    transform: translateY(-2px) !important;
    box-shadow: 0 22px 50px rgba(37, 99, 235, .34), inset 0 1px 0 rgba(255,255,255,.34) !important;
}

.intent-bot-launch__badge,
.intent-bot-launch__text {
    display: none !important;
}

.intent-bot-avatar {
    width: 48px !important;
    height: 48px !important;
    border-radius: 18px !important;
    justify-self: center !important;
}

.intent-bot-avatar::before {
    left: 14px !important;
    top: 18px !important;
}

.intent-bot-avatar::after {
    right: 14px !important;
    top: 18px !important;
}

.intent-bot.is-open .intent-bot-launch {
    opacity: 0 !important;
    pointer-events: none !important;
    transform: scale(.9) !important;
}

.intent-bot-panel:not([hidden]) {
    display: flex !important;
    flex-direction: column !important;
}

.intent-bot-panel {
    width: min(390px, calc(100vw - 24px)) !important;
    height: min(500px, calc(100dvh - 30px)) !important;
    max-height: none !important;
    overflow: hidden !important;
    border-radius: 22px !important;
}

.intent-bot-panel__head {
    padding: .78rem .9rem .68rem !important;
}

.intent-bot-panel__head .small.text-muted:first-child {
    display: none !important;
}

.intent-bot-panel__head strong {
    font-size: .98rem !important;
}

.intent-bot-panel__head .small.text-muted:last-child {
    font-size: .78rem !important;
}

.intent-bot-messages {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    scroll-behavior: smooth !important;
}

.bot-msg,
.user-msg {
    max-width: 88% !important;
    overflow-wrap: anywhere !important;
    line-height: 1.45 !important;
    font-size: .9rem !important;
    padding: .7rem .8rem !important;
    border-radius: 16px !important;
}

.bot-msg p,
.user-msg p {
    margin-bottom: .48rem !important;
}

.user-msg {
    margin-left: auto !important;
}

.bot-msg {
    margin-right: auto !important;
}

.intent-bot-prompts {
    flex: 0 0 auto !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    padding: .5rem .65rem !important;
}

.intent-bot-chip {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    padding: .42rem .62rem !important;
    font-size: .86rem !important;
}

.intent-bot-form {
    flex: 0 0 auto !important;
    padding: .55rem .7rem .65rem !important;
}

.intent-bot-compose {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: .45rem !important;
}

.intent-bot-compose textarea {
    min-height: 48px !important;
    max-height: 74px !important;
    border-radius: 16px !important;
    font-size: .95rem !important;
}

.intent-bot-send {
    min-width: 74px !important;
    min-height: 48px !important;
    border-radius: 16px !important;
}

.intent-bot-compose textarea:disabled,
.intent-bot-send:disabled {
    opacity: .68 !important;
    cursor: progress !important;
}

.intent-bot.is-thinking .intent-bot-send span:first-child {
    font-size: 0 !important;
}

.intent-bot.is-thinking .intent-bot-send span:first-child::after {
    content: "..." !important;
    font-size: 1rem !important;
    letter-spacing: .08em;
}

@media (max-width: 575px) {
    .intent-bot.is-open {
        inset: auto 8px 8px 8px !important;
        right: 8px !important;
        bottom: 8px !important;
        width: auto !important;
    }

    .intent-bot.is-open .intent-bot-panel {
        width: calc(100vw - 16px) !important;
        height: min(520px, calc(100dvh - 18px)) !important;
        border-radius: 20px !important;
    }

    .bot-msg,
    .user-msg {
        max-width: 94% !important;
        font-size: .92rem !important;
    }
}

/* Final launch-ready UX lock: compact chat, reliable minimize, crisp theme switch. */
body .intent-bot {
    right: 18px !important;
    bottom: 18px !important;
    width: auto !important;
    max-width: calc(100vw - 24px) !important;
    align-items: flex-end !important;
}

body .intent-bot-panel[hidden],
body .intent-bot.is-open .intent-bot-panel[hidden],
body .intent-bot:not(.is-open) .intent-bot-panel {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
    visibility: hidden !important;
}

body .intent-bot:not(.is-open) .intent-bot-launch {
    display: grid !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    visibility: visible !important;
    transform: none !important;
}

body .intent-bot .intent-bot-launch {
    width: 58px !important;
    min-width: 58px !important;
    max-width: 58px !important;
    height: 58px !important;
    min-height: 58px !important;
    padding: 0 !important;
    place-items: center !important;
    border-radius: 20px !important;
    color: #ffffff !important;
    background:
        radial-gradient(circle at 27% 18%, rgba(255, 255, 255, .52), transparent 24%),
        linear-gradient(145deg, #16c7bd 0%, #2563eb 78%) !important;
    border: 1px solid rgba(190, 242, 240, .58) !important;
    box-shadow:
        0 16px 34px rgba(15, 23, 42, .28),
        0 0 0 6px rgba(37, 99, 235, .08),
        inset 0 1px 0 rgba(255, 255, 255, .36) !important;
}

body .intent-bot .intent-bot-launch::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, .18);
}

body .intent-bot .intent-bot-launch:hover,
body .intent-bot .intent-bot-launch:focus-visible {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow:
        0 20px 44px rgba(37, 99, 235, .34),
        0 0 0 7px rgba(45, 212, 191, .13),
        inset 0 1px 0 rgba(255, 255, 255, .4) !important;
}

body .intent-bot-avatar {
    width: 44px !important;
    height: 44px !important;
    border-radius: 16px !important;
    background:
        radial-gradient(circle at 35% 34%, #dffcff 0 4px, transparent 5px),
        radial-gradient(circle at 66% 34%, #dffcff 0 4px, transparent 5px),
        radial-gradient(circle at 50% 68%, transparent 0 6px, #dffcff 7px 9px, transparent 10px),
        linear-gradient(145deg, #1d4ed8, #1e40af) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.32), 0 8px 18px rgba(2,8,23,.18) !important;
}

body .intent-bot-avatar::before,
body .intent-bot-avatar::after,
body .intent-bot-avatar__mark,
body .intent-bot-launch__badge,
body .intent-bot-launch__text {
    display: none !important;
}

body .intent-bot.is-open .intent-bot-launch {
    display: none !important;
}

body .intent-bot.is-open .intent-bot-panel {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

body .intent-bot-panel {
    width: min(376px, calc(100vw - 24px)) !important;
    height: min(470px, calc(100dvh - 28px)) !important;
    margin: 0 !important;
    border-radius: 24px !important;
    background:
        linear-gradient(160deg, rgba(10, 16, 27, .98), rgba(15, 24, 39, .98)) !important;
    border: 1px solid rgba(148, 163, 184, .2) !important;
    box-shadow: 0 26px 70px rgba(2, 8, 23, .42) !important;
}

:root[data-theme="light"] body .intent-bot-panel {
    background: linear-gradient(160deg, rgba(255, 255, 255, .98), rgba(241, 248, 255, .98)) !important;
    border-color: rgba(15, 45, 77, .15) !important;
    box-shadow: 0 24px 60px rgba(30, 41, 59, .18) !important;
}

body .intent-bot-panel__head {
    min-height: auto !important;
    padding: .74rem .82rem .62rem !important;
    align-items: center !important;
}

body .intent-bot-panel__head > div:first-child {
    min-width: 0 !important;
}

body .intent-bot-panel__head .small.text-muted:first-child {
    display: none !important;
}

body .intent-bot-panel__head strong {
    font-size: .96rem !important;
    line-height: 1.15 !important;
    display: block !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

body .intent-bot-panel__head .small.text-muted:last-child {
    display: block !important;
    font-size: .74rem !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

body .intent-bot-actions {
    gap: .38rem !important;
}

body .intent-bot-reset {
    min-height: 34px !important;
    padding: .34rem .64rem !important;
    font-size: .78rem !important;
    border-radius: 999px !important;
}

body .intent-bot-close {
    width: 36px !important;
    height: 36px !important;
    border-radius: 999px !important;
    font-size: 0 !important;
    background: rgba(148, 163, 184, .16) !important;
    border: 1px solid rgba(148, 163, 184, .22) !important;
}

body .intent-bot-close::before {
    content: "";
    width: 14px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
}

body .intent-bot-messages {
    padding: .72rem .82rem .48rem !important;
    gap: .55rem !important;
    scrollbar-width: thin;
}

body .bot-msg,
body .user-msg {
    font-size: .88rem !important;
    line-height: 1.44 !important;
    padding: .66rem .76rem !important;
    max-width: 92% !important;
    border-radius: 16px !important;
}

html[lang="hi"] body .bot-msg,
html[lang="hi"] body .user-msg,
html[lang="hi"] body .intent-bot-chip,
html[lang="hi"] body .intent-bot-form textarea {
    font-family: "Nirmala UI", "Mangal", "Manrope", "Segoe UI", sans-serif !important;
    line-height: 1.48 !important;
}

body .intent-bot-prompts {
    padding: .48rem .74rem !important;
    gap: .42rem !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
}

body .intent-bot-chip {
    padding: .38rem .58rem !important;
    font-size: .8rem !important;
    line-height: 1.15 !important;
    border-radius: 999px !important;
}

body .intent-bot-form {
    padding: .55rem .72rem .72rem !important;
}

body .intent-bot-compose {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 62px !important;
    gap: .48rem !important;
    align-items: stretch !important;
}

body .intent-bot-compose textarea {
    min-height: 46px !important;
    max-height: 72px !important;
    margin: 0 !important;
    resize: none !important;
    border-radius: 16px !important;
    padding: .62rem .72rem !important;
    font-size: .9rem !important;
}

body .intent-bot-send {
    min-width: 62px !important;
    min-height: 46px !important;
    padding: 0 .5rem !important;
    border-radius: 16px !important;
    font-size: .9rem !important;
}

body .theme-float {
    width: 76px !important;
    height: 40px !important;
    min-width: 76px !important;
    padding: 4px !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%) !important;
    border: 1px solid rgba(191, 219, 254, .32) !important;
    box-shadow: 0 14px 34px rgba(2, 8, 23, .28), inset 0 1px 0 rgba(255,255,255,.18) !important;
}

body .theme-icon {
    position: absolute !important;
    top: 5px !important;
    width: 30px !important;
    height: 30px !important;
    border-radius: 999px !important;
}

body .theme-icon-moon {
    left: 6px !important;
    opacity: 1 !important;
    transform: scale(1) !important;
    background: #e0f2fe !important;
    box-shadow: inset -8px -3px 0 #334155, 0 0 18px rgba(191, 219, 254, .34) !important;
}

body .theme-icon-moon::before {
    content: "";
    position: absolute;
    width: 4px;
    height: 4px;
    left: 9px;
    top: 8px;
    border-radius: 999px;
    background: rgba(51, 65, 85, .42);
    box-shadow: 8px 9px 0 rgba(51, 65, 85, .32);
}

body .theme-icon-sun {
    right: 6px !important;
    left: auto !important;
    opacity: .34 !important;
    transform: scale(.78) !important;
    background: #f59e0b !important;
    border: 4px solid #fff7ad !important;
    box-shadow: 0 0 16px rgba(245, 158, 11, .38) !important;
}

body .theme-icon-sun::before,
body .theme-icon-sun::after {
    content: "";
    position: absolute;
    inset: -9px;
    border-radius: inherit;
    background:
        linear-gradient(#facc15, #facc15) center top / 3px 7px no-repeat,
        linear-gradient(#facc15, #facc15) center bottom / 3px 7px no-repeat,
        linear-gradient(90deg, #facc15, #facc15) left center / 7px 3px no-repeat,
        linear-gradient(90deg, #facc15, #facc15) right center / 7px 3px no-repeat;
}

body .theme-icon-sun::after {
    transform: rotate(45deg);
}

:root[data-theme="light"] body .theme-float {
    background: linear-gradient(135deg, #e0f2fe 0%, #fef3c7 100%) !important;
    border-color: rgba(245, 158, 11, .34) !important;
    box-shadow: 0 14px 34px rgba(37, 99, 235, .17), inset 0 1px 0 rgba(255,255,255,.75) !important;
}

:root[data-theme="light"] body .theme-icon-sun {
    opacity: 1 !important;
    transform: scale(1) !important;
}

:root[data-theme="light"] body .theme-icon-moon {
    opacity: .34 !important;
    transform: scale(.78) !important;
}

@media (max-width: 575px) {
    body .intent-bot {
        right: 12px !important;
        bottom: 12px !important;
        max-width: calc(100vw - 18px) !important;
    }

    body .intent-bot .intent-bot-launch {
        width: 54px !important;
        min-width: 54px !important;
        max-width: 54px !important;
        height: 54px !important;
        min-height: 54px !important;
        border-radius: 18px !important;
    }

    body .intent-bot-avatar {
        width: 42px !important;
        height: 42px !important;
    }

    body .intent-bot.is-open {
        inset: auto 8px 8px 8px !important;
    }

    body .intent-bot.is-open .intent-bot-panel {
        width: calc(100vw - 16px) !important;
        height: min(480px, calc(100dvh - 16px)) !important;
        border-radius: 20px !important;
    }

    body .intent-bot-panel__head {
        padding: .68rem .72rem .55rem !important;
    }

    body .intent-bot-panel__head .small.text-muted:last-child {
        display: none !important;
    }

    body .bot-msg,
    body .user-msg {
        max-width: 95% !important;
        font-size: .86rem !important;
    }

    body .intent-bot-compose {
        grid-template-columns: minmax(0, 1fr) 58px !important;
    }

    body .theme-float {
        top: 88px !important;
        right: 12px !important;
        width: 70px !important;
        height: 38px !important;
    }

    body .theme-icon {
        width: 28px !important;
        height: 28px !important;
    }
}

.trust-stats-strip {
    padding: 0.75rem 0 0.35rem;
}

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

.trust-stat {
    position: relative;
    overflow: hidden;
    padding: 1rem 1.1rem;
    border-radius: 20px;
    border: 1px solid var(--line);
    background:
        linear-gradient(135deg, rgba(78, 132, 249, 0.12), rgba(255, 255, 255, 0.02)),
        var(--gloss);
    box-shadow: 0 14px 34px rgba(6, 12, 24, 0.16);
    min-height: 104px;
}

.trust-stat::after {
    content: "";
    position: absolute;
    inset: auto -24px -26px auto;
    width: 92px;
    height: 92px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(221, 180, 78, 0.22), rgba(221, 180, 78, 0));
    pointer-events: none;
}

.trust-stat strong {
    display: block;
    margin-bottom: 0.28rem;
    font-family: "Sora", "Manrope", sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.1;
}

.trust-stat span {
    display: block;
    font-size: 0.92rem;
    line-height: 1.45;
    color: var(--muted);
}

:root[data-theme="light"] .trust-stat {
    background:
        linear-gradient(135deg, rgba(40, 95, 214, 0.08), rgba(255, 255, 255, 0.88)),
        #ffffff;
    box-shadow: 0 16px 36px rgba(30, 41, 59, 0.08);
}

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

@media (max-width: 575px) {
    .trust-stats-strip {
        padding-top: 0.5rem;
    }

    .trust-stats-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .trust-stat {
        min-height: auto;
        padding: 0.95rem 1rem;
        border-radius: 18px;
    }

    .trust-stat strong {
        font-size: 1.18rem;
    }
}

/* Runtime performance polish for long CMS/directory pages */
.directory-category-head,
.rich-directory-card,
.company-directory-card,
.trust-stat,
.resource-card,
.guide-card,
.blog-card,
.content-card {
    content-visibility: auto;
    contain-intrinsic-size: 1px 520px;
}

.site-header,
.intent-bot,
.theme-float {
    will-change: transform;
}
