:root {
    --tg-top: 64px; /* база; JS в html уточняет через env(safe-area) для notch. НЕ ставить max(calc(env)) — Safari iOS не вычисляет, padding обнуляется и контент лезет под статусбар */
    --bg-color: #fdfaf3;
    --card-bg: #fffcf6;
    --text-main: #4a453e;
    --text-muted: #8e887d;
    --accent-gold: #b4966a;
    --border-color: #eee7d9;
}

/* Шрифт заголовков. WOFF2 (96 КБ) вместо TTF (441 КБ) — критично для
   слабых VPN-каналов; TTF остаётся фоллбэком для древних браузеров. */
@font-face {
    font-family: 'Perpetua Antiqua';
    src: url('./PerpetuaAntiqua-Italic.woff2') format('woff2'),
         url('./PerpetuaAntiqua-Italic.ttf') format('truetype');
    font-style: normal;
    font-display: swap;
}

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

html {
    overscroll-behavior-y: none;   /* убрать резиновый отскок на краях прокрутки */
}

body {
    font-family: 'Georgia', serif;
    background-color: #f0f0f0;
    color: var(--text-main);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    overscroll-behavior-y: none;   /* дёрганье при достижении низа/верха */
    /* ── app-feel: ведём себя как нативное приложение, не веб-страница ── */
    -webkit-touch-callout: none;            /* iOS: нет меню «Сохранить/Копировать» при long-press */
    -webkit-user-select: none;              /* нет выделения текста */
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent; /* нет серой вспышки при тапе */
}

/* картинки нельзя перетаскивать/сохранять */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    user-drag: none;
    -webkit-touch-callout: none;
}

/* в полях ввода выделение и набор нужны — возвращаем */
input, textarea {
    -webkit-user-select: text;
    user-select: text;
}

.app-container {
    background-color: var(--bg-color);
    width: 100%;
    max-width: 430px;
    margin: 0 auto;   /* явное центрирование — не зависит только от flex body (Telegram Web может переопределять) */
    min-height: 100vh;
    /* отступ сверху под системные кнопки Telegram / статусбар */
    padding: var(--tg-top) 20px 0;
    /* запас под плавающую нав-плашку (≈79px) + safe-area, чтобы последняя
       маленькая плашка ленты целиком выходила над навигацией */
    padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px));
    position: relative;
    box-shadow: 0 0 40px rgba(0,0,0,0.05);
}

/* непрозрачный «колпак» сверху: РЕАЛЬНЫЙ fixed-элемент (не ::before — в Safari
   iOS псевдоэлемент с fixed+transform не перекрывает контент). Скрывает то,
   что при скролле ленты проезжает в зоне статусбара / системных кнопок. */
.top-cap {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--tg-top);
    background: var(--bg-color);
    z-index: 100;
    pointer-events: none;
}
/* На широком экране (ПК) колпак ограничен шириной приложения (как .app-container)
   и центрирован — не растягивается на весь монитор. margin-left без transform. */
@media (min-width: 431px) {
    .top-cap {
        left: 50%;
        right: auto;
        width: 430px;
        margin-left: -215px;
    }
}

/* Блок иконок прилипает к верху при скролле; дата с аватаром уезжает выше */
.sticky-nav {
    position: sticky;
    top: var(--tg-top);
    z-index: 50;
    background: var(--bg-color);
    margin: 0 -20px;        /* фон на всю ширину — скрывает боковые хвосты теней карточек */
    padding: 12px 20px;   /* верх и низ по 12px — иконки симметрично между линиями */
    border-bottom: 1px solid var(--border-color);   /* разделитель над лентой, как над навигацией */
}

/* отступ первой карточки от разделителя шапки (как между карточками) */
.content {
    padding-top: 15px;
}

/* Лента (index): верхняя нав-плашка зафиксирована как шапка → резервируем
   под неё место сверху, чтобы первый элемент ленты (дата) не уезжал под неё. */
body.feed-home .app-container {
    /* старт ленты на ~5px ниже плашки (кремовый зазор сузили с 10 до 5px,
       лента подтянута выше). При скролле контент всё равно уходит ЗА плашку
       (cap под ней), так что «квадрат» у края не возвращается. */
    padding-top: calc(var(--tg-top) + 74px);
}
/* Колпак заводим ПОД плашку: tg-top+64 < её нижний край tg-top+69. При скролле
   контент пропадает ЗА плашкой (её непрозрачный фон маскирует до tg-top+69),
   а не на «плавающей» линии обрезки в креме ниже плашки. На покое кремовый
   зазор ~10px сохраняется (padding-top ленты = tg-top+79). */
body.feed-home .top-cap {
    height: calc(var(--tg-top) + 64px);
}

/* Аватар профиля (справа в блоке даты) */
.avatar {
    width: 54px;   /* +20% от 45 */
    height: 54px;
    background-color: #e6dcc8;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;   /* буква пропорционально */
    color: var(--accent-gold);
    border: 1.5px solid var(--accent-gold); /* золотая рамка как у иконок */
    margin-left: auto;   /* прижимает аватар к правому краю блока даты */
    flex-shrink: 0;
}

/* Date Section */
/* Блок даты — первый элемент ленты (день + месяц/день недели + Луна).
   Уезжает со скроллом вместе с лентой; шапка-плашка зафиксирована сверху. */
.date-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Тонкая разделительная линия между датой и иконками */
.section-divider {
    height: 0.75px;
    background: rgba(74, 69, 62, 0.35); /* --text-main #4a453e, на 50% светлее (прозрачность) */
    margin-bottom: 0;   /* отступ до иконок задаёт .sticky-nav padding-top */
}

.day-number {
    font-size: 70px;
    font-family: 'Georgia', serif;
    line-height: 1;
}

.date-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.month-day {
    font-size: 12px;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

.zodiac-info {
    font-size: 12px;
    letter-spacing: 1.5px;
}

.zodiac-info .highlight {
    color: var(--accent-gold);
}

/* Icon Nav */
.icon-nav {
    display: flex;
    justify-content: space-between;
    overflow-x: auto;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    /* 7 иконок в один ряд на 335px (375 - поля): 7×44 = 308, зазоры ~4.5px */
    min-width: 44px;
}

.icon-circle {
    width: 42px;   /* было 50 — ужато, чтобы 7 иконок встали в ряд без скролла */
    height: 42px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    border: 1.5px solid var(--accent-gold); /* золотая окантовка */
    overflow: hidden;                        /* обрезает края картинки по кругу */
}

.icon-circle img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    transform: scale(1.05); /* +5%: тёмная окантовка картинки уходит под золотую */
}

.nav-item span {
    font-size: 9px;   /* было 10 — компактнее под 7 пунктов */
    font-style: italic;
    color: var(--text-muted);
}

/* Cards */
.card {
    background-color: var(--card-bg);
    /* бумажная фактура + светлая вуаль сверху: alpha (0.6) осветляет
       текстуру к кремовому. Больше alpha = светлее (меньше зерна). */
    background-image:
        linear-gradient(rgba(255, 252, 246, 0.75), rgba(255, 252, 246, 0.75)),
        url('./card-texture.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 18px;
    padding: 13px;   /* со всех сторон */
    margin-bottom: 15px;
    border: 0.5px solid rgba(138, 122, 82, 0.2);   /* тончайшая тёплая обводка края */
    box-shadow: 0 3px 16px rgba(74, 69, 62, 0.1);  /* мягкая тёплая рассеянная тень */
}

.source {
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--accent-gold);   /* золотистый */
    display: block;
    margin-bottom: 6px;
}

.card-body {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

.illustration-circle {
    flex-shrink: 0;
    width: 101px;
    margin-left: -6px;   /* придвинуть к левому краю — меньше отступ */
    align-self: flex-start;
    /* прозрачная фигура планеты «парит» на карточке — без подложки/обрезки */
}

.illustration-circle img {
    width: 100%;
    height: auto;
    display: block;
}

.text-content h2 {
    font-size: 21px;
    font-family: 'Perpetua Antiqua', 'Georgia', serif;
    font-weight: 400;
    color: #2e2a24;   /* темнее тела — акцент тоном */
    margin-bottom: 8px;
    line-height: 1.2;
}

.text-content p {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);   /* сероватый, как «МАЯ • СРЕДА» в шапке */
    /* тизер: показываем 2 строки, остальное под "продолжить чтение" */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* созвездие за текстом в правом верхнем углу новостной карточки (тест) */
.daily-insight {
    position: relative;
}
.card-constellation {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 60px;
    height: 60px;
    background-color: var(--accent-gold);   /* золото как «ОТ LUNESSA» */
    -webkit-mask: url('./Stars/constellation-virgo.webp') center / contain no-repeat;
    mask: url('./Stars/constellation-virgo.webp') center / contain no-repeat;
    opacity: 0.55;
    z-index: 0;
    pointer-events: none;
}
.daily-insight .card-body,
.daily-insight .card-footer {
    position: relative;
    z-index: 1;   /* текст и картинка поверх созвездия */
}

/* в новостной карточке текст крупнее и на строку больше (есть место) */
.daily-insight .text-content p {
    font-size: 14px;
    -webkit-line-clamp: 3;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 0.75px solid rgba(74, 69, 62, 0.35);
    padding-top: 12px;
    font-size: 11px;
}

.transit-info {
    color: var(--text-muted);
}

/* астрологический символ планеты транзита (вместо эмодзи) */
.transit-info .icon {
    color: var(--accent-gold);
    font-style: normal;
    margin-right: 3px;
}

.read-more {
    color: #9b8bad;   /* слегка фиолетовый */
    text-decoration: none;
    font-style: italic;
}

/* Moon Phase Card */
.card-body-split {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.card-subtitle {
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 8px;
}

.moon-illustration {
    width: 100px;
    height: 100px;
}

.moon-illustration img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.transit-phase {
    margin-top: 15px;
}

.transit-phase .label {
    font-size: 10px;
    color: var(--text-muted);
    display: block;
    margin-bottom: 5px;
}

.phase-dots {
    display: flex;
    gap: 4px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #eee;
}

.dot.filled {
    background-color: #d1c4ab;
}

/* Relationship Card */
.couple-illustration {
    width: 100px;
    height: 80px;
    border-radius: 40px;
    overflow: hidden;
}

.couple-illustration img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.resonance-score {
    text-align: right;
    border-left: 1px solid var(--border-color);
    padding-left: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.score {
    font-size: 32px;
    font-family: 'Georgia', serif;
}

.score-label {
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.2;
}

/* Day Number Card */
.card-body-centered {
    text-align: center;
}

.big-number {
    font-size: 60px;
    font-family: 'Georgia', serif;
    color: var(--accent-gold);
    margin: 10px 0;
}

/* Bottom Nav */
.bottom-nav {
    position: fixed;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 20px);
    max-width: 416px;
    /* Плашка-футер: плавает над краем, крупнее плашек ленты (радиус 24 против
       18). Фон — однотонный card-bg, без текстуры (не тянем 62КБ card-texture). */
    background-color: var(--card-bg);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 13px 6px;
    border-radius: 24px;
    border: 0.5px solid rgba(138, 122, 82, 0.22);
    box-shadow: 0 6px 22px rgba(74, 69, 62, 0.16);
    z-index: 100;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    text-decoration: none;   /* <a>-табы без подчёркивания (как <div>-табы) */
}

.nav-btn.active {
    color: var(--accent-gold);
}

/* интерактивные элементы: курсор-рука + лёгкий отклик при наведении */
.nav-item,
.nav-btn,
.read-more,
.avatar,
.card {
    cursor: pointer;
}

.nav-item,
.nav-btn,
.read-more,
.avatar {
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.nav-item:hover,
.nav-btn:hover,
.read-more:hover {
    opacity: 0.65;
}

.avatar:hover {
    transform: scale(1.05);
}

/* ═══════════ Верхняя нав-плашка = фиксированная шапка ═══════════ */
/* Плашка-шапка: 6 чипов-разделов, симметрична нижней навигации
   (та же ширина/радиус/тень). Зафиксирована у верхнего края под
   TG-инсетом; лента (с датой первым элементом) уходит под неё.
   Активный («Сегодня») — золотом. */
.top-nav {
    position: fixed;
    top: calc(var(--tg-top) + 6px);
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 20px);
    max-width: 416px;
    display: flex;
    justify-content: space-around;
    align-items: stretch;
    gap: 2px;
    padding: 12px 6px;
    background-color: var(--card-bg);
    border-radius: 24px;
    border: 0.5px solid rgba(138, 122, 82, 0.22);
    box-shadow: 0 6px 22px rgba(74, 69, 62, 0.16);
    z-index: 100;
}

.tn-btn {
    flex: 1 1 0;
    min-width: 0;   /* позволяет чипам ужиматься, не ломая строку */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: var(--text-muted);
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

.tn-btn svg {
    width: 23px;
    height: 23px;
}

.tn-btn span {
    font-size: 9.5px;
    line-height: 1;
    white-space: nowrap;
    color: var(--text-main);
}

.tn-btn.active,
.tn-btn.active span {
    color: var(--accent-gold);
}

.tn-btn:active {
    transform: scale(0.94);
}

@media (hover: hover) {
    .tn-btn:hover {
        opacity: 0.65;
    }
}

/* Лёгкий тост для разделов-заглушек («скоро») */
.tn-toast {
    position: fixed;
    left: 50%;
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%) translateY(8px);
    background: rgba(58, 46, 34, 0.94);
    color: #f4ecd9;
    font-size: 13.5px;
    padding: 10px 16px;
    border-radius: 13px;
    box-shadow: 0 6px 22px rgba(74, 69, 62, 0.28);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 200;
    max-width: calc(100% - 40px);
}

.tn-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .tn-btn,
    .tn-toast {
        transition: opacity 0.15s ease;
    }
    .tn-btn:active {
        transform: none;
    }
}

/* ═══════════ Экран «Прогноз» (forecast.html) ═══════════ */
/* Зафиксированная шапка прогноза (заголовок + табы) */
.forecast-sticky {
    position: sticky;
    top: var(--tg-top);
    z-index: 50;
    background: var(--bg-color);
    margin: 0 -20px;        /* фон на всю ширину */
    padding: 0 20px;
}

.screen-header {
    position: relative;   /* для абсолютной кнопки-вопроса справа */
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 4px;     /* было 12 — убираем «пустой лоб» сверху */
    margin-bottom: 12px;  /* было 18 */
}
.back-btn {
    width: 28px;
    font-size: 24px;
    color: var(--text-main);
    text-decoration: none;
    line-height: 1;
    cursor: pointer;
}
.screen-title {
    font-family: 'Perpetua Antiqua', 'Georgia', serif;
    font-size: 22px;
    color: var(--text-main);
}

/* ═══════════ Кнопка-вопрос в шапке экрана ═══════════ */
.screen-help {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);   /* по центру шапки — на одной высоте с .screen-back */
    right: 0;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 50%;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s, background 0.15s;
}
.screen-help:hover { color: var(--accent-gold); background: rgba(180, 150, 106, 0.08); }
.screen-help:active { color: var(--accent-gold); }
.screen-help:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 2px; }
.screen-help svg { width: 22px; height: 22px; display: block; }

/* Кнопка «← На главную» в левом верхнем углу экрана (в ленту) */
.screen-back {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding-right: 8px;   /* запас тап-зоны справа, слева хугаем край */
    color: var(--text-muted);
    font-family: inherit;
    font-size: 12.5px;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s;
}
.screen-back svg { width: 16px; height: 16px; flex-shrink: 0; }
.screen-back:hover { color: var(--accent-gold); }
.screen-back:active { opacity: 0.6; }
.screen-back:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 2px; border-radius: 8px; }

/* Вариант «только стрелка» — где длинный заголовок не оставляет места под текст
   (напр. «Прогноз на Сентябрь»). Компактная иконка, симметрична .screen-help. */
.screen-back.is-icon {
    width: 40px;
    gap: 0;
    padding-right: 0;
    justify-content: center;
    border-radius: 50%;
}
.screen-back.is-icon svg { width: 21px; height: 21px; }

/* ═══════════ Модалка-подсказка (lq-modal) — переиспользуемая ═══════════ */
body.lq-noscroll { overflow: hidden; }

.lq-modal[hidden] { display: none; }
.lq-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.lq-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(46, 40, 32, 0.5);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    animation: lqFade 0.25s ease;
}
.lq-modal__card {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 360px;
    max-height: calc(100vh - 40px);
    overflow: hidden;   /* карта не скроллится — скроллится только .lq-modal__body */
    background: var(--card-bg);
    border: 0.5px solid rgba(138, 122, 82, 0.28);
    border-radius: 26px;
    box-shadow: 0 18px 50px rgba(46, 40, 32, 0.32);
    animation: lqRise 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}
.lq-modal__body {
    flex: 1 1 auto;
    min-height: 0;   /* чтобы скролл работал внутри flex-колонки */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 30px 24px 6px;
}
/* Декоративная обрамка — золотой хайрлайн с отступом от края, как .rt-frame в ритуале */
.lq-modal__frame {
    position: absolute;
    inset: 8px;
    border: 0.75px solid rgba(180, 150, 106, 0.45);
    border-radius: 19px;
    pointer-events: none;
}
.lq-modal__card:focus { outline: none; }
.lq-modal__x {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 50%;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s, background 0.15s;
}
.lq-modal__x:hover { color: var(--text-main); background: rgba(74, 69, 62, 0.06); }
.lq-modal__x:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 2px; }
.lq-modal__x svg { width: 18px; height: 18px; display: block; }

.lq-modal__title {
    text-align: center;
    font-family: 'Perpetua Antiqua', 'Georgia', serif;
    font-weight: 400;
    font-size: 24px;
    color: var(--text-main);
    margin: 0 0 8px;
}
.lq-modal__moon {
    color: var(--accent-gold);
    font-size: 0.82em;
    margin-left: 4px;
    vertical-align: 2px;   /* ☽ чуть приподнят к строке заголовка */
}
.lq-modal__lead {
    text-align: center;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
    margin: 0 auto 18px;
    max-width: 290px;
}
.lq-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.lq-point {
    /* иконка слева; справа от неё заголовок (строка 1) и описание (строка 2) —
       текст обтекает иконку, плашка короче по вертикали */
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 12px;
    row-gap: 3px;
    align-items: start;
    padding: 13px 0;
    /* тонкая разделительная линия как между шагами ритуала */
    border-bottom: 0.75px solid rgba(74, 69, 62, 0.08);
}
.lq-point:first-child { padding-top: 2px; }
.lq-point:last-child { padding-bottom: 0; border-bottom: none; }
.lq-point__ic {
    grid-column: 1;
    grid-row: 1 / span 2;   /* иконка занимает обе строки, рядом — заголовок и текст */
    align-self: start;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(180, 150, 106, 0.10);
    color: var(--accent-gold);
}
.lq-point__ic svg { width: 20px; height: 20px; display: block; }
.lq-point__h {
    grid-column: 2;
    grid-row: 1;
    font-family: 'Georgia', serif;
    font-size: 14.5px;
    color: var(--text-main);
}
.lq-point__t {
    grid-column: 2;   /* описание в колонке рядом с иконкой, под заголовком */
    grid-row: 2;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--text-muted);
}
.lq-modal__cta {
    display: block;
    flex: none;
    margin: 14px 24px 22px;
    padding: 14px;
    background: var(--accent-gold);
    color: #fff8ea;
    font-family: inherit;
    font-size: 15px;
    border: none;
    border-radius: 15px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: opacity 0.15s, transform 0.12s;
}
.lq-modal__cta:hover { opacity: 0.92; }
.lq-modal__cta:active { transform: scale(0.985); }
.lq-modal__cta:focus-visible { outline: 2px solid var(--text-main); outline-offset: 2px; }

@keyframes lqFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lqRise {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
    .lq-modal__backdrop, .lq-modal__card { animation: none; }
    .lq-modal__cta:active { transform: none; }
}

/* ── Пейвол Lunessa+ (paywall.js) ── */
.pw-plans {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 2px 0 14px;
}
.pw-plan {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    padding: 14px 14px 13px;
    background: var(--bg-color);
    border: 1.5px solid var(--border-color);
    border-radius: 16px;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: border-color .15s, background .15s, transform .12s;
}
.pw-plan.is-on { border-color: var(--accent-gold); background: #fff8ec; }
.pw-plan:active { transform: scale(.99); }
.pw-plan:focus-visible { outline: 2px solid var(--text-main); outline-offset: 2px; }
.pw-plan__title { font-size: 13px; color: var(--text-muted); }
.pw-plan__price {
    font-family: 'Perpetua Antiqua', 'Georgia', serif;
    font-size: 23px; color: var(--text-main); line-height: 1.15;
}
.pw-plan__sub { font-size: 11.5px; color: var(--text-muted); }
.pw-badge {
    position: absolute; top: -8px; right: 10px;
    background: var(--accent-gold); color: #fff8ea;
    font-size: 10.5px; font-weight: 600;
    padding: 2px 7px; border-radius: 8px; letter-spacing: .02em;
}
.pw-feat { list-style: none; margin: 0 0 12px; padding: 0; }
.pw-feat li {
    display: grid; grid-template-columns: 18px 1fr;
    align-items: start; gap: 6px;
    font-size: 13px; color: var(--text-main); padding: 3px 0;
}
.pw-feat__m { color: var(--accent-gold); }
.pw-fine { font-size: 11.5px; color: var(--text-muted); line-height: 1.45; margin: 0; }
.pw-active { margin: 4px 0 14px; }
.pw-active__row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 9px 0; border-bottom: .75px solid rgba(74, 69, 62, .08);
    font-size: 13.5px; color: var(--text-muted);
}
.pw-active__row strong { color: var(--text-main); font-weight: 600; }
.pw-cancel {
    display: block; flex: none;
    margin: 8px 24px 22px; padding: 13px;
    background: transparent; color: var(--text-muted);
    font-family: inherit; font-size: 14px;
    border: 1px solid var(--border-color); border-radius: 14px;
    cursor: pointer; touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}
.pw-cancel:active { transform: scale(.985); }
/* Футер пейвола = флекс-колонка → кнопка (CTA/отмена) растягивается на всю
   ширину карточки (иначе <button> ужимается по контенту и липнет влево). */
.pw-foot { display: flex; flex-direction: column; }
/* Поле email для фискального чека */
.pw-emailrow { margin: 2px 0 12px; }
.pw-emaillabel { display: block; font-size: 12.5px; color: var(--text-muted); margin: 0 0 6px; }
.pw-email {
    width: 100%; box-sizing: border-box; padding: 12px 13px;
    background: var(--bg-color); border: 1.5px solid var(--border-color);
    border-radius: 12px; font-family: inherit; font-size: 16px; /* 16px = без зума на iOS */
    color: var(--text-main); -webkit-appearance: none; appearance: none;
}
.pw-email::placeholder { color: #b8b1a4; }
.pw-email:focus { outline: none; border-color: var(--accent-gold); }
.pw-email--err { border-color: #b6604c; }
/* Кнопка «поделиться номером» (Telegram) + подтверждение контакта для чека */
.pw-phone-btn {
    display: block; width: 100%; box-sizing: border-box;
    margin: 2px 0 8px; padding: 13px;
    background: #fff8ec; color: var(--text-main);
    border: 1.5px solid var(--accent-gold); border-radius: 14px;
    font-family: inherit; font-size: 14.5px; cursor: pointer;
    touch-action: manipulation; -webkit-tap-highlight-color: transparent;
    transition: background .15s, transform .12s;
}
.pw-phone-btn:hover { background: #fdf1d9; }
.pw-phone-btn:active { transform: scale(.985); }
.pw-phone-btn:disabled { opacity: .6; cursor: default; }
.pw-phone-btn:focus-visible { outline: 2px solid var(--text-main); outline-offset: 2px; }
.pw-contact-ok {
    margin: 2px 0 10px; padding: 11px 13px;
    background: rgba(111, 143, 92, .10); border: 1px solid rgba(111, 143, 92, .28);
    border-radius: 12px; font-size: 13.5px; color: #4f6c43; line-height: 1.4;
}
.pw-contact-change {
    background: none; border: none; color: var(--accent-gold);
    font: inherit; font-size: 12.5px; cursor: pointer; padding: 0; margin-left: 4px;
    text-decoration: underline;
}
.pw-load { padding: 28px 0; text-align: center; color: var(--text-muted); font-size: 14px; }

/* ── Контролы в модалке-настройке (ряд «лейбл — контрол») ── */
.lq-setrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 0;
    border-bottom: 0.75px solid rgba(74, 69, 62, 0.08);
}
.lq-setrow:last-of-type { border-bottom: none; }
.lq-setrow__lbl { font-size: 15px; color: var(--text-main); }
.lq-setrow.is-off { opacity: 0.45; }

/* Поле времени */
.lq-time {
    font-family: inherit;
    font-size: 15px;
    color: var(--text-main);
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 11px;
    padding: 8px 12px;
    min-height: 40px;
    -webkit-appearance: none;
    appearance: none;
}
.lq-time:focus { outline: none; border-color: var(--accent-gold); }
.lq-time:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 1px; }
.lq-time:disabled { opacity: 0.5; }

/* Тумблер вкл/выкл (iOS-стиль) */
.lq-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
    flex-shrink: 0;
    cursor: pointer;
    touch-action: manipulation;
}
.lq-switch input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}
.lq-switch__track {
    position: absolute;
    inset: 0;
    background: #d8cfbe;
    border-radius: 999px;
    transition: background 0.2s ease;
    pointer-events: none;
}
.lq-switch__thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: #fffdf8;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(74, 69, 62, 0.28);
    transition: transform 0.2s ease;
    pointer-events: none;
}
.lq-switch input:checked ~ .lq-switch__track { background: var(--accent-gold); }
.lq-switch input:checked ~ .lq-switch__thumb { transform: translateX(20px); }
.lq-switch input:focus-visible ~ .lq-switch__track { outline: 2px solid var(--accent-gold); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
    .lq-switch__track, .lq-switch__thumb { transition: none; }
}

.forecast-tabs {
    display: flex;
    justify-content: center;
    gap: 28px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}
.ftab {
    background: none;
    border: none;
    padding: 0 0 10px;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
}
.ftab.active {
    color: var(--accent-gold);
}
.ftab.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--accent-gold);
}

.week-calendar {
    margin-bottom: 22px;
}
.wc-month {
    font-size: 11px;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.wc-days {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;   /* все дни выровнены по верху: число на одной линии
                                  независимо от точки снизу — иначе центровка съезжает */
}
.wc-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    position: relative;
}

/* звезда Lunessa — маркер платного контента (подписка) */
.pro-star {
    width: 13px;
    height: 13px;
    margin-left: 5px;
    vertical-align: -1px;
}
.pro-star-day {
    position: absolute;
    top: 12px;
    right: -1px;
    width: 11px;
    height: 11px;
}
.wc-dow {
    font-size: 10px;
    color: var(--text-muted);
    font-style: italic;
}
.wc-num {
    font-size: 15px;
    color: var(--text-main);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.wc-day.selected .wc-num {
    background: var(--accent-gold);
    color: #fff;
}
.wc-day.future .wc-num {
    color: var(--text-muted);
}
/* Выбранный день всегда белит число — даже будущий (иначе .future перебивает
   из-за равной специфичности и порядка правил). */
.wc-day.selected .wc-num,
.wc-day.future.selected .wc-num {
    background: var(--accent-gold);
    color: #fff;
}

/* полный текст письма */
.forecast-full,
.forecast-timing {
    position: relative;
    z-index: 1;   /* поверх созвездия */
}
.forecast-full {
    margin: 6px 0 14px;
}
.forecast-full p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.forecast-full p:last-child {
    margin-bottom: 0;
}

/* тайминг-подсказка («когда лучше») */
.forecast-timing {
    background: rgba(180, 150, 106, 0.09);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
}
.ft-label {
    display: block;
    font-size: 10px;
    letter-spacing: 1.5px;
    color: var(--accent-gold);
    margin-bottom: 5px;
}
.ft-text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-main);
}

/* Прошлые дни (история прогнозов) */
.past-heading {
    font-family: 'Perpetua Antiqua', 'Georgia', serif;
    font-size: 18px;
    color: var(--text-main);
    margin: 26px 0 12px;
}
.past-card .past-date {
    display: block;
    font-size: 10px;
    letter-spacing: 1px;
    color: var(--accent-gold);
    margin-bottom: 10px;
}

/* Опрос «как тебе прогноз?» (в прошлых днях) */
.poll {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 0.75px solid rgba(74, 69, 62, 0.2);
}
.poll-q {
    font-size: 12px;
    color: var(--text-muted);
    margin-right: auto;
}
.poll-btn {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 5px 13px;
    font-family: inherit;
    font-size: 12px;
    color: var(--text-main);
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.poll-btn:hover {
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}

/* Точка-индикатор «есть прогноз» — близко под числом */
.wc-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-gold);
    margin-top: -4px;   /* ближе к цифре, не раздувать блок */
}

/* Опрос «как тебе прошлый прогноз?» — отдельный блок над прогнозом, по центру */
.forecast-poll {
    text-align: center;
    margin-bottom: 16px;
    padding: 14px;
    background: rgba(180, 150, 106, 0.07);
    border-radius: 14px;
}
.forecast-poll .poll-q {
    display: block;
    font-size: 13px;
    color: var(--text-main);
    margin-bottom: 10px;
}
.poll-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}
.poll-ask {
    transition: opacity 0.3s ease;
}
/* точка-уведомление на опросе (не завершён) */
.poll-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent-gold);
    vertical-align: middle;
    margin-left: 5px;
}
.poll-thanks {
    font-size: 12px;
    color: var(--accent-gold);
    font-style: italic;
    line-height: 1.4;
    opacity: 0;
    transition: opacity 0.4s ease;
}
.thanks-star {
    width: 13px;
    height: 13px;
    vertical-align: -2px;
    margin-left: 3px;
}

/* инфо о дне под заголовком (дата · лунный день · луна в знаке) */
.day-meta {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 8px;
}

/* звезда у «Совет дня» */
.advice-star {
    width: 12px;
    height: 12px;
    vertical-align: -1px;
    margin-right: 4px;
}

/* кнопка «поделиться» в футере прогноза */
.share-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: color 0.15s ease;
}
.share-btn:hover {
    color: var(--accent-gold);
}

/* Астрологическая погода (сводка дня над прогнозом) */
.astro-weather {
    margin-bottom: 16px;
}
.aw-title {
    font-family: 'Perpetua Antiqua', 'Georgia', serif;
    font-size: 18px;
    color: var(--text-main);
    margin-bottom: 12px;
}
.aw-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 12px 8px;
    /* стиль как у карточки прогноза: светлая, текстура + тень */
    background-color: var(--card-bg);
    background-image:
        linear-gradient(rgba(255, 252, 246, 0.75), rgba(255, 252, 246, 0.75)),
        url('./card-texture.jpg');
    background-size: cover;
    background-position: center;
    border: 0.5px solid rgba(138, 122, 82, 0.2);
    border-radius: 18px;
    box-shadow: 0 3px 16px rgba(74, 69, 62, 0.1);
}
.aw-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 3px;
}
.aw-icon {
    width: 22px;
    height: 22px;
    color: var(--accent-gold);
}
.aw-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.15;
    gap: 4px;   /* лёгкий вертикальный интервал между названием/%/подписью */
}
.aw-name {
    font-size: 9.5px;
    color: var(--text-muted);
}
.aw-value {
    font-size: 18px;
    font-family: 'Georgia', serif;
    color: var(--text-main);
    margin: 0;
}
.aw-label {
    font-size: 9.5px;
    color: var(--text-muted);
}

/* на странице прогноза карточка не кликабельна — только кнопка «поделиться» */
.forecast-day {
    cursor: default;
}
.forecast-day .share-btn {
    cursor: pointer;
}

/* ═══════════ Экран профиля «я» (me.html) ═══════════ */
.profile-header {
    text-align: center;
    padding-top: 18px;
    margin-bottom: 24px;
}
.profile-avatar-wrap {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.profile-avatar-lg {
    width: 118px;
    height: 118px;
    border-radius: 50%;
    background-color: #e6dcc8;
    border: 1.5px solid var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Perpetua Antiqua', 'Georgia', serif;
    font-size: 52px;
    color: var(--accent-gold);
}
.pa-deco {
    position: absolute;
    color: var(--accent-gold);
    opacity: 0.5;
    font-size: 12px;
}
.pa-deco-1 { top: 2px; left: 10px; font-size: 15px; }
.pa-deco-2 { top: 26px; right: 0; }
.pa-deco-3 { bottom: 12px; left: 2px; }
.pa-deco-4 { bottom: 4px; right: 16px; font-size: 15px; }

.profile-name {
    font-family: 'Perpetua Antiqua', 'Georgia', serif;
    font-size: 30px;
    font-weight: 400;
    color: var(--text-main);
    margin-bottom: 8px;
}
.profile-sub {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* теги: знак · дата · город */
.profile-tags {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 22px;
}
.profile-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 9px;
    background-color: var(--card-bg);
    background-image:
        linear-gradient(rgba(255, 252, 246, 0.75), rgba(255, 252, 246, 0.75)),
        url('./card-texture.jpg');
    background-size: cover;
    background-position: center;
    border: 0.5px solid rgba(138, 122, 82, 0.2);
    border-radius: 14px;
    box-shadow: 0 3px 16px rgba(74, 69, 62, 0.1);
}
.pt-ico {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(180, 150, 106, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
}
.pt-ico svg { width: 15px; height: 15px; }
.pt-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.pt-kicker {
    font-size: 7.5px;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}
.pt-value {
    font-size: 11px;
    color: var(--text-main);
    line-height: 1.2;
}

/* список действий */
.profile-rows {
    margin-bottom: 22px;
}
.profile-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 2px;
    text-decoration: none;
    cursor: pointer;
    border-bottom: 0.75px solid rgba(74, 69, 62, 0.1);
}
.profile-row:last-child {
    border-bottom: none;
}
.pr-ico {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(180, 150, 106, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-gold);
}
.pr-ico svg { width: 20px; height: 20px; }
.profile-row-title {
    font-size: 15px;
    color: var(--text-main);
    flex: 1;
}
.profile-row-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}
.pr-chev {
    font-size: 18px;
    color: var(--text-muted);
}

/* блок цитаты дня */
.quote-block {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 16px 10px;
    margin-bottom: 24px;
    background-color: var(--card-bg);
    background-image:
        linear-gradient(rgba(255, 252, 246, 0.7), rgba(255, 252, 246, 0.7)),
        url('./card-texture.jpg');
    background-size: cover;
    background-position: center;
    border: 0.5px solid rgba(138, 122, 82, 0.2);
    border-radius: 18px;
    box-shadow: 0 3px 16px rgba(74, 69, 62, 0.1);
}
.qb-sun,
.qb-moon {
    width: 62px;
    height: auto;
    flex-shrink: 0;
}
.qb-text {
    flex: 1;
    text-align: center;
}
.qb-quote {
    font-family: 'Perpetua Antiqua', 'Georgia', serif;
    font-size: 16px;
    color: var(--text-main);
    line-height: 1.3;
    margin-bottom: 6px;
}
.qb-author {
    font-size: 11px;
    color: var(--text-muted);
    font-style: italic;
}

.nav-btn span {
    font-size: 10px;
}

/* ═══════════ Ритуал недели (лента-карточка + ritual.html) ═══════════ */
.rt-card { position: relative; padding: 17px 16px 14px; }
.rt-frame { position: absolute; inset: 7px; border: 0.75px solid rgba(180,150,106,.45); border-radius: 13px; pointer-events: none; }
.rt-kicker { display: block; text-align: center; font-size: 10px; letter-spacing: 2px; color: var(--accent-gold); margin-bottom: 9px; }
.rt-title { font-family: 'Perpetua Antiqua', 'Georgia', serif; font-size: 24px; font-weight: 400; color: #2e2a24; text-align: center; line-height: 1.2; margin-bottom: 4px; }
.rt-when { text-align: center; font-size: 11.5px; color: var(--text-muted); font-style: italic; margin-bottom: 12px; }
.rt-why { display: flex; gap: 9px; align-items: baseline; background: rgba(180,150,106,.09); border-radius: 11px; padding: 9px 12px; margin-bottom: 13px; }
.rt-why .moon { flex-shrink: 0; color: var(--accent-gold); font-size: 13px; }
.rt-why span { font-size: 12.5px; line-height: 1.5; color: var(--text-main); }
.rt-steps { margin: 0 2px; }
.rt-step { display: flex; gap: 11px; padding: 8px 0; border-bottom: 0.75px solid rgba(74,69,62,.08); }
.rt-step:last-child { border-bottom: none; }
.rt-num { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--accent-gold); color: var(--accent-gold); font-family: 'Georgia', serif; font-size: 11.5px; display: flex; align-items: center; justify-content: center; margin-top: 1px; }
.rt-step p { font-size: 13.5px; line-height: 1.55; color: var(--text-main); margin: 0; }
.rt-trad { text-align: center; font-size: 11px; font-style: italic; color: var(--text-muted); margin: 12px 8px 0; line-height: 1.5; }
.rt-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 0.75px solid rgba(74,69,62,.2); margin-top: 12px; padding-top: 10px; font-size: 11px; }
.rt-foot .l { color: var(--text-muted); }
.rt-foot .l .s { color: var(--accent-gold); margin-right: 3px; }
.rt-foot a { color: #9b8bad; font-style: italic; text-decoration: none; cursor: pointer; }

/* страница: тизер до четверга + архив */
.rt-teaser { text-align: center; padding: 36px 22px 28px; }
.rt-teaser .star { display: block; font-size: 30px; color: var(--accent-gold); margin-bottom: 13px; }
.rt-teaser h2 { font-family: 'Perpetua Antiqua', 'Georgia', serif; font-weight: 400; font-size: 21px; color: var(--text-main); margin-bottom: 8px; }
.rt-teaser p { font-size: 13px; line-height: 1.6; color: var(--text-muted); max-width: 290px; margin: 0 auto; }
.rt-hist-row { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 0.75px solid rgba(74,69,62,.1); }
.rt-hist-row:last-child { border-bottom: none; }
.rt-hist-moon { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: rgba(180,150,106,.1); display: flex; align-items: center; justify-content: center; color: var(--accent-gold); font-size: 16px; }
.rt-hist-meta { flex: 1; min-width: 0; }
.rt-hist-title { display: block; font-size: 14.5px; color: var(--text-main); line-height: 1.3; }
.rt-hist-sub { display: block; font-size: 11px; color: var(--text-muted); margin-top: 2px; font-style: italic; }
.rt-empty { text-align: center; font-size: 13px; font-style: italic; color: var(--text-muted); padding: 28px 20px; }

/* Архив за подпиской (премиум-заглушка) */
.rt-lock { text-align: center; padding: 34px 24px 28px; }
.rt-lock-star { width: 34px; height: 34px; margin: 0 auto 14px; display: block; opacity: .9; }
.rt-lock-title { font-family: 'Perpetua Antiqua', 'Georgia', serif; font-weight: 400; font-size: 22px; color: var(--text-main); margin-bottom: 10px; }
.rt-lock-text { font-size: 13.5px; line-height: 1.6; color: var(--text-muted); max-width: 300px; margin: 0 auto 18px; }
.rt-lock-btn { background: var(--accent-gold); color: #fff; border: none; border-radius: 22px; padding: 11px 26px; font-family: inherit; font-size: 14px; cursor: pointer; touch-action: manipulation; transition: opacity .15s ease; }
.rt-lock-btn:hover { opacity: .88; }
.rt-lock-btn:focus-visible { outline: 2px solid #8a6f3b; outline-offset: 2px; }

/* ═══════════ Сны (dream.html) ═══════════ */
.dr-intro { font-size: 13.5px; line-height: 1.55; color: var(--text-muted); margin: 16px 2px 14px; }
.dr-label { display: block; font-size: 10px; letter-spacing: 1.5px; color: var(--accent-gold); margin: 0 2px 7px; text-transform: uppercase; }
.dream-textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--border-color); border-radius: 14px; background: var(--card-bg); font-family: 'Georgia', serif; font-size: 15px; line-height: 1.5; color: var(--text-main); resize: vertical; min-height: 140px; -webkit-user-select: text; user-select: text; }
.dream-textarea:focus { outline: none; border-color: var(--accent-gold); }
.dr-counter { font-size: 12px; color: var(--text-muted); margin: 9px 2px 0; }
.dr-counter-err { color: #b07a6a; }
.dr-tier-note { font-size: 11.5px; color: var(--accent-gold); font-style: italic; margin: 5px 2px 0; }
.dream-btn { width: 100%; margin-top: 14px; background: var(--accent-gold); color: #fff; border: none; border-radius: 22px; padding: 13px 26px; font-family: inherit; font-size: 14.5px; cursor: pointer; touch-action: manipulation; transition: opacity .15s ease; }
.dream-btn:hover { opacity: .9; }
.dream-btn:disabled { opacity: .45; cursor: default; }
.dream-btn:focus-visible { outline: 2px solid #8a6f3b; outline-offset: 2px; }
.dr-again { background: none; color: var(--accent-gold); border: 1px solid var(--accent-gold); }

/* ожидание толкования */
.dr-waiting { text-align: center; padding: 46px 18px; }
.dr-w-star { display: block; font-size: 30px; color: var(--accent-gold); margin-bottom: 14px; animation: drPulse 1.6s ease-in-out infinite; }
@keyframes drPulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dr-w-star { animation: none; } }
.dr-w-t1 { font-family: 'Perpetua Antiqua', 'Georgia', serif; font-size: 18px; color: var(--text-main); margin-bottom: 8px; }
.dr-w-t2 { font-size: 12.5px; font-style: italic; color: var(--text-muted); line-height: 1.5; }

/* карточка толкования */
.dr-card { padding: 18px 16px 16px; }
.dr-kicker { display: block; text-align: center; font-size: 10px; letter-spacing: 2px; color: var(--accent-gold); margin-bottom: 8px; }
.dr-title { font-family: 'Perpetua Antiqua', 'Georgia', serif; font-weight: 400; font-size: 24px; color: #2e2a24; text-align: center; line-height: 1.2; margin-bottom: 8px; }
.dr-moon { text-align: center; font-size: 11.5px; color: var(--text-muted); margin-bottom: 12px; }
.dr-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 14px; }
.dr-chip { font-size: 11.5px; color: var(--text-main); background: rgba(180,150,106,.1); border: .5px solid rgba(180,150,106,.35); border-radius: 12px; padding: 4px 11px; }
.dr-insight p { font-size: 14.5px; line-height: 1.65; color: var(--text-main); margin-bottom: 11px; }
.dr-insight p:last-child { margin-bottom: 0; }
.dr-sky { display: flex; gap: 8px; align-items: baseline; background: rgba(180,150,106,.09); border-radius: 12px; padding: 10px 13px; margin-top: 13px; font-size: 13px; line-height: 1.5; color: var(--text-main); }
.dr-sky .m { color: var(--accent-gold); flex-shrink: 0; }
.dr-similar { display: flex; gap: 8px; align-items: baseline; margin-top: 11px; padding: 9px 13px; background: rgba(155,139,173,.1); border-radius: 12px; font-size: 12.5px; line-height: 1.5; color: var(--text-main); }
.dr-similar .dr-sim-star { color: #9b8bad; flex-shrink: 0; }
.dr-advice { margin-top: 13px; border-top: .75px solid rgba(74,69,62,.18); padding-top: 12px; font-size: 14px; line-height: 1.55; color: var(--text-main); }
.dr-adv-k { display: block; font-size: 10px; letter-spacing: 1.5px; color: var(--accent-gold); margin-bottom: 5px; text-transform: uppercase; }
.dr-crisis p { font-size: 14.5px; line-height: 1.65; color: var(--text-main); margin: 0; }

/* дневник снов (архив) */
.dr-list { margin-top: 6px; }
.dr-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: none; border: none; border-bottom: .75px solid rgba(74,69,62,.1); padding: 13px 2px; font-family: inherit; cursor: pointer; touch-action: manipulation; color: inherit; }
.dr-row:last-child { border-bottom: none; }
.dr-row:focus-visible { outline: 2px solid var(--accent-gold); outline-offset: 2px; border-radius: 8px; }
.dr-row-date { flex-shrink: 0; width: 64px; font-size: 11.5px; color: var(--accent-gold); font-style: italic; }
.dr-row-meta { flex: 1; min-width: 0; }
.dr-row-title { display: block; font-size: 15px; color: var(--text-main); line-height: 1.25; }
.dr-row-sub { display: block; font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.dr-row-chev { flex-shrink: 0; font-size: 18px; color: var(--text-muted); }
.dr-back { background: none; border: none; color: var(--accent-gold); font-family: inherit; font-size: 13.5px; cursor: pointer; padding: 6px 2px 12px; touch-action: manipulation; }
.dr-told { margin-top: 14px; }
.dr-told summary { list-style: none; font-size: 12.5px; letter-spacing: .5px; color: var(--text-muted); cursor: pointer; padding: 8px 2px; }
.dr-told summary::-webkit-details-marker { display: none; }
.dr-told p { font-size: 13.5px; line-height: 1.6; color: var(--text-muted); font-style: italic; padding: 4px 2px 0; }
.dr-empty { text-align: center; font-size: 13.5px; font-style: italic; color: var(--text-muted); padding: 38px 20px; line-height: 1.55; }

/* ── Единый вертикальный ритм ленты ──────────────────────────────────────
   Все плашки-прямые-дети .content получают одинаковый отступ снизу (15px,
   как у .card). Перебивает разнобой: .astro-weather было 16px, таро-плашки
   14px. Специфичность (0,2,1) выше одиночных классов карточек. Вложенные
   .past-forecast — это .card (тоже 15px), так что ритм единый везде. */
.app-container main.content > * {
    margin-bottom: 15px;
}
.app-container main.content > *:last-child {
    margin-bottom: 0;
}
