.rr-finder {
    --rrf-accent: #00c6ff;
    --rrf-bg: #07111f;
    --rrf-panel: rgba(16, 31, 49, 0.96);
    --rrf-panel-soft: rgba(21, 40, 61, 0.78);
    --rrf-text: #f4f8fc;
    --rrf-muted: #a8b8c8;
    --rrf-border: rgba(181, 213, 235, 0.18);
    --rrf-warning: #f4bd67;
    --rrf-success: #7fdbc2;
    position: relative;
    isolation: isolate;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: clamp(30px, 5vw, 72px) clamp(18px, 4vw, 48px);
    overflow: visible;
    color: var(--rrf-text);
    color-scheme: dark;
    font: inherit;
    line-height: 1.55;
    background: var(--rrf-bg);
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.rr-finder::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: var(--rrf-bg);
    box-shadow: 0 0 0 100vmax var(--rrf-bg);
    clip-path: inset(0 -100vmax);
    content: "";
    pointer-events: none;
}

.rr-finder,
.rr-finder * {
    box-sizing: border-box;
}

.rr-finder [hidden] {
    display: none !important;
}

.rr-finder h1,
.rr-finder h2,
.rr-finder h3,
.rr-finder h4,
.rr-finder h5,
.rr-finder p,
.rr-finder dl,
.rr-finder dd {
    margin-top: 0;
}

.rr-finder h1,
.rr-finder h2,
.rr-finder h3,
.rr-finder h4,
.rr-finder h5 {
    color: var(--rrf-text);
    font-family: inherit;
    line-height: 1.18;
}

.rr-finder button,
.rr-finder a,
.rr-finder input,
.rr-finder summary {
    font: inherit;
}

.rr-finder .rrf-loading,
.rr-finder .rrf-error {
    max-width: 780px;
    min-height: 430px;
    margin: 0 auto;
    padding: clamp(30px, 7vw, 72px) clamp(18px, 5vw, 56px);
    text-align: center;
    background: var(--rrf-panel);
    border: 1px solid var(--rrf-border);
    border-radius: 20px;
}

.rr-finder .rrf-intro {
    max-width: 960px;
    min-height: 480px;
    margin: 0 auto;
    padding: clamp(42px, 8vw, 92px) clamp(12px, 5vw, 48px);
    text-align: center;
}

.rr-finder .rrf-intro,
.rr-finder .rrf-loading,
.rr-finder .rrf-error,
.rr-finder .rrf-results,
.rr-finder .rrf-form {
    animation: rrf-fade-in 220ms ease-out;
}

.rr-finder .rrf-intro h1,
.rr-finder .rrf-loading h2,
.rr-finder .rrf-error h2,
.rr-finder .rrf-results__header h2 {
    margin-bottom: 16px;
    font-size: clamp(1.8rem, 5vw, 3rem);
    letter-spacing: -0.025em;
}

.rr-finder .rrf-eyebrow,
.rr-finder .rrf-card__role {
    margin-bottom: 12px;
    color: var(--rrf-accent);
    font-size: 0.75rem;
    font-weight: 750;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.rr-finder .rrf-lead,
.rr-finder .rrf-results__header > p:last-child,
.rr-finder .rrf-loading p,
.rr-finder .rrf-error > p {
    max-width: 660px;
    margin-right: auto;
    margin-bottom: 28px;
    margin-left: auto;
    color: var(--rrf-muted);
    font-size: 1.04rem;
}

.rr-finder .rrf-trust {
    margin: 16px 0 0;
    color: var(--rrf-muted);
    font-size: 0.85rem;
}

.rr-finder .rrf-intro__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    max-width: 560px;
    margin: 0 auto 30px;
    padding: 18px 0;
    list-style: none;
    border-top: 1px solid var(--rrf-border);
    border-bottom: 1px solid var(--rrf-border);
}

.rr-finder .rrf-intro__facts li {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 7px;
    min-width: 0;
    color: var(--rrf-muted);
    font-size: 0.76rem;
    font-weight: 720;
    letter-spacing: 0.08em;
}

.rr-finder .rrf-intro__facts strong {
    color: var(--rrf-text);
    font-size: 1.12rem;
    letter-spacing: 0;
}

.rr-finder .rrf-form {
    max-width: 800px;
    margin: 0 auto;
    padding: clamp(20px, 5vw, 42px);
    background: var(--rrf-panel);
    border: 1px solid var(--rrf-border);
    border-radius: 20px;
}

.rr-finder .rrf-progress {
    margin-bottom: clamp(30px, 6vw, 52px);
}

.rr-finder .rrf-progress p {
    margin-bottom: 10px;
    color: var(--rrf-muted);
    font-size: 0.86rem;
    font-weight: 650;
}

.rr-finder .rrf-progress__track {
    width: 100%;
    height: 5px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.09);
    border-radius: 999px;
}

.rr-finder .rrf-progress__track span {
    display: block;
    width: 16.6667%;
    height: 100%;
    background: var(--rrf-accent);
    border-radius: inherit;
    transition: width 220ms ease;
}

.rr-finder .rrf-question {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.rr-finder .rrf-question legend {
    width: 100%;
    margin-bottom: 22px;
    color: var(--rrf-text);
    font-size: clamp(1.45rem, 4vw, 2rem);
    font-weight: 720;
    line-height: 1.25;
}

.rr-finder .rrf-question legend:focus,
.rr-finder .rrf-results__header h2:focus,
.rr-finder .rrf-error h2:focus {
    outline: none;
}

.rr-finder .rrf-helper {
    margin: -12px 0 22px;
    color: var(--rrf-muted);
}

.rr-finder .rrf-choices {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.rr-finder .rrf-choice {
    position: relative;
    display: block;
    min-width: 0;
    cursor: pointer;
}

.rr-finder .rrf-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    opacity: 0;
}

.rr-finder .rrf-choice__body {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 62px;
    padding: 16px 78px 16px 18px;
    color: var(--rrf-text);
    background: var(--rrf-panel-soft);
    border: 1px solid var(--rrf-border);
    border-radius: 14px;
    transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.rr-finder .rrf-choice__body::after {
    position: absolute;
    top: 50%;
    right: 16px;
    color: var(--rrf-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    content: "Select";
    transform: translateY(-50%);
}

.rr-finder .rrf-choice:hover .rrf-choice__body {
    border-color: rgba(0, 198, 255, 0.48);
    transform: translateY(-1px);
}

.rr-finder .rrf-choice input:checked + .rrf-choice__body {
    background: rgba(0, 198, 255, 0.11);
    border-color: var(--rrf-accent);
    box-shadow: inset 3px 0 0 var(--rrf-accent);
}

.rr-finder .rrf-choice input:checked + .rrf-choice__body::after {
    color: var(--rrf-accent);
    content: "Selected";
}

.rr-finder .rrf-choice input[type="checkbox"] + .rrf-choice__body::after {
    display: none;
}

.rr-finder .rrf-choice__order {
    position: absolute;
    top: 50%;
    right: 16px;
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    color: #04111c;
    font-size: 0.9rem;
    font-weight: 800;
    background: var(--rrf-accent);
    border-radius: 50%;
    transform: translateY(-50%);
}

.rr-finder .rrf-choice input:focus-visible + .rrf-choice__body,
.rr-finder .rrf-button:focus-visible,
.rr-finder .rrf-details summary:focus-visible {
    outline: 3px solid var(--rrf-accent);
    outline-offset: 3px;
}

.rr-finder .rrf-priority-status {
    min-height: 1.5em;
    margin: 14px 0 0;
    color: var(--rrf-muted);
    font-size: 0.85rem;
}

.rr-finder .rrf-question__controls,
.rr-finder .rrf-controls,
.rr-finder .rrf-results__controls,
.rr-finder .rrf-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.rr-finder .rrf-question__controls {
    justify-content: space-between;
    margin-top: 30px;
}

.rr-finder .rrf-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 11px 20px;
    color: var(--rrf-text);
    font-weight: 720;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    appearance: none;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 11px;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.rr-finder .rrf-button--primary {
    color: #04111c;
    background: var(--rrf-accent);
    box-shadow: 0 8px 24px rgba(0, 198, 255, 0.16);
}

.rr-finder .rrf-button--secondary {
    color: var(--rrf-text);
    background: rgba(255, 255, 255, 0.035);
    border-color: var(--rrf-border);
}

.rr-finder .rrf-button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.rr-finder .rrf-button--primary:hover:not(:disabled) {
    background: #37d2ff;
    box-shadow: 0 10px 28px rgba(0, 198, 255, 0.24);
}

.rr-finder .rrf-button:disabled {
    opacity: 0.42;
    cursor: not-allowed;
    box-shadow: none;
}

.rr-finder .rrf-loading,
.rr-finder .rrf-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.rr-finder .rrf-spinner {
    display: block;
    width: 42px;
    height: 42px;
    margin-bottom: 24px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    border-top-color: var(--rrf-accent);
    border-radius: 50%;
    animation: rrf-spin 800ms linear infinite;
}

.rr-finder .rrf-controls,
.rr-finder .rrf-results__controls {
    justify-content: center;
}

.rr-finder .rrf-results__header {
    max-width: 760px;
    margin: 0 auto clamp(30px, 6vw, 52px);
    text-align: center;
}

.rr-finder .rrf-results {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
}

.rr-finder .rrf-card {
    min-width: 0;
    padding: clamp(22px, 4vw, 38px);
    background: var(--rrf-panel);
    border: 1px solid var(--rrf-border);
    border-radius: 20px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

.rr-finder .rrf-card__identity {
    display: grid;
    min-width: 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
}

.rr-finder .rrf-card__identity-copy {
    min-width: 0;
    padding: clamp(20px, 4vw, 36px);
}

.rr-finder .rrf-card__media {
    min-width: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--rrf-panel-soft);
}

.rr-finder .rrf-card__image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
}

.rr-finder .rrf-card--best {
    border-color: rgba(0, 198, 255, 0.72);
    box-shadow: 0 20px 52px rgba(0, 0, 0, 0.22), 0 0 28px rgba(0, 198, 255, 0.09);
}

.rr-finder .rrf-card__title {
    margin-bottom: 14px;
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    letter-spacing: -0.02em;
    overflow-wrap: anywhere;
}

.rr-finder .rrf-card__country {
    margin: -6px 0 18px;
    color: var(--rrf-muted);
    font-size: 1rem;
    font-weight: 650;
}

.rr-finder .rrf-card__summary {
    margin-bottom: 0;
    color: #d8e3ed;
    font-size: 1.03rem;
}

.rr-finder .rrf-card__section {
    margin-top: 30px;
}

.rr-finder .rrf-card__section-title {
    margin-bottom: 14px;
    font-size: 0.84rem;
    font-weight: 780;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.rr-finder .rrf-card__section > p,
.rr-finder .rrf-reason p,
.rr-finder .rrf-evidence p {
    margin-bottom: 0;
    color: var(--rrf-muted);
}

.rr-finder .rrf-reasons {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

.rr-finder .rrf-reason {
    padding: 18px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
}

.rr-finder .rrf-card__context {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-top: 30px;
}

.rr-finder .rrf-card__context .rrf-card__section {
    margin-top: 0;
    padding: 18px;
    background: rgba(255, 255, 255, 0.028);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
}

.rr-finder .rrf-reason h5,
.rr-finder .rrf-evidence h5 {
    margin-bottom: 7px;
    font-size: 0.93rem;
}

.rr-finder .rrf-worth {
    padding: 18px;
    border-left: 3px solid var(--rrf-warning);
    border-radius: 0 10px 10px 0;
}

.rr-finder .rrf-worth--positive {
    border-left-color: var(--rrf-success);
}

.rr-finder .rrf-worth--caution {
    background: rgba(244, 189, 103, 0.08);
    border-left-color: var(--rrf-warning);
}

.rr-finder .rrf-card__actions {
    margin-top: 28px;
}

.rr-finder .rrf-details {
    margin-top: 18px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--rrf-border);
    border-radius: 12px;
}

.rr-finder .rrf-details summary {
    padding: 15px 18px;
    color: var(--rrf-text);
    font-weight: 690;
    cursor: pointer;
}

.rr-finder .rrf-details[open] summary {
    border-bottom: 1px solid var(--rrf-border);
}

.rr-finder .rrf-breakdown {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 18px;
    margin: 0;
    padding: 18px;
}

.rr-finder .rrf-breakdown dt,
.rr-finder .rrf-breakdown dd {
    min-width: 0;
    margin-bottom: 0;
}

.rr-finder .rrf-breakdown dt {
    color: var(--rrf-muted);
}

.rr-finder .rrf-breakdown dd {
    color: var(--rrf-text);
    font-weight: 680;
    text-align: right;
}

.rr-finder .rrf-evidence-list {
    padding: 4px 18px 18px;
}

.rr-finder .rrf-evidence {
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.rr-finder .rrf-evidence:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.rr-finder .rrf-alternatives {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    margin-top: 18px;
}

.rr-finder .rrf-results__controls {
    margin-top: 32px;
}

.rr-finder .rrf-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.rr-finder .rrf-noscript {
    margin: 18px 0 0;
    padding: 14px;
    color: var(--rrf-text);
    text-align: center;
    background: var(--rrf-panel);
    border: 1px solid var(--rrf-warning);
    border-radius: 10px;
}

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

@keyframes rrf-fade-in {
    from {
        opacity: 0;
        transform: translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 640px) {
    .rr-finder .rrf-choices {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .rr-finder .rrf-choices > .rrf-choice:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        width: calc(50% - 6px);
        justify-self: center;
    }
}

@media (min-width: 768px) {
    .rr-finder .rrf-card--best .rrf-reasons,
    .rr-finder .rrf-card--best .rrf-card__context {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .rr-finder .rrf-alternatives {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .rr-finder .rrf-card--best .rrf-card__identity {
        grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
    }

    .rr-finder .rrf-card--best .rrf-card__media {
        aspect-ratio: auto;
        min-height: 310px;
    }
}

@media (max-width: 420px) {
    .rr-finder {
        padding: 28px 12px;
    }

    .rr-finder .rrf-loading,
    .rr-finder .rrf-error,
    .rr-finder .rrf-form,
    .rr-finder .rrf-card {
        border-radius: 14px;
    }

    .rr-finder .rrf-intro {
        min-height: 0;
        padding: 36px 0;
    }

    .rr-finder .rrf-intro__facts {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        max-width: 220px;
        padding: 14px 0;
    }

    .rr-finder .rrf-question__controls {
        flex-direction: column-reverse;
    }

    .rr-finder .rrf-card__actions,
    .rr-finder .rrf-results__controls {
        flex-direction: column;
    }

    .rr-finder .rrf-button {
        width: 100%;
    }

    .rr-finder .rrf-breakdown {
        grid-template-columns: minmax(0, 1fr);
    }

    .rr-finder .rrf-breakdown dd {
        margin-bottom: 8px;
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rr-finder *,
    .rr-finder *::before,
    .rr-finder *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
