* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background: #1a1a1a;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(243, 128, 32, 0.1) 0%, rgba(250, 173, 63, 0.1) 100%);
    z-index: 0;
}

.check-container {
    background: #2a2a2a;
    border-radius: 12px;
    padding: 60px 80px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    max-width: 500px;
    width: 90%;
    animation: fadeIn 0.5s ease-in;
    position: relative;
    z-index: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-section {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.cloudflare-logo {
    /* Animation removed */
}

.logo-image {
    max-width: 200px;
    height: auto;
    display: block;
}

.logo-image-small {
    max-width: 60px;
    height: auto;
    display: block;
}

.cloudflare-text-logo {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #F38020 0%, #FAAD3F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

.check-content {
    position: relative;
}

.check-title {
    font-size: 24px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 20px;
}

.check-status {
    font-size: 18px;
    color: #b0b0b0;
    margin-bottom: 30px;
    min-height: 28px;
    transition: opacity 0.3s ease;
}

.check-status.updating {
    opacity: 0.5;
}

.progress-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 30px;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #F38020 0%, #FAAD3F 50%, #F38020 100%);
    background-size: 200% 100%;
    width: 0%;
    border-radius: 2px;
    transition: width 0.3s ease;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

.check-details {
    text-align: left;
    margin-top: 20px;
}

.check-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    font-size: 14px;
    color: #b0b0b0;
    opacity: 0;
    transform: translateX(-20px);
    animation: slideIn 0.5s ease forwards;
}

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.check-item.active {
    color: #FAAD3F;
    font-weight: 500;
}

.check-item.completed {
    color: #4CAF50;
}

.check-icon {
    margin-right: 12px;
    font-size: 18px;
    width: 24px;
    display: inline-block;
    text-align: center;
}

.check-item.active .check-icon::before {
    content: "⟳";
    animation: spin 1s linear infinite;
}

.check-item.completed .check-icon::before {
    content: "✓";
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Модальное окно */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.show {
    display: flex;
}

.modal-content {
    background: #2a2a2a;
    border-radius: 12px;
    max-width: 1200px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.modal-logo-icon {
    display: flex;
    align-items: center;
}

.modal-logo-image {
    max-width: 120px;
    height: auto;
    display: block;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    background: linear-gradient(135deg, #F38020 0%, #FAAD3F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #b0b0b0;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.modal-body {
    padding: 24px;
    font-size: 16px;
    line-height: 1.6;
    color: #e0e0e0;
    min-height: 100px;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
}

.modal-button {
    background: linear-gradient(135deg, #F38020 0%, #FAAD3F 100%);
    color: #ffffff;
    border: none;
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 128, 32, 0.4);
}

.modal-button:active {
    transform: translateY(0);
}

/* Captcha Styles */
.captcha-section {
    width: 100%;
    animation: fadeIn 0.5s ease-in;
}

.captcha-container {
    background: #ffffff;
    border: 2px solid #dadce0;
    border-radius: 4px;
    padding: 20px;
    text-align: left;
}

.captcha-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.captcha-checkbox {
    width: 28px;
    height: 28px;
    border: 2px solid #dadce0;
    border-radius: 4px;
    background: #ffffff;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.captcha-checkbox:hover {
    border-color: #4285f4;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.1);
}

.captcha-checkbox.checking {
    border-color: #4285f4;
    background: #f8f9fa;
}

.captcha-checkbox.checked {
    border-color: #34a853;
    background: #34a853;
}

.captcha-checkbox-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    transform: scale(0);
}

.captcha-checkbox.checked .captcha-checkbox-inner {
    opacity: 1;
    animation: checkmarkAppear 0.4s ease forwards;
}

@keyframes checkmarkAppear {
    0% {
        transform: scale(0) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(0deg);
        opacity: 0.8;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.captcha-checkbox-inner::after {
    content: '';
    width: 6px;
    height: 12px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-top: -2px;
}

.captcha-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    z-index: 10;
    display: none;
}

.captcha-checkbox.checking .captcha-loader {
    display: block;
}

.loader-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(66, 133, 244, 0.3);
    border-top-color: #4285f4;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.captcha-label {
    font-size: 16px;
    color: #202124;
    font-weight: 400;
    user-select: none;
}

.captcha-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 15px;
    border-top: 1px solid #dadce0;
    font-size: 12px;
    color: #5f6368;
}

.captcha-logo-small {
    display: flex;
    align-items: center;
}

.captcha-text {
    display: flex;
    align-items: center;
}

.copy-token-button {
    display: inline-flex;
    align-items: center;
    background: #4285f4;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.copy-token-button:hover {
    background: #357ae8;
    box-shadow: 0 2px 4px rgba(66, 133, 244, 0.3);
}

.copy-token-button:active {
    transform: translateY(1px);
}

.modal-body ol {
    color: #e0e0e0;
}

.modal-body ol li {
    color: #e0e0e0;
}

.modal-body a {
    color: #FAAD3F;
    text-decoration: none;
}

.modal-body a:hover {
    text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 600px) {
    .check-container {
        padding: 40px 30px;
    }
    
    .check-title {
        font-size: 20px;
    }
    
    .check-status {
        font-size: 16px;
    }
    
    .modal-content {
        width: 95%;
        max-height: 90vh;
    }
}

