:root {
    --the23-surface: #ffffff;
    --the23-surface-muted: #f7f9fc;
    --the23-border: #e4eaf2;
    --the23-text: #263247;
    --the23-muted: #6c788c;
    --the23-shadow: 0 24px 70px rgba(25, 45, 85, 0.12);
}

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

body {
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    max-width: 100%;
}

.btn,
.form-control,
.form-select {
    min-height: 44px;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(0, 136, 255, 0.3);
    outline-offset: 3px;
    box-shadow: none !important;
}

#menu-top,
#main-header {
    position: relative;
    z-index: 1000;
}

#menu-top .navbar,
#main-header .navbar {
    gap: 1rem;
}

#main-menu .nav-link,
#login-menu .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.the23-redirect-page {
    background: var(--the23-surface-muted);
    border-top: 1px solid var(--the23-border);
    border-bottom: 1px solid var(--the23-border);
}

.the23-redirect-container {
    min-height: min(760px, calc(100vh - 180px));
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: clamp(3rem, 8vw, 7rem);
    padding-bottom: clamp(3rem, 8vw, 7rem);
}

.the23-redirect-card {
    width: min(100%, 780px);
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 3.25rem);
    background: var(--the23-surface);
    color: var(--the23-text);
    border: 1px solid var(--the23-border);
    border-radius: 24px;
    box-shadow: var(--the23-shadow);
}

.the23-redirect-heading {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.the23-icon-box {
    width: 52px;
    height: 52px;
    flex: 0 0 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 136, 255, 0.1);
    border-radius: 16px;
}

.the23-icon-box img {
    width: 26px;
    height: 26px;
}

.the23-eyebrow {
    margin: 0 0 0.35rem;
    color: var(--bs-primary);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    line-height: 1.3;
    text-transform: uppercase;
}

.the23-redirect-card h1 {
    margin: 0;
    color: var(--the23-text);
    font-size: clamp(1.6rem, 4vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.18;
    overflow-wrap: anywhere;
}

.the23-redirect-description {
    margin: 1.35rem 0 0;
    color: var(--the23-muted);
    font-size: 1rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.the23-destination {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    padding: 0.9rem 1rem;
    background: var(--the23-surface-muted);
    border: 1px solid var(--the23-border);
    border-radius: 14px;
}

.the23-destination span {
    flex: 0 0 auto;
    color: var(--the23-muted);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.the23-destination strong {
    min-width: 0;
    color: var(--the23-text);
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.the23-countdown {
    margin-top: 1.35rem;
}

.the23-countdown-copy {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--the23-muted);
    font-size: 0.92rem;
}

.the23-countdown-copy img {
    width: 21px;
    height: 21px;
}

.the23-countdown-copy strong {
    margin-left: auto;
    color: var(--the23-text);
    font-variant-numeric: tabular-nums;
}

.the23-progress {
    height: 7px;
    margin-top: 0.75rem;
    overflow: hidden;
    background: #e9eef5;
    border-radius: 999px;
}

.the23-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--bs-primary);
    border-radius: inherit;
    transition: width 0.35s ease;
}

.the23-redirect-actions {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 0.85rem;
    margin-top: 1.75rem;
}

.the23-redirect-actions .btn {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    border-radius: 13px;
    font-weight: 800;
}

.the23-primary-action.is-waiting {
    cursor: wait;
    opacity: 0.82;
}

.the23-secondary-action {
    background: var(--the23-surface);
    color: var(--bs-primary);
    border: 1px solid rgba(0, 136, 255, 0.28);
}

.the23-secondary-action:hover {
    background: rgba(0, 136, 255, 0.06);
    color: var(--bs-primary-alt);
    border-color: var(--bs-primary);
}

.the23-redirect-disclaimer {
    margin: 1.2rem 0 0;
    color: var(--the23-muted);
    font-size: 0.82rem;
    line-height: 1.55;
    text-align: center;
}

.the23-redirect-ad {
    width: min(100%, 780px);
    min-height: 0;
    margin: 1.5rem auto 0;
    overflow: hidden;
    text-align: center;
}

.the23-consent-card {
    max-width: 700px;
}

.the23-frame-page {
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #0f172a;
}

.the23-frame-toolbar {
    min-height: 76px;
    display: grid;
    grid-template-columns: minmax(140px, 1fr) minmax(0, 2fr) minmax(140px, 1fr);
    align-items: center;
    gap: 1rem;
    padding: 0.8rem clamp(1rem, 3vw, 2rem);
    background: #0f172a;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.the23-frame-brand {
    min-width: 0;
    color: #ffffff;
}

.the23-frame-brand img {
    display: block;
    width: auto;
    max-width: 170px;
    max-height: 46px;
}

.the23-frame-ad {
    min-width: 0;
    overflow: hidden;
    text-align: center;
}

.the23-frame-close {
    min-height: 44px;
    justify-self: end;
    display: inline-flex;
    align-items: center;
    border-radius: 12px;
    font-weight: 800;
}

.the23-frame-site {
    width: 100%;
    height: auto !important;
    min-height: 0;
    flex: 1 1 auto;
    position: static !important;
    top: auto !important;
    border: 0;
    background: #ffffff;
}

html[data-theme="dark"] {
    --the23-surface: #1e293b;
    --the23-surface-muted: #0f172a;
    --the23-border: #36445a;
    --the23-text: #f8fafc;
    --the23-muted: #b9c3d2;
    --the23-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .the23-progress {
    background: #334155;
}

html[data-theme="dark"] .the23-secondary-action {
    background: #172033;
}

@media (max-width: 991.98px) {
    #menu-top,
    #main-header {
        padding-top: 0.35rem !important;
        padding-bottom: 0.35rem !important;
    }

    #menu-top .navbar,
    #main-header .navbar {
        padding-top: 0.65rem !important;
        padding-bottom: 0.65rem !important;
    }

    #navbar {
        max-height: calc(100vh - 84px);
        margin-top: 0.75rem;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    #main-menu .nav-link {
        width: 100%;
        min-height: 46px;
        padding: 0.7rem 0.25rem;
    }

    #main-menu .dropdown-menu {
        width: 100%;
        max-width: none;
        margin-top: 0.35rem;
        padding: 0.5rem !important;
        box-shadow: none !important;
        border: 1px solid var(--the23-border) !important;
    }

    #login-menu {
        gap: 0.65rem;
        align-items: center;
        margin-top: 0.75rem;
    }

    #login-menu .btn {
        min-width: 0;
        margin-right: 0 !important;
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    .the23-redirect-container {
        min-height: calc(100vh - 128px);
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .the23-redirect-card {
        padding: 1.35rem;
        border-radius: 18px;
        box-shadow: 0 14px 38px rgba(25, 45, 85, 0.1);
    }

    .the23-icon-box {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        border-radius: 13px;
    }

    .the23-redirect-actions {
        grid-template-columns: 1fr;
    }

    .the23-primary-action {
        order: 1;
    }

    .the23-secondary-action {
        order: 2;
    }

    .the23-frame-toolbar {
        min-height: 66px;
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 0.65rem 0.75rem;
    }

    .the23-frame-brand img {
        max-width: 130px;
        max-height: 38px;
    }

    .the23-frame-close {
        padding-right: 0.8rem;
        padding-left: 0.8rem;
        font-size: 0.85rem;
    }

    footer .nav {
        gap: 0.25rem;
    }

    footer .nav-link {
        padding: 0.5rem 0.65rem;
    }
}

@media (max-width: 420px) {
    .the23-redirect-heading {
        gap: 0.75rem;
    }

    .the23-destination {
        display: block;
    }

    .the23-destination strong {
        display: block;
        margin-top: 0.25rem;
    }

    .the23-countdown-copy {
        flex-wrap: wrap;
    }

    .the23-countdown-copy strong {
        width: 100%;
        margin-left: 1.8rem;
    }
}

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

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