* {
    margin: 0; padding: 0; box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #060B14;
    color: #fff;
    overflow-x: hidden;
    font-size: 16px;
}

#app { min-height: 100vh; display: flex; flex-direction: column; }

.screen { flex: 1; display: flex; flex-direction: column; }
.screen.hidden { display: none; }
.screen.center { align-items: center; justify-content: center; padding: 20px; text-align: center; }

/* Логотип */
.logo {
    font-size: 42px; font-weight: 800; letter-spacing: -1.5px;
    background: linear-gradient(135deg, #00C6FF, #FF007F);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text; text-align: center; margin-bottom: 20px;
}
.logo span { color: #FF007F; }
.logo.small { font-size: 24px; margin: 0; }

.muted { color: #666; font-size: 14px; }

/* Спиннер */
.spinner {
    width: 44px; height: 44px;
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: #00C6FF;
    border-radius: 50%; animation: spin 0.9s linear infinite;
    margin: 20px auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Шапка */
.app-header {
    padding: 16px 20px;
    display: flex; align-items: center; gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    background: rgba(6,11,20,0.95);
    backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 10;
}

.app-header h2 { font-size: 18px; font-weight: 700; }

.back-btn {
    background: rgba(255,255,255,0.06);
    border: none; color: #fff;
    width: 36px; height: 36px; border-radius: 10px;
    font-size: 24px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    padding-bottom: 4px;
}

.back-btn:active { background: rgba(255,255,255,0.12); }

/* Контент */
.content { flex: 1; padding: 20px; padding-bottom: 100px; overflow-y: auto; }

/* Профиль */
.profile-card {
    display: flex; align-items: center; gap: 16px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(0,198,255,0.12), rgba(255,0,127,0.12));
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 16px;
}

.profile-photo {
    width: 64px; height: 64px; border-radius: 50%;
    background: linear-gradient(135deg, #00C6FF, #FF007F);
    background-size: cover; background-position: center;
    flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 700;
}

.profile-info h2 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.profile-info .hashtag { color: #00C6FF; font-size: 13px; font-weight: 600; }
.profile-info .city { color: #888; font-size: 13px; margin-top: 2px; }

/* Васильки */
.vasilki-card {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(139,0,255,0.15), rgba(255,0,127,0.15));
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 16px;
}

.vasilki-icon { font-size: 36px; }
.vasilki-info { flex: 1; }
.vasilki-balance { font-size: 26px; font-weight: 800; line-height: 1; }
.vasilki-label { font-size: 12px; color: #888; margin-top: 2px; }

.btn-mini {
    background: linear-gradient(135deg, #00C6FF, #FF007F);
    border: none; color: #fff;
    padding: 8px 14px; border-radius: 10px;
    font-size: 13px; font-weight: 600; cursor: pointer;
}

/* Статистика */
.stats-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 8px; margin-bottom: 24px;
}

.stat-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px; padding: 14px 8px; text-align: center;
}

.stat-num { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.stat-label { font-size: 11px; color: #888; }

/* Заголовки */
.section-title {
    font-size: 12px; font-weight: 700;
    color: #666; text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 12px;
}

/* Меню */
.menu { display: flex; flex-direction: column; gap: 8px; }

.menu-item {
    display: flex; align-items: center; gap: 14px;
    padding: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    cursor: pointer;
    text-align: left; color: #fff; font-family: inherit;
    transition: background 0.15s;
}

.menu-item:active { background: rgba(255,255,255,0.08); }

.menu-icon {
    font-size: 22px;
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(0,198,255,0.15), rgba(255,0,127,0.15));
    border-radius: 12px;
    flex-shrink: 0;
}

.menu-text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.menu-text b { font-size: 15px; font-weight: 600; }
.menu-text small { font-size: 12px; color: #888; }

.menu-arrow { font-size: 22px; color: #444; }

/* Нижняя навигация */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    display: flex;
    background: rgba(6,11,20,0.98);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 8px 0 12px;
    backdrop-filter: blur(20px);
    z-index: 20;
}

.nav-btn {
    flex: 1;
    background: none; border: none;
    color: #666; font-family: inherit;
    padding: 6px; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    transition: color 0.15s;
}

.nav-btn span { font-size: 20px; }
.nav-btn small { font-size: 10px; font-weight: 500; }
.nav-btn.active { color: #00C6FF; }

/* Города в списке */
.city-item {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px; margin-bottom: 8px;
    text-decoration: none; color: #fff;
}

.city-item .icon { font-size: 20px; }
.city-item .name { flex: 1; font-weight: 600; }
.city-item .arrow { color: #444; font-size: 20px; }

/* Заглушки */
.placeholder {
    text-align: center;
    padding: 60px 20px;
}
.placeholder .emoji { font-size: 60px; margin-bottom: 16px; }
.placeholder h3 { font-size: 20px; margin-bottom: 8px; }
.placeholder p { color: #888; font-size: 14px; }

/* ============================================================
   РАЗДЕЛЫ
   ============================================================ */

/* Табы */
.tabs {
    display: flex; gap: 6px; margin-bottom: 16px;
    background: rgba(255,255,255,0.03); padding: 4px;
    border-radius: 12px;
}

.tab {
    flex: 1; padding: 10px 8px;
    background: transparent; border: none;
    color: #888; font-family: inherit; font-size: 12px;
    font-weight: 600; cursor: pointer; border-radius: 8px;
    transition: all 0.15s;
}

.tab.active { background: rgba(0,198,255,0.15); color: #00C6FF; }

/* Юзер в списке */
.user-list-item {
    display: flex; align-items: center; gap: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px; margin-bottom: 8px;
}

.user-list-photo {
    width: 52px; height: 52px; border-radius: 50%;
    background: linear-gradient(135deg, #00C6FF, #FF007F);
    background-size: cover; background-position: center;
    flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 20px;
}

.user-list-info { flex: 1; min-width: 0; }
.user-list-name { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.user-list-meta { font-size: 12px; color: #888; }

.btn-like {
    background: linear-gradient(135deg, #FF007F, #FF4D8D);
    border: none; color: #fff;
    width: 40px; height: 40px; border-radius: 50%;
    font-size: 18px; cursor: pointer;
}

.mutual-badge { font-size: 20px; margin-left: 8px; }

/* Сообщения */
.msg-item {
    display: flex; gap: 12px;
    padding: 14px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 14px; margin-bottom: 8px;
}

.msg-item.unread {
    background: rgba(0,198,255,0.06);
    border-color: rgba(0,198,255,0.2);
}

.msg-icon {
    width: 40px; height: 40px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(0,198,255,0.15), rgba(255,0,127,0.15));
    border-radius: 50%; font-size: 18px;
}

.msg-body { flex: 1; min-width: 0; }
.msg-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.msg-text { font-size: 13px; color: #aaa; margin-bottom: 4px; line-height: 1.4; }
.msg-time { font-size: 11px; color: #555; }

/* Анкета (большая) */
.profile-view { display: flex; flex-direction: column; gap: 20px; }

.profile-photo-big {
    width: 100%;
    height: 42vh;
    max-height: 360px;
    min-height: 240px;
    background: linear-gradient(135deg, #00C6FF, #FF007F);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    font-weight: 800;
    cursor: pointer;
    flex-shrink: 0;
    margin-bottom: 16px;
}

.profile-view-info h2 { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.profile-desc { margin-top: 12px; color: #ccc; line-height: 1.5; }

.profile-actions {
    display: flex; gap: 16px; justify-content: center;
    padding: 20px 0;
}

.action-btn {
    width: 64px; height: 64px; border-radius: 50%;
    border: none; font-size: 26px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}

.action-btn.skip { background: rgba(255,255,255,0.08); color: #fff; }
.action-btn.like { background: linear-gradient(135deg, #FF007F, #FF4D8D); }

/* Конкурс */
.contest-card {
    background: linear-gradient(135deg, rgba(255,0,127,0.08), rgba(255,215,0,0.08));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 18px; padding: 18px; margin-bottom: 12px;
}

.contest-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.contest-prize { font-size: 15px; margin-bottom: 12px; }
.contest-conditions { font-size: 13px; color: #aaa; line-height: 1.6; margin-bottom: 12px; }
.contest-deadline { font-size: 12px; color: #888; margin-bottom: 12px; }
.contest-joined {
    text-align: center; padding: 12px;
    background: rgba(0,198,255,0.1); border-radius: 10px;
    font-weight: 600; color: #00C6FF;
}
.contest-btn {
    display: block; text-align: center;
    padding: 14px; border-radius: 12px;
    background: linear-gradient(135deg, #FF007F, #FF4D8D);
    color: #fff; text-decoration: none; font-weight: 700;
}

/* Моя анкета */
.my-profile { display: flex; flex-direction: column; gap: 16px; }
.my-photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.my-photo {
    aspect-ratio: 1; border-radius: 12px;
    background: rgba(255,255,255,0.05);
    background-size: cover; background-position: center;
    border: 2px solid transparent;
}
.my-photo.main { border-color: #00C6FF; }

.my-info {
    background: rgba(255,255,255,0.03);
    border-radius: 14px; padding: 16px;
}
.my-field {
    display: flex; justify-content: space-between;
    padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.my-field:last-child { border: none; }
.my-field span { color: #888; font-size: 13px; }
.my-field b { font-size: 13px; }

.my-desc {
    background: rgba(255,255,255,0.03);
    border-radius: 14px; padding: 16px;
}
.my-desc p { margin-top: 8px; line-height: 1.5; color: #ccc; }

/* Магазин */
.shop-balance {
    text-align: center; padding: 16px;
    background: linear-gradient(135deg, rgba(0,198,255,0.1), rgba(255,0,127,0.1));
    border-radius: 14px; margin-bottom: 16px; font-size: 16px;
}
.shop-balance b { font-size: 22px; color: #00C6FF; }

.shop-item {
    display: flex; gap: 12px; align-items: center;
    padding: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px; margin-bottom: 8px;
}

.shop-emoji {
    width: 48px; height: 48px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(0,198,255,0.15), rgba(255,0,127,0.15));
    border-radius: 12px; font-size: 24px;
}

.shop-body { flex: 1; min-width: 0; }
.shop-title { font-size: 14px; font-weight: 700; }
.shop-desc { font-size: 12px; color: #888; margin-top: 2px; }

.shop-price { text-align: right; flex-shrink: 0; }
.shop-price > div { font-size: 13px; font-weight: 600; margin-bottom: 6px; }

.shop-btn {
    background: linear-gradient(135deg, #00C6FF, #FF007F);
    border: none; color: #fff;
    padding: 6px 12px; border-radius: 8px;
    font-size: 12px; font-weight: 600; cursor: pointer;
}

/* Секции магазина */
.shop-section-title {
    font-size: 12px; font-weight: 700;
    color: #666; text-transform: uppercase;
    letter-spacing: 1px; margin: 20px 0 12px;
}

.shop-item.highlight {
    background: linear-gradient(135deg, rgba(255,0,127,0.1), rgba(255,215,0,0.1));
    border-color: rgba(255,0,127,0.3);
}

.shop-btn.buy-rub {
    background: linear-gradient(135deg, #FFD700, #FFAA00);
    color: #000;
}

/* ============================================================
   ПОЛНАЯ КАРТОЧКА АНКЕТЫ
   ============================================================ */

.profile-line {
    font-size: 14px;
    color: #ccc;
    margin: 6px 0;
    line-height: 1.5;
}

.profile-desc-block {
    margin-top: 16px;
    padding: 14px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
}
.profile-desc-block p {
    margin-top: 8px;
    color: #ccc;
    line-height: 1.5;
    font-size: 14px;
}

.profile-stats {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 13px;
    color: #888;
}

/* Кнопки в карточке — 3 в ряд */
.profile-actions-full {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    margin-top: 12px;
    position: sticky;
    bottom: 8px;
    background: rgba(6, 11, 20, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px;
    margin-left: -8px;
    margin-right: -8px;
    border-radius: 14px;
    z-index: 5;
}

.action-btn-full {
    padding: 14px 12px;
    border-radius: 12px;
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    background: rgba(255,255,255,0.06);
}

.action-btn-full.message {
    background: linear-gradient(135deg, #00C6FF, #0080FF);
}

.action-btn-full.like {
    background: linear-gradient(135deg, #FF007F, #FF4D8D);
}

.action-btn-full.photos {
    background: linear-gradient(135deg, #8B00FF, #B088FF);
    min-width: 70px;
}

/* Нижние кнопки */
.profile-actions-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
}

.btn-nav {
    padding: 14px;
    border-radius: 12px;
    background: rgba(255,255,255,0.06);
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

/* Галерея */
.gallery-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.gallery-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.gallery-photo {
    width: 90%;
    max-width: 500px;
    aspect-ratio: 3/4;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.gallery-nav {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 20px;
    color: #fff;
}

.gallery-nav button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.gallery-nav span {
    font-size: 14px;
    min-width: 60px;
    text-align: center;
}

/* ============================================================
   КОМПАКТНАЯ КАРТОЧКА АНКЕТЫ — чтобы влезала в экран
   ============================================================ */

/* Фото — компактнее (было aspect-ratio 3/4, огромное) */
.profile-photo-big {
    width: 100%;
    height: 40vh;
    max-height: 340px;
    min-height: 240px;
    aspect-ratio: unset;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    font-weight: 800;
    cursor: pointer;
    flex-shrink: 0;
}

/* Компактнее поля */
.profile-view-info h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 6px;
}

.profile-line {
    font-size: 13px;
    color: #ccc;
    margin: 3px 0;
    line-height: 1.4;
}

.profile-desc-block {
    margin-top: 10px;
    padding: 10px;
}

.profile-desc-block p {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.4;
    max-height: 60px;
    overflow: hidden;
}

.profile-stats {
    margin-top: 10px;
    padding-top: 10px;
    font-size: 12px;
}

/* Кнопки действий — прилипают внизу */
.profile-actions-full {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    margin-top: 12px;
    position: sticky;
    bottom: 8px;
    background: rgba(6, 11, 20, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 8px;
    margin-left: -8px;
    margin-right: -8px;
    border-radius: 14px;
    z-index: 5;
}

.action-btn-full {
    padding: 12px 10px;
    font-size: 13px;
    border-radius: 10px;
}

.action-btn-full.photos {
    min-width: 60px;
}

.profile-actions-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 20px;
}

.btn-nav {
    padding: 12px;
    font-size: 12px;
}

/* В разделе (#section) — убираем лишний нижний отступ */
#section .content {
    padding-bottom: 30px !important;
}

/* ============================================================
   НОВАЯ КАРТОЧКА — сетка фото + имя справа
   ============================================================ */

/* Верхний блок: сетка фото + инфо */
.profile-top {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.profile-photos-block {
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
}

/* Сетка 2x2 */
.photos-grid {
    display: grid;
    width: 100%;
    height: 100%;
    gap: 3px;
    background: #060B14;
}

.photos-grid-1 {
    grid-template-columns: 1fr;
}

.photos-grid-2 {
    grid-template-columns: 1fr 1fr;
}

.photos-grid-3,
.photos-grid-4 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}

.photo-thumb {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-color: #1a1a2e;
    cursor: pointer;
    position: relative;
    min-height: 80px;
}

.photo-thumb:active {
    opacity: 0.85;
}

.photo-more {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-thumb-empty {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00C6FF, #FF007F);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    font-weight: 800;
}

/* Инфо справа сверху */
.profile-top-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-name-row h2 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
    line-height: 1.2;
}

.profile-top-info .profile-line {
    font-size: 12px;
    margin: 0;
}

.photo-open-btn {
    margin-top: auto;
    padding: 8px 10px;
    border-radius: 10px;
    background: linear-gradient(135deg, #8B00FF, #B088FF);
    color: #fff;
    border: none;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* Убираем старую большую картинку */
.profile-photo-big {
    display: none !important;
}

/* Компактнее остальные блоки */
.profile-view-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.profile-desc-block {
    margin-top: 8px;
    padding: 10px;
}

.profile-desc-block p {
    margin-top: 4px;
    font-size: 13px;
    line-height: 1.4;
    max-height: 70px;
    overflow: hidden;
}

.profile-stats {
    margin-top: 8px;
    padding-top: 8px;
    font-size: 12px;
}

/* Кнопки действий внизу */
.profile-actions-full {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
    position: static;
    background: transparent;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
}

.profile-actions-full .action-btn-full.message,
.profile-actions-full .action-btn-full.photos {
    display: none;
}

.action-btn-full.skip-big {
    background: rgba(255,255,255,0.08);
    padding: 16px;
    font-size: 15px;
}

.action-btn-full.like-big {
    background: linear-gradient(135deg, #FF007F, #FF4D8D);
    padding: 16px;
    font-size: 15px;
}

/* Нижние доп. кнопки */
.profile-actions-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 8px;
    margin-bottom: 20px;
}

.btn-nav {
    padding: 11px;
    font-size: 12px;
}

/* ============================================================
   КНОПКИ АНКЕТЫ — сетка 2×2 как в боте
   ============================================================ */

.profile-actions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
    margin-bottom: 24px;
}

.profile-actions-grid .action-btn-full {
    padding: 14px 10px;
    border-radius: 12px;
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: opacity 0.15s;
}

.profile-actions-grid .action-btn-full:active {
    opacity: 0.85;
}

/* Стили каждой кнопки */
.profile-actions-grid .action-btn-full.message {
    background: linear-gradient(135deg, #00C6FF, #0080FF);
}

.profile-actions-grid .action-btn-full.like-big {
    background: linear-gradient(135deg, #FF007F, #FF4D8D);
}

.profile-actions-grid .action-btn-full.back {
    background: rgba(255,255,255,0.08);
}

.profile-actions-grid .action-btn-full.next {
    background: rgba(255,255,255,0.08);
}

/* Скрываем старые блоки чтобы не мешались */
.profile-actions-full,
.profile-actions-bottom {
    display: none !important;
}

/* ============================================================
   ЗАМОК ДЛЯ ЛАЙКОВ
   ============================================================ */

.locked-likes {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, rgba(139,0,255,0.08), rgba(255,0,127,0.08));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    margin: 20px 0;
}

.locked-icon {
    font-size: 60px;
    margin-bottom: 16px;
}

.locked-likes h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.locked-likes p {
    font-size: 14px;
    margin-bottom: 20px;
}

.btn-unlock {
    background: linear-gradient(135deg, #00C6FF, #FF007F);
    border: none;
    color: #fff;
    padding: 14px 24px;
    border-radius: 14px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    max-width: 320px;
}

.btn-unlock:active {
    opacity: 0.9;
}

/* ============================================================
   МОДАЛЬНЫЕ ОКНА
   ============================================================ */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: modalFade 0.2s ease;
}

@keyframes modalFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-box {
    background: #0F1623;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 22px;
    padding: 28px 22px 22px;
    max-width: 380px;
    width: 100%;
    box-shadow: 0 25px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(0,198,255,0.15);
    animation: modalSlide 0.25s cubic-bezier(0.34, 1.3, 0.64, 1);
}

@keyframes modalSlide {
    from { transform: translateY(30px) scale(0.95); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-emoji {
    font-size: 52px;
    text-align: center;
    margin-bottom: 14px;
    line-height: 1;
    filter: drop-shadow(0 4px 20px rgba(0,198,255,0.4));
}

.modal-title {
    font-size: 18px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    line-height: 1.3;
    color: #fff;
}

.modal-text {
    font-size: 14px;
    color: #aaa;
    text-align: center;
    line-height: 1.6;
    margin-bottom: 22px;
}

.modal-text b {
    color: #fff;
}

.modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.modal-actions.single {
    grid-template-columns: 1fr;
}

.modal-btn {
    padding: 14px 12px;
    border-radius: 14px;
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
}

.modal-btn:active {
    transform: scale(0.97);
    opacity: 0.9;
}

.modal-btn.cancel {
    background: rgba(255,255,255,0.08);
}

.modal-btn.confirm {
    background: linear-gradient(135deg, #00C6FF, #FF007F);
    box-shadow: 0 4px 20px rgba(255,0,127,0.35);
}

/* Стрелка в списке юзеров */
.user-list-arrow {
    font-size: 22px;
    color: #444;
    margin-left: 4px;
}

.user-list-item {
    cursor: pointer;
    transition: background 0.15s;
}

.user-list-item:active {
    background: rgba(255,255,255,0.08);
}

.btn-like {
    flex-shrink: 0;
}

/* ============================================================
   КНОПКА "ОТВЕТИТЬ" В СООБЩЕНИЯХ
   ============================================================ */

.msg-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    gap: 8px;
}

.msg-time {
    font-size: 11px;
    color: #555;
}

.msg-reply-btn {
    background: linear-gradient(135deg, #00C6FF, #FF007F);
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 10px;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.15s, transform 0.1s;
}

.msg-reply-btn:active {
    opacity: 0.9;
    transform: scale(0.97);
}

/* Убираем старый .msg-time вне footer */
.msg-item .msg-time:not(.msg-footer .msg-time) {
    margin-top: 4px;
    display: block;
}

/* ============================================================
   КРАСИВЫЕ КНОПКИ В СООБЩЕНИЯХ
   ============================================================ */

.msg-reply-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, #00C6FF 0%, #0072FF 100%);
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: 0.2px;
    box-shadow:
        0 2px 12px rgba(0, 198, 255, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transition: all 0.15s ease;
    position: relative;
    overflow: hidden;
}

.msg-reply-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
    opacity: 0;
    transition: opacity 0.15s;
}

.msg-reply-btn:active {
    transform: scale(0.95);
    box-shadow: 0 1px 6px rgba(0, 198, 255, 0.4);
}

.msg-reply-btn:active::before {
    opacity: 1;
}

/* Для match — розовый градиент */
.msg-item .msg-reply-btn.match-btn,
.msg-reply-btn.match {
    background: linear-gradient(135deg, #FF007F 0%, #FF4D8D 100%);
    box-shadow:
        0 2px 12px rgba(255, 0, 127, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Улучшаем футер сообщения */
.msg-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    gap: 10px;
}

.msg-time {
    font-size: 11px;
    color: #555;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Точка непрочитанного */
.msg-item.unread .msg-time::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00C6FF;
    box-shadow: 0 0 6px #00C6FF;
    display: inline-block;
}

/* Плавное появление карточек */
.msg-item {
    transition: transform 0.15s, background 0.15s;
}

.msg-item:active {
    transform: scale(0.99);
}

/* ============================================================
   КАНАЛ В ГОРОДСКИХ ЧАТАХ
   ============================================================ */

.channel-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(0,198,255,0.12), rgba(255,0,127,0.12));
    border: 1px solid rgba(0,198,255,0.25);
    border-radius: 14px;
    text-decoration: none;
    color: #fff;
    margin-bottom: 20px;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 4px 20px rgba(0,198,255,0.15);
}

.channel-link:active {
    transform: scale(0.98);
    box-shadow: 0 2px 10px rgba(0,198,255,0.2);
}

.channel-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, #00C6FF, #FF007F);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0,198,255,0.35);
}

.channel-body {
    flex: 1;
    min-width: 0;
}

.channel-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 3px;
    color: #fff;
}

.channel-desc {
    font-size: 12px;
    color: #888;
}

.channel-arrow {
    font-size: 22px;
    color: rgba(255,255,255,0.3);
    flex-shrink: 0;
}

/* Разделитель */
.chats-divider {
    font-size: 11px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 4px 10px;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 4px;
}

/* ============================================================
   BADGE НЕПРОЧИТАННЫХ НА НИЖНЕЙ НАВИГАЦИИ
   ============================================================ */

.nav-btn span {
    position: relative;
    display: inline-block;
}

.nav-badge {
    position: absolute;
    top: -6px;
    right: -12px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: linear-gradient(135deg, #FF007F, #FF4D8D);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    box-shadow:
        0 2px 8px rgba(255,0,127,0.55),
        0 0 0 2px #060B14;
    animation: badgePulse 2s ease-in-out infinite;
}

.nav-badge.hidden {
    display: none;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow:
            0 2px 8px rgba(255,0,127,0.55),
            0 0 0 2px #060B14;
    }
    50% {
        box-shadow:
            0 2px 14px rgba(255,0,127,0.9),
            0 0 0 2px #060B14;
    }
}

/* Кнопка "Наш сайт" — другой градиент */
.channel-link.site-link {
    background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(139,0,255,0.1));
    border-color: rgba(255,215,0,0.25);
    box-shadow: 0 4px 20px rgba(255,215,0,0.12);
    margin-bottom: 20px;
}

.channel-link.site-link:active {
    box-shadow: 0 2px 10px rgba(255,215,0,0.2);
}

.site-icon {
    background: linear-gradient(135deg, #FFD700, #FF8C00) !important;
    box-shadow: 0 4px 12px rgba(255,215,0,0.35) !important;
}

/* ============================================================
   МОЯ АНКЕТА — доп. стили
   ============================================================ */

.my-photos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.my-photo {
    aspect-ratio: 1;
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    background-color: #1a1a2e;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.my-photo.main {
    border-color: #00C6FF;
    box-shadow: 0 0 20px rgba(0, 198, 255, 0.3);
}

.my-photo-main {
    position: absolute;
    top: 8px;
    right: 8px;
    background: linear-gradient(135deg, #00C6FF, #FF007F);
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.my-photos-empty {
    padding: 40px;
    text-align: center;
    color: #666;
    background: rgba(255,255,255,0.03);
    border-radius: 14px;
    margin-bottom: 16px;
    font-size: 14px;
}

.my-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 16px;
}

.my-action-btn {
    padding: 14px 12px;
    border-radius: 12px;
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: opacity 0.15s;
}

.my-action-btn.primary {
    background: linear-gradient(135deg, #00C6FF, #FF007F);
    box-shadow: 0 4px 16px rgba(255, 0, 127, 0.35);
}

.my-action-btn.secondary {
    background: rgba(255,255,255,0.08);
}

.my-action-btn:active {
    opacity: 0.9;
}

.my-hint {
    text-align: center;
    font-size: 12px;
    color: #555;
    padding: 16px 0;
}

/* ============================================================
   КНОПКА РЕДАКТОРА АНКЕТЫ — большая градиентная
   ============================================================ */

.my-actions {
    display: block;
    margin-top: 20px;
    margin-bottom: 8px;
}

.my-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 20px;
    border-radius: 16px;
    border: none;
    color: #fff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s;
    position: relative;
    overflow: hidden;
}

.my-action-btn.primary {
    background: linear-gradient(135deg, #00C6FF 0%, #0072FF 50%, #FF007F 100%);
    box-shadow:
        0 6px 24px rgba(0, 114, 255, 0.4),
        0 0 40px rgba(255, 0, 127, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    letter-spacing: 0.3px;
}

.my-action-btn.primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent 50%);
    opacity: 0;
    transition: opacity 0.15s;
}

.my-action-btn.primary:active {
    transform: scale(0.97);
    box-shadow: 0 3px 12px rgba(0, 114, 255, 0.5);
}

.my-action-btn.primary:active::before {
    opacity: 1;
}

/* Скрываем старые стили */
.my-action-btn.secondary {
    display: none;
}

/* ============================================================
   БЛОК ИНТЕРЕСОВ
   ============================================================ */

.my-interests {
    background: rgba(255,255,255,0.03);
    border-radius: 14px;
    padding: 16px;
    margin-top: 12px;
}

.my-interests p {
    margin-top: 8px;
    line-height: 1.6;
    color: #ccc;
    font-size: 13px;
}

/* Улучшаем поля my-field */
.my-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    gap: 12px;
}

.my-field span {
    color: #888;
    font-size: 13px;
    flex-shrink: 0;
}

.my-field b {
    font-size: 13px;
    text-align: right;
    color: #fff;
}

/* Пустые поля — чтобы выравнивание было */
.my-field b:empty {
    display: none;
}

/* ============================================================
   КОМПАКТНЫЙ ВИД АНКЕТЫ (лента)
   ============================================================ */

.compact-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
    padding: 14px;
    background: rgba(255,255,255,0.03);
    border-radius: 14px;
}

.compact-line {
    font-size: 13px;
    color: #ccc;
    margin: 0;
    line-height: 1.4;
}

.compact-desc {
    font-size: 13px;
    color: #999;
    font-style: italic;
    margin: 4px 0 8px;
    line-height: 1.4;
}

.btn-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 8px;
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(139,0,255,0.2), rgba(255,0,127,0.2));
    border: 1px solid rgba(139,0,255,0.4);
    border-radius: 12px;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-details:active {
    transform: scale(0.97);
    box-shadow: 0 0 20px rgba(139,0,255,0.4);
}

/* Уменьшаем фото в ленте чтобы влезло */
.profile-view .profile-photo-big,
.profile-view .profile-photos-block {
    max-height: 300px;
}

/* Чуть компактнее отступы */
.profile-view {
    gap: 12px;
}

.profile-view-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* ============================================================
   ЭКРАН РЕГИСТРАЦИИ
   ============================================================ */

#screen-registration {
    padding: 30px 20px;
    text-align: center;
    justify-content: center;
}

.reg-icon {
    font-size: 72px;
    margin-bottom: 20px;
    animation: heartBeat 1.5s ease-in-out infinite;
    filter: drop-shadow(0 4px 20px rgba(255, 0, 127, 0.5));
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.reg-title {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.3;
    background: linear-gradient(135deg, #00C6FF, #FF007F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.reg-desc {
    font-size: 15px;
    color: #aaa;
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 340px;
}

.reg-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px 32px;
    background: linear-gradient(135deg, #00C6FF 0%, #0072FF 50%, #FF007F 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 18px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    box-shadow:
        0 8px 28px rgba(0, 114, 255, 0.45),
        0 0 40px rgba(255, 0, 127, 0.25);
    transition: transform 0.15s, box-shadow 0.15s;
    min-width: 260px;
    letter-spacing: 0.3px;
}

.reg-btn:active {
    transform: scale(0.97);
    box-shadow: 0 4px 16px rgba(0, 114, 255, 0.5);
}

.reg-hint {
    font-size: 13px;
    color: #666;
    margin-top: 16px;
}

/* ============================================================
   ✏️ Редактор анкеты (Mini App)
   ============================================================ */
.ep-modal { width: min(94vw, 520px); max-height: 88vh; overflow-y: auto; padding: 18px 16px 14px; }
.ep-form  { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 16px; }
.ep-field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #a9b4c4; position: relative; }
.ep-field > span { font-size: 12px; }
.ep-field input, .ep-field select, .ep-field textarea {
    width: 100%; box-sizing: border-box; background: #10141c; color: #e9eef7;
    border: 1px solid #2a3140; border-radius: 10px; padding: 9px 11px;
    font-size: 14px; font-family: inherit; outline: none;
}
.ep-field input:focus, .ep-field select:focus, .ep-field textarea:focus { border-color: #4a76ff; }
.ep-field textarea { resize: vertical; }
.ep-city-results {
    position: absolute; top: 100%; left: 0; right: 0; background: #0d1119;
    border: 1px solid #2a3140; border-radius: 10px; max-height: 200px;
    overflow-y: auto; z-index: 10; margin-top: 2px;
}
.ep-city-item {
    padding: 8px 11px; cursor: pointer; font-size: 13px; color: #e9eef7;
    display: flex; justify-content: space-between; gap: 8px;
    border-bottom: 1px solid #1a2029;
}
.ep-city-item:last-child { border-bottom: none; }
.ep-city-item:hover { background: #1a2130; }
.ep-city-region { font-size: 11px; color: #7a869a; }
.ep-city-empty { padding: 8px 11px; font-size: 12px; color: #7a869a; }
.ep-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.ep-chip {
    background: #10141c; color: #a9b4c4; border: 1px solid #2a3140;
    border-radius: 999px; padding: 5px 11px; font-size: 12px;
    cursor: pointer; font-family: inherit; transition: all .15s ease;
}
.ep-chip:hover { border-color: #4a76ff; color: #e9eef7; }
.ep-chip.active {
    background: linear-gradient(135deg, #4a76ff, #a94aff);
    border-color: transparent; color: #fff;
}

/* ── Кнопки редактора анкеты ─────────────────────── */
.ep-modal .modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.ep-modal .modal-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 12px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity .15s ease, transform .1s ease;
}
.ep-modal .modal-btn:active { transform: scale(.98); }
.ep-modal .modal-btn.cancel {
    background: #1a1f2b;
    color: #a9b4c4;
    border: 1px solid #2a3140;
}
.ep-modal .modal-btn.cancel:hover { background: #232936; color: #e9eef7; }
.ep-modal .modal-btn.primary {
    background: linear-gradient(135deg, #4a76ff, #a94aff);
    color: #fff;
    box-shadow: 0 4px 14px rgba(74,118,255,.35);
}
.ep-modal .modal-btn.primary:hover {
    box-shadow: 0 6px 18px rgba(74,118,255,.5);
}
.ep-modal .modal-btn.primary:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* ── Фото в редакторе анкеты ─────────────────────── */
.ep-photos {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}
.ep-photos-empty {
    grid-column: 1 / -1;
    color: #7a869a;
    font-size: 12px;
    padding: 14px;
    text-align: center;
    background: #10141c;
    border: 1px dashed #2a3140;
    border-radius: 10px;
}
.ep-photo-item {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    overflow: hidden;
    background: #10141c;
    border: 1px solid #2a3140;
}
.ep-photo-item.main {
    border-color: #4a76ff;
    box-shadow: 0 0 0 2px rgba(74,118,255,.35);
}
.ep-photo-item img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}
.ep-photo-badge {
    position: absolute;
    bottom: 4px; left: 4px;
    background: rgba(74,118,255,.95);
    color: #fff; font-size: 10px;
    padding: 2px 6px; border-radius: 6px;
    font-weight: 600;
}
.ep-photo-actions {
    position: absolute;
    top: 4px; right: 4px;
    display: flex; gap: 4px;
}
.ep-photo-btn {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: none; cursor: pointer;
    font-size: 13px; color: #fff;
    display: flex; align-items: center; justify-content: center;
    padding: 0; line-height: 1;
}
.ep-photo-btn.star { background: rgba(255,193,7,.95); }
.ep-photo-btn.del  { background: rgba(220,53,69,.95); }
.ep-photo-btn:hover { opacity: .85; }
.ep-photo-add {
    width: 100%;
    background: #10141c; color: #a9b4c4;
    border: 1px dashed #2a3140;
    border-radius: 10px;
    padding: 10px; font-size: 13px;
    font-family: inherit; cursor: pointer;
    transition: all .15s ease;
}
.ep-photo-add:hover { border-color: #4a76ff; color: #e9eef7; }
.ep-photo-add:disabled { opacity: .6; cursor: not-allowed; }

/* ── Радио-группа «Где искать анкеты?» ─────────── */
.ep-search-city-block { position: relative; }
.ep-radio-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 4px;
}
.ep-radio {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #10141c;
    border: 1px solid #2a3140;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #e9eef7;
    transition: all .15s ease;
}
.ep-radio:hover { border-color: #4a76ff; }
.ep-radio input[type="radio"] {
    accent-color: #4a76ff;
    width: 16px;
    height: 16px;
    margin: 0;
    flex-shrink: 0;
}
.ep-radio.checked {
    background: linear-gradient(135deg, rgba(74,118,255,.18), rgba(169,74,255,.18));
    border-color: #4a76ff;
}

/* ── Кнопка «Скрыть / Показать анкету» ────────── */
.ep-modal .modal-btn.visibility-btn {
    display: block;
    width: 100%;
    margin-top: 8px;
    background: #10141c;
    color: #a9b4c4;
    border: 1px solid #2a3140;
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all .15s ease;
}
.ep-modal .modal-btn.visibility-btn:hover {
    border-color: #4a76ff;
    color: #e9eef7;
    background: #161b26;
}
.ep-modal .modal-btn.visibility-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* ── Welcome-экран при регистрации ────────────── */
.welcome-wrap {
    max-width: 420px;
    padding: 40px 24px 24px;
    text-align: center;
    margin: 0 auto;
}
.welcome-icon {
    font-size: 72px;
    line-height: 1;
    margin-bottom: 20px;
}
.welcome-title {
    font-size: 24px;
    font-weight: 700;
    color: #e9eef7;
    margin: 0 0 12px;
    line-height: 1.3;
}
.welcome-desc {
    font-size: 15px;
    color: #a9b4c4;
    line-height: 1.55;
    margin: 0 0 28px;
}
.welcome-btn {
    display: block;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #4a76ff, #a94aff);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(74,118,255,.4);
    transition: transform .1s ease, box-shadow .15s ease;
}
.welcome-btn:hover {
    box-shadow: 0 8px 26px rgba(74,118,255,.55);
}
.welcome-btn:active { transform: scale(.98); }
.welcome-hint {
    margin: 20px 0 0;
    font-size: 12px;
    color: #7a869a;
    line-height: 1.5;
}
.welcome-hint a {
    color: #4a76ff;
    text-decoration: none;
    border-bottom: 1px dotted #4a76ff;
}
.welcome-hint a:hover { color: #a94aff; border-color: #a94aff; }

/* ── Подарки в карточке (Mini App) ─────── */
.my-gifts {
    margin: 12px 0;
    padding: 12px;
    background: linear-gradient(135deg, rgba(74,118,255,.08), rgba(169,74,255,.08));
    border: 1px solid rgba(74,118,255,.25);
    border-radius: 14px;
}
.my-gifts-title {
    font-size: 13px;
    font-weight: 600;
    color: #a9b4c4;
    margin-bottom: 10px;
}
.my-gifts-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.my-gift-item {
    position: relative;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.my-gift-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
}
.my-gift-emoji {
    font-size: 36px;
    line-height: 1;
}
.my-gift-cnt {
    position: absolute;
    bottom: -2px;
    right: -4px;
    background: linear-gradient(135deg, #4a76ff, #a94aff);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 8px;
    border: 1.5px solid #0d1119;
}
/* Та же плашка, но для чужой анкеты */
.p-gifts {
    margin: 12px 0;
    padding: 12px;
    background: linear-gradient(135deg, rgba(74,118,255,.08), rgba(169,74,255,.08));
    border: 1px solid rgba(74,118,255,.25);
    border-radius: 14px;
}
.p-gifts-title {
    font-size: 13px;
    font-weight: 600;
    color: #a9b4c4;
    margin-bottom: 10px;
}
.p-gifts-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.p-gift-item {
    position: relative;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.p-gift-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
}
.p-gift-emoji {
    font-size: 36px;
    line-height: 1;
}
.p-gift-cnt {
    position: absolute;
    bottom: -2px;
    right: -4px;
    background: linear-gradient(135deg, #4a76ff, #a94aff);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 8px;
    border: 1.5px solid #0d1119;
}

/* ── Подарки в чужой анкете (Mini App) ─────── */
.p-gifts {
    margin-top: 10px;
    padding: 10px 12px;
    background: linear-gradient(135deg, rgba(74,118,255,.10), rgba(169,74,255,.10));
    border: 1px solid rgba(74,118,255,.3);
    border-radius: 12px;
}
.p-gifts-title {
    font-size: 12px;
    color: #a9b4c4;
    margin-bottom: 8px;
    font-weight: 600;
}
.p-gifts-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.p-gift-item {
    position: relative;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.p-gift-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.35));
}
.p-gift-emoji {
    font-size: 30px;
    line-height: 1;
}
.p-gift-cnt {
    position: absolute;
    bottom: -2px;
    right: -4px;
    background: linear-gradient(135deg, #4a76ff, #a94aff);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 8px;
    border: 1.5px solid #0d1119;
}

/* ── Модалка «Подарить подарок» (Mini App) ── */
.gift-modal {
    width: min(94vw, 480px);
    max-height: 88vh;
    overflow-y: auto;
    padding: 18px 16px 14px;
}
.gift-to {
    font-size: 13px;
    color: #a9b4c4;
    margin: 4px 0;
}
.gift-balance {
    font-size: 13px;
    color: #e9eef7;
    margin: 4px 0 14px;
    padding: 8px 10px;
    background: rgba(74,118,255,.08);
    border: 1px solid rgba(74,118,255,.25);
    border-radius: 10px;
}
.gift-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}
.gift-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 6px;
    background: #10141c;
    border: 1px solid #2a3140;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    transition: all .15s ease;
}
.gift-choice:hover { border-color: #4a76ff; }
.gift-choice.disabled { opacity: .45; cursor: not-allowed; }
.gift-choice-img {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gift-choice-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.gift-choice-img .gift-emoji { font-size: 40px; line-height: 1; }
.gift-choice-name {
    font-size: 12px;
    font-weight: 600;
    color: #e9eef7;
    text-align: center;
    line-height: 1.2;
}
.gift-choice-price {
    font-size: 11px;
    color: #a9b4c4;
}
.profile-actions-grid .gift-btn {
    background: linear-gradient(135deg, #a94aff, #ff3d8e);
    color: #fff;
    border: none;
}

/* ── Кнопки под фото (фото + подарить) ── */
.profile-top-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 10px;
}
.profile-top-btns .photo-open-btn,
.profile-top-btns .gift-open-btn {
    width: 100%;
    padding: 10px 14px;
    border-radius: 12px;
    border: none;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity .15s ease, transform .1s ease;
    text-align: center;
}
.profile-top-btns .photo-open-btn {
    background: linear-gradient(135deg, #a94aff, #4a76ff);
    color: #fff;
    box-shadow: 0 4px 12px rgba(169,74,255,.35);
}
.profile-top-btns .gift-open-btn {
    background: linear-gradient(135deg, #ff3d8e, #a94aff);
    color: #fff;
    box-shadow: 0 4px 12px rgba(255,61,142,.35);
}
.profile-top-btns .photo-open-btn:active,
.profile-top-btns .gift-open-btn:active {
    transform: scale(.98);
}

/* ── Кнопки модалки подарков (gift-modal) ── */
.gift-modal .modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}
.gift-modal .modal-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 12px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all .15s ease;
}
.gift-modal .modal-btn:active { transform: scale(.98); }
.gift-modal .modal-btn.cancel {
    background: #1a1f2b;
    color: #a9b4c4;
    border: 1px solid #2a3140;
}
.gift-modal .modal-btn.cancel:hover { background: #232936; color: #e9eef7; }
.gift-modal .modal-btn.primary {
    background: linear-gradient(135deg, #4a76ff, #a94aff);
    color: #fff;
    box-shadow: 0 4px 14px rgba(74,118,255,.35);
}
.gift-modal .modal-btn.primary:hover {
    box-shadow: 0 6px 18px rgba(74,118,255,.5);
}

/* ── Кнопки подтверждения (confirmGiftSend) ── */
.modal-box .modal-actions .modal-btn.primary {
    background: linear-gradient(135deg, #4a76ff, #a94aff);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(74,118,255,.35);
}
.modal-box .modal-actions .modal-btn.primary:hover {
    box-shadow: 0 6px 18px rgba(74,118,255,.5);
}
.modal-box .modal-actions .modal-btn.cancel {
    background: #1a1f2b;
    color: #a9b4c4;
    border: 1px solid #2a3140;
}

/* ── Раздел «Мои подарки» (Mini App) ── */
.gift-my-tabs {
    display: flex;
    gap: 6px;
    padding: 4px;
    background: #10141c;
    border: 1px solid #2a3140;
    border-radius: 12px;
    margin-bottom: 14px;
}
.gift-my-tab {
    flex: 1;
    padding: 10px 8px;
    background: transparent;
    color: #a9b4c4;
    border: none;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all .15s ease;
}
.gift-my-tab:hover { color: #e9eef7; background: rgba(74,118,255,.08); }
.gift-my-tab.active {
    background: linear-gradient(135deg, #4a76ff, #a94aff);
    color: #fff;
    box-shadow: 0 2px 8px rgba(74,118,255,.4);
}
.gift-my-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.gift-my-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #10141c;
    border: 1px solid #2a3140;
    border-radius: 14px;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: all .15s ease;
}
.gift-my-item:hover { border-color: #4a76ff; background: #161b26; }
.gift-my-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4a76ff, #a94aff);
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.gift-my-info { flex: 1; min-width: 0; }
.gift-my-name {
    font-size: 14px;
    font-weight: 600;
    color: #e9eef7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gift-my-meta {
    font-size: 12px;
    color: #a9b4c4;
    margin-top: 2px;
}
.gift-my-arrow {
    color: #7a869a;
    font-size: 20px;
    flex-shrink: 0;
}
.gift-my-empty {
    text-align: center;
    color: #7a869a;
    font-size: 14px;
    padding: 40px 20px;
}

/* ============================================================
   Web-версия: ограничиваем ширину, как мобильный экран
   ============================================================ */
@media (min-width: 520px) {
    html, body {
        background: #060B14 !important;
        margin: 0;
        padding: 0;
    }
    body {
        display: flex;
        justify-content: center;
    }
    #app {
        width: 100%;
        max-width: 480px;
        min-height: 100vh;
        background: #0a0f1c;
        position: relative;
    }
    .bottom-nav {
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: 100% !important;
        max-width: 480px !important;
    }
}

/* Fix: скрываем модалки с классом hidden */
.modal-overlay.hidden,
.screen.hidden {
    display: none !important;
}

/* ============================================================
   Логотип в приложении
   ============================================================ */
.logo-img {
    width: 140px;
    height: 140px;
    border-radius: 28px;
    margin-bottom: 20px;
    display: block;
    box-shadow: 0 8px 32px rgba(123, 97, 255, 0.35);
}
.logo-img-small {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    margin: 0;
    box-shadow: none;
}

/* ============================================================
   Фикс высоты: подарки всегда одного размера, кнопки внизу
   ============================================================ */

/* Подарки — фиксированная высота, пустые тоже */
.p-gifts {
    min-height: 96px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.p-gifts-row {
    min-height: 56px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.p-gifts-row-empty {
    color: #666;
    font-size: 13px;
    font-style: italic;
}

/* Карточка анкеты — флекс-колонка на всю высоту */
.profile-view {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 180px);
}

/* Кнопки действий — прижаты к низу экрана */
.profile-actions-grid {
    margin-top: auto;
}

/* Фото не тянется по высоте правого блока */
.profile-top {
    align-items: flex-start;
}
.profile-photos-block {
    flex-shrink: 0;
}

/* ============================================================
   ФИНАЛЬНЫЙ ФИКС: кнопки внизу, карточка стабильной высоты
   ============================================================ */
.profile-view {
    display: flex !important;
    flex-direction: column !important;
    min-height: calc(100vh - 150px) !important;
}

/* Обнуляем старое правило с margin-top: 16px */
.profile-actions-grid {
    margin-top: auto !important;
    margin-bottom: 0 !important;
    padding: 12px 0 16px !important;
    background: #060B14;
    position: sticky;
    bottom: 0;
    z-index: 10;
}

/* Подарки — стабильная высота, пустой блок тоже виден */
.p-gifts {
    min-height: 96px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.p-gifts-row-empty {
    color: #666;
    font-size: 13px;
    font-style: italic;
}

/* ============================================================
   ЖЁСТКИЙ ФИКС: кнопки анкеты прибиты к низу экрана
   ============================================================ */

/* Кнопки в карточке анкеты — фиксированы внизу */
.profile-actions-grid {
    position: fixed !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 100% !important;
    max-width: 480px !important;
    margin: 0 !important;
    padding: 12px 16px 16px !important;
    background: #060B14;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    z-index: 50;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.5);
}

/* Отступ снизу, чтобы кнопки не перекрывали контент */
.profile-view {
    padding-bottom: 140px !important;
    min-height: auto !important;
}

/* Внутри карточки padding, чтобы кнопки не наслаивались */
.profile-view > .compact-info {
    margin-bottom: 0;
}

/* ============================================================
   🎁 Ежедневный бонус
   ============================================================ */
.daily-card {
    background: linear-gradient(135deg, rgba(255,193,7,0.12), rgba(255,0,127,0.12));
    border: 1px solid rgba(255,193,7,0.25);
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 16px;
    animation: dailyPulse 2s ease-in-out infinite;
}
@keyframes dailyPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,193,7,0.4); }
    50%      { box-shadow: 0 0 0 8px rgba(255,193,7,0); }
}

.daily-claim-btn {
    display: flex; align-items: center; gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #FFC107, #FF007F);
    color: #fff;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform 0.15s;
}
.daily-claim-btn:active { transform: scale(0.98); }
.daily-btn-icon { font-size: 28px; }
.daily-btn-text b { font-size: 16px; font-weight: 700; display: block; }
.daily-btn-text small { font-size: 12px; opacity: 0.85; }

.daily-streak {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.daily-streak-title {
    font-size: 13px;
    color: #FFC107;
    font-weight: 600;
    margin-bottom: 8px;
}
.daily-streak-dots {
    display: flex;
    justify-content: space-between;
    gap: 6px;
}
.daily-dot {
    flex: 1;
    height: 32px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #666;
    position: relative;
}
.daily-dot.done {
    background: linear-gradient(135deg, #FFC107, #FF007F);
    color: #fff;
    border-color: transparent;
}
.daily-dot.current {
    background: rgba(255,193,7,0.2);
    border-color: #FFC107;
    color: #FFC107;
    animation: dotPulse 1.5s ease-in-out infinite;
}
@keyframes dotPulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.08); }
}

/* Скрываем по клику */
.daily-card.claimed .daily-claim-btn {
    display: none;
}

/* Точки-суммы: чуть крупнее шрифт */
.daily-dot {
    font-size: 11px;
    letter-spacing: -0.3px;
}
.daily-dot.done { font-weight: 800; }

/* Машина/Спорткар — широкий слот, чтобы заполнить по ширине */
.p-gift-item-wide {
    width: 96px !important;
    height: 48px !important;
}
.p-gift-item-wide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}
.p-gifts-row {
    align-items: center;
}


/* ============================================================
   💬 Экран диалога
   ============================================================ */
#dialog-screen {
    position: fixed;
    inset: 0;
    background: #060B14;
    display: flex;
    flex-direction: column;
    z-index: 100;
    max-width: 480px;
    margin: 0 auto;
}
#dialog-screen.hidden { display: none; }

.dialog-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: #0a0f1c;
}
.dialog-back {
    background: rgba(255,255,255,0.06);
    border: none;
    color: #fff;
    width: 36px; height: 36px;
    border-radius: 10px;
    font-size: 20px;
    cursor: pointer;
}
.dialog-partner {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.dialog-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.dialog-empty {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-top: 40px;
    line-height: 1.6;
}

.dialog-bubble {
    max-width: 75%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.4;
    word-wrap: break-word;
    position: relative;
}
.dialog-bubble.mine {
    align-self: flex-end;
    background: linear-gradient(135deg, #00C6FF, #0080FF);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.dialog-bubble.their {
    align-self: flex-start;
    background: rgba(255,255,255,0.08);
    color: #eee;
    border-bottom-left-radius: 4px;
}
.dialog-time {
    display: block;
    font-size: 10px;
    opacity: 0.7;
    margin-top: 4px;
    text-align: right;
}

.dialog-input-row {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    background: #0a0f1c;
}
#dialog-input {
    flex: 1;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 12px 16px;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
}
#dialog-input:focus { outline: none; border-color: #00C6FF; }
#dialog-send-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #00C6FF, #FF007F);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}
#dialog-send-btn:active { transform: scale(0.95); }

/* ============================================================
   💬 Карточки диалогов в разделе Сообщения
   ============================================================ */
.msg-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 16px 0 8px;
    padding-left: 4px;
}

.dlg-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(255,255,255,0.04);
    border-radius: 14px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: background 0.15s;
}
.dlg-item:active { background: rgba(255,255,255,0.08); }
.dlg-item.unread { background: rgba(0,198,255,0.08); }

.dlg-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.dlg-avatar-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #00C6FF, #FF007F);
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.dlg-body { flex: 1; min-width: 0; }
.dlg-name {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}
.dlg-preview {
    font-size: 13px;
    color: #888;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dlg-time {
    font-size: 11px;
    color: #666;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 4px;
}

.dlg-unread {
    background: #FF007F;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
}

/* 🔴 Бейдж на кнопке «Сообщения» в главном меню */
.menu-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FF007F;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 6px;
    vertical-align: middle;
    min-width: 20px;
    height: 20px;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(255,0,127,0.4);
}
.menu-badge.hidden { display: none; }

/* 💡 Ссылка «Как заработать» в магазине */
.shop-earn-link {
    display: block;
    text-align: center;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(0,198,255,0.12), rgba(255,0,127,0.12));
    border: 1px solid rgba(0,198,255,0.25);
    border-radius: 14px;
    color: #00C6FF;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    margin: 8px 0 20px;
    transition: transform 0.15s;
}
.shop-earn-link:active {
    transform: scale(0.98);
    background: linear-gradient(135deg, rgba(0,198,255,0.2), rgba(255,0,127,0.2));
}

/* ============================================================
   💡 Модалка «Как заработать васильки»
   ============================================================ */
.earn-guide-modal {
    max-height: 85vh;
    overflow-y: auto;
    padding: 0;
}
.earn-guide-header {
    position: relative;
    padding: 24px 16px 16px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.earn-guide-close {
    position: absolute;
    top: 12px; right: 12px;
    background: rgba(255,255,255,0.08);
    border: none;
    color: #fff;
    width: 32px; height: 32px;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
}
.earn-guide-logo {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #00C6FF, #FF007F);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.earn-guide-sub {
    font-size: 13px;
    color: #888;
    margin-top: 4px;
}
.earn-guide-body { padding: 16px; }

.earn-guide-intro {
    font-size: 13px;
    color: #aaa;
    line-height: 1.6;
    margin: 0 0 16px;
}

.earn-card {
    background: rgba(255,255,255,0.04);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 10px;
    border: 1px solid rgba(255,255,255,0.06);
}
.earn-icon { font-size: 26px; margin-bottom: 6px; }
.earn-title { font-size: 15px; font-weight: 700; margin-bottom: 5px; color: #fff; }
.earn-desc { font-size: 12.5px; color: #aaa; line-height: 1.5; }
.earn-reward {
    display: inline-block;
    background: linear-gradient(135deg, #00C6FF, #FF007F);
    padding: 3px 10px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    margin-top: 8px;
    color: #fff;
}
.earn-tip {
    background: rgba(255,193,7,0.08);
    border-left: 3px solid #FFC107;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    color: #ddd;
    margin: 16px 0 8px;
    line-height: 1.5;
}

/* Ссылка-кнопка в магазине */
.shop-earn-link {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px 16px;
    background: linear-gradient(135deg, rgba(0,198,255,0.12), rgba(255,0,127,0.12));
    border: 1px solid rgba(0,198,255,0.25);
    border-radius: 14px;
    color: #00C6FF;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    margin: 8px 0 20px;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.15s;
}
.shop-earn-link:active {
    transform: scale(0.98);
    background: linear-gradient(135deg, rgba(0,198,255,0.2), rgba(255,0,127,0.2));
}

/* 🌸 Картинки васильков в модалке «Как заработать» */
.earn-drops {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}
.earn-drop-item {
    flex: 1;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 8px;
    text-align: center;
    position: relative;
}
.earn-drop-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 6px;
}
.earn-drop-label {
    font-size: 11px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-weight: 600;
}
.earn-drop-reward {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 10px;
    background: linear-gradient(135deg, #00C6FF, #FF007F);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
}


/* ============================================================
   👑 PREMIUM-КАРТОЧКА — LUXURY (чёрный + золото, двойная рамка)
   ============================================================ */

.profile-view.premium {
    position: relative;
    background:
        radial-gradient(circle at top right, rgba(255,215,0,0.10), transparent 50%),
        radial-gradient(circle at bottom left, rgba(255,215,0,0.06), transparent 50%),
        linear-gradient(180deg, #0d0d0d 0%, #0a0a0a 100%);
    border: 1px solid rgba(255, 215, 0, 0.7);
    border-radius: 20px;
    padding: 20px;
    box-shadow:
        0 0 0 1px rgba(255, 215, 0, 0.2) inset,
        0 0 30px rgba(255, 215, 0, 0.15),
        0 8px 40px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

/* Внутренняя тонкая золотая рамка (как у фото) */
.profile-view.premium::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(255, 215, 0, 0.25);
    border-radius: 14px;
    pointer-events: none;
    z-index: 2;
}

/* Декоративные уголки */
.profile-view.premium .profile-top::before,
.profile-view.premium .profile-top::after {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    border: 2px solid #FFD700;
    z-index: 3;
    pointer-events: none;
}
.profile-view.premium .profile-top::before {
    top: -1px; left: -1px;
    border-right: none; border-bottom: none;
    border-top-left-radius: 18px;
}
.profile-view.premium .profile-top::after {
    top: -1px; right: -1px;
    border-left: none; border-bottom: none;
    border-top-right-radius: 18px;
}

/* Имя — золотое, с мягким свечением */
.profile-view.premium .profile-name-row h2,
.profile-view.premium .profile-name {
    color: #FFD700 !important;
    font-weight: 800;
    text-shadow: 0 0 16px rgba(255, 215, 0, 0.35);
}

/* Иконки/эмодзи в карточке — обычные */
.profile-view.premium .profile-line,
.profile-view.premium .compact-line,
.profile-view.premium .compact-desc {
    color: #d0d0d0 !important;
}

/* Фото — золотая рамка с двойной обводкой */
.profile-view.premium .profile-photos-block {
    border: 2px solid #FFD700;
    border-radius: 14px;
    box-shadow:
        0 0 0 3px rgba(255, 215, 0, 0.12),
        0 0 24px rgba(255, 215, 0, 0.25);
}

/* Блоки внутри — тёмные с золотой окантовкой */
.profile-view.premium .profile-gifts,
.profile-view.premium .compact-info {
    background: rgba(255, 215, 0, 0.03) !important;
    border: 1px solid rgba(255, 215, 0, 0.18) !important;
    border-radius: 12px;
    padding: 12px;
}

/* Кнопки сверху — тёмные с золотом */
.profile-view.premium .profile-top-btns button,
.profile-view.premium .btn-details {
    background: linear-gradient(180deg, #1a1a1a, #0a0a0a) !important;
    color: #FFD700 !important;
    border: 1px solid rgba(255, 215, 0, 0.4) !important;
    font-weight: 700;
    text-shadow: none !important;
}

/* Кнопки «Написать» / «Нравится» внизу — стандартные, не трогаем */
.profile-view.premium .profile-actions-grid button {
    /* стандартный градиент */
}

/* Плашка PREMIUM — под фото, тонкая, по центру */
.profile-view.premium .profile-top::after {
    /* используем не для уголка, а для плашки */
    content: none;
}




/* Отдельный бейдж PREMIUM — если добавлен через JS как элемент */
.premium-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 10px 0 4px;
    padding: 6px 16px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,215,0,0.18) 50%, transparent 100%);
    border-top: 1px solid rgba(255,215,0,0.35);
    border-bottom: 1px solid rgba(255,215,0,0.35);
    color: #FFD700;
    font-weight: 800;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 0 12px rgba(255,215,0,0.5);
}
.premium-badge::before { content: '👑'; font-size: 14px; letter-spacing: 0; }

/* ============================================================
   🎁 Табы редкости в модалке подарков
   ============================================================ */
.gift-tabs {
    display: flex;
    gap: 6px;
    margin: 12px 0 16px;
    padding: 4px;
    background: rgba(255,255,255,0.04);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.06);
}
.gift-tab {
    flex: 1;
    padding: 10px 8px;
    background: transparent;
    border: none;
    color: #888;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}
.gift-tab:hover {
    color: #ccc;
}
.gift-tab.active {
    background: linear-gradient(135deg, #00C6FF, #FF007F);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0,198,255,0.3);
}
.gift-tab[data-rarity="legendary"].active {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #1a1a2e;
    box-shadow: 0 4px 12px rgba(255,215,0,0.4);
}

.gift-tab-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: #666;
    font-size: 13px;
    padding: 30px 10px;
    font-style: italic;
}
