:root {
    --bra-primary: #0d6efd;
    --bra-primary-dark: #0a58ca;
    --bra-secondary: #1d4ed8;
    --bra-accent-warm: #fff3d6;
    --bra-accent-soft: #eef5ff;
    --bra-text: #1f2937;
    --bra-muted: #6b7280;
    --bra-border: #dbe3f0;
    --bra-surface: #ffffff;
    --bra-surface-soft: #f5f8fd;
    --bra-accent: #e9f2ff;
    --bra-success: #198754;
    --bra-danger: #dc3545;
    --shadow-card: 0 12px 34px rgba(13, 47, 102, 0.09);
    --radius-xl: 24px;
    --radius-lg: 18px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', sans-serif;
    color: var(--bra-text);
    background:
        radial-gradient(circle at top left, rgba(13, 110, 253, 0.12), transparent 26%),
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.09), transparent 22%),
        linear-gradient(180deg, #fdfefe 0%, #f5f9ff 48%, #eef4fb 100%);
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.display-title {
    font-family: 'Manrope', sans-serif;
}

a {
    color: var(--bra-primary);
    text-decoration: none;
}

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

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

.page-shell {
    min-height: calc(100vh - 240px);
}

.site-logo {
    width: 240px;
    height: 72px;
    object-fit: contain;
}

.site-header,
.admin-header {
    backdrop-filter: blur(16px);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.92)),
        linear-gradient(90deg, rgba(13, 110, 253, 0.08), rgba(245, 158, 11, 0.05)) !important;
    box-shadow: 0 8px 30px rgba(13, 47, 102, 0.06);
}

.site-header .navbar,
.admin-header .navbar {
    background: transparent;
}

.navbar-toggler {
    border: 2px solid rgba(31, 41, 55, 0.45);
    border-radius: 16px;
    padding: 0.55rem 0.75rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.public-nav-links {
    margin-right: 0.25rem;
}

.public-nav-links .nav-link,
.public-auth-actions .nav-link {
    color: #1f2937;
    font-weight: 600;
    white-space: nowrap;
}

.public-auth-actions {
    flex-shrink: 0;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
}

.navbar-brand .site-logo {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
}

.navbar-brand span {
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero-section {
    padding: 3.5rem 0 2rem;
}

.hero-card,
.panel-card,
.review-card,
.company-card,
.metric-card,
.admin-card,
.search-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(219, 227, 240, 0.85);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
}

.hero-card {
    padding: 1.75rem;
    overflow: visible;
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.09), transparent 24%),
        radial-gradient(circle at left center, rgba(13, 110, 253, 0.07), transparent 28%),
        rgba(255, 255, 255, 0.95);
}

.hero-card::after {
    content: '';
    position: absolute;
    inset: auto -60px -60px auto;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(13, 110, 253, 0.2), transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #edf4ff, #e4efff);
    color: var(--bra-primary-dark);
    font-size: 0.9rem;
    font-weight: 700;
}

.display-title {
    font-size: clamp(2rem, 6vw, 3.9rem);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.lead-copy {
    font-size: 1.05rem;
    color: var(--bra-muted);
    max-width: 54rem;
}

.search-shell {
    position: relative;
    z-index: 40;
}

.nav-search-shell {
    width: min(100%, 680px);
}

.nav-search-form {
    width: 100%;
}

.nav-search-form .form-control {
    flex: 1 1 auto;
    min-width: 420px;
}

.search-results-popover {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    right: 0;
    z-index: 2000;
    display: none;
}

.search-results-popover.active {
    display: block;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--bra-border);
    min-width: 0;
}

.search-result-item:last-child {
    border-bottom: 0;
}

.search-result-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.search-result-name,
.search-result-site {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.search-result-stats {
    min-width: 88px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.25rem;
    text-align: right;
    flex-shrink: 0;
}

.search-result-count {
    white-space: nowrap;
}

.search-result-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #edf4ff, #e4efff);
    color: var(--bra-primary-dark);
    font-size: 0.72rem;
    font-weight: 700;
    border: 1px solid rgba(13, 110, 253, 0.12);
}

.search-result-generated {
    background: linear-gradient(180deg, rgba(237, 244, 255, 0.5), rgba(255, 255, 255, 0.92));
}

.search-result-generated-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #2b7bff, #0d6efd);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.stat-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    border-radius: 999px;
    padding: 0.65rem 1rem;
    min-height: 46px;
    background: #fff;
    border: 1px solid var(--bra-border);
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
}

.stat-pill-metric {
    width: 100%;
    min-height: 92px;
    padding: 0.95rem 1rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.stat-pill-metric > span,
.stat-pill-metric > strong {
    display: block;
    width: 100%;
}

.stat-pill-metric > span {
    line-height: 1.15;
}

.stat-pill-metric > strong {
    margin-top: 0.3rem;
    line-height: 1;
}

.stat-pill-inline {
    justify-content: flex-start;
    text-align: left;
}

.stat-pill-split {
    width: 100%;
    min-height: 56px;
    justify-content: space-between;
    text-align: left;
    padding-inline: 1rem;
}

.stat-pill-count {
    min-width: 64px;
}

.section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1.25rem;
}

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

.section-head h2,
.section-head h3 {
    color: #12233f;
}

.company-card,
.review-card,
.panel-card,
.search-card,
.metric-card {
    padding: 1.25rem;
    height: 100%;
}

.admin-card {
    padding: 1.25rem;
}

.company-card-link,
.search-card-link {
    display: block;
    color: inherit;
}

.company-card-link:hover,
.search-card-link:hover {
    color: inherit;
}

.company-card,
.review-card,
.search-card,
.panel-card,
.admin-card {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.company-card:hover,
.review-card:hover,
.search-card:hover,
.panel-card:hover,
.admin-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(13, 47, 102, 0.12);
    border-color: rgba(13, 110, 253, 0.18);
}

.summary-company-card,
.search-card {
    overflow: hidden;
}

.summary-company-inner,
.search-card-inner {
    min-width: 0;
}

.summary-company-content,
.search-card-content,
.summary-company-copy,
.search-card-copy {
    min-width: 0;
}

.summary-company-copy h2,
.summary-company-copy .review-meta,
.search-card-copy h3,
.search-card-copy .review-meta {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.company-logo,
.avatar-logo {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    object-fit: contain;
    background:
        radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.92), transparent 42%),
        linear-gradient(145deg, rgba(228, 237, 250, 0.98), rgba(255, 255, 255, 0.98) 48%, rgba(219, 231, 248, 0.96));
    border: 1px solid rgba(13, 110, 253, 0.16);
    box-shadow:
        0 10px 22px rgba(13, 47, 102, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.72);
    padding: 0.55rem;
    filter:
        drop-shadow(0 0 2px rgba(255, 255, 255, 0.92))
        drop-shadow(0 0 4px rgba(255, 255, 255, 0.82))
        drop-shadow(0 0 2px rgba(15, 23, 42, 0.28))
        drop-shadow(0 0 4px rgba(15, 23, 42, 0.18));
}

.rating-stars {
    color: #f59e0b;
    letter-spacing: 0.08em;
    white-space: nowrap;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

.review-meta {
    color: var(--bra-muted);
    font-size: 0.95rem;
}

.sentiment-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.sentiment-positive {
    background: rgba(25, 135, 84, 0.12);
    color: var(--bra-success);
}

.sentiment-negative {
    background: rgba(220, 53, 69, 0.12);
    color: var(--bra-danger);
}

.service-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: linear-gradient(180deg, #edf4ff, #e7f0ff);
    color: var(--bra-primary-dark);
    border: 1px solid rgba(13, 110, 253, 0.14);
    font-weight: 600;
    font-size: 0.9rem;
}

.company-grid,
.review-grid {
    display: grid;
    gap: 1rem;
}

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

.featured-company-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

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

.category-company-card {
    min-height: 152px;
}

.category-company-inner,
.category-company-content {
    min-width: 0;
}

.category-company-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.category-company-name,
.category-company-site {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.category-company-name {
    line-height: 1.2;
}

.category-company-site {
    line-height: 1.35;
}

.category-company-stats {
    margin-top: 1rem;
}

.featured-company-compact {
    padding: 1rem;
}

.featured-company-link {
    display: block;
    color: inherit;
    height: 100%;
}

.featured-company-compact {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.94));
}

.featured-company-logo {
    width: 66px;
    height: 66px;
    margin-bottom: 0.9rem;
    border-radius: 14px;
    padding: 0.45rem;
}

.featured-company-content {
    min-width: 0;
}

.featured-company-name {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--bra-text);
    overflow-wrap: anywhere;
}

.featured-company-site {
    margin-bottom: 0.8rem;
    color: var(--bra-muted);
    font-size: 0.95rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.featured-company-rating-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.35rem;
    color: var(--bra-text);
}

.compact-stars {
    display: inline-flex;
    align-items: center;
    gap: 0.12rem;
}

.compact-star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 15px;
    height: 15px;
    font-size: 0.72rem;
    line-height: 1;
}

.compact-star.filled {
    background: linear-gradient(180deg, #78cf21, #4aae11);
    color: #fff;
}

.compact-star.empty {
    background: #d1d5db;
    color: #fff;
}

.featured-company-score {
    font-weight: 700;
    color: var(--bra-text);
}

.featured-company-count {
    color: var(--bra-muted);
    font-size: 0.95rem;
}

.review-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.metric-card .metric-label {
    color: var(--bra-muted);
    font-size: 0.92rem;
}

.metric-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.35rem;
    text-align: left;
    min-height: 96px;
}

.metric-card .metric-value {
    font-family: 'Manrope', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.company-hero {
    padding: 2rem 0 1rem;
}

.company-header-card {
    padding: 0;
    background:
        radial-gradient(circle at top left, rgba(13, 110, 253, 0.12), transparent 28%),
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.08), transparent 20%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.96));
}

.company-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, 420px);
    gap: 0;
    align-items: stretch;
}

.company-hero-main {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 2rem;
}

.company-logo-stage {
    flex: 0 0 132px;
    width: 132px;
    height: 132px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 28px;
    background:
        radial-gradient(circle at 28% 28%, rgba(255, 255, 255, 0.94), transparent 40%),
        linear-gradient(145deg, rgba(223, 234, 248, 0.98), rgba(249, 251, 255, 0.98) 48%, rgba(214, 228, 248, 0.96));
    box-shadow:
        0 18px 36px rgba(13, 47, 102, 0.12),
        inset 0 0 0 1px rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(13, 110, 253, 0.16);
}

.company-logo-hero {
    width: 110px;
    height: 110px;
    border-radius: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    filter:
        drop-shadow(0 0 3px rgba(255, 255, 255, 0.95))
        drop-shadow(0 0 8px rgba(255, 255, 255, 0.88))
        drop-shadow(0 0 3px rgba(15, 23, 42, 0.35))
        drop-shadow(0 0 8px rgba(15, 23, 42, 0.22));
}

.company-identity {
    flex: 1 1 auto;
    min-width: 0;
    padding-top: 0.1rem;
}

.claimed-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.6rem;
    border-radius: 10px;
    border: 1px solid rgba(31, 41, 55, 0.16);
    color: var(--bra-text);
    background: linear-gradient(180deg, #ffffff, #f9fbff);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.claimed-badge::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 1.5px solid var(--bra-success);
    background: rgba(25, 135, 84, 0.12);
    box-shadow: inset 0 0 0 2px #fff;
}

.company-review-inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.05rem;
    margin-bottom: 0.7rem;
}

.company-review-link {
    color: var(--bra-text);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 0.16em;
}

.company-review-divider {
    color: var(--bra-muted);
}

.rating-stars-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.12rem;
}

.company-summary-meta {
    color: #3457c2;
    font-size: 1.45rem;
    font-weight: 500;
}

.company-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.company-rating-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-left: 1px solid rgba(219, 227, 240, 0.9);
    background: rgba(255, 255, 255, 0.88);
}

.company-rating-card-top,
.company-rating-card-bottom {
    padding: 2rem;
}

.company-rating-card-bottom {
    border-top: 1px solid rgba(219, 227, 240, 0.9);
}

.company-rating-card-top {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 1.4rem;
    align-items: start;
}

.company-rating-score {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
}

.company-rating-value {
    font-family: 'Manrope', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    line-height: 0.92;
    color: #2f342f;
}

.company-rating-label {
    font-size: 1.45rem;
    font-weight: 700;
    color: #3d463a;
}

.rating-scale {
    display: grid;
    gap: 0.9rem;
    padding-top: 0.2rem;
}

.rating-scale-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 0.85rem;
    align-items: center;
}

.rating-scale-label {
    font-size: 0.98rem;
    color: #4b5563;
}

.rating-scale-track {
    height: 8px;
    border-radius: 999px;
    background: #d1d5db;
    overflow: hidden;
}

.rating-scale-fill {
    display: block;
    height: 100%;
    border-radius: 999px;
}

.rating-scale-fill-5,
.rating-scale-fill-4 {
    background: linear-gradient(90deg, #16a34a, #22c55e);
}

.rating-scale-fill-3 {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.rating-scale-fill-2 {
    background: linear-gradient(90deg, #fb923c, #f97316);
}

.rating-scale-fill-1 {
    background: linear-gradient(90deg, #ef4444, #f97316);
}

.breakdown-bar {
    display: flex;
    width: 100%;
    height: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: #e6edf7;
}

.breakdown-bar span {
    height: 100%;
}

.breakdown-positive {
    background: linear-gradient(90deg, #1fa971, #198754);
}

.breakdown-negative {
    background: linear-gradient(90deg, #ff9a9a, #dc3545);
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 0.6rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--bra-border);
    background: #fff;
    color: var(--bra-text);
    font-weight: 700;
}

.filter-chip.active,
.filter-chip:hover {
    background: var(--bra-primary);
    color: #fff;
    border-color: var(--bra-primary);
}

.pagination .page-link {
    border-radius: 12px;
    margin: 0 0.15rem;
    border-color: var(--bra-border);
    color: var(--bra-text);
}

.pagination .page-item.active .page-link {
    background: var(--bra-primary);
    border-color: var(--bra-primary);
}

.admin-sidebar-note,
.empty-state {
    background: linear-gradient(180deg, rgba(13, 110, 253, 0.08), rgba(13, 110, 253, 0.02));
    border: 1px dashed rgba(13, 110, 253, 0.3);
    border-radius: var(--radius-lg);
    padding: 1.1rem;
}

.table > :not(caption) > * > * {
    vertical-align: middle;
}

.site-footer {
    background:
        radial-gradient(circle at left top, rgba(13, 110, 253, 0.08), transparent 25%),
        linear-gradient(180deg, #fbfdff, #f1f6fd);
    border-top: 1px solid var(--bra-border);
    position: relative;
    z-index: 2;
}

.footer-panel {
    padding: 2rem;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(219, 227, 240, 0.9);
    box-shadow: 0 16px 32px rgba(13, 47, 102, 0.08);
}

.nav-link {
    color: #355070;
    font-weight: 600;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--bra-primary);
}

.btn-primary {
    background: linear-gradient(180deg, #2b7bff, #0d6efd);
    border-color: #0d6efd;
    box-shadow: 0 12px 24px rgba(13, 110, 253, 0.18);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(180deg, #1f71fb, #0a58ca);
    border-color: #0a58ca;
}

.btn-outline-primary {
    border-color: rgba(13, 110, 253, 0.48);
    color: var(--bra-primary);
    background: rgba(255, 255, 255, 0.8);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background: rgba(13, 110, 253, 0.08);
    color: var(--bra-primary-dark);
    border-color: var(--bra-primary);
}

.footer-links a {
    color: var(--bra-muted);
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--bra-primary);
}

.form-control,
.form-select {
    border-radius: 14px;
    min-height: 48px;
    border-color: var(--bra-border);
}

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

.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.12);
    border-color: rgba(13, 110, 253, 0.4);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-weight: 700;
    min-height: 48px;
    line-height: 1.1;
    text-align: center;
    padding-inline: 1.2rem;
}

.btn-lg {
    min-height: 48px;
    font-size: 1.05rem;
    line-height: 1.1;
    padding-inline: 1.15rem;
}

.btn-sm {
    min-height: auto;
    border-radius: 12px;
}

.btn-icon {
    width: 32px;
    min-width: 32px;
    height: 32px;
    min-height: 32px;
    padding: 0;
    font-size: 0.82rem;
    border-radius: 10px;
}

.btn-icon span {
    line-height: 1;
}

.admin-action-group {
    flex-wrap: nowrap !important;
    align-items: center;
}

.admin-action-group form {
    margin: 0;
}

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

.company-meta-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.9rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(13, 110, 253, 0.16);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(13, 110, 253, 0.06), rgba(13, 110, 253, 0.02));
}

.company-meta-preview-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 74px;
    height: 74px;
    border-radius: 18px;
    border: 1px solid rgba(219, 227, 240, 0.95);
    background: linear-gradient(145deg, #f9fbff, #edf3fc);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    flex-shrink: 0;
}

.company-meta-preview-frame img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    filter: drop-shadow(0 1px 1px rgba(255, 255, 255, 0.9)) drop-shadow(0 1px 2px rgba(15, 23, 42, 0.12));
}

.company-meta-preview-copy {
    min-width: 0;
}

.rating-selector {
    margin: 0;
    padding: 0;
    border: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 100%;
}

.rating-selector > legend {
    float: none;
    width: 100%;
    padding: 0;
    margin-bottom: 0.75rem;
    line-height: 1.35;
}

.company-combobox .form-control {
    min-height: 48px;
}

.company-combobox .form-control::-webkit-calendar-picker-indicator {
    opacity: 0.75;
    cursor: pointer;
}

.review-form-field {
    display: flex;
    flex-direction: column;
}

.company-combobox-shell {
    width: 100%;
}

.company-combobox-input {
    min-height: 48px;
}

.company-combobox-results {
    left: 0;
    right: 0;
}

.search-result-select {
    width: 100%;
    border: 0;
    background: transparent;
}

.search-result-select:hover,
.search-result-select:focus-visible {
    background: rgba(242, 247, 255, 0.92);
    outline: 0;
}

.rating-selector-stars {
    display: flex;
    align-items: center;
    gap: 0.16rem;
    flex-wrap: nowrap;
}

.rating-selector-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rating-selector-label {
    cursor: pointer;
    display: block;
    flex: 0 0 auto;
}

.rating-selector-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 2px;
    border: 1px solid #d7dceb;
    background: #dfe3ef;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.rating-selector-star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 1.7rem;
    line-height: 1;
    color: #ffffff;
}

.rating-selector-label:hover .rating-selector-box {
    transform: translateY(-1px);
    border-color: #89d16a;
    box-shadow: 0 10px 18px rgba(48, 93, 28, 0.08);
}

.rating-selector-input:focus-visible + .rating-selector-label .rating-selector-box {
    box-shadow: 0 0 0 0.22rem rgba(13, 110, 253, 0.15);
}

.rating-selector-label.is-active .rating-selector-box,
.rating-selector-label.is-preview .rating-selector-box {
    background: #73cf11;
    border-color: #73cf11;
}

.rating-selector-label.is-active .rating-selector-star,
.rating-selector-label.is-preview .rating-selector-star {
    color: #ffffff;
}

@media (max-width: 575.98px) {
    .rating-selector-box {
        width: 42px;
        height: 42px;
    }

    .rating-selector-stars {
        gap: 0.14rem;
    }

    .rating-selector-star {
        font-size: 1.45rem;
    }
}

.ai-progress-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(244, 248, 255, 0.72);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 5000;
}

.ai-progress-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ai-progress-dialog {
    width: min(100%, 560px);
    padding: 2rem;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(13, 110, 253, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.96));
    border: 1px solid rgba(219, 227, 240, 0.95);
    box-shadow: 0 28px 70px rgba(13, 47, 102, 0.18);
}

.ai-progress-pulse {
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(43, 123, 255, 0.18), rgba(13, 110, 253, 0.08));
    border: 1px solid rgba(13, 110, 253, 0.18);
    position: relative;
    overflow: hidden;
}

.ai-progress-pulse::before,
.ai-progress-pulse::after {
    content: '';
    position: absolute;
    inset: 12px;
    border-radius: 14px;
    border: 2px solid rgba(13, 110, 253, 0.28);
}

.ai-progress-pulse::after {
    inset: 19px;
    border-width: 3px;
    border-color: rgba(13, 110, 253, 0.72);
    animation: aiPulse 1.4s ease-in-out infinite;
}

.ai-progress-track {
    width: 100%;
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(218, 228, 243, 0.92);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
}

.ai-progress-track span {
    display: block;
    width: 8%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0d6efd, #4aa3ff);
    box-shadow: 0 8px 16px rgba(13, 110, 253, 0.22);
    transition: width 0.35s ease;
}

.ai-progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.9rem;
    color: var(--bra-muted);
    font-weight: 600;
}

.ai-progress-meta strong {
    color: var(--bra-primary-dark);
    font-family: 'Manrope', sans-serif;
    font-size: 1.15rem;
}

.ai-progress-steps {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.35rem;
}

.ai-progress-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 0.95rem;
    border-radius: 16px;
    border: 1px solid rgba(219, 227, 240, 0.95);
    background: rgba(255, 255, 255, 0.72);
    color: var(--bra-muted);
    font-weight: 600;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.ai-progress-step-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.55);
    flex-shrink: 0;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.ai-progress-step.is-active {
    border-color: rgba(13, 110, 253, 0.18);
    background: linear-gradient(180deg, rgba(237, 244, 255, 0.92), rgba(248, 251, 255, 0.92));
    color: var(--bra-text);
}

.ai-progress-step.is-active .ai-progress-step-dot {
    background: linear-gradient(180deg, #2b7bff, #0d6efd);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.12);
}

.search-progress-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(244, 248, 255, 0.72);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 4800;
}

.search-progress-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.search-progress-dialog {
    width: min(100%, 560px);
    padding: 2rem;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, rgba(13, 110, 253, 0.08), transparent 28%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.96));
    border: 1px solid rgba(219, 227, 240, 0.95);
    box-shadow: 0 28px 70px rgba(13, 47, 102, 0.18);
}

.search-progress-pulse {
    width: 56px;
    height: 56px;
    margin-bottom: 1rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(43, 123, 255, 0.18), rgba(13, 110, 253, 0.08));
    border: 1px solid rgba(13, 110, 253, 0.18);
    position: relative;
    overflow: hidden;
}

.search-progress-pulse::before,
.search-progress-pulse::after {
    content: '';
    position: absolute;
    inset: 12px;
    border-radius: 14px;
    border: 2px solid rgba(13, 110, 253, 0.28);
}

.search-progress-pulse::after {
    inset: 19px;
    border-width: 3px;
    border-color: rgba(13, 110, 253, 0.72);
    animation: aiPulse 1.4s ease-in-out infinite;
}

.search-progress-track {
    width: 100%;
    height: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(218, 228, 243, 0.92);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
}

.search-progress-track span {
    display: block;
    width: 10%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0d6efd, #4aa3ff);
    box-shadow: 0 8px 16px rgba(13, 110, 253, 0.22);
    transition: width 0.35s ease;
}

.search-progress-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.9rem;
    color: var(--bra-muted);
    font-weight: 600;
}

.search-progress-meta strong {
    color: var(--bra-primary-dark);
    font-family: 'Manrope', sans-serif;
    font-size: 1.15rem;
}

.search-progress-steps {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.35rem;
}

.search-progress-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 0.95rem;
    border-radius: 16px;
    border: 1px solid rgba(219, 227, 240, 0.95);
    background: rgba(255, 255, 255, 0.72);
    color: var(--bra-muted);
    font-weight: 600;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.search-progress-step-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.55);
    flex-shrink: 0;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.search-progress-step.is-active {
    border-color: rgba(13, 110, 253, 0.18);
    background: linear-gradient(180deg, rgba(237, 244, 255, 0.92), rgba(248, 251, 255, 0.92));
    color: var(--bra-text);
}

.search-progress-step.is-active .search-progress-step-dot {
    background: linear-gradient(180deg, #2b7bff, #0d6efd);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.12);
}

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

.blog-feature-card,
.blog-card,
.blog-post-shell {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(219, 227, 240, 0.9);
    border-radius: 28px;
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.blog-feature-image,
.blog-card-image,
.blog-post-cover {
    width: 100%;
    display: block;
    object-fit: cover;
    background: linear-gradient(180deg, #eff5ff, #f8fbff);
}

.blog-feature-image {
    height: 100%;
    min-height: 320px;
}

.blog-feature-copy {
    padding: 2rem;
}

.blog-card-link {
    display: block;
    color: inherit;
}

.blog-card-image {
    aspect-ratio: 16 / 9;
}

.blog-card-body {
    padding: 1.25rem;
}

.blog-post-shell {
    padding: 1.5rem;
}

.blog-post-cover {
    border-radius: 24px;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(219, 227, 240, 0.9);
}

.blog-post-intro {
    font-size: 1.06rem;
    color: #334155;
    margin-bottom: 2rem;
}

.blog-post-section + .blog-post-section {
    margin-top: 2rem;
}

.blog-post-section p {
    color: #334155;
}

.blog-post-list {
    padding-left: 1.2rem;
    margin: 0.9rem 0 0;
    color: #334155;
}

.blog-post-list li + li {
    margin-top: 0.45rem;
}

.blog-post-cta {
    margin-top: 2rem;
    padding: 1.4rem;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(237, 244, 255, 0.9), rgba(248, 251, 255, 0.92));
    border: 1px solid rgba(13, 110, 253, 0.12);
}

@keyframes aiPulse {
    0%,
    100% {
        transform: scale(0.9);
        opacity: 0.85;
    }

    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 2rem;
    }

    .hero-card,
    .company-header-card {
        padding: 0;
    }

    .company-hero-layout {
        grid-template-columns: 1fr;
    }

    .company-rating-card {
        border-left: 0;
        border-top: 1px solid rgba(219, 227, 240, 0.9);
    }

    .company-meta-preview {
        align-items: flex-start;
    }

    .nav-search-shell {
        width: 100%;
    }

    .public-nav-links {
        margin-top: 0.75rem;
    }

    .public-nav-links .nav-link,
    .public-auth-actions .nav-link {
        padding-inline: 0;
    }

    .public-auth-actions {
        width: 100%;
        align-items: stretch !important;
    }

    .public-auth-actions .btn,
    .public-auth-actions .nav-link {
        width: 100%;
        justify-content: flex-start;
    }

    .nav-search-form {
        flex-wrap: wrap;
    }

    .nav-search-form .btn {
        width: 100%;
    }

    .nav-search-form .form-control {
        min-width: 0;
    }

    .ai-progress-dialog {
        padding: 1.5rem;
    }

    .search-progress-dialog {
        padding: 1.5rem;
    }

    .blog-feature-copy {
        padding: 1.5rem;
    }

    .category-company-grid {
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }
}

@media (max-width: 575.98px) {
    .site-logo {
        width: 136px;
        height: 42px;
    }

    .hero-card,
    .panel-card,
    .review-card,
    .company-card,
    .metric-card,
    .admin-card,
    .search-card {
        border-radius: 20px;
    }

    .display-title {
        font-size: 1.9rem;
        line-height: 1.06;
    }

    .lead-copy {
        font-size: 0.98rem;
    }

    .hero-section {
        padding-top: 2rem;
    }

    .hero-card {
        padding: 1rem;
    }

    .blog-post-shell {
        padding: 1rem;
        border-radius: 22px;
    }

    .blog-feature-copy,
    .blog-card-body {
        padding: 1rem;
    }

    .blog-feature-image {
        min-height: 220px;
    }

    .category-company-card {
        min-height: auto;
    }

    .company-logo,
    .avatar-logo {
        width: 50px;
        height: 50px;
    }

    .company-hero-main,
    .company-rating-card-top,
    .company-rating-card-bottom {
        padding: 1.25rem;
    }

    .company-hero-main {
        flex-direction: column;
    }

    .company-logo-stage {
        width: 108px;
        height: 108px;
        border-radius: 24px;
    }

    .company-logo-hero {
        width: 88px;
        height: 88px;
    }

    .company-summary-meta {
        font-size: 1.15rem;
    }

    .company-rating-card-top {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .company-rating-value {
        font-size: 3.2rem;
    }

    .search-result-item {
        align-items: flex-start;
        gap: 0.75rem;
    }

    .search-result-stats {
        min-width: 72px;
    }

    .search-result-count {
        white-space: normal;
        line-height: 1.2;
    }

    .search-result-badge,
    .search-result-generated-label {
        font-size: 0.68rem;
    }

    .ai-progress-overlay {
        padding: 1rem;
    }

    .search-progress-overlay {
        padding: 1rem;
    }

    .ai-progress-dialog {
        padding: 1.35rem;
        border-radius: 22px;
    }

    .search-progress-dialog {
        padding: 1.35rem;
        border-radius: 22px;
    }

    .ai-progress-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .search-progress-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}
