﻿:root {
    --crc-primary: #0b57d0;
    --crc-primary-heading: #0842a0;
    --crc-primary-hover: #0b55cc;
    --crc-on-surface: #1f1f1f;
    --crc-on-surface-variant: #444746;
    --crc-outline: #a9acaa;
    --crc-outline-soft: #e3e3e3;
    --crc-surface: #ffffff;
    --crc-surface-soft: #f0f4f9;
    --crc-blue-soft: #ecf3fe;
    --crc-warning: #d56e0c;
    --crc-warning-bg: #fff0d1;
    --crc-error: #b3261e;
    --crc-error-bg: #fceeee;
    --crc-success: #146c2e;
    --crc-success-bg: #e7f8ed;
    --crc-shadow-1: 0 1px 2px rgba(48, 48, 48, 0.3), 0 1px 3px 1px rgba(48, 48, 48, 0.15);
    --crc-shadow-2: 0 1px 2px rgba(48, 48, 48, 0.3), 0 2px 6px 2px rgba(48, 48, 48, 0.15);
    --crc-font-display: 'Google Sans', 'Roboto', Arial, sans-serif;
    --crc-font-text: 'Google Sans Text', 'Roboto', Arial, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    background: var(--crc-surface);
    color: var(--crc-on-surface);
    font-family: var(--crc-font-text);
    font-size: 14px;
    line-height: 1.25rem;
    -webkit-font-smoothing: antialiased;
}

body.modal-open {
    overflow: hidden;
}

button,
input,
select,
textarea {
    color: inherit;
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    border: 0;
    background: transparent;
    padding: 0;
}

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

a:hover {
    text-decoration: underline;
}

svg {
    display: block;
}

:focus-visible {
    outline: 2px solid var(--crc-primary);
    outline-offset: 2px;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: -80px;
    z-index: 9000;
    border-radius: 4px;
    background: var(--crc-surface);
    box-shadow: var(--crc-shadow-1);
    padding: 10px 14px;
    font-weight: 500;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 12px;
}

/* Header */
.site-header {
    position: relative;
    z-index: 100;
    background: var(--crc-surface);
}

.site-header__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 64px;
    width: min(100%, 1202px);
    margin: 0 auto;
    padding: 0 16px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    color: var(--crc-on-surface-variant);
    font-family: var(--crc-font-display);
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
}

.site-brand:hover {
    text-decoration: none;
}

.site-brand__mark {
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 50%;
    color: var(--crc-primary);
}

.site-brand__mark svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.site-brand__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-header__actions {
    display: none;
    align-items: center;
    gap: 12px;
}

.site-header__actions a,
.site-header__status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--crc-on-surface-variant);
    font-family: var(--crc-font-display);
    font-size: 14px;
    font-weight: 500;
}

.site-header__actions a:hover {
    color: var(--crc-primary);
    text-decoration: none;
}

.site-header__actions svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.site-header__status {
    padding: 8px 12px;
    border-radius: 18px;
    background: var(--crc-surface-soft);
}

.site-header__status > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--crc-success);
}

.site-tabs {
    display: flex;
    align-items: stretch;
    gap: 6px;
    min-height: 48px;
    overflow-x: auto;
    padding: 0 10px;
    border-bottom: 1px solid transparent;
    scrollbar-width: none;
    white-space: nowrap;
}

.site-tabs::-webkit-scrollbar {
    display: none;
}

.site-tabs__item {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    padding: 0 10px;
    color: var(--crc-on-surface-variant);
    font-family: var(--crc-font-display);
    font-size: 14px;
    font-weight: 500;
}

.site-tabs__item:hover {
    color: var(--crc-primary);
    text-decoration: none;
}

.site-tabs__item--active {
    color: var(--crc-primary);
}

.site-tabs__item--active::after {
    position: absolute;
    right: 7px;
    bottom: 0;
    left: 7px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--crc-primary);
    content: '';
}

/* Verification overlay */
#captcha-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    overflow-y: auto;
    padding: 16px;
    background: rgba(255, 255, 255, 0.98);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

#captcha-overlay.hidden {
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
}

.captcha-card {
    width: min(100%, 520px);
    border: 1px solid var(--crc-outline);
    border-radius: 16px;
    background: var(--crc-surface);
    box-shadow: var(--crc-shadow-1);
    padding: 32px;
}

.captcha-card::before {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--crc-primary);
    box-shadow: var(--crc-shadow-1);
    color: white;
    content: '✓';
    font-family: var(--crc-font-display);
    font-size: 26px;
}

.captcha-card .title {
    margin: 0;
    color: var(--crc-on-surface);
    font-family: var(--crc-font-display);
    font-size: 24px;
    font-weight: 400;
    line-height: 32px;
    text-align: center;
}

.captcha-card .sub {
    margin: 6px auto 24px;
    max-width: 390px;
    color: var(--crc-on-surface-variant);
    line-height: 20px;
    text-align: center;
}

.verify-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 76px;
    padding: 14px 16px;
    border: 1px solid var(--crc-outline);
    border-radius: 10px;
    background: var(--crc-surface);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.verify-box:hover {
    background: #f8fafd;
}

.verify-box.active {
    border-color: var(--crc-primary);
    background: var(--crc-blue-soft);
}

.verify-left {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
}

.verify-check {
    position: relative;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin: 0;
    border: 2px solid #747775;
    border-radius: 3px;
    background: var(--crc-surface);
    appearance: none;
    cursor: pointer;
}

.verify-check:checked {
    border-color: var(--crc-primary);
    background: var(--crc-primary);
}

.verify-check::after {
    position: absolute;
    top: 2px;
    left: 6px;
    width: 6px;
    height: 11px;
    border: solid white;
    border-width: 0 2px 2px 0;
    content: '';
    opacity: 0;
    transform: rotate(45deg);
}

.verify-check:checked::after {
    opacity: 1;
}

.verify-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.verify-copy strong {
    color: var(--crc-on-surface);
    font-family: var(--crc-font-display);
    font-size: 15px;
    font-weight: 500;
    line-height: 22px;
}

.verify-copy span {
    color: var(--crc-on-surface-variant);
    font-size: 13px;
    line-height: 18px;
}

.captcha-card .badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 0 0 auto;
    color: var(--crc-on-surface-variant);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.captcha-card .badge svg {
    width: 30px;
    height: 30px;
    margin-bottom: 3px;
}

.status {
    min-height: 20px;
    margin: 12px 0 18px;
    color: var(--crc-on-surface-variant);
    font-size: 13px;
    text-align: center;
}

.status.ready {
    color: var(--crc-success);
}

.btn-continue,
.btn-primary,
.btn-group .btn,
.google-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    cursor: pointer;
    font-family: var(--crc-font-display);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: background-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.btn-continue {
    width: 100%;
    min-height: 48px;
    border-radius: 24px;
    background: var(--crc-primary);
    color: white;
}

.btn-continue:hover:enabled {
    background: var(--crc-primary-hover);
    box-shadow: var(--crc-shadow-1);
}

.btn-continue:disabled {
    background: #e3e3e3;
    color: #8c8f8d;
    cursor: not-allowed;
}

.spinner,
.spinner-large,
.loader {
    border-style: solid;
    border-color: rgba(11, 87, 208, 0.2);
    border-top-color: var(--crc-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner {
    width: 18px;
    height: 18px;
    border-width: 2px;
}

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

/* Global loader */
#page-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.98);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

#page-loader.show {
    opacity: 1;
    visibility: visible;
}

#page-loader .spinner-large {
    width: 44px;
    height: 44px;
    border-width: 4px;
}

#page-loader p {
    margin: 16px 0 0;
    color: var(--crc-on-surface-variant);
    font-family: var(--crc-font-display);
    font-size: 15px;
}

/* Home and hero */
.app-container {
    width: 100%;
}

#page-verify {
    width: 100%;
}

.hero {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 326px;
    overflow: hidden;
    padding: 36px 16px 30px;
    background: var(--crc-surface);
}

.hero__content {
    position: relative;
    z-index: 2;
    width: min(100%, 620px);
    text-align: center;
}

.hero__product-icon,
.page-heading__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: var(--crc-surface);
    box-shadow: var(--crc-shadow-1);
    color: var(--crc-primary);
}

.hero__product-icon svg {
    width: 30px;
    height: 30px;
    fill: var(--crc-primary);
    stroke: white;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.hero h1 {
    margin: 0;
    color: var(--crc-primary-heading);
    font-family: var(--crc-font-display);
    font-size: 28px;
    font-weight: 400;
    line-height: 36px;
}

.hero__content > p {
    max-width: 520px;
    margin: 8px auto 22px;
    color: var(--crc-on-surface-variant);
    font-size: 14px;
    line-height: 20px;
}

.hero-illustration {
    display: none;
    position: absolute;
    bottom: 6px;
    z-index: 1;
    width: 260px;
    height: 170px;
}

.hero-illustration svg {
    width: 100%;
    height: 100%;
}

.hero-line-art {
    fill: none;
    stroke: #d2e3fc;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.hero-character-limbs {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-character-arm {
    fill: none;
    stroke: #f6aea1;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 7;
}

.lookup-form {
    position: relative;
    width: min(100%, 520px);
    margin: 0 auto;
}

.input-group {
    position: relative;
}

.input-group label {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.input-group__icon {
    position: absolute;
    top: 0;
    left: 20px;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 24px;
    height: 48px;
    color: var(--crc-on-surface);
    pointer-events: none;
}

.input-group__icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.input-group input {
    display: block;
    width: 100%;
    height: 48px;
    border: 0;
    border-radius: 8px;
    outline: 0;
    background: var(--crc-surface);
    box-shadow: var(--crc-shadow-1);
    padding: 0 156px 0 56px;
    color: var(--crc-on-surface);
    font-size: 16px;
    appearance: none;
}

.input-group input::placeholder {
    color: var(--crc-on-surface-variant);
    opacity: 1;
}

.input-group input:focus {
    box-shadow: var(--crc-shadow-2), 0 0 0 2px rgba(11, 87, 208, 0.14);
}

.input-group input.error {
    box-shadow: 0 0 0 2px var(--crc-error), var(--crc-shadow-1);
}

.btn-primary {
    position: absolute;
    top: 4px;
    right: 6px;
    min-height: 40px;
    border-radius: 20px;
    background: transparent;
    padding: 0 14px;
    color: var(--crc-primary);
}

.btn-primary:hover {
    background: rgba(11, 87, 208, 0.08);
}

.btn-primary:active {
    background: rgba(11, 87, 208, 0.16);
}

.btn-primary:disabled {
    color: #8c8f8d;
    cursor: not-allowed;
}

.btn-primary--compact {
    position: static;
    min-width: 130px;
    margin-top: 18px;
    background: var(--crc-primary);
    color: white;
}

.btn-primary--compact:hover {
    background: var(--crc-primary-hover);
}

.error-msg {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 22px;
    margin: 8px auto 0;
    color: var(--crc-error);
    font-size: 13px;
    line-height: 18px;
}

.error-msg:empty {
    min-height: 0;
    margin: 0;
}

.error-msg svg {
    flex: 0 0 auto;
}

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(calc(100% - 32px), 832px);
    margin: 8px auto 28px;
}

.steps__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--crc-on-surface-variant);
    font-family: var(--crc-font-display);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
}

.steps__item strong {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--crc-outline);
    border-radius: 50%;
    background: var(--crc-surface);
    color: var(--crc-on-surface-variant);
    font-size: 12px;
}

.steps__item--active {
    color: var(--crc-primary);
}

.steps__item--active strong {
    border-color: var(--crc-primary);
    background: var(--crc-primary);
    color: white;
}

.steps__connector {
    flex: 1 1 48px;
    max-width: 72px;
    height: 1px;
    margin: 0 10px;
    background: var(--crc-outline-soft);
}

.process-card {
    width: min(calc(100% - 16px), 832px);
    margin: 0 auto 32px;
    padding: 24px 8px;
    border-top: 1px solid var(--crc-outline);
    background: var(--crc-surface);
}

.process-card__heading {
    margin-bottom: 16px;
    text-align: center;
}

.form-title {
    margin: 0;
    color: var(--crc-on-surface);
    font-family: var(--crc-font-display);
    font-size: 18px;
    font-weight: 400;
    line-height: 24px;
}

.form-sub {
    margin: 3px 0 0;
    color: var(--crc-on-surface-variant);
    font-size: 14px;
    line-height: 20px;
}

.footer-badges {
    display: grid;
    gap: 10px;
}

.footer-badges .badge {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    border-radius: 16px;
    background: var(--crc-surface-soft);
    padding: 14px 16px;
    color: var(--crc-on-surface);
}

.badge__icon {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--crc-primary);
    color: white;
}

.badge__icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.footer-badges .badge > span:last-child {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.footer-badges .badge strong {
    font-family: var(--crc-font-display);
    font-size: 15px;
    font-weight: 500;
    line-height: 22px;
}

.footer-badges .badge small {
    color: var(--crc-on-surface-variant);
    font-size: 13px;
    line-height: 18px;
    white-space: normal;
}

/* Confirmation and dashboard pages */
#page-confirm,
#page-dashboard {
    width: min(100%, 832px);
    min-height: 430px;
    margin: 0 auto 32px;
    padding: 24px 16px 36px;
    border-top: 1px solid var(--crc-outline);
    border-bottom: 1px solid var(--crc-outline);
    background: var(--crc-surface);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    margin: -4px 0 14px -8px;
    border-radius: 20px;
    background: transparent;
    padding: 0 12px;
    color: var(--crc-primary);
    cursor: pointer;
    font-family: var(--crc-font-display);
    font-size: 14px;
    font-weight: 500;
}

.back-link:hover {
    background: rgba(11, 87, 208, 0.08);
}

.page-heading {
    margin-bottom: 24px;
    text-align: center;
}

.page-heading__icon {
    width: 56px;
    height: 56px;
}

.page-heading__icon svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: var(--crc-primary);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.page-kicker {
    margin: 0 0 4px;
    color: var(--crc-primary);
    font-family: var(--crc-font-display);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.03em;
    line-height: 18px;
    text-transform: uppercase;
}

.page-heading h1 {
    margin: 0;
    color: var(--crc-on-surface);
    font-family: var(--crc-font-display);
    font-size: 28px;
    font-weight: 400;
    line-height: 36px;
}

.subhead {
    margin: 6px auto 0;
    max-width: 520px;
    color: var(--crc-on-surface-variant);
    line-height: 20px;
}

.channel-preview {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 100px;
    border: 1px solid var(--crc-outline);
    border-radius: 10px;
    background: var(--crc-surface);
    padding: 18px 20px;
}

.channel-preview .avatar {
    display: grid;
    place-items: center;
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    overflow: hidden;
    border-radius: 50%;
    background: var(--crc-blue-soft);
    color: var(--crc-primary);
    font-family: var(--crc-font-display);
    font-size: 24px;
    font-weight: 500;
}

.channel-preview .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.channel-preview .info {
    min-width: 0;
}

.channel-preview .info .name {
    overflow: hidden;
    color: var(--crc-on-surface);
    font-family: var(--crc-font-display);
    font-size: 18px;
    font-weight: 500;
    line-height: 26px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.channel-preview .info .handle,
.channel-preview .info .subs {
    overflow: hidden;
    color: var(--crc-on-surface-variant);
    line-height: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.channel-preview .info .subs {
    color: #747775;
    font-size: 13px;
}

.question {
    margin: 22px 0 12px;
    color: var(--crc-on-surface);
    font-family: var(--crc-font-display);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.btn-group .btn {
    min-width: 126px;
    border-radius: 22px;
    padding: 0 18px;
}

.btn-group .btn-yes {
    background: var(--crc-primary);
    color: white;
}

.btn-group .btn-yes:hover {
    background: var(--crc-primary-hover);
    box-shadow: var(--crc-shadow-1);
}

.btn-group .btn-no {
    border: 1px solid var(--crc-outline);
    background: var(--crc-surface);
    color: var(--crc-primary);
}

.btn-group .btn-no:hover {
    background: rgba(11, 87, 208, 0.08);
}

.btn-group .btn:disabled {
    background: #e3e3e3;
    color: #8c8f8d;
    cursor: not-allowed;
}

.search-loader {
    padding: 52px 0;
    text-align: center;
}

.search-loader p {
    margin: 12px 0 0;
    color: var(--crc-on-surface-variant);
}

.not-found {
    border-radius: 16px;
    background: var(--crc-surface-soft);
    padding: 34px 24px;
    text-align: center;
}

.not-found svg {
    margin: 0 auto 14px;
    stroke: var(--crc-on-surface-variant);
}

.not-found p {
    margin: 0;
    color: var(--crc-on-surface);
    font-family: var(--crc-font-display);
    font-size: 18px;
    font-weight: 500;
    line-height: 26px;
}

.not-found .sub {
    margin-top: 4px;
    color: var(--crc-on-surface-variant);
}

.loader {
    width: 36px;
    height: 36px;
    margin: 0 auto;
    border-width: 3px;
}

.dashboard-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.dashboard-header h1 {
    margin: 0;
    color: var(--crc-on-surface);
    font-family: var(--crc-font-display);
    font-size: 24px;
    font-weight: 400;
    line-height: 32px;
}

.strike-badge {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 7px;
    min-height: 34px;
    border-radius: 18px;
    background: var(--crc-error-bg);
    padding: 0 12px;
    color: var(--crc-error);
    font-family: var(--crc-font-display);
    font-size: 13px;
    font-weight: 500;
}

.strike-badge svg {
    width: 18px;
    height: 18px;
}

.strike-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: 8px;
    background: var(--crc-warning-bg);
    padding: 13px 16px;
    color: var(--crc-on-surface);
}

.strike-card > svg {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--crc-warning);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.strike-card div {
    display: flex;
    flex-direction: column;
}

.strike-card strong {
    font-family: var(--crc-font-display);
    font-weight: 500;
}

.strike-card span {
    color: var(--crc-on-surface-variant);
    font-size: 13px;
    line-height: 18px;
}

.auth-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 18px;
    border-radius: 16px;
    background: var(--crc-surface-soft);
    padding: 16px;
}

.auth-msg {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.auth-msg strong {
    color: var(--crc-on-surface);
    font-family: var(--crc-font-display);
    font-size: 15px;
    font-weight: 500;
    line-height: 22px;
}

.auth-msg span {
    color: var(--crc-on-surface-variant);
    font-size: 13px;
    line-height: 18px;
}

.google-btn {
    flex: 0 0 auto;
    min-height: 44px;
    border: 1px solid var(--crc-outline);
    border-radius: 22px;
    background: var(--crc-surface);
    padding: 0 17px;
    color: var(--crc-primary);
}

.google-btn:hover {
    background: var(--crc-blue-soft);
    box-shadow: var(--crc-shadow-1);
}

.google-btn svg {
    flex: 0 0 20px;
}

.complaint-title {
    margin: 30px 0 12px;
    color: var(--crc-on-surface);
    font-family: var(--crc-font-display);
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
}

.complaint-grid {
    overflow: hidden;
    border: 1px solid var(--crc-outline);
    border-radius: 10px;
    background: var(--crc-surface);
}

.complaint-grid .item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 54px;
    padding: 12px 20px;
}

.complaint-grid .item + .item {
    border-top: 1px solid var(--crc-outline);
}

.complaint-grid .item .label {
    color: var(--crc-on-surface);
    font-family: var(--crc-font-display);
    font-size: 14px;
    font-weight: 500;
}

.complaint-grid .item .value {
    min-width: 0;
    overflow-wrap: anywhere;
    color: var(--crc-on-surface-variant);
    text-align: right;
}

.complaint-grid .item .value.redacted {
    color: #747775;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 14px;
    background: rgba(11, 87, 208, 0.16);
    padding: 0 10px;
    color: var(--crc-primary-heading);
    font-size: 12px;
    font-weight: 500;
}

.dashboard-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 14px 22px;
    margin-top: 22px;
    color: var(--crc-on-surface-variant);
    font-size: 12px;
}

.dashboard-notes span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dashboard-notes svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: var(--crc-primary);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

/* Sign-in dialog */
.signin-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 11000;
    background: rgba(31, 31, 31, 0.38);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.signin-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.signin-modal {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 0;
    background: var(--crc-surface);
}

.signin-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 0 0 56px;
    min-height: 56px;
    border-bottom: 1px solid var(--crc-outline-soft);
    background: var(--crc-surface);
    padding: 0 8px 0 18px;
    cursor: default;
    user-select: none;
}

.signin-modal-title {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
    color: var(--crc-on-surface);
    font-family: var(--crc-font-display);
    font-size: 15px;
    font-weight: 500;
}

.signin-modal-title .signin-modal-title-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.window-google-icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
}

.signin-modal-close {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    color: var(--crc-on-surface-variant);
    cursor: pointer;
}

.signin-modal-close:hover {
    background: var(--crc-surface-soft);
}

.signin-modal-close svg {
    width: 14px;
    height: 14px;
}

.signin-modal-body {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    background: var(--crc-surface);
}

.signin-modal.dragging {
    user-select: none;
}

.signin-modal-frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.signin-modal-body.loaded .signin-modal-frame {
    opacity: 1;
}

.signin-modal-loading {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--crc-on-surface-variant);
    font-size: 14px;
}

.signin-modal-body.loaded .signin-modal-loading {
    display: none;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--crc-outline);
    background: var(--crc-surface);
    padding: 24px 16px;
}

.site-footer__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    width: min(100%, 1170px);
    margin: 0 auto;
}

.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 12px;
    color: var(--crc-on-surface-variant);
    font-size: 12px;
}

.site-footer__legal a {
    text-decoration: underline;
}

.site-footer__help {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    border: 1px solid var(--crc-outline);
    border-radius: 4px;
    padding: 0 12px;
    font-family: var(--crc-font-display);
    font-size: 13px;
    font-weight: 500;
}

.site-footer__help:hover {
    background: var(--crc-surface-soft);
    text-decoration: none;
}

.site-footer__help svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.session-timer {
    color: var(--crc-on-surface-variant);
    font-size: 12px;
}

.fade-in {
    animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.hidden {
    display: none !important;
}

/* ============================================================
   VIDEO CARD — most popular video linked to the strike
   ============================================================ */
.video-card {
    display: flex;
    gap: 16px;
    overflow: hidden;
    border: 1px solid var(--crc-outline);
    border-radius: 10px;
    background: var(--crc-surface);
    padding: 14px;
}

.video-thumb {
    position: relative;
    flex: 0 0 168px;
    width: 168px;
    height: 94px;
    overflow: hidden;
    border-radius: 8px;
    background: var(--crc-surface-soft);
}

.video-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-duration {
    position: absolute;
    right: 5px;
    bottom: 5px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.78);
    padding: 1px 5px;
    color: #fff;
    font-family: var(--crc-font-display);
    font-size: 11px;
    font-weight: 500;
    line-height: 16px;
}

.video-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 3px;
}

.video-title {
    display: -webkit-box;
    overflow: hidden;
    color: var(--crc-on-surface);
    font-family: var(--crc-font-display);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.video-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: var(--crc-on-surface-variant);
    font-size: 13px;
    line-height: 18px;
}

.video-sep {
    color: #9aa0a6;
}

.video-flag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    align-self: flex-start;
    margin-top: 6px;
    border-radius: 12px;
    background: var(--crc-warning-bg);
    padding: 3px 9px;
    color: var(--crc-warning);
    font-family: var(--crc-font-display);
    font-size: 11px;
    font-weight: 500;
    line-height: 16px;
}

.video-flag svg {
    flex: 0 0 14px;
}

.video-card.is-loading .video-thumb,
.video-card.is-loading .video-title,
.video-card.is-loading .video-meta {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite;
    color: transparent;
}

.video-card.is-loading .video-thumb img {
    opacity: 0;
}

@keyframes shimmer {
    to { background-position: -200% 0; }
}

/* Мобильная адаптация video-card */
@media (max-width: 480px) {
    .video-card {
        flex-direction: column;
    }
    .video-thumb {
        flex-basis: auto;
        width: 100%;
        height: 0;
        padding-bottom: 56%;
    }
    .video-thumb img {
        position: absolute;
        inset: 0;
    }
}

@media (max-width: 480px) {
    .site-brand__name {
        max-width: 220px;
        font-size: 16px;
    }

    .captcha-card {
        padding: 26px 18px;
    }

    .captcha-card .badge {
        display: none;
    }

    .input-group input {
        padding-right: 62px;
        padding-left: 50px;
        font-size: 15px;
    }

    .input-group__icon {
        left: 16px;
    }

    .lookup-form > .btn-primary {
        width: 44px;
        padding: 0;
        font-size: 0;
    }

    .lookup-form > .btn-primary svg {
        width: 20px;
        height: 20px;
    }

    .steps__item {
        gap: 0;
        font-size: 0;
    }

    .steps__item strong {
        font-size: 12px;
    }

    .steps__connector {
        margin: 0 7px;
    }

    .channel-preview {
        align-items: flex-start;
        padding: 16px;
    }

    .channel-preview .avatar {
        flex-basis: 52px;
        width: 52px;
        height: 52px;
    }

    .btn-group {
        flex-direction: column;
    }

    .btn-group .btn {
        width: 100%;
    }

    .dashboard-header,
    .auth-panel {
        align-items: stretch;
        flex-direction: column;
    }

    .strike-badge {
        align-self: flex-start;
    }

    .google-btn {
        width: 100%;
    }

    .complaint-grid .item {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }

    .complaint-grid .item .value {
        text-align: left;
    }
}

@media (min-width: 641px) {
    .signin-modal {
        top: 50%;
        left: 50%;
        width: min(920px, calc(100vw - 48px));
        height: min(720px, calc(100vh - 64px));
        border: 1px solid var(--crc-outline);
        border-radius: 16px;
        box-shadow: 0 8px 28px rgba(31, 31, 31, 0.24);
        transform: translate(-50%, -50%);
    }

    .signin-modal-header {
        cursor: move;
    }
}

@media (min-width: 654px) {
    .site-header__actions {
        display: flex;
    }

    .site-tabs {
        width: min(100%, 1202px);
        margin: 0 auto;
        padding: 0 16px;
    }
}

@media (min-width: 771px) {
    .site-header__topbar {
        padding: 0 24px;
    }

    .hero {
        align-items: flex-start;
        min-height: 344px;
        padding-top: 28px;
    }

    .hero h1 {
        font-size: 32px;
        line-height: 40px;
    }

    .hero__product-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 18px;
    }

    .hero__product-icon svg {
        width: 38px;
        height: 38px;
    }

    .hero-illustration {
        display: block;
    }

    .hero-illustration--left {
        left: max(24px, calc(50% - 600px));
    }

    .hero-illustration--right {
        right: max(24px, calc(50% - 600px));
    }

    .steps {
        margin-top: 20px;
        margin-bottom: 32px;
    }

    .process-card {
        padding: 37px 48px 42px;
        border: 1px solid var(--crc-outline);
        border-radius: 10px;
    }

    .form-title {
        font-size: 24px;
        line-height: 32px;
    }

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

    .footer-badges .badge {
        padding: 14px;
    }

    #page-confirm,
    #page-dashboard {
        margin-top: 42px;
        padding: 32px 40px 48px;
        border: 1px solid var(--crc-outline);
        border-radius: 10px;
    }

    .page-heading h1 {
        font-size: 32px;
        line-height: 40px;
    }

    .site-footer {
        border-top: 0;
        padding: 24px;
    }

    .site-footer__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
