/* ════════════════════════════════════════════════════════════
   Lunessa — стили онбординга (onboarding.html). Перенесено из legacy
   style.css (коммит 7493c69). Старые токены замаплены на новую палитру.
   ════════════════════════════════════════════════════════════ */
:root {
    --cream-paper: var(--bg-color);
    --ivory-card: var(--card-bg);
    --deep-ink: var(--text-main);
    --soft-ink: var(--text-muted);
    --muted-gold: var(--accent-gold);
    --gold: var(--accent-gold);
    --deep-gold: #8a7a52;
    --hairline: var(--border-color);
    --hairline-strong: rgba(138, 122, 82, 0.35);
    --r-small: 12px;
    --font-display: 'Perpetua Antiqua', 'Georgia', serif;
    --font-body: 'Georgia', serif;
}

/* ═══════════ Экран: ОНБОРДИНГ ═══════════ */
.onb-screen {
    /* Перекрывает контейнер целиком, без bottom-nav */
    position: absolute;
    inset: 0;
    padding: 24px 22px calc(80px + env(safe-area-inset-bottom));
    background: var(--cream-paper);
    z-index: 5;
}
.onb-screen.active {
    display: flex;
    flex-direction: column;
}

.onb-top {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px;
}
.onb-counter {
    font-family: var(--font-body);
    font-size: 10px;
    letter-spacing: 0.18em;
    color: var(--deep-gold);
    text-transform: uppercase;
}
.onb-progress {
    height: 2px;
    background: var(--hairline);
    border-radius: 1px;
    overflow: hidden;
    margin-bottom: 28px;
}
.onb-progress-bar {
    height: 100%;
    background: var(--muted-gold);
    width: 11%;
    transition: width 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.onb-step {
    display: none;
    flex: 1;
    flex-direction: column;
    justify-content: space-between;
}
.onb-step.active {
    display: flex;
    animation: onb-step-enter 0.4s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}
@keyframes onb-step-enter {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

.onb-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 20px 0;
}
.onb-content.centered { text-align: center; align-items: center; }
.onb-glyph {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--muted-gold);
    margin-bottom: 8px;
}
.onb-step h1 {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 32px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--deep-ink);
}
.onb-step p {
    font-family: var(--font-display);
    font-size: 16px;
    line-height: 1.55;
    color: var(--soft-ink);
}
.onb-step p.onb-question {
    color: var(--deep-ink);
    margin-top: 8px;
}
.onb-step p.onb-lead {
    font-style: italic;
    padding-left: 14px;
    border-left: 1px solid var(--muted-gold);
    margin: 8px 0;
}
.onb-hint {
    font-family: var(--font-display) !important;
    font-style: italic;
    font-size: 13px !important;
    color: var(--soft-ink) !important;
    opacity: 0.75;
}
.onb-hint.is-error {
    color: #8A4A3C !important;
    opacity: 1;
}

.onb-input {
    width: 100%;
    background: var(--ivory-card);
    border: 0.5px solid var(--hairline-strong);
    border-radius: var(--r-small);
    padding: 14px 16px;
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--deep-ink);
    outline: none;
    transition: border-color 0.2s ease;
}
.onb-input:focus { border-color: var(--muted-gold); }
.onb-input.large {
    font-size: 32px;
    text-align: center;
    letter-spacing: 0.04em;
    padding: 20px;
}
.onb-input.small {
    width: 60px;
    text-align: center;
    font-size: 20px;
    padding: 12px 8px;
}
.onb-input.small.wide { width: 90px; }
.onb-date { display: flex; gap: 8px; }

.onb-field-divider {
    height: 0.5px;
    background: var(--hairline);
    margin: 22px -22px 18px;
}

.onb-subtitle {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 22px;
    color: var(--deep-ink);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.onb-radios { display: flex; flex-direction: column; gap: 16px; }
.onb-radio {
    display: flex; flex-direction: column; align-items: flex-start;
    width: 100%;
    padding: 14px 18px;
    background: var(--ivory-card);
    border: 1.5px solid var(--hairline);
    border-radius: var(--r-small);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.onb-radio:hover { background-color: rgba(201, 168, 106, 0.06); }
.onb-radio.selected {
    border-color: #C9A86A;
    background-color: rgba(201, 168, 106, 0.08);
}

/* Подтверждение выбора — раскрывается под опцией */
.onb-radio-confirm {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding-top: 0;
    padding-bottom: 0;
    font-family: var(--font-body);
    font-size: 13px;
    color: #5B554C;
    line-height: 1.5;
    /* close: быстро, без задержки */
    transition:
        max-height 200ms ease-out,
        opacity 200ms ease-out,
        padding-top 200ms ease-out,
        padding-bottom 200ms ease-out;
}
.onb-radio.selected .onb-radio-confirm {
    max-height: 60px;
    opacity: 1;
    padding-top: 8px;
    padding-bottom: 4px;
    /* open: после того, как старое подтверждение схлопнется */
    transition:
        max-height 250ms ease-out 250ms,
        opacity 200ms ease-out 350ms,
        padding-top 250ms ease-out 250ms,
        padding-bottom 250ms ease-out 250ms;
}
.onb-radio-check {
    color: var(--gold);
    margin-right: 6px;
}
.onb-radio-confirm--note {
    font-style: italic;
}
.onb-radio-title {
    font-family: var(--font-display);
    font-size: 15px;
    color: var(--deep-ink);
}
.onb-radio-meta {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--soft-ink);
}

.onb-loading { display: flex; gap: 8px; margin-bottom: 14px; }
.onb-loading .loading-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--muted-gold);
    opacity: 0.3;
    animation: loading-pulse 1.4s ease-in-out infinite;
}
.onb-loading .loading-dot:nth-child(2) { animation-delay: 0.2s; }
.onb-loading .loading-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes loading-pulse {
    0%, 100% { opacity: 0.3; transform: scale(0.85); }
    50%      { opacity: 1; transform: scale(1); }
}

/* ─── Шаг 1: приветствие Lunessa ─── */
.onb-welcome {
    /* Звезда на ~30% от верха, не вертикальный центр */
    justify-content: flex-start !important;
    align-items: center;
    text-align: center;
    padding-top: 30vh;
    gap: 0;
}
.onb-star {
    color: var(--gold);
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    /* fade-in 0–400ms + бесконечный pulse opacity 1 ↔ 0.75 с задержкой 400ms */
    animation:
        star-appear 400ms ease-out both,
        star-pulse 3s ease-in-out 400ms infinite;
    transform-origin: center;
}
.onb-welcome-title {
    font-family: var(--font-display) !important;
    font-size: 32px !important;
    font-weight: 300 !important;
    line-height: 1.2 !important;
    color: #2A2520;
    margin-top: 40px;
    letter-spacing: -0.01em;
    animation: text-appear 400ms ease-out 400ms both;
}
.onb-welcome-sub {
    font-family: var(--font-display) !important;
    font-style: italic;
    font-size: 17px !important;
    line-height: 1.5 !important;
    color: #5B554C !important;
    opacity: 0;
    margin-top: 24px;
    animation: text-appear 400ms ease-out 700ms both;
}

@keyframes star-appear {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes star-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.75; }
}
@keyframes text-appear {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* На первом шаге прячем счётчик и прогресс-бар */
.onb-screen.step-first .onb-top,
.onb-screen.step-first .onb-progress { visibility: hidden; }

/* ─── Шаг 9: время утреннего пуша ─── */
.onb-push-time {
    /* варианта .onb-time-field: чуть шире, со стрелкой справа от цифр */
    width: 160px;
    margin: 16px auto 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.onb-push-time .onb-time-display {
    font-size: 28px;
}
.onb-time-arrow {
    font-size: 14px;
    color: var(--gold);
    opacity: 0.5;
    line-height: 1;
}

.onb-push-default {
    text-align: center;
    margin-top: 6px;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 12px;
    color: #5B554C;
    opacity: 0.7;
}
.onb-push-default.is-hidden { display: none; }

.onb-push-very-early {
    text-align: center;
    margin-top: 6px;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 12px;
    color: #8A4A3C;
    opacity: 0.85;
}
.onb-push-very-early[hidden] { display: none; }

.onb-push-hint {
    text-align: center;
    margin-top: 16px;
    font-family: var(--font-body) !important;
    font-style: italic;
    font-size: 14px !important;
    color: #5B554C !important;
    opacity: 1 !important;
}
.onb-push-subhint {
    text-align: center;
    margin-top: 8px;
    font-family: var(--font-body) !important;
    font-style: normal;
    font-size: 12px !important;
    color: #5B554C !important;
    opacity: 0.6 !important;
}

/* ─── Шаг 10: завершение онбординга ─── */
.onb-finale {
    justify-content: center !important;
    align-items: center;
    text-align: center;
    gap: 0;
}
.onb-finale-star {
    width: 64px;
    height: 64px;
    color: var(--gold);
    animation:
        star-appear 500ms ease-out both,
        star-pulse 3s ease-in-out 500ms infinite;
    transform-origin: center;
}
.onb-finale-title {
    font-family: var(--font-display) !important;
    font-size: 28px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    color: var(--deep-ink);
    margin-top: 32px;
    letter-spacing: -0.01em;
    animation: text-appear 400ms ease-out 400ms both;
}
.onb-finale-sub {
    font-family: var(--font-display) !important;
    font-style: italic;
    font-size: 17px !important;
    line-height: 1.5 !important;
    color: #5B554C !important;
    opacity: 0;
    margin-top: 12px;
    max-width: 320px;
    animation: text-appear 400ms ease-out 700ms both;
}
.onb-finale-divider {
    width: 40px;
    height: 1px;
    background: var(--gold);
    margin: 32px auto 16px;
    opacity: 0;
    animation: fade-only 300ms ease-out 1000ms both;
}
.onb-finale-sig {
    font-family: var(--font-display) !important;
    font-style: italic;
    font-size: 14px !important;
    color: #5B554C !important;
    opacity: 0;
    animation: fade-only 300ms ease-out 1200ms both;
}

/* На шаге 10 счётчик прячем, прогресс — полностью золотой */
.onb-screen.step-last .onb-counter { visibility: hidden; }
.onb-screen.step-last .onb-progress-bar { width: 100% !important; }

/* Кнопка «Открыть карту» по центру, выше — 80px от низа, fade-up */
.onb-screen.step-last .onb-nav-next {
    bottom: 48px; /* визуально ~80px от низа (48 + 32 padding) */
    animation: nav-appear-centered 400ms ease-out 1500ms both;
}

/* Fade-out онбординга при переходе на feed (300ms cross-fade) */
.onb-screen.is-fading-out {
    transition: opacity 300ms ease-out;
    opacity: 0;
    pointer-events: none;
}

/* ─── Шаг 8: первый взгляд ─── */
.onb-first-glance {
    justify-content: flex-start !important;
    padding-top: 15vh;
    align-items: stretch;
    gap: 0;
}

.fg-glyphs {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 28px;
    animation: fg-glyphs-appear 500ms ease-out both;
}
.fg-glyph-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.fg-glyph {
    font-family: "Noto Sans Symbols", var(--font-display);
    font-size: 44px;
    color: var(--gold);
    line-height: 1;
}
.fg-glyph-label {
    font-family: var(--font-body) !important;
    font-size: 11px !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #5B554C !important;
    opacity: 1 !important;
}

.fg-kicker {
    text-align: center;
    display: block;
    margin-bottom: 16px;
    animation: text-appear 400ms ease-out 400ms both;
}

.fg-title {
    font-family: var(--font-display) !important;
    font-size: 28px !important;
    font-weight: 400 !important;
    line-height: 1.3 !important;
    color: var(--deep-ink);
    letter-spacing: -0.01em;
    animation: text-appear 400ms ease-out 700ms both;
}
.fg-title .sign { color: var(--deep-gold); }

.fg-quote {
    margin-top: 18px;
    animation: text-appear 400ms ease-out 1100ms both;
}

.fg-divider {
    width: 40px;
    height: 1px;
    background: var(--gold);
    margin: 24px auto;
    opacity: 0;
    animation: fade-only 300ms ease-out 1400ms both;
}

.fg-promise {
    text-align: center;
    font-family: var(--font-body) !important;
    font-style: normal !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    color: #5B554C !important;
    opacity: 1 !important;
    animation: text-appear 400ms ease-out 1600ms both;
}

@keyframes fg-glyphs-appear {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes fade-only {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* Кнопка "Расскажи больше" — fade-up на шаге 8 */
.onb-screen.step-fg .onb-nav-next {
    animation: text-appear 400ms ease-out 1900ms both;
}

/* ─── Шаг 4: дата рождения (три окошка) ─── */
.onb-step-title {
    font-family: var(--font-display) !important;
    font-size: 28px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    color: var(--deep-ink);
    letter-spacing: -0.01em;
}
.onb-step-hint {
    font-family: var(--font-body) !important;
    font-style: normal !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #5B554C !important;
    opacity: 1 !important;
}
.onb-date-grid {
    position: relative;
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
/* Overlay-input открывает нативный date picker по тапу на любую клетку */
.onb-date-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    border: none;
    background: transparent;
    /* font-size 16+ предотвращает зум на iOS */
    font-size: 16px;
    z-index: 2;
    -webkit-appearance: none;
    appearance: none;
}
.onb-date-cell {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: #FAF6EC;
    border: 1px solid var(--gold);
    border-radius: 12px;
    font-family: var(--font-display);
    font-size: 22px;
    color: var(--deep-ink);
    /* цифры могут быть жирнее, чем нужно по бренду — оставляем default 400 */
}
.onb-date-cell.wide { width: 80px; }
.onb-date-cell:empty::before {
    content: attr(data-ph);
    font-family: var(--font-body);
    font-size: 16px;
    color: #5B554C;
    opacity: 0.4;
}
.onb-date-label {
    margin-top: 10px;
    font-family: var(--font-body) !important;
    font-size: 12px !important;
    color: #5B554C !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 1 !important;
}

/* ─── Шаг 5: время рождения ─── */
.onb-radio--with-input { cursor: pointer; }
.onb-radio--with-input.selected .onb-radio-confirm {
    /* Подтверждение с input-полями выше дефолтного 60px */
    max-height: 220px;
}
.onb-radio-confirm--long { line-height: 1.6; }
.onb-radio--with-input.selected .onb-radio-confirm--long {
    /* Длинный note Не знаю — на 4 строки в узком экране */
    max-height: 160px;
}

.onb-time-field {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 60px;
    background: #FAF6EC;
    border: 1px solid var(--gold);
    border-radius: 12px;
    cursor: pointer;
}
.onb-time-display {
    font-family: var(--font-display);
    font-size: 28px;
    color: var(--deep-ink);
    letter-spacing: 0.02em;
}
.onb-time-display.is-placeholder {
    font-family: var(--font-body);
    font-size: 16px;
    color: #5B554C;
    opacity: 0.4;
}
.onb-time-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    border: none;
    background: transparent;
    font-size: 16px;
    z-index: 2;
    -webkit-appearance: none;
    appearance: none;
}

/* Один time picker — по центру опции */
.onb-radio--with-input .onb-radio-confirm > .onb-time-field {
    margin: 4px auto 4px;
    display: flex;
}

/* Опция "Знаю примерно": От — До */
.onb-time-approx {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
    margin: 4px 0;
}
.onb-time-field-wrap {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}
.onb-time-label {
    font-family: var(--font-body);
    font-size: 12px;
    color: #5B554C;
}
.onb-time-dash {
    font-family: var(--font-display);
    font-size: 22px;
    color: #5B554C;
    align-self: center;
    margin-bottom: 4px;
}
.onb-time-note {
    margin-top: 8px;
    font-family: var(--font-display) !important;
    font-style: italic;
    font-size: 13px !important;
    color: #5B554C !important;
    line-height: 1.5 !important;
    opacity: 1 !important;
}

/* ─── Шаг 6: город рождения (autocomplete) ─── */
.onb-city-field {
    position: relative;
    margin-top: 8px;
}
.onb-city-input {
    /* Базовый .onb-input уже задаёт стили; placeholder — opacity 0.4 */
}
.onb-city-input::placeholder {
    color: #5B554C;
    opacity: 0.4;
}

.onb-city-dropdown {
    margin-top: 6px;
    background: #FAF6EC;
    border: 1px solid var(--gold);
    border-radius: 12px;
    overflow: hidden;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 200ms ease-out, transform 200ms ease-out;
}
.onb-city-dropdown:not([hidden]) {
    opacity: 1;
    transform: translateY(0);
}

.onb-city-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 0.5px solid var(--hairline);
}
.onb-city-option:last-child { border-bottom: none; }
.onb-city-option:hover { background: rgba(201, 168, 106, 0.05); }
.onb-city-option.is-first {
    background: rgba(201, 168, 106, 0.08);
}
.onb-city-option-glyph {
    color: var(--gold);
    font-size: 14px;
    width: 14px;
    text-align: center;
    visibility: hidden;
}
.onb-city-option.is-first .onb-city-option-glyph { visibility: visible; }
.onb-city-option-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.onb-city-option-name {
    font-family: var(--font-display);
    font-size: 16px;
    color: var(--deep-ink);
    line-height: 1.2;
}
.onb-city-option-meta {
    font-family: var(--font-body);
    font-size: 12px;
    color: #5B554C;
    line-height: 1.2;
}

.onb-city-loading,
.onb-city-empty {
    padding: 16px;
    font-family: var(--font-body);
    font-size: 14px;
    color: #5B554C;
    line-height: 1.5;
}
.onb-city-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    font-style: italic;
}
.onb-city-loading-glyph {
    color: var(--gold);
}

/* ─── Текстовая навигация онбординга ─── */
.onb-nav-back,
.onb-nav-next {
    position: absolute;
    bottom: 0;
    background: none;
    border: none;
    display: flex;
    align-items: center;
    min-width: 100px;
    height: 64px;
    padding-bottom: 32px;
}

.onb-nav-back {
    left: 0;
    padding-left: 24px;
    padding-right: 44px;
    font-family: var(--font-body);
    font-size: 14px;
    color: #5B554C;
    opacity: 0.7;
    cursor: pointer;
}
.onb-nav-back.is-hidden { visibility: hidden; pointer-events: none; }
/* Принудительно скрываем при hidden-атрибуте — побеждаем display:flex выше */
.onb-nav-back[hidden],
.onb-nav-next[hidden] { display: none !important; }

.onb-nav-next {
    right: 0;
    padding-right: 24px;
    padding-left: 44px;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 400;
    color: #2A2520;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 300ms ease, transform 100ms ease;
    transform-origin: center right;
}

.onb-nav-arrow {
    color: var(--muted-gold);
    margin-left: 8px;
    display: inline-block;
    transition: transform 150ms ease-out;
}

.onb-nav-next.is-tapped { transform: scale(0.97); }
.onb-nav-next.is-tapped .onb-nav-arrow { transform: translateX(4px); }

.onb-nav-next.is-disabled {
    opacity: 0.3;
    cursor: default;
    pointer-events: none;
}

/* Шаг 9: кнопка «Посмотреть» по центру */
.onb-screen.step-last .onb-nav-next {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    padding-left: 24px;
    padding-right: 24px;
    transform-origin: center;
}
.onb-screen.step-last .onb-nav-next.is-tapped {
    transform: translateX(-50%) scale(0.97);
}

/* Шаг 1: кнопка «Покажи →» по центру, выше (80px от низа экрана),
   тап-зона 200px, шрифт 18px, стрелка сдвигается на 6px за 200ms */
.onb-screen.step-first .onb-nav-next {
    right: auto;
    left: 50%;
    bottom: 48px; /* визуально ~80px от низа (48 + 32 padding-bottom) */
    transform: translateX(-50%);
    transform-origin: center;
    min-width: 200px;
    padding-left: 24px;
    padding-right: 24px;
    font-size: 18px;
    justify-content: center;
    /* stagger fade-up: 1000–1400ms */
    animation: nav-appear-centered 400ms ease-out 1000ms both;
}
.onb-screen.step-first .onb-nav-next.is-tapped {
    transform: translateX(-50%) scale(0.97);
}
.onb-screen.step-first .onb-nav-next .onb-nav-arrow {
    transition: transform 200ms ease-out;
}
.onb-screen.step-first .onb-nav-next.is-tapped .onb-nav-arrow {
    transform: translateX(6px);
}

@keyframes nav-appear-centered {
    from { opacity: 0; transform: translate(-50%, 8px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}


/* ─── Загрузочный оверлей (созвездия) ─── */
.ocl-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: var(--cream, #F5EFE4);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.ocl-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}
/* Явные размеры — flex/flex:1 в Telegram WebView нестабильно даёт 0×0
   на момент первого rAF. Через absolute получаем гарантированный размер. */
.ocl-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 160px);
    display: block;
}
.ocl-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 32px 32px;
    text-align: center;
}
.ocl-label {
    font-family: 'Cormorant Garamond', 'Fraunces', serif;
    font-size: 19px;
    line-height: 1.4;
    color: var(--text-secondary, #8B7355);
    margin: 0 0 20px;
    transition: opacity 0.5s ease;
}
.ocl-dots {
    display: flex;
    gap: 9px;
    justify-content: center;
}
.ocl-dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--muted-gold, #C9A86A);
    animation: ocl-dot-pulse 1.4s ease-in-out infinite;
}
.ocl-dots span:nth-child(2) { animation-delay: 0.22s; }
.ocl-dots span:nth-child(3) { animation-delay: 0.44s; }
@keyframes ocl-dot-pulse {
    0%, 100% { opacity: 0.2; transform: scale(0.75); }
    50%       { opacity: 1;   transform: scale(1);    }
}

/* ─── Главная CTA «Пригласить по ссылке» (Lunessa-star × 2) ───── */
.addc-invite-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 20px 0 6px;
    padding: 14px 24px;
    width: 100%;
    background: var(--muted-gold, #c9a86a);
    color: #1c160e;
    border: none;
    border-radius: 999px;
    font-family: 'Fraunces', 'Cormorant Garamond', serif;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.06s ease, opacity 0.2s ease;
}
.addc-invite-cta:hover { background: #b89657; }
.addc-invite-cta:active { transform: scale(0.98); }
.addc-invite-cta:disabled,
.addc-invite-cta.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.addc-invite-cta-label { line-height: 1; }
.addc-invite-cta-hint {
    margin: 14px 4px 6px;
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.55;
    text-align: center;
}

/* ─── Lunessa-star (inline SVG) ─────────────────────────────── */
.lunessa-star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    line-height: 1;
    flex-shrink: 0;
}
.lunessa-star svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
}

/* ─── Inline «Дальше» на шаге 1 add-circle ────────────────── */
.addc-next-inline {
    display: block;
    width: 100%;
    margin: 28px 0 10px;
    padding: 14px 22px;
    background: var(--muted-gold, #c9a86a);
    color: #1c160e;
    border: none;
    border-radius: 999px;
    font-family: 'Fraunces', 'Cormorant Garamond', serif;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.06s ease, opacity 0.2s ease;
}
.addc-next-inline:hover { background: #b89657; }
.addc-next-inline:active { transform: scale(0.98); }
.addc-next-inline.is-disabled,
.addc-next-inline[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ─── (старый «invite-link» оставлен для обратной совместимости) ─── */
.addc-invite-link {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 22px;
    padding: 14px 16px;
    width: 100%;
    background: rgba(201, 168, 106, 0.08);
    border: 1px solid rgba(201, 168, 106, 0.32);
    border-radius: 20px;
    color: inherit;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.06s ease;
}
.addc-invite-link:hover,
.addc-invite-link:active {
    background: rgba(201, 168, 106, 0.14);
}
.addc-invite-link:active { transform: scale(0.99); }
.addc-invite-icon {
    color: var(--muted-gold, #C9A86A);
    font-size: 18px;
    line-height: 1.2;
    margin-top: 1px;
}
.addc-invite-text { display: flex; flex-direction: column; gap: 4px; }
.addc-invite-title {
    font-family: 'Fraunces', 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.01em;
}
.addc-invite-sub {
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.7;
}

/* ─── Список pending-инвайтов (в circle) ──────────────────── */
.circle-pending {
    margin: 18px 0 10px;
    padding: 14px 16px;
    background: rgba(201, 168, 106, 0.06);
    border: 1px solid rgba(201, 168, 106, 0.22);
    border-radius: 18px;
}
.circle-pending-title {
    font-family: 'Fraunces', 'Cormorant Garamond', serif;
    font-size: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    opacity: 0.6;
    margin: 0 0 10px;
}
.circle-pending-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.circle-pending-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}
.circle-pending-name {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
}
.circle-pending-status {
    font-size: 12px;
    opacity: 0.55;
    margin-right: 4px;
}
.circle-pending-btn {
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.18);
    color: inherit;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
}
.circle-pending-btn + .circle-pending-btn { margin-left: 4px; }
.circle-pending-btn:hover { background: rgba(0, 0, 0, 0.04); }

/* ─── Модалка accept invite ──────────────────────────────── */
