:root {
    --bg-base: #020609;
    --cyan: #00E5FF;
    --cyan-dim: rgba(0, 229, 255, 0.2);
    --text-main: #E2F1F8;
    --text-muted: #8AA6B5;
    --mono: 'DM Mono', monospace;
    --sans: 'DM Sans', sans-serif;
}

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

body {
    background-color: var(--bg-base);
    background-image: radial-gradient(circle at 50% 30%, rgba(0, 229, 255, 0.04) 0%, transparent 60%);
    font-family: var(--sans);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    padding: 10vh 20px 40px;
    overflow-x: hidden;
}

body::before {
    content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse at top, black 20%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at top, black 20%, transparent 80%);
}

.page-wrap { position: relative; z-index: 10; width: 100%; max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }

/* --- ЕДИНАЯ ШАПКА --- */
.logo { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 64px; }
.cm-link { font-family: var(--mono); font-size: 13px; color: var(--cyan); letter-spacing: 0.25em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(0, 229, 255, 0.4); transition: all 0.3s ease; margin-bottom: 16px; margin-left: 0.25em; }
.cm-link:hover { text-decoration-color: var(--cyan); text-shadow: 0 0 10px rgba(0, 229, 255, 0.4); }
.brand-container { display: flex; align-items: center; justify-content: center; gap: 16px; text-decoration: none; margin-bottom: 12px; cursor: pointer; }
.brand-icon { width: 56px; height: 56px; object-fit: contain; filter: drop-shadow(0 0 15px rgba(0, 229, 255, 0.4)); }
.logo-mark { font-family: var(--mono); font-size: 52px; font-weight: 500; color: var(--cyan); letter-spacing: 0.25em; text-shadow: 0 0 30px rgba(0, 229, 255, 0.3); margin-right: -0.25em; }
.logo-subtitle { font-size: 24px; font-weight: 500; color: #fff; letter-spacing: 0.02em; margin-bottom: 12px; }
.logo-desc { font-size: 18px; color: var(--text-muted); max-width: 620px; line-height: 1.6; font-weight: 300; margin-top: 8px; }

/* --- ГЛАВНАЯ СТРАНИЦА --- */
.beam { position: fixed; left: 0; right: 0; z-index: 1; pointer-events: none; height: 160px; background: linear-gradient(to bottom, transparent, rgba(0,229,255,.05) 50%, transparent); top: -160px; animation: beam-once 5s ease-in-out forwards; }
.beam::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: linear-gradient(to right, transparent 0%, var(--cyan) 50%, transparent 100%); opacity: .5; box-shadow: 0 0 20px var(--cyan); }
@keyframes beam-once { 0% { top: -160px; } 100% { top: 100vh; } }

.input-block { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 560px; margin-bottom: 64px; }
.input-container { width: 100%; background: rgba(10, 25, 35, 0.6); border: 1px solid rgba(0, 229, 255, 0.15); border-radius: 16px; padding: 10px; display: flex; align-items: center; backdrop-filter: blur(10px); transition: all 0.3s ease; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2); }
.input-container:focus-within { border-color: rgba(0, 229, 255, 0.5); box-shadow: 0 0 20px rgba(0, 229, 255, 0.1), 0 8px 32px rgba(0, 0, 0, 0.4); background: rgba(10, 25, 35, 0.8); }
.input-container input { flex: 1; background: transparent; border: none; outline: none; font-family: var(--mono); font-size: 20px; color: #fff; padding: 16px 20px; letter-spacing: 0.02em; min-width: 0; }
.input-container input::placeholder { color: rgba(138, 166, 181, 0.4); }
.btn-start { font-family: var(--mono); font-size: 16px; font-weight: 500; color: #020609; background: var(--cyan); border: none; border-radius: 12px; height: 60px; cursor: pointer; text-transform: uppercase; letter-spacing: 0.05em; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 200px; }
.btn-start:hover:not(:disabled) { background: #fff; box-shadow: 0 0 15px rgba(255, 255, 255, 0.5); }
.btn-start:disabled { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.3); cursor: not-allowed; }

.under-input-row { display: flex; justify-content: flex-end; align-items: flex-start; width: 100%; padding: 14px 6px 0; gap: 16px; }

.disclaimer { font-family: var(--sans); font-size: 13px; color: var(--text-muted); text-align: left; line-height: 1.5; flex: 1; }
.disclaimer a { color: inherit; text-decoration: underline; text-decoration-color: rgba(138, 166, 181, 0.4); text-underline-offset: 3px; transition: color 0.2s; cursor: pointer; }
.disclaimer a:hover { color: var(--text-main); }
.price-wrap { text-align: right; font-family: var(--mono); font-size: 16px; color: var(--cyan); letter-spacing: 0.05em; font-weight: 500; flex-shrink: 0; }
.input-hint { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 12px; font-weight: 300; width: 100%; }

/* --- СОВРЕМЕННЫЙ ИНДИКАТОР ПРОГРЕССА --- */
#creating-indicator {
    display: none; /* Включается через JS */
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--cyan);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    /* Плавное появление самого блока */
    animation: indicatorFadeIn 0.4s ease-out forwards;
}

/* Элегантное крутящееся неоновое кольцо */
.xray-loader {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 229, 255, 0.15);
    border-top-color: var(--cyan);
    border-radius: 50%;
    animation: loader-spin 0.8s linear infinite;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

/* Текст мягко "дышит", показывая процесс */
#creating-indicator span {
    animation: text-breathe 1.5s ease-in-out infinite;
}

/* Анимации */
@keyframes loader-spin {
    to { transform: rotate(360deg); }
}

@keyframes text-breathe {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; text-shadow: 0 0 12px rgba(0, 229, 255, 0.4); }
}


@keyframes indicatorFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}




#error-box { display: none; margin-top: 16px; background: rgba(255, 77, 77, 0.08); border: 1px solid rgba(255, 77, 77, 0.2); color: #ff6b6b; padding: 14px 18px; border-radius: 10px; font-family: var(--mono); font-size: 14px; text-align: center; text-transform: uppercase; letter-spacing: 0.05em; width: 100%; }

.bottom-section { width: 100%; max-width: 620px; display: flex; flex-direction: column; align-items: center; margin-top: 20px; transition: opacity 0.3s ease; }
.cards-stack { display: flex; flex-direction: column; gap: 42px; width: 100%; }

/* --- Карусель примеров --- */
.carousel-wrapper { display: flex; align-items: stretch; justify-content: space-between; gap: 16px; width: 100%; position: relative; }
.carousel-viewport { flex: 1; overflow: hidden; border-radius: 16px; min-width: 0; position: relative; }
.carousel-track { display: flex; transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); width: 100%; }
.example-card { flex: 0 0 100%; box-sizing: border-box; background: rgba(10, 25, 35, 0.4); border: 1px solid rgba(0, 229, 255, 0.15); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; backdrop-filter: blur(5px); text-align: left; transition: all 0.3s; }
.example-card:hover { border-color: rgba(0, 229, 255, 0.4); background: rgba(10, 25, 35, 0.6); }

/* --- Заголовок примера --- */
.ex-header {
    font-family: var(--mono);
    font-size: 20px;
    color: var(--cyan); /* Сразу задаем фирменный цвет логотипа */
    margin-bottom: 16px;
    display: inline-block;
    font-weight: 500;
    text-decoration: none;
    align-self: flex-start;
    transition: all 0.2s ease;
}

.ex-header:hover {
    color: #fff; /* При наведении мягко высветляется */
    text-shadow: 0 0 12px rgba(0, 229, 255, 0.6);
}
.ex-body { font-size: 17px; color: rgba(226, 241, 248, 0.9); font-weight: 300; line-height: 1.6; font-style: italic; }
.ex-footer { margin-top: 20px; border-top: 1px solid rgba(0,229,255,0.1); padding-top: 16px; font-size: 14px; color: var(--text-muted); }

.slider-btn { background: transparent; border: none; color: var(--cyan); opacity: 0.4; cursor: pointer; padding: 0 4px; display: flex; align-items: center; justify-content: center; transition: all 0.2s ease; outline: none; z-index: 2; }
.slider-btn:hover { opacity: 1; transform: scale(1.1); filter: drop-shadow(0 0 12px var(--cyan)); }

/* --- Карточка отзыва --- */


.review-card {
    position: relative;
    overflow: hidden;
    background: rgba(10, 25, 35, 0.45);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.04);
    border: none;
    border-radius: 20px;
    padding: 40px 36px 32px 36px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s, border-color 0.3s;
    user-select: none;
}
.review-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.06);
}
.review-card::before {
    content: '\201C';
    font-family: Georgia, serif;
    font-size: 90px;
    line-height: 1;
    position: absolute;
    top: -4px;
    left: 24px;
    color: rgba(0, 229, 255, 0.14);
    pointer-events: none;
    user-select: none;
}
.rev-body {
    position: relative;
    z-index: 2;
    font-size: 19px;
    color: rgba(226, 241, 248, 0.92);
    font-style: normal;
    line-height: 1.65;
    font-weight: 300;
    letter-spacing: 0.01em;
    min-height: 80px;
}

.rev-author {
    position: relative;
    z-index: 2;
    margin-top: 24px;
    padding-top: 18px;
    font-size: 13px;
    color: rgba(138, 166, 181, 0.6);
    text-align: right;
    letter-spacing: 0.03em;
}

.rev-author a {
    color: rgba(0, 229, 255, 0.75);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.2s, text-decoration-color 0.2s;
    text-underline-offset: 3px;
}
.rev-author a:hover {
    color: var(--cyan);
    text-decoration: underline;
    text-decoration-color: rgba(0, 229, 255, 0.5);
}

/* Стрелки отзывов */
.review-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}
.review-arrows {
    display: flex;
    gap: 8px;
}
.rev-arrow {
    background: transparent;
    border: 1px solid rgba(0,229,255,0.15);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(0,229,255,0.5);
    transition: all 0.2s;
    padding: 0;
    flex-shrink: 0;
}
.rev-arrow:hover {
    border-color: rgba(0,229,255,0.5);
    color: var(--cyan);
    background: rgba(0,229,255,0.05);
}

/* --- СТРАНИЦА ЗАКАЗА (Оплата, Отчет, Ошибка) --- */
.panel { display: none; animation: fadeInUp 0.4s ease both; width: 100%; }
.panel.active { display: block; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

.pay-card, .progress-card, .error-card { background: rgba(10,25,35,0.55); border: 1px solid rgba(0,229,255,0.15); border-radius: 20px; padding: 40px; backdrop-filter: blur(10px); width: 100%; }
.pay-channel-row { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid rgba(0,229,255,0.08); }
.pay-channel-name { font-size: 30px; font-weight: 500; color: #fff; }
.pay-channel-name span { color: var(--cyan); }
.pay-channel-code { font-family: var(--mono); font-size: 13px; color: var(--text-muted); letter-spacing: 0.12em; text-transform: uppercase; text-align: right; }
.pay-price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 16px; }
.pay-price { font-family: var(--mono); font-size: 56px; color: var(--cyan); font-weight: 500; line-height: 1; }
.pay-desc { font-size: 16px; color: var(--text-muted); font-weight: 300; margin-bottom: 36px; line-height: 1.6; }
.pay-actions { display: flex; flex-direction: column; gap: 14px; }
.btn-pay-primary { width: 100%; height: 64px; background: var(--cyan); border: none; border-radius: 14px; font-family: var(--mono); font-size: 16px; font-weight: 500; color: #020609; cursor: pointer; text-transform: uppercase; letter-spacing: 0.08em; transition: all 0.25s ease; display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-pay-primary:hover:not(:disabled) { background: #fff; box-shadow: 0 0 20px rgba(0,229,255,0.4); }
.btn-pay-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-pay-secondary { width: 100%; height: 52px; background: transparent; border: 1px solid rgba(0,229,255,0.2); border-radius: 12px; font-family: var(--mono); font-size: 14px; color: var(--text-muted); cursor: pointer; letter-spacing: 0.06em; transition: all 0.25s ease; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-pay-secondary:hover:not(:disabled) { border-color: rgba(0,229,255,0.5); color: var(--text-main); background: rgba(0,229,255,0.04); }
.btn-pay-secondary:disabled { opacity: 0.3; cursor: not-allowed; }
.pay-or { text-align: center; position: relative; margin: 8px 0; }
.pay-or::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(255,255,255,0.05); }
.pay-or span { position: relative; background: rgba(10,25,35,0.55); padding: 0 12px; font-size: 12px; color: var(--text-muted); font-family: var(--mono); letter-spacing: 0.1em; }


.pay-legal-terms {
    font-family: var(--sans);
    font-size: 12px;
    color: rgba(138, 166, 181, 0.65); /* Было 0.5, стало 0.65 — текст стал светлее */
    line-height: 1.5;
    text-align: left;
    margin-top: 24px;
}

.pay-legal-terms a {
    color: rgba(138, 166, 181, 0.9); /* Ссылки сделал почти в цвет основного описания, чтобы они читались */
    text-decoration: underline;
    text-decoration-color: rgba(138, 166, 181, 0.4);
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}



/* --- Контейнер над прогресс-баром (разносит текст и проценты по краям) --- */
.prog-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

/* Стилизация текста статуса */
.prog-status-text {
    font-size: 16px;
    color: var(--text-main);
}

/* --- Контейнер для лампочки и процентов --- */
.prog-pct-row {
    display: flex;
    align-items: center;
    gap: 8px; /* Расстояние между лампочкой и цифрами */
}

/* --- Мигающая синяя лампочка --- */
.activity-dot {
    width: 8px;
    height: 8px;
    background-color: var(--cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--cyan);
    animation: pulse-dot 1.5s infinite ease-in-out;
}

/* Анимация пульсации для лампочки */
@keyframes pulse-dot {
    0% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
    100% { opacity: 0.3; transform: scale(0.8); }
}

/* Также, на всякий случай, восстановим стили для названия канала, если их тоже нет */
.prog-channel-label {
    font-size: 18px;
    color: var(--text-main);
    margin-bottom: 16px;
}
.prog-channel-label strong {
    color: #fff;
    font-weight: 500;
}



.pay-legal-terms a:hover {
    color: var(--cyan); /* При наведении подсвечиваем вашим фирменным голубым */
    text-decoration-color: var(--cyan);
}

.prog-track {
    height: 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
}

.prog-fill {
    height: 100%;
    background: var(--cyan);
    width: 0%;
    transition: width 1s cubic-bezier(0.4,0,0.2,1);
    box-shadow: 0 0 10px var(--cyan);
    border-radius: 6px;
}

.prog-detail {
    font-size: 15px;
    color: var(--text-muted);
    font-weight: 300;
    min-height: 24px;
}

.prog-code-box {
    margin-top: 28px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px;
    font-family: var(--mono);
    font-size: 14px;
    color: var(--text-muted);
    text-align: center;
    letter-spacing: 0.08em;
}

.report-wrapper { width: 100%; }
.rep-timer-banner { background: rgba(0,229,255,0.03); border: 1px dashed rgba(0,229,255,0.2); border-radius: 10px; padding: 14px 20px; margin-bottom: 28px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }


.rep-timer-text { font-size: 15px; color: var(--text-muted); font-weight: 300; line-height: 1.5; flex: 1; }
.rep-timer-countdown { font-family: var(--mono); font-size: 18px; color: var(--cyan); font-weight: 500; letter-spacing: 0.05em; flex-shrink: 0; }

/* --- Дисклеймер в отчете --- */
.rep-disclaimer {
    background: rgba(0,229,255,0.03);
    border: 1px dashed rgba(0,229,255,0.2);
    padding: 16px 20px;
    margin-bottom: 32px;
    font-size: 12px; /* Уменьшили шрифт с 14px до 12px */
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-muted);
    text-align: center;
    border-radius: 10px;
}

/* Стили для ссылки внутри дисклеймера, аналогичные другим подобным блокам */
.rep-disclaimer a {
    color: rgba(0, 229, 255, 0.9); /* Аккуратный цвет в общий тон, а не дефолтный синий */
    text-decoration: underline;
    text-decoration-color: rgba(0, 229, 255, 0.3); /* Полупрозрачное подчеркивание */
    text-underline-offset: 3px; /* Сдвигаем линию вниз для читаемости */
    transition: all 0.2s ease;
}

.rep-disclaimer a:hover {
    color: #fff; /* При наведении текст светлеет */
    text-decoration-color: var(--cyan); /* Подчеркивание становится ярким фирменным цветом */
}

.rep-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid rgba(0,229,255,0.1); }
.rep-channel { font-size: 32px; font-weight: 500; color: #fff; display: flex; align-items: center; gap: 10px; }
.rep-code-label { font-family: var(--mono); font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; }

.rep-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; margin-bottom: 32px; }
.rep-stats-grid .rep-frame { padding: 24px 20px; } /* Широкие колонки + аккуратные боковые отступы */

.rep-frame { background: rgba(10,25,35,0.5); border: 1px solid rgba(0,229,255,0.15); border-radius: 14px; padding: 28px; margin-bottom: 24px; backdrop-filter: blur(5px); }
.rep-frame-half { margin-bottom: 0; height: 100%; }
.stat-lab { font-family: var(--mono); font-size: 12px; color: var(--text-muted); text-transform: uppercase; margin-bottom: 12px; letter-spacing: 0.05em; white-space: nowrap; }
.stat-val { font-family: var(--mono); font-size: 24px; color: #fff; font-weight: 500; letter-spacing: -0.5px; white-space: nowrap; }

.rep-slabel { font-family: var(--mono); font-size: 14px; letter-spacing: 0.15em; color: var(--cyan); text-transform: uppercase; margin-bottom: 24px; border-bottom: 1px solid rgba(0,229,255,0.1); padding-bottom: 16px; opacity: 0.9; }
.rep-row { display: flex; flex-direction: column; gap: 8px; padding: 16px 0; border-bottom: 1px solid rgba(0,229,255,0.05); }
.rep-row:last-child { border-bottom: none; padding-bottom: 0; }
.rep-key { font-family: var(--mono); font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.rep-val { font-size: 16px; color: var(--text-main); font-weight: 300; line-height: 1.6; }
.rep-val-accent { color: var(--cyan); font-weight: 400; }
ul.rep-list { list-style: none; font-size: 16px; font-weight: 300; line-height: 1.6; color: var(--text-main); }
ul.rep-list li { margin-bottom: 16px; display: flex; align-items: flex-start; }
ul.rep-list li:last-child { margin-bottom: 0; }
ul.rep-list li .icon { color: var(--cyan); margin-right: 14px; font-weight: bold; flex-shrink: 0; }
.rep-grid-2 { display: flex; flex-direction: column; gap: 24px; margin-bottom: 24px; }
@media (min-width: 640px) { .rep-row { flex-direction: row; gap: 28px; } .rep-key { width: 180px; flex-shrink: 0; padding-top: 2px; } .rep-grid-2 { display: grid; grid-template-columns: 1fr 1fr; } }
.rep-actions { display: flex; justify-content: center; margin-bottom: 32px; }

.btn-pdf { font-family: var(--mono); font-size: 15px; color: var(--cyan); background: transparent; border: 1px solid rgba(0,229,255,0.35); border-radius: 12px; padding: 14px 28px; cursor: pointer; letter-spacing: 0.08em; transition: all 0.25s ease; display: flex; align-items: center; gap: 10px; }
.btn-pdf:hover:not(:disabled) { background: rgba(0,229,255,0.06); border-color: rgba(0,229,255,0.7); box-shadow: 0 0 16px rgba(0,229,255,0.1); }
.btn-pdf:disabled { opacity: 0.4; cursor: not-allowed; }

.error-icon { font-size: 56px; text-align: center; margin-bottom: 24px; }
.error-title { font-family: var(--mono); font-size: 18px; color: #ff6b6b; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; text-align: center; }
.error-body { font-size: 16px; color: var(--text-muted); font-weight: 300; line-height: 1.7; margin-bottom: 28px; text-align: center; }
.error-paid-notice { background: rgba(0,229,255,0.04); border: 1px dashed rgba(0,229,255,0.2); border-radius: 12px; padding: 18px 24px; margin-bottom: 32px; font-size: 16px; color: rgba(0,229,255,0.8); font-weight: 300; line-height: 1.6; text-align: center; }
.error-input-wrap { display: flex; width: 100%; background: rgba(10,25,35,0.6); border: 1px solid rgba(0,229,255,0.2); border-radius: 14px; padding: 8px; margin-bottom: 28px; transition: all 0.3s ease; }
.error-input-wrap:focus-within { border-color: rgba(0,229,255,0.5); box-shadow: 0 0 16px rgba(0,229,255,0.08); }
.error-input-wrap input { flex: 1; background: transparent; border: none; outline: none; font-family: var(--mono); font-size: 18px; color: #fff; padding: 16px 18px; letter-spacing: 0.02em; min-width: 0; }
.error-input-wrap input::placeholder { color: rgba(138,166,181,0.4); }
.btn-retry-scan { font-family: var(--mono); font-size: 15px; font-weight: 500; color: #020609; background: var(--cyan); border: none; border-radius: 12px; height: 56px; padding: 0 28px; cursor: pointer; text-transform: uppercase; letter-spacing: 0.06em; transition: all 0.25s ease; flex-shrink: 0; white-space: nowrap; }
.btn-retry-scan:hover:not(:disabled) { background: #fff; box-shadow: 0 0 12px rgba(255,255,255,0.4); }
.btn-retry-scan:disabled { opacity: 0.4; cursor: not-allowed; }
.error-support-block { border-top: 1px solid rgba(0,229,255,0.08); padding-top: 28px; text-align: center; }
.error-support-title { font-family: var(--mono); font-size: 14px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
.error-support-text { font-size: 16px; color: var(--text-main); font-weight: 300; line-height: 1.7; }
.error-support-text a { color: var(--cyan); text-decoration: none; font-weight: 500; }
.error-support-text a:hover { text-decoration: underline; }
.error-support-code { margin-top: 14px; font-family: var(--mono); font-size: 13px; color: var(--text-muted); letter-spacing: 0.1em; }
.error-support-code strong { color: var(--text-main); }

/* --- СТАТИЧНЫЕ СТРАНИЦЫ (Оферта, Приватность) --- */
.static-content { background: rgba(10,25,35,0.55); border: 1px solid rgba(0,229,255,0.15); border-radius: 20px; padding: 48px; backdrop-filter: blur(10px); line-height: 1.7; font-size: 18px; color: var(--text-main); font-weight: 300; width: 100%; text-align: left; }
.static-content h1 { font-family: var(--mono); font-size: 28px; color: var(--cyan); margin-bottom: 32px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; }
.static-content h2 { font-size: 22px; color: #fff; margin: 40px 0 20px; font-weight: 500; }
.static-content p { margin-bottom: 18px; color: var(--text-muted); }
.static-content strong { color: var(--text-main); }
.static-content a { color: var(--cyan); text-decoration: none; }
.static-content a:hover { text-decoration: underline; }

/* --- ЕДИНЫЙ ФУТЕР --- */
.page-footer { margin-top: 80px; display: flex; flex-direction: column; align-items: center; gap: 12px; position: relative; z-index: 10; width: 100%; max-width: 680px; }
.footer-text { font-size: 14px; color: var(--text-muted); font-weight: 300; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.footer-text a.dev-link { color: var(--text-main); font-weight: 400; text-decoration: none; transition: color 0.2s; }
.footer-text a.dev-link:hover { color: var(--cyan); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: inherit; text-decoration: underline; text-decoration-color: rgba(138, 166, 181, 0.4); text-underline-offset: 4px; transition: color 0.2s; cursor: pointer; }
.footer-links a:hover { color: var(--text-main); }

@media (max-width: 640px) {
    body { padding-top: 8vh; }
    .logo-subtitle { font-size: 20px; }
    .logo-desc { font-size: 16px; }

    .input-container { padding: 6px; } /* Уменьшаем толщину фона вокруг инпута и кнопки */
    .input-container input {
        padding: 10px 12px; /* Уменьшаем боковые отступы внутри поля ввода */
        font-size: 15px;    /* Делаем моноширинный шрифт чуть компактнее */
        text-overflow: ellipsis; /* На самых крошечных экранах добавит аккуратное многоточие */
    }
    .btn-start {
        width: 135px;       /* Сужаем кнопку, чтобы отдать место инпуту */
        font-size: 12px;    /* Текст "СКАНИРОВАТЬ" отлично читается и в 12px */
        height: 52px;
    }

    .brand-icon { width: 44px; height: 44px; }
    .logo-mark { font-size: 40px; }


    /* Карусель на мобильных (кнопки поверх карточки) */
    .carousel-wrapper { position: relative; gap: 0; }

    .slider-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%); /* Выравнивание по центру */
        background: rgba(10, 25, 35, 0.95);
        border-radius: 50%;
        width: 48px;
        height: 48px;
        padding: 0;
        z-index: 10;
        border: 1px solid rgba(0, 229, 255, 0.3);
        box-shadow: 0 4px 12px rgba(0,0,0,0.5); /* Добавляем тень для отрыва от текста */
    }

    /* ИСПРАВЛЕНИЕ БАГА С ПРЫЖКОМ: сохраняем translateY при тапе! */
    .slider-btn:hover, .slider-btn:active {
        transform: translateY(-50%) scale(0.95);
        opacity: 1;
    }

    .slider-btn.btn-prev { left: -14px; }
    .slider-btn.btn-next { right: -14px; }
    .slider-btn svg { width: 26px; height: 26px; }

    .example-card, .review-card { padding: 24px; }

    .ex-header { font-size: 18px; }

    .ex-body, .rev-body { font-size: 16px; }

    .pay-card, .progress-card, .error-card, .static-content { padding: 28px 24px; }
    .pay-price { font-size: 44px; }
    .pay-channel-name { font-size: 24px; }

    .rep-channel { font-size: 24px; }
    .stat-val { font-size: 26px; }
    .rep-header { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* --- PDF БЛОК --- */
#pdf-print { display: none; font-family: 'DM Sans', Arial, sans-serif; background: #ffffff; color: #111111; padding: 24px 28px; width: 700px; }
#pdf-print .pdf-source { font-size: 11px; color: #888; letter-spacing: 0.1em; text-align: center; margin-bottom: 4px; }
#pdf-print .pdf-source a { color: #007a8a; text-decoration: underline; text-underline-offset: 3px; }
#pdf-print .pdf-channel { font-size: 30px; font-weight: 700; color: #007a8a; text-align: center; margin-bottom: 4px; }
#pdf-print .pdf-code { font-size: 11px; color: #aaa; letter-spacing: 0.1em; text-transform: uppercase; text-align: center; margin-bottom: 10px; }
#pdf-print .pdf-disclaimer { font-size: 11px; color: #777; text-align: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 2px solid #00b8cc; line-height: 1.5; font-style: italic; }
#pdf-print .pdf-stats { display: flex; gap: 12px; margin-bottom: 20px; }
#pdf-print .pdf-stat { flex: 1; border: 1px solid #d8f0f5; border-radius: 8px; padding: 12px; text-align: center; }
#pdf-print .pdf-stat-label { font-size: 10px; color: #888; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
#pdf-print .pdf-stat-val { font-size: 26px; font-weight: 700; color: #007a8a; }

#pdf-print .pdf-section { margin-bottom: 14px; border: 1px solid #e0f0f5; border-radius: 8px; overflow: hidden; page-break-inside: avoid; break-inside: avoid; }
#pdf-print .pdf-section-title { background: #f0fafc; padding: 8px 14px; font-size: 12px; font-weight: 700; color: #007a8a; text-transform: uppercase; letter-spacing: 0.15em; }
#pdf-print .pdf-row { display: flex; padding: 8px 14px; border-top: 1px solid #f0f7fa; page-break-inside: avoid; break-inside: avoid; }
#pdf-print .pdf-row-key { font-size: 11px; font-weight: 600; color: #555; text-transform: uppercase; letter-spacing: 0.05em; width: 140px; flex-shrink: 0; padding-top: 2px; line-height: 1.5; }
#pdf-print .pdf-row-val { font-size: 13px; color: #1a1a1a; line-height: 1.6; flex: 1; }
#pdf-print .pdf-row-val.accent { color: #007a8a; font-weight: 500; }
#pdf-print .pdf-two-col { display: flex; gap: 12px; margin-bottom: 14px; }
#pdf-print .pdf-half { flex: 1; border: 1px solid #e0f0f5; border-radius: 8px; overflow: hidden; min-width: 0; page-break-inside: avoid; break-inside: avoid; }
#pdf-print .pdf-list { list-style: none; padding: 10px 14px; margin: 0; }
#pdf-print .pdf-list li { font-size: 13px; color: #1a1a1a; line-height: 1.5; margin-bottom: 7px; padding-left: 14px; position: relative; page-break-inside: avoid; break-inside: avoid; }

#pdf-print .pdf-list li::before { content: '—'; position: absolute; left: 0; color: #007a8a; font-weight: 700; }
#pdf-print .pdf-list li:last-child { margin-bottom: 0; }


/* --- ЧЕКБОКС СОГЛАСИЯ НА ОПЛАТУ --- */
.pay-consent-wrap {
    margin-bottom: 24px;
}


/* --- ЧЕКБОКС С ОБТЕКАНИЕМ ТЕКСТОМ --- */
.pay-consent-label {
    display: flow-root; /* Магия: заставляет фон и рамку корректно обтекать floated-элемент */
    cursor: pointer;

    /* Визуальные настройки */
    padding: 12px 16px; /* Компактные отступы */
    background: rgba(0, 229, 255, 0.02);
    border: 1px solid rgba(0, 229, 255, 0.1);
    border-radius: 12px;
    transition: border-color 0.2s ease;
}

.pay-consent-label:hover {
    border-color: rgba(0, 229, 255, 0.3);
}

.pay-consent-label input[type="checkbox"] {
    float: left; /* <-- ВКЛЮЧАЕМ ОБТЕКАНИЕ: чекбокс всплывает влево */
    margin-right: 12px; /* Отступ справа от квадратика, чтобы текст не прилипал */
    margin-top: 2px;    /* Вертикальная юстировка под первую строку текста */

    /* Стили самого квадратика (без изменений) */
    appearance: none;
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    min-width: 24px;
    border: 2px solid rgba(0, 229, 255, 0.4);
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Состояние выбранного чекбокса (без изменений) */
.pay-consent-label input[type="checkbox"]:checked {
    background: var(--cyan);
    border-color: var(--cyan);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='%23020609' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.485 1.431a1.473 1.473 0 0 0-2.104 0L6.617 6.984 4.115 4.483a1.473 1.473 0 0 0-2.084 2.084l3.56 3.56a1.473 1.473 0 0 0 2.084 0l5.81-5.81a1.473 1.473 0 0 0 0-2.084z'/%3E%3C/svg%3E");
    background-size: 14px;
    background-repeat: no-repeat;
    background-position: center;
}

.pay-consent-text {
    display: block; /* Текст становится поточным, огибая чекбокс */
    font-family: var(--sans);
    font-size: 10px; /* Мелкий шрифт */
    color: rgba(138, 166, 181, 0.7);
    line-height: 1.4;
}

.pay-consent-text a {
    color: rgba(138, 166, 181, 0.9);
    text-decoration: underline;
    text-decoration-color: rgba(138, 166, 181, 0.4);
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}
.pay-consent-text a:hover {
    color: var(--cyan);
    text-decoration-color: var(--cyan);
}





/* --- БЛОК ЗАКАЗОВ НА ГЛАВНОЙ --- */
.user-orders-block {
    width: 100%;
    max-width: 560px;
    margin-bottom: 28px;
}
.user-orders-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 10px;
}
.user-order-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(10, 25, 35, 0.4);
    border: 1px solid rgba(0, 229, 255, 0.12);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-main);
    margin-bottom: 8px;
    transition: border-color 0.2s, background 0.2s;
}
.user-order-item:hover {
    border-color: rgba(0, 229, 255, 0.4);
    background: rgba(10, 25, 35, 0.6);
}
.uoi-channel { font-size: 15px; font-weight: 500; flex: 1; }
.uoi-code { font-family: var(--mono); font-size: 12px; color: var(--text-muted); letter-spacing: 0.08em; }
.uoi-timer { font-family: var(--mono); font-size: 12px; color: var(--cyan); min-width: 58px; text-align: right; }

/* === Shake + подсветка чекбокс-блока при ошибке === */
.pay-consent-label.consent-error {
    border-color: rgba(255, 90, 90, 0.55);
    background: rgba(255, 60, 60, 0.05);
    box-shadow: 0 0 0 3px rgba(255, 80, 80, 0.08);
    animation: consent-shake 0.42s cubic-bezier(.36,.07,.19,.97) both;
}
.pay-consent-label.consent-error input[type="checkbox"] {
    border-color: rgba(255, 100, 100, 0.7);
}

@keyframes consent-shake {
    10%, 90%  { transform: translateX(-2px); }
    20%, 80%  { transform: translateX(4px);  }
    30%, 50%, 70% { transform: translateX(-5px); }
    40%, 60%  { transform: translateX(5px);  }
    100%      { transform: translateX(0); }
}

/* === Инлайн-сообщение под чекбоксом === */
.consent-error-msg {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease, margin-top 0.25s ease;
    margin-top: 0;
    font-family: var(--mono);
    font-size: 11px;
    color: rgba(255, 110, 110, 0.85);
    letter-spacing: 0.04em;
    display: flex;
    align-items: center;
    gap: 6px;
}
.consent-error-msg.visible {
    max-height: 40px;
    opacity: 1;
    margin-top: 10px;
}
.consent-error-msg::before {
    content: '';
    display: inline-block;
    width: 5px; height: 5px;
    border-radius: 50%;
    background: rgba(255, 100, 100, 0.8);
    flex-shrink: 0;
}

/* === Лёгкий nudge на кнопке === */
@keyframes btn-nudge {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-3px); }
    75%      { transform: translateX(3px); }
}
.btn-pay-primary.btn-nudge {
    animation: btn-nudge 0.25s ease;
}

/* === Визуальный "disabled" через класс (не атрибут) === */
.btn-pay-primary.btn-not-agreed {
    opacity: 0.38;
    cursor: pointer;
}

/* --- ПАРТНЁРСКАЯ ССЫЛКА --- */
.partner-discount-banner {
    width: 100%;
    max-width: 560px;
    margin-bottom: 20px;
    padding: 12px 20px;
    background: rgba(0, 229, 255, 0.06);
    border: 1px solid rgba(0, 229, 255, 0.25);
    border-radius: 12px;
    font-family: var(--mono);
    font-size: 14px;
    color: var(--cyan);
    text-align: center;
    letter-spacing: 0.03em;
}

.price-old {
    text-decoration: line-through;
    color: var(--text-muted);
    margin-right: 6px;
}
