.brand-logo {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.brand-logo span {
    color: var(--tblr-primary);
}

/* ── Auth split (login / register / complete) ── */
.auth-split-page {
    background: var(--tblr-bg-surface);
}

.auth-split-hero {
    background: linear-gradient(145deg, #044e94 0%, #066fd1 42%, #1a9af0 100%);
}

.auth-split-panel {
    background: var(--tblr-bg-surface);
    overflow-y: auto;
}

.auth-split-content {
    max-width: 640px;
}

.auth-hero-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.auth-form-card {
    border: 1px solid var(--tblr-border-color);
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.04);
}

.auth-form-card .card-header {
    background: var(--tblr-bg-surface-secondary);
    border-bottom: 1px solid var(--tblr-border-color);
}

.form-label.required::after {
    content: " *";
    color: var(--tblr-red);
}

.validation-summary-errors:empty,
.alert:empty {
    display: none !important;
}

/* ── Marketing ── */
.marketing-hero {
    background: linear-gradient(180deg, rgba(6, 111, 209, 0.08) 0%, transparent 55%);
    padding: 4rem 0 3rem;
}

.marketing-feature-icon {
    width: 3rem;
    height: 3rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--tblr-border-radius-lg);
}

.marketing-cta-band {
    background: linear-gradient(135deg, #066fd1, #1a9af0);
    border-radius: var(--tblr-border-radius-lg);
}

/* ── Admin sidebar ── */
.navbar-vertical .nav-link.active {
    font-weight: 600;
}

.sidebar-user {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: auto;
    padding: 1rem 0.75rem 0.5rem;
}

.sidebar-avatar {
    width: 2rem;
    height: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Mobile admin shell — fixed top bar + slide-in drawer */
.admin-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1035;
    background: rgba(15, 23, 42, 0.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

body.admin-drawer-open .admin-sidebar-backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.admin-drawer-open {
    overflow: hidden;
    touch-action: none;
}

@media (max-width: 991.98px) {
    .admin-app .admin-sidebar.navbar-vertical {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1040;
        width: 100%;
        height: 3.5rem;
        min-height: 3.5rem;
        padding: 0;
        overflow: visible;
    }

    .admin-app .admin-sidebar .container-fluid {
        height: 3.5rem;
        min-height: 3.5rem;
        flex-direction: row !important;
        align-items: center;
        padding: 0 0.75rem;
        gap: 0.5rem;
    }

    .admin-app .admin-sidebar-header {
        gap: 0.5rem;
        min-height: 3.5rem;
    }

    .admin-app .admin-sidebar .navbar-toggler {
        margin: 0;
        padding: 0.35rem 0.5rem;
        border-color: rgba(255, 255, 255, 0.25);
        transition: transform 0.2s ease;
    }

    body.admin-drawer-open .admin-app .admin-sidebar .navbar-toggler {
        transform: rotate(90deg);
    }

    .admin-app .admin-sidebar .navbar-brand {
        margin: 0;
        padding: 0;
        font-size: 1.05rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .admin-app .admin-sidebar #sidebar-menu.navbar-collapse {
        position: fixed;
        top: 3.5rem;
        left: 0;
        bottom: 0;
        width: min(18rem, 88vw);
        display: flex !important;
        height: auto !important;
        flex-direction: column;
        padding: 0.5rem 0.75rem 1rem;
        background: var(--tblr-dark, #1e293b);
        box-shadow: 0.25rem 0 1.5rem rgba(0, 0, 0, 0.2);
        transform: translate3d(-100%, 0, 0);
        transition: transform 0.2s cubic-bezier(0.32, 0.72, 0, 1);
        visibility: visible;
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 1045;
        will-change: transform;
        -webkit-overflow-scrolling: touch;
    }

    .admin-app .admin-sidebar #sidebar-menu.navbar-collapse.collapsing {
        transition: none !important;
        height: auto !important;
    }

    body.admin-drawer-open .admin-app .admin-sidebar #sidebar-menu.navbar-collapse {
        transform: translate3d(0, 0, 0);
    }

    .admin-app .admin-sidebar .nav-link-icon {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 1.5rem;
        margin-right: 0.5rem;
    }

    .admin-app .page-wrapper {
        margin-left: 0 !important;
        padding-top: 3.5rem;
        min-height: 100vh;
    }

    .admin-app .page-header .page-title {
        font-size: 1.25rem;
        line-height: 1.3;
        word-break: break-word;
    }
}

@media (prefers-reduced-motion: reduce) {
    .admin-sidebar-backdrop,
    .admin-app .admin-sidebar #sidebar-menu.navbar-collapse,
    .admin-app .admin-sidebar .navbar-toggler {
        transition: none !important;
    }
}

@media (min-width: 992px) {
    .admin-sidebar-backdrop {
        display: none !important;
    }

    .admin-app .admin-sidebar-header {
        display: contents;
    }
}

/* ── Public review flow ── */
.page-public-review {
    min-height: 100vh;
    min-height: 100dvh;
    background: linear-gradient(180deg, color-mix(in srgb, var(--rh-brand, #066fd1) 8%, transparent) 0%, var(--tblr-bg-surface) 42%);
}

.public-review-container {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

.public-review-card {
    border: none;
    box-shadow: 0 0.5rem 2rem rgba(15, 23, 42, 0.08);
    border-radius: var(--tblr-border-radius-lg);
}

.public-review-brand {
    margin-bottom: 1.25rem;
}

.public-review-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    max-width: 100%;
}

.public-review-logo {
    display: block;
    width: auto;
    height: auto;
    max-width: min(100%, 13.5rem);
    max-height: 4.25rem;
    object-fit: contain;
    border: none;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.public-review-logo-fallback {
    width: 3.5rem;
    height: 3.5rem;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: color-mix(in srgb, var(--rh-brand, #066fd1) 12%, transparent);
    color: var(--rh-brand, #066fd1);
}

.public-review-business-name {
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--tblr-body-color);
}

.public-review-location {
    margin-top: 0.15rem;
    font-size: 0.875rem;
    color: var(--tblr-secondary);
}

.public-review-avatar {
    background: color-mix(in srgb, var(--rh-brand, #066fd1) 12%, transparent) !important;
    color: var(--rh-brand, #066fd1) !important;
}

.public-review-footer {
    opacity: 0.75;
}

.star-rating-btn {
    min-width: 2.75rem;
    min-height: 2.75rem;
    font-size: 2rem;
    line-height: 1;
    border: none;
    background: transparent;
    color: #d1d5db;
    box-shadow: none;
    padding: 0.2rem;
    border-radius: 0.5rem;
    transition: transform 0.15s ease, color 0.15s ease;
}

.star-rating-btn .ti {
    display: block;
    line-height: 1;
}

.star-rating-btn.is-selected {
    color: #f59f00;
    font-weight: normal;
}

.star-rating-btn.is-chosen {
    transform: scale(1.12);
    filter: drop-shadow(0 2px 4px rgba(245, 159, 0, 0.25));
}

.star-rating-btn:focus-visible {
    outline: 2px solid var(--rh-brand, #066fd1);
    outline-offset: 3px;
}

.star-rating-btn:hover:not(:disabled) {
    transform: scale(1.1);
    color: #fbbf24;
}

.star-rating-group {
    flex-wrap: wrap;
    gap: 0.35rem !important;
}

/* Rating reaction interstitial (after star tap, before draft page) */
.public-review-card-rating .card-body {
    position: relative;
    min-height: 18rem;
}

#rating-step-content.is-transitioning {
    pointer-events: none;
    animation: rh-rating-fade-out 0.35s ease forwards;
}

.rating-reaction {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1.25rem 2rem;
    border-radius: inherit;
    background: color-mix(in srgb, var(--tblr-bg-surface) 92%, var(--rh-brand, #066fd1) 8%);
    z-index: 5;
    overflow: hidden;
}

.rating-reaction[hidden] {
    display: none !important;
}

.rating-reaction.is-visible {
    animation: rh-rating-overlay-in 0.4s ease both;
}

.rating-reaction-stars {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    margin-bottom: 0.75rem;
    font-size: 2.25rem;
    line-height: 1;
}

.rating-reaction-stars .ti {
    color: #d1d5db;
    opacity: 0;
    transform: scale(0.3) rotate(-20deg);
}

.rating-reaction-stars .ti.is-lit {
    color: #f59f00;
    animation: rh-star-pop-in 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.rating-reaction-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 0.75rem;
    opacity: 0;
    transform: scale(0.5);
}

.rating-reaction.is-visible .rating-reaction-icon {
    animation: rh-reaction-icon-in 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s both;
}

.rating-reaction-icon.tone-low {
    background: color-mix(in srgb, #94a3b8 18%, transparent);
    color: #64748b;
}

.rating-reaction-icon.tone-mid {
    background: color-mix(in srgb, var(--rh-brand, #066fd1) 14%, transparent);
    color: var(--rh-brand, #066fd1);
}

.rating-reaction-icon.tone-high {
    background: color-mix(in srgb, #f59f00 16%, transparent);
    color: #d97706;
}

.rating-reaction-icon.tone-celebrate {
    background: color-mix(in srgb, #f59f00 22%, transparent);
    color: #ea580c;
    box-shadow: 0 0 0 0 rgba(245, 159, 0, 0.35);
    animation: rh-reaction-icon-in 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.35s both,
               rh-celebrate-pulse 1.2s ease 0.9s 2;
}

.rating-reaction-message {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 0.35rem;
    max-width: 16rem;
    opacity: 0;
    transform: translateY(10px);
}

.rating-reaction.is-visible .rating-reaction-message {
    animation: rh-fade-up 0.45s ease 0.55s both;
}

.rating-reaction-sub {
    margin: 0 0 1.25rem;
    opacity: 0;
}

.rating-reaction.is-visible .rating-reaction-sub {
    animation: rh-fade-up 0.4s ease 0.7s both;
}

.rating-reaction-progress {
    width: min(12rem, 70%);
    height: 4px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--tblr-border-color) 60%, transparent);
    overflow: hidden;
    opacity: 0;
}

.rating-reaction.is-visible .rating-reaction-progress {
    animation: rh-fade-up 0.3s ease 0.8s both;
}

.rating-reaction-progress-bar {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--rh-brand, #066fd1), #f59f00);
}

.rating-reaction.is-visible .rating-reaction-progress-bar {
    animation: rh-rating-progress var(--rh-reaction-duration, 1.8s) ease 0.85s forwards;
}

.rating-reaction-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.rating-reaction-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    opacity: 0;
    top: 42%;
    left: 50%;
}

.rating-reaction.is-visible .rating-reaction-particle {
    animation: rh-confetti-burst 1.1s ease-out both;
}

@keyframes rh-rating-fade-out {
    to {
        opacity: 0;
        transform: scale(0.98);
    }
}

@keyframes rh-rating-overlay-in {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rh-star-pop-in {
    0% {
        opacity: 0;
        transform: scale(0.3) rotate(-20deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0);
    }
}

@keyframes rh-reaction-icon-in {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes rh-celebrate-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(245, 159, 0, 0.35);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(245, 159, 0, 0);
    }
}

@keyframes rh-rating-progress {
    to {
        width: 100%;
    }
}

@keyframes rh-confetti-burst {
    0% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translate(
            calc(-50% + var(--tx, 0px)),
            calc(-50% + var(--ty, -80px))
        ) scale(1) rotate(var(--rot, 180deg));
    }
}

@media (prefers-reduced-motion: reduce) {
    #rating-step-content.is-transitioning,
    .rating-reaction.is-visible,
    .rating-reaction-stars .ti.is-lit,
    .rating-reaction.is-visible .rating-reaction-icon,
    .rating-reaction.is-visible .rating-reaction-message,
    .rating-reaction.is-visible .rating-reaction-sub,
    .rating-reaction.is-visible .rating-reaction-progress,
    .rating-reaction.is-visible .rating-reaction-progress-bar,
    .rating-reaction.is-visible .rating-reaction-particle {
        animation: none !important;
        opacity: 1;
        transform: none;
    }

    .rating-reaction-stars .ti {
        opacity: 1;
        transform: none;
    }

    .rating-reaction.is-visible .rating-reaction-progress-bar {
        width: 100%;
    }
}

.star-display {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    flex-wrap: nowrap;
}

.star-display-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.star-display--result {
    font-size: 1.85rem;
    margin: 0.65rem auto 0.85rem;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    background: color-mix(in srgb, #f59f00 10%, var(--tblr-bg-surface));
    border: 1px solid color-mix(in srgb, #f59f00 22%, transparent);
    min-width: 11rem;
}

.star-display-glyph {
    display: inline-block;
    line-height: 1;
    font-size: 1em;
    letter-spacing: 0.02em;
    user-select: none;
}

.star-display-glyph.is-filled {
    color: #f59e0b;
    text-shadow: 0 1px 2px rgba(245, 158, 11, 0.35);
}

.star-display-glyph.is-empty {
    color: #d1d5db;
}

.public-review-rating-summary .star-display-glyph.is-filled {
    animation: rh-star-pop-in 0.42s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.public-review-rating-summary .star-display-glyph.is-filled:nth-child(1) { animation-delay: 0.05s; }
.public-review-rating-summary .star-display-glyph.is-filled:nth-child(2) { animation-delay: 0.12s; }
.public-review-rating-summary .star-display-glyph.is-filled:nth-child(3) { animation-delay: 0.19s; }
.public-review-rating-summary .star-display-glyph.is-filled:nth-child(4) { animation-delay: 0.26s; }
.public-review-rating-summary .star-display-glyph.is-filled:nth-child(5) { animation-delay: 0.33s; }

.public-review-rating-summary .star-display-glyph.is-empty {
    animation: rh-fade-up 0.35s ease 0.35s both;
}

@media (prefers-reduced-motion: reduce) {
    .public-review-rating-summary .star-display-glyph.is-filled,
    .public-review-rating-summary .star-display-glyph.is-empty {
        animation: none !important;
        opacity: 1;
        transform: none;
    }
}

.star-display-item.is-filled .ti {
    color: #f59e0b;
    font-weight: normal;
    filter: drop-shadow(0 1px 2px rgba(245, 158, 11, 0.35));
}

.star-display-item.is-empty .ti {
    color: #d1d5db;
    opacity: 0.85;
    font-weight: normal;
}

.public-review-rating-summary-icon .ti {
    font-size: 1.65rem;
    line-height: 1;
    font-weight: normal;
    font-family: "tabler-icons" !important;
}

.star-display .filled,
.star-display-item.is-filled {
    color: #f59f00;
}

.star-display .filled .ti,
.star-display-item.is-filled .ti {
    font-weight: normal;
}

.star-display .empty,
.star-display-item.is-empty {
    color: #d1d5db;
}

.public-review-rating-summary {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 0.25rem 0 0;
}

.public-review-rating-summary-icon {
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto 0.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.public-review-rating-summary--low .public-review-rating-summary-icon {
    background: color-mix(in srgb, #94a3b8 16%, transparent);
    color: #64748b;
}

.public-review-rating-summary--mid .public-review-rating-summary-icon {
    background: color-mix(in srgb, var(--rh-brand, #066fd1) 12%, transparent);
    color: var(--rh-brand, #066fd1);
}

.public-review-rating-summary--high .public-review-rating-summary-icon,
.public-review-rating-summary--celebrate .public-review-rating-summary-icon {
    background: color-mix(in srgb, #f59f00 18%, transparent);
    color: #d97706;
}

.public-review-rating-summary-title {
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.25rem;
}

.public-review-rating-summary-subtitle {
    font-size: 0.9rem;
    color: var(--tblr-secondary);
    margin: 0;
    max-width: 22rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.45;
}

.public-review-panel {
    border: 1px solid var(--tblr-border-color);
    border-radius: var(--tblr-border-radius-lg);
    padding: 1rem 1.1rem 1.15rem;
    background: var(--tblr-bg-surface);
}

.public-review-panel-private {
    border-color: color-mix(in srgb, var(--rh-brand, #066fd1) 22%, var(--tblr-border-color));
    background: color-mix(in srgb, var(--rh-brand, #066fd1) 4%, var(--tblr-bg-surface));
}

.public-review-panel-draft {
    border-color: color-mix(in srgb, #f59f00 25%, var(--tblr-border-color));
    background: color-mix(in srgb, #f59f00 5%, var(--tblr-bg-surface));
}

.public-review-panel-optional {
    border-style: dashed;
    background: color-mix(in srgb, var(--tblr-bg-surface-secondary) 50%, var(--tblr-bg-surface));
}

.public-review-panel-header {
    margin-bottom: 0.75rem;
}

.public-review-panel-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--rh-brand, #066fd1) 14%, transparent);
    color: var(--rh-brand, #066fd1);
    margin-bottom: 0.35rem;
}

.public-review-panel-badge-google {
    background: color-mix(in srgb, #f59f00 14%, transparent);
    color: #c2410c;
}

.public-review-panel-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
}

.public-review-panel-summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--tblr-secondary);
    list-style: none;
}

.public-review-panel-summary::-webkit-details-marker {
    display: none;
}

.public-review-panel-summary::before {
    content: "▸";
    display: inline-block;
    margin-right: 0.35rem;
    transition: transform 0.15s ease;
}

.public-review-panel-optional[open] .public-review-panel-summary::before {
    transform: rotate(90deg);
}

.public-review-primary-btn {
    box-shadow: 0 0.35rem 1rem color-mix(in srgb, var(--rh-brand, #066fd1) 25%, transparent);
}

.public-review-card-feedback .public-review-card-body {
    padding-bottom: 5.5rem;
}

.public-review-sticky-cta-feedback {
    background: linear-gradient(180deg, transparent 0%, var(--tblr-bg-surface) 28%);
}

.public-review-redirect-banner {
    padding: 0.65rem 0.85rem 0.55rem;
    border-radius: var(--tblr-border-radius);
    background: color-mix(in srgb, var(--rh-brand, #066fd1) 8%, var(--tblr-bg-surface));
    border: 1px solid color-mix(in srgb, var(--rh-brand, #066fd1) 18%, transparent);
}

.public-review-redirect-progress {
    height: 3px;
    margin-top: 0.5rem;
    border-radius: 999px;
    background: color-mix(in srgb, var(--tblr-border-color) 50%, transparent);
    overflow: hidden;
}

.public-review-redirect-progress-bar {
    display: block;
    height: 100%;
    width: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--rh-brand, #066fd1), #f59f00);
    transform-origin: left center;
    transform: scaleX(1);
    transition: transform 1s linear;
}

.public-review-success-enter {
    animation: rh-fade-up 0.45s ease both;
}

.public-review-check-pop {
    animation: rh-pop 0.5s ease 0.1s both;
}

.public-review-followup-enter {
    animation: rh-fade-up 0.35s ease both;
}

.public-review-card-result {
    max-width: 640px;
    overflow: visible;
}

.public-review-card-body {
    padding-bottom: 1.5rem;
}

.public-review-card-result .public-review-card-body {
    padding-bottom: 6.5rem;
}

@media (min-width: 768px) {
    .public-review-card-result .public-review-card-body {
        padding-bottom: 1.5rem;
    }
}

.public-review-card.is-busy {
    pointer-events: none;
}

.public-review-card.is-busy .card-body {
    opacity: 0.92;
}

.public-review-card-progress {
    display: none;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--tblr-border-color);
    text-align: center;
}

.public-review-card-progress.is-visible {
    display: block;
    animation: public-review-fade-in 0.25s ease;
}

.public-review-card-progress-text {
    margin: 0 0 0.65rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--rh-brand, #066fd1);
}

.public-review-card-progress-track {
    height: 4px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--rh-brand, #066fd1) 14%, transparent);
    overflow: hidden;
}

.public-review-card-progress-bar {
    display: block;
    height: 100%;
    width: 35%;
    border-radius: inherit;
    background: var(--rh-brand, #066fd1);
    animation: public-review-progress-indeterminate 1.1s ease-in-out infinite;
}

.public-review-btn-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    margin-right: 0.45rem;
    vertical-align: -0.15em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: rh-spin 0.65s linear infinite;
}

@keyframes public-review-progress-indeterminate {
    0% {
        transform: translateX(-120%);
    }
    100% {
        transform: translateX(320%);
    }
}

@keyframes public-review-fade-in {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.public-review-steps-list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.public-review-step {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--tblr-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
}

.public-review-step-marker {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1.5px solid var(--tblr-border-color);
    background: var(--tblr-bg-surface);
}

.public-review-step.is-current {
    color: var(--rh-brand, #066fd1);
}

.public-review-step.is-current .public-review-step-marker {
    border-color: var(--rh-brand, #066fd1);
    background: color-mix(in srgb, var(--rh-brand, #066fd1) 12%, transparent);
    color: var(--rh-brand, #066fd1);
}

.public-review-step.is-complete {
    color: var(--tblr-body-color);
}

.public-review-step.is-complete .public-review-step-marker {
    border-color: var(--tblr-green);
    background: var(--tblr-green-lt);
    color: var(--tblr-green);
}

.public-review-step-divider {
    width: 2rem;
    height: 2px;
    background: var(--tblr-border-color);
    border-radius: 1px;
}

.public-review-steps-list-3 .public-review-step-label {
    font-size: 0.75rem;
}

.public-review-tag-chip {
    cursor: pointer;
    margin: 0;
}

.public-review-tag-label {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1.5px solid var(--tblr-border-color);
    background: var(--tblr-bg-surface);
    font-size: 0.875rem;
    font-weight: 500;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.public-review-tag-chip.is-selected .public-review-tag-label,
.public-review-tag-chip:has(input:checked) .public-review-tag-label {
    border-color: var(--rh-brand, #066fd1);
    background: color-mix(in srgb, var(--rh-brand, #066fd1) 12%, transparent);
    color: var(--rh-brand, #066fd1);
}

.public-review-draft-section {
    background: var(--tblr-bg-surface-secondary);
    border: 1px solid var(--tblr-border-color);
    border-radius: var(--tblr-border-radius-lg);
    padding: 1rem 1rem 0.85rem;
}

.public-review-draft-section.is-collapsed .public-review-draft-input {
    max-height: 4.5rem;
    overflow: hidden;
    resize: none;
}

.public-review-draft-input {
    border-color: transparent;
    background: #fff;
    box-shadow: inset 0 0 0 1px var(--tblr-border-color);
}

.public-review-draft-input:focus {
    border-color: var(--rh-brand, #066fd1);
    box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--rh-brand, #066fd1) 18%, transparent);
}

.public-review-draft-input.is-invalid {
    box-shadow: inset 0 0 0 1px var(--tblr-danger), 0 0 0 0.2rem color-mix(in srgb, var(--tblr-danger) 12%, transparent);
}

.btn-google {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    background: #fff;
    border: 2px solid #dadce0;
    color: #3c4043;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(60, 64, 67, 0.16);
}

.btn-google:hover,
.btn-google:focus {
    background: #f8f9fa;
    border-color: #dadce0;
    color: #202124;
    box-shadow: 0 1px 3px rgba(60, 64, 67, 0.24);
}

.btn-google-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 700;
    font-family: "Product Sans", Arial, sans-serif;
    color: #fff;
    background: linear-gradient(135deg, #4285f4 0%, #34a853 50%, #fbbc05 75%, #ea4335 100%);
}

.public-review-sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1030;
    padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--tblr-border-color);
    box-shadow: 0 -0.35rem 1.25rem rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(8px);
}

.public-review-sticky-cta.is-hidden {
    display: none !important;
}

#review-inline-error {
    position: static;
    z-index: auto;
    margin-bottom: 1rem;
}

/* Legacy id from earlier builds — never float over the outcome panel */
#review-error {
    display: none !important;
}

#public-review-page.is-outcome-visible #review-inline-error {
    display: none !important;
}

.public-review-outcome {
    position: relative;
    z-index: 1;
    margin-top: 0.25rem;
}

.public-review-outcome-card {
    background: color-mix(in srgb, var(--tblr-green) 8%, var(--tblr-bg-surface));
    border: 1px solid color-mix(in srgb, var(--tblr-green) 22%, var(--tblr-border-color));
    border-radius: var(--tblr-border-radius-lg);
    padding: 1rem 1rem 0.85rem;
}

.public-review-outcome-card.is-error {
    background: color-mix(in srgb, var(--tblr-yellow) 10%, var(--tblr-bg-surface));
    border-color: color-mix(in srgb, var(--tblr-yellow) 35%, var(--tblr-border-color));
}

#copy-open-google.btn-primary {
    background-color: var(--rh-brand, #066fd1);
    border-color: var(--rh-brand, #066fd1);
}

@keyframes rh-fade-up {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rh-pop {
    0% {
        transform: scale(0.6);
        opacity: 0;
    }
    70% {
        transform: scale(1.08);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 575.98px) {
    .star-rating-btn {
        min-width: 2.85rem;
        min-height: 2.85rem;
        font-size: 1.2rem;
    }

    .public-review-card .card-body,
    .public-review-card-body {
        padding: 1.25rem !important;
    }

    .public-review-card-result .public-review-card-body {
        padding-bottom: 7rem !important;
    }

    #public-review-page.is-outcome-visible.public-review-card-result .public-review-card-body {
        padding-bottom: 1.25rem !important;
    }
}

/* ── Dashboard ── */
.dashboard-welcome {
    background: linear-gradient(135deg, rgba(6, 111, 209, 0.12), rgba(6, 111, 209, 0.02));
    border: 1px solid rgba(6, 111, 209, 0.15);
}

.stat-card {
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.35rem 1.25rem rgba(0, 0, 0, 0.06);
}

/* ── Global page loader ── */
.rh-page-loader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(4px);
}

.rh-page-loader[hidden] {
    display: none !important;
}

.rh-page-loader-panel {
    text-align: center;
    padding: 2rem 2.5rem;
    border-radius: var(--tblr-border-radius-lg);
    background: var(--tblr-bg-surface);
    border: 1px solid var(--tblr-border-color);
    box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.12);
    min-width: 260px;
}

.rh-page-loader-text {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

body.rh-loading {
    cursor: progress;
}

.btn.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn.btn-loading::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: rh-spin 0.65s linear infinite;
}

@keyframes rh-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── QR branding UI ── */
.qr-brand-preview {
    padding: 1.5rem;
    border: 1px dashed var(--tblr-border-color);
    border-radius: var(--tblr-border-radius-lg);
    background: var(--tblr-bg-surface-secondary);
}

.qr-brand-swatch {
    width: 5rem;
    height: 5rem;
    border-radius: var(--tblr-border-radius);
    margin: 0 auto;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.qr-brand-logo-wrap {
    margin-top: 1rem;
}

.qr-brand-logo,
.qr-logo-preview {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    border-radius: var(--tblr-border-radius);
    background: #fff;
    padding: 0.25rem;
    border: 1px solid var(--tblr-border-color);
}

.poster-background-preview-wrap {
    max-width: 12rem;
}

.poster-background-preview {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--tblr-border-radius);
    border: 1px solid var(--tblr-border-color);
    box-shadow: var(--tblr-box-shadow-input);
}

.poster-live-preview {
    position: relative;
    width: 100%;
    line-height: 0;
    border-radius: var(--tblr-border-radius);
    overflow: hidden;
    border: 1px solid var(--tblr-border-color);
    background: #f8fafc;
}

.poster-live-preview__bg {
    width: 100%;
    height: auto;
    display: block;
}

.poster-live-preview__qr {
    position: absolute;
    left: 50%;
    top: var(--poster-qr-top, 49%);
    transform: translate(-50%, -50%);
    width: var(--poster-qr-size, 40%);
    margin: 0;
}

.poster-live-preview__qr img {
    width: 100%;
    height: auto;
    display: block;
}

.poster-live-preview__qr-placeholder {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: #fff;
    background: var(--rh-brand, #206bc4);
    border-radius: 6px;
    opacity: 0.85;
}

/* ── Admin mobile & review UI ── */
.admin-page-actions .btn {
    white-space: nowrap;
}

.admin-session-card {
    display: block;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--tblr-border-color);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s ease;
}

.admin-session-card:hover {
    background: var(--tblr-bg-surface-secondary);
    color: inherit;
}

.admin-session-card-top {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.35rem;
}

.admin-session-card-title {
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.admin-session-card-preview {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--tblr-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-session-row {
    cursor: default;
}

.admin-rating-display {
    font-size: 1.75rem;
    letter-spacing: 0.12em;
    line-height: 1;
}

.admin-rating-star {
    color: var(--tblr-border-color);
}

.admin-rating-star.is-filled {
    color: #f59f00;
}

.admin-review-text {
    white-space: pre-wrap;
    line-height: 1.6;
}

.admin-detail-dl dt,
.admin-detail-dl dd {
    margin-bottom: 0.5rem;
}

.admin-timeline {
    position: relative;
    padding-left: 0.25rem;
}

.admin-timeline-item {
    display: flex;
    gap: 0.75rem;
    padding-bottom: 1rem;
    position: relative;
}

.admin-timeline-item:last-child {
    padding-bottom: 0;
}

.admin-timeline-dot {
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background: var(--tblr-border-color);
    margin-top: 0.35rem;
    flex-shrink: 0;
}

.admin-timeline-item.is-done .admin-timeline-dot {
    background: var(--tblr-green);
}

@media (max-width: 991.98px) {
    .page-header .page-title {
        font-size: 1.35rem;
        line-height: 1.3;
    }

    .page-header .page-pretitle {
        font-size: 0.75rem;
    }

    .admin-page-actions {
        width: 100%;
        margin-top: 0.5rem;
    }

    .admin-page-actions .btn {
        flex: 1 1 auto;
        min-width: 0;
    }

    .page-body .container-xl {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .card-header {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .card-header .card-actions {
        width: 100%;
    }

    .navbar-vertical .navbar-brand {
        margin-bottom: 0;
    }

    .admin-app .dashboard-welcome .card-body {
        padding: 1rem 1.15rem;
    }

    .admin-app .card-sm .card-body {
        padding: 0.85rem 1rem;
    }

    .row-deck.row-cards > [class*="col-"] {
        margin-bottom: 0.75rem;
    }

    .stat-card .fs-3 {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 575.98px) {
    .admin-page-actions .btn {
        width: 100%;
    }

    .dashboard-welcome .h3 {
        font-size: 1.25rem;
    }

    .admin-rating-display {
        font-size: 1.5rem;
    }
}
