* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f5f5f5;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background: white;
    border-radius: 4px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 100%;
}

.domain-name {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.verification-text {
    font-size: 14px;
    color: #666;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.5;
}

.turnstile-container {
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    padding: 15px;
    background: #fafafa;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 120px;
    justify-content: center;
}

.turnstile-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 15px;
}

.turnstile-checkbox {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
    flex: 1;
    margin-left: 0;
}

.checkbox-box {
    width: 34px;
    height: 34px;
    border: 2px solid #a0a0a0;
    border-radius: 3px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    transition: all 0.2s ease;
}

.turnstile-checkbox:hover .checkbox-box {
    border-color: #4285f4;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.1);
}

.checkbox-box.checked {
    background: #4285f4;
    border-color: #4285f4;
}

.checkbox-box.loading {
    background: #4285f4;
    border-color: #4285f4;
}

.cloud-icon {
    width: 18px;
    height: 18px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.checkbox-box.checked .cloud-icon {
    opacity: 1;
}

.checkbox-box.loading .cloud-icon {
    opacity: 0;
}

.cloud-icon svg {
    width: 100%;
    height: 100%;
    fill: white;
}

.checkbox-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
    position: absolute;
}

.checkbox-box.loading .checkbox-spinner {
    display: block;
}

.checkbox-label {
    font-size: 16px;
    color: #333;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.checkbox-label.error {
    color: #ea4335;
}

.cloudflare-logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.cloudflare-logo {
    width: 140px;
    height: 60px;
    object-fit: contain;
}

.cloudflare-links {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    margin-left: 5px;
    gap: 4px;
}

.cloudflare-link {
    font-size: 10px;
    color: #999;
    text-decoration: none;
    transition: color 0.2s ease;
}

.cloudflare-link:hover {
    color: #666;
    text-decoration: underline;
}

.cloudflare-link-separator {
    font-size: 10px;
    color: #999;
}

.loading-container {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}

.loading-container.active {
    display: flex;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #e0e0e0;
    border-top-color: #4285f4;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 10px;
}

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

.loading-text {
    color: #666;
    font-size: 13px;
}

.success-container {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}

.success-container.active {
    display: flex;
}

.checkmark {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #34a853;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.checkmark svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.success-text {
    color: #34a853;
    font-size: 13px;
    font-weight: 500;
}

.error-container {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}

.error-container.active {
    display: flex;
}

.error-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ea4335;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.error-icon svg {
    width: 20px;
    height: 20px;
    fill: white;
}

.error-text {
    color: #ea4335;
    font-size: 13px;
    font-weight: 500;
}

.instructions-container {
    display: none;
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.instructions-container.active {
    display: block;
}

.instructions-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.instructions-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.instructions-list li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.instructions-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #4285f4;
    font-weight: bold;
}

.instructions-list li .highlight {
    background: #fff3cd;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
    color: #856404;
}

.cloudflare-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    font-size: 11px;
    color: #999;
}

.cloudflare-badge svg {
    width: 14px;
    height: 14px;
    margin-right: 5px;
    fill: #999;
}

