* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #0a0612;
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #fff;
    overflow-x: hidden;
}

/* Фон: задаётся из PHP (index.php ищет файл в img). Fallback — тёмный цвет */
.app {
    position: relative;
    width: 100%;
    max-width: 430px;
    min-height: 100vh;
    margin: 0 auto;
    padding: 24px 20px 32px;
    background-color: #0a0612;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (max-width: 480px) {
    .app {
        max-width: none;
        padding: 20px 16px 28px;
    }
}

/* Header */
.header {
    text-align: center;
    padding: 0 0 20px;
}

.logo {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 6px;
}

.subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

/* Phone mockup */
.phone-section {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.phone-mockup {
    width: 280px;
    height: 480px;
    border-radius: 32px;
    padding: 12px;
    background: linear-gradient(145deg, #1a1520, #0f0c14);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 2px rgba(255, 255, 255, 0.06);
}

.phone-screen {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    background: #0f0f1a;
}

.phone-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.phone-video-controls {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 5;
}

.phone-video-controls button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.phone-video-controls button:hover {
    background: rgba(0, 0, 0, 0.85);
}

.phone-video-controls button svg {
    width: 20px;
    height: 20px;
}

/* Access panel — тёмная карточка с прогрессом */
.access-panel {
    background: rgba(18, 12, 24, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
}

.access-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 14px;
    text-align: center;
}

/* Градиентный прогресс-бар: красный → оранжевый → зелёный → синий → фиолетовый */
.progress-bar-wrap {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 14px;
}

.progress-bar {
    height: 100%;
    border-radius: 5px;
    background: linear-gradient(90deg, #e63946, #f4a261, #2a9d8f, #457b9d, #7b2cbf);
    transition: width 0.35s ease;
}

/* 7 кружков прогресса */
.progress-circles {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.progress-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.progress-circle.done {
    background: rgba(100, 200, 255, 0.35);
    border-color: rgba(100, 200, 255, 0.6);
    color: #fff;
}

.progress-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    margin-bottom: 8px;
}

.share-hint {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    line-height: 1.4;
}

/* Текст «Уже открыли доступ» и кнопка с градиентом и свечением */
.share-section {
    text-align: center;
    margin-bottom: 20px;
}

.share-section-stats {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 14px;
    font-weight: 500;
}

/* Кнопка «Поделиться» — твой вариант + доработки */
.btn-share {
    margin: 10px auto;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 340px;
    padding: 18px 30px;
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.2);
    background-image: linear-gradient(90deg, rgb(6 4 4), rgb(0 0 0) 45%, rgb(231 7 7 / 85%) 100%), url(img/background.png);
    background-size: 100% 100%, cover;
    background-repeat: no-repeat, no-repeat;
    background-position: center, center;
    border: none;
    border-radius: 999px;
    backdrop-filter: blur(8px);
    text-decoration: none;
    cursor: pointer;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    z-index: 1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06),
                0 0 12px rgb(231 71 0 / 18%),
                0 0 28px rgb(49 0 0 / 0.35),
                0 0 40px rgb(41 19 13 / 0.28),
                0 0 0 1px rgb(123 8 8 / 55%);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Неоновый ореол в тон кнопки (оранжево-красный) */
.btn-share::before {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgb(100 20 0), rgb(200 50 0), rgb(120 0 0));
    z-index: -1;
    filter: blur(12px);
    opacity: 0.45;
    transition: filter 0.25s ease, opacity 0.25s ease;
}

.btn-share:hover {
    transform: scale(1.03);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08),
                0 0 18px rgb(231 71 0 / 28%),
                0 0 38px rgb(80 0 0 / 0.4),
                0 0 55px rgb(50 15 10 / 0.32),
                0 0 0 1px rgb(180 30 30 / 72%);
}

.btn-share:hover::before {
    filter: blur(14px);
    opacity: 0.6;
}

.btn-share:active {
    transform: scale(1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04),
                0 0 10px rgb(231 71 0 / 18%),
                0 0 25px rgb(49 0 0 / 0.3),
                0 0 0 1px rgb(123 8 8 / 55%);
}

.btn-share-text {
    white-space: nowrap;
}

.btn-share-icon {
    width: 26px;
    height: 26px;
    object-fit: contain;
    flex-shrink: 0;
}

.steps-footer {
    margin-top: 12px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Кнопка скачивания (после 7 шагов) */
.download-section {
    text-align: center;
    margin-bottom: 24px;
}

.btn-download {
    display: inline-block;
    padding: 18px 40px;
    background: linear-gradient(135deg, #2a9d8f, #457b9d);
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 999px;
    text-decoration: none;
    box-shadow: 0 8px 28px rgba(42, 157, 143, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(42, 157, 143, 0.5);
}

/* Footer */
.footer {
    margin-top: 50px;
    padding-top: 24px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-copy {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
}

.footer-year {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
}

/* Оверлей «Скачивание...» */
.download-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.download-overlay.is-visible {
    display: flex;
}

.download-overlay-box {
    padding: 24px 32px;
    background: rgba(20, 15, 28, 0.95);
    border-radius: 16px;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
