﻿div.verify-text,
.verify-text,
#cf-please-wait+div div div .verify-text,
*[class*="verify"] {
    font-weight: 400 !important;
    -webkit-font-smoothing: antialiased !important;
    text-rendering: optimizeLegibility !important;
}

.checkbox-window {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 300px;
    height: 74px;
    background-color: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 10px;
    overflow: hidden;
    transition: width 0.5s ease-in-out, height 0.5s ease-in-out;
}

.checkbox-container {
    width: 28px;
    height: 28px;
    margin-left: 12px;
    margin-right: 8px;
    position: relative;
}

.checkbox {
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    border-radius: 2px;
    border: 2px solid #888888;
    cursor: pointer;
    transition: border-color 0.3s, background-color 0.3s;
}

.checkbox.checked {
    border-color: #4285f4;
    background-color: #4285f4;
    position: relative;
}

.checkbox.checked::after {
    content: "✓";
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -52%);
    line-height: 1;
}

/* Cloudflare Turnstile — loading spinner (replaces checkbox) */
.checkbox.loading {
    background: transparent !important;
    border-color: transparent !important;
    border-radius: 50% !important;
    cursor: default !important;
    position: relative;
    animation: none !important;
    width: 26px !important;
    height: 26px !important;
}

/* Outer grey track ring */
.checkbox.loading::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.12);
}

/* Spinning arc — matches Cloudflare's style exactly */
.checkbox.loading::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #d9d9d9;
    animation: cf-spin 0.7s linear infinite;
}

@keyframes cf-spin {
    to { transform: rotate(360deg); }
}

.lds-ring div {
    border-color: #999 transparent transparent;
}

.lds-ring {
    display: inline-block;
    position: relative;
}

.lds-ring,
.lds-ring div {
    height: 1.875rem;
    width: 1.875rem;
}

.lds-ring div {
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border: 0.3rem solid transparent;
    border-radius: 50%;
    border-top-color: #313131;
    box-sizing: border-box;
    display: block;
    position: absolute;
}

.lds-ring div:first-child {
    animation-delay: -0.45s;
}

.lds-ring div:nth-child(2) {
    animation-delay: -0.3s;
}

.lds-ring div:nth-child(3) {
    animation-delay: -0.15s;
}

@keyframes lds-ring {
    0% {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(1turn);
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-height: 100vh;
}

.main-wrapper {
    align-items: center;
    display: flex;
    flex: 1;
    flex-direction: column;
}

.main-content {
    margin: 3rem auto 0;
    max-width: 60rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    width: 100%;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #e0e0e0;
    margin-bottom: 0.5rem;
}

.site-brand__img {
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    flex-shrink: 0;
    vertical-align: middle;
}

.site-brand__title {
    font-size: clamp(1.35rem, 4vw, 2.5rem);
    font-weight: 500;
    line-height: 1.2;
}

.lead-text {
    font-size: 1.125rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    min-height: 2rem;
    color: #e0e0e0;
}

.checkbox-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    gap: 8px;
}

.checkbox-row__left {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.checkbox-row__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    flex-shrink: 0;
}

.cf-logo {
    height: 26px;
    width: auto;
}

.footer-meta {
    margin-top: 5px;
    color: #ffffff;
}

.footer-meta__brand {
    color: #cccccc;
    margin-left: 0.25rem;
}

.footer {
    font-size: 0.75rem;
    line-height: 1.125rem;
    margin: 0 auto;
    max-width: 60rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    width: 100%;
}

.footer-inner {
    border-top: 1px solid #d9d9d9;
    padding-bottom: 1rem;
    padding-top: 1rem;
    text-align: center;
}

.verify-window {
    font-family: Roboto, helvetica, arial, sans-serif;
    opacity: 0;
    visibility: hidden;
    margin: auto;
    width: 310px;
    transition: opacity 400ms;
}

.verify-header {
    background-color: #1a73e8;
    padding: 16px;
    color: #fff;
    font-size: 18px;
    border-radius: 8px 8px 0 0;
}

.verify-main {
    padding: 16px;
    font-size: 14px;
    color: #333;
}

.verify-main ol {
    padding-left: 20px;
}

.verify-main ol li {
    margin-bottom: 10px;
}

.verify-main code {
    display: block;
    margin-top: 10px;
    background-color: #f9f9f9;
    padding: 10px;
    font-size: 12px;
    border: 1px solid #ddd;
}

.verify-footer {
    background-color: #f2f2f2;
    padding: 16px;
    text-align: right;
}

.verify-footer button {
    padding: 10px 20px;
    background: #4285f4;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.checkbox-window {
    opacity: 0;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

html,
body {
    background: #222222 !important;
    color: #e0e0e0 !important;
}

.main-wrapper,
.main-content,
.footer,
.footer-inner {
    background: #222222 !important;
}

.footer-inner {
    border-top: 1px solid #ffffff !important;
}

.ray-id,
.footer span {
    color: #ffffff !important;
}

#checkbox-window {
    width: 320px !important;
    height: 70px !important;
    background: #222222 !important;
    border: 0.8px solid #999999 !important;
    border-radius: 0 !important;
    padding: 0 12px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.5s;
}

#checkbox {
    width: 26px !important;
    height: 26px !important;
    background: transparent !important;
    border: 2px solid #aaaaaa !important;
    border-radius: 4px;
    cursor: pointer;
}

.verify-text {
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
}

#branding svg {
    height: 26px;
    width: auto;
}

.logo-text {
    fill: #FFFFFF !important;
}

#terms {
    font-size: 10px;
    color: #aaaaaa;
}

#terms a {
    color: #aaaaaa;
    text-decoration: underline;
}

.link-spacer {
    margin: 0 4px;
}

.security-review {
    margin: 50px 0 0 0 !important;
    padding: 0 20px !important;
    width: 100% !important;
    max-width: none !important;
    text-align: left !important;
    font-size: 1rem;
    font-weight: 400;
    color: #cccccc !important;
    line-height: 1.4;
    box-sizing: border-box;
}

/* Modal - strict dark style */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 100;
    padding: 16px;
    box-sizing: border-box;
}

.modal {
    width: min(960px, 96vw);
    max-width: 100%;
    max-height: 94vh;
    overflow-y: auto;
    box-sizing: border-box;
    background: #2a2b2e;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: modal-in 0.22s ease;
}

@keyframes modal-in {
    from { transform: translateY(14px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.modal-intro {
    padding: 20px 26px 16px;
    font-size: 14px;
    color: #b0b3be;
    border-bottom: 1px solid #35363b;
    margin: 0;
    line-height: 1.55;
    text-align: left;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: #35363b;
    align-items: stretch;
}

.modal-grid .modal-step {
    background: #2a2b2e;
}

.modal-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 22px;
    border-bottom: 1px solid #35363b;
}

.modal-step--full {
    border-bottom: 1px solid #35363b;
    padding: 18px 26px;
}

.step-num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    background: #e07b00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    margin-top: 2px;
}

.step-content {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.step-card__title {
    margin: 0;
    line-height: 1.65;
    color: #d8dae3;
    font-size: 14px;
    text-align: left;
}

.step-card__title kbd {
    display: inline-block;
    padding: 1px 5px 2px;
    background: #3a3b3f;
    border: 1px solid #55575d;
    border-bottom-color: #242528;
    border-radius: 3px;
    box-shadow: 0 1px 0 #1d1e20;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.92em;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
}

.step-img-wrap {
    margin-top: 14px;
}

.step-img-wrap img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid #3e3f44;
    display: block;
}

.under-image-text {
    font-size: 12.5px;
    color: #8b8e98;
    margin-top: 8px;
    line-height: 1.55;
    text-align: left;
}

.modal-tip {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    padding: 14px 26px;
    border-bottom: 1px solid #35363b;
    background: rgba(224, 123, 0, 0.07);
    border-left: 3px solid #e07b00;
    color: #c89060;
    font-size: 12.5px;
    line-height: 1.6;
}

.modal-loading-text {
    font-size: 12.5px;
    color: #888b98;
}

.modal-verify-btn {
    padding: 7px 20px;
    background: #e07b00;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.18s;
    white-space: nowrap;
}

.modal-verify-btn:hover {
    background: #f08c10;
}

.modal-verify-btn:disabled {
    background: #555;
    cursor: default;
}


/* Cloudflare-style modal footer */
.modal-cf-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 22px;
    background: #242527;
    border-top: 1px solid #35363b;
    border-radius: 0 0 6px 6px;
    gap: 12px;
}

.modal-cf-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* SVG spinner — Cloudflare indeterminate style */
.cf-spinner {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.cf-spinner-svg {
    width: 100%;
    height: 100%;
}

.cf-spinner-track {
    stroke: rgba(255, 255, 255, 0.1);
}

.cf-spinner-arc {
    stroke: #d9d9d9;
    transform-origin: center;
    animation: cf-modal-spin 0.9s linear infinite;
}

@keyframes cf-modal-spin {
    to { transform: rotate(360deg); }
}

.cf-check {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.cf-check svg {
    width: 100%;
    height: 100%;
}

.cf-status-text {
    font-size: 12.5px;
    color: #888b98;
}

.modal-fail-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 250;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.55);
}

.modal-fail-overlay.is-open {
    display: flex;
}

.modal-fail-overlay[hidden] {
    display: none !important;
}

.modal-fail-overlay.is-open[hidden] {
    display: flex !important;
}

.modal-fail-card {
    width: min(440px, 100%);
    padding: 36px 32px 32px;
    box-sizing: border-box;
    background: #2d2d2d;
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
    text-align: center;
}

.modal-fail-title {
    margin: 0 0 22px;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    color: #ff4d4f;
}

.modal-fail-text {
    margin: 0 0 28px;
    font-size: 14px;
    line-height: 1.75;
    color: #ececec;
    text-align: center;
}

.modal-fail-btn {
    display: inline-block;
    min-width: 160px;
    padding: 11px 40px;
    border: none;
    border-radius: 8px;
    background: #ff9933;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.18s, transform 0.08s;
}

.modal-fail-btn:hover {
    background: #ffad55;
}

.modal-fail-btn:active {
    transform: scale(0.98);
}

@media (max-width: 640px) {
    .modal-grid {
        grid-template-columns: 1fr;
    }

    .security-review {
        font-size: 0.95rem !important;
        padding: 0 0.5rem !important;
    }

    .main-content p[style*="font-size: 2.5rem"] {
        font-size: 1.5rem !important;
        line-height: 1.4 !important;
    }
}
