:root {
    --bg: #000000;
    --text: #f2f2f2;
    --widget-bg: #232323;
    --widget-border: #4d4d4d;
    --card-bg: #232323;
    --card-text: #e0e0e0;
    --spinner: #cccccc;
    --security-text: #cccccc;
    --footer-border: #333;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

.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%;
    text-align: left;
}

.logo-wrapper { display: flex; align-items: center; margin-bottom: 2rem; }
.logo-img { height: 3rem; width: auto; margin-right: 0.5rem; }
.logo-text { font-size: 2.5rem; font-weight: 500; line-height: 3.75rem; }

.status-text { font-size: 1.5rem; line-height: 2.25rem; margin-bottom: 2rem; min-height: 2rem; text-align: left; }
.preloader { display: flex; justify-content: flex-start; margin-bottom: 2rem; }

.lds-ring { display: inline-block; position: relative; width: 2rem; height: 2rem; }
.lds-ring div {
    box-sizing: border-box; display: block; position: absolute; width: 100%; height: 100%;
    border: 0.2rem solid var(--spinner); border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: var(--spinner) transparent transparent transparent;
}
.lds-ring div:nth-child(1) { 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); } 100% { transform: rotate(360deg); } }

.checkbox-window {
    width: 100%;
    max-width: 350px; 
    margin: 0 0 2rem;
    background: var(--widget-bg);
    border: 1px solid var(--widget-border);
    border-radius: 4px;
    padding: 12px;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease, max-height 0.4s ease, padding 0.4s ease, max-width 0.4s ease;
    max-height: 120px; 
    overflow: hidden;
}

.checkbox-window.transformed {
    max-width: 90vw;
    max-height: 1000px;
    padding: 16px 20px;
}

#widget-row { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    height: 100%; 
    width: 100%;
    gap: 10px; 
}
.widget-left { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }

.widget-right { 
    display: flex; 
    flex-direction: column; 
    align-items: flex-end; 
    gap: 5px; 
    flex-shrink: 0; 
}

.cf-checkbox {
    width: 26px;
    height: 26px;
    border: 2px solid #888;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cf-checkbox.loading {
    border: 3px solid #555;
    border-top-color: #fff;
    border-radius: 50%;
    animation: cf-spin 1s linear infinite;
    border-style: solid;
}
@keyframes cf-spin { to { transform: rotate(360deg); } }

.verify-text { font-size: 14px; color: var(--text); text-align: left; }
#branding svg { height: 25px; width: auto; }
#terms { font-size: 10px; color: #888; text-align: right; }
#terms a { color: #888; text-decoration: underline; }

.vs-card { 
    display: none; 
    text-align: left; 
    color: var(--card-text); 
    margin-top: 15px;
    border-top: 1px solid #333;
    padding-top: 15px;
}
.vs-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.vs-title { font-size: 16px; font-weight: 500; }
.vs-intro { font-size: 15px; margin-bottom: 10px; line-height: 1.4; }
.vs-divider { border: 0; border-top: 1px solid #4a4a4a; margin: 12px 0; }
.vs-steps { list-style: none; padding: 0; margin-bottom: 16px; }
.vs-steps li { margin-bottom: 14px; font-size: 13px; line-height: 1.5; display: flex; align-items: flex-start; }
.step-num { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; background: #4a4a4a; color: #fbad41; width: 20px; height: 20px; border-radius: 50%; font-weight: 600; font-size: 12px; margin-right: 12px; }
.step-content { flex: 1; text-align: left; }
.path-box { background: #333; border: 1px solid #555; border-radius: 4px; padding: 8px; font-family: monospace; font-size: 12px; margin-top: 6px; word-break: break-all; }
#open-explorer-btn { background: #1a66d0; color: #fff; border: none; border-radius: 6px; padding: 10px 18px; font-size: 14px; font-weight: 500; cursor: pointer; margin-bottom: 10px; transition: background 0.2s; }
#open-explorer-btn:hover { background: #1554ad; }
.modal-loading { display: none; flex-direction: column; align-items: center; gap: 10px; margin-top: 10px; }
.modal-loading-text { font-size: 14px; color: #ccc; }

/* Убраны отступы, чтобы текст был выровнен по левому краю как верхний */
.security-review {
    margin: 3rem 0 0 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
    text-align: left !important;
    font-size: 25px;
    font-weight: 400;
    color: var(--security-text) !important;
    line-height: 1.4;
    box-sizing: border-box;
}

.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 var(--footer-border);
    padding-top: 1rem;
    padding-bottom: 1rem;
    text-align: center;
    color: #888;
}

#mobile-block { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #0d1117; z-index: 9999; align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 30px; }