/* ============================================
   l❤velyHunt — дизайн-система
   Платиново-белый #F8F6F0 · Винный #8B1A2B · Фиолетовый #4A2C5E
   Золотой #C9A05C · Сирень #E8D5F5 · Шампань #F9EBE0 · Бордовый #5E1A2B
   Все элементы скруглённые: карточки 30px, кнопки 50px, аватарки круглые
   ============================================ */

:root {
    --white: #F8F6F0;
    --wine: #8B1A2B;
    --violet: #4A2C5E;
    --gold: #C9A05C;
    --lilac: #E8D5F5;
    --champagne: #F9EBE0;
    --burgundy: #5E1A2B;

    --bg-start: #FDFCF9;
    --bg-mid: #F8F1EA;
    --bg-end: #F0E8F5;
    --bg: var(--white);
    --text: #3A2C3E;
    --gray: #8A7F8F;
    --card-bg: rgba(255, 253, 250, 0.75);
    --card-border: rgba(74, 44, 94, 0.08);
    --header-bg: var(--violet);
    --footer-bg: var(--burgundy);
    --header-text: #FFFFFF;
    --shadow: 0 8px 24px rgba(74, 44, 94, 0.12);
    --border: rgba(74, 44, 94, 0.12);
    --msg-mine: var(--lilac);
    --msg-theirs: #FFFFFF;
    --input-bg: rgba(255, 255, 255, 0.85);
    --radius-card: 30px;
    --radius-btn: 50px;
    --radius-input: 30px;

    /* Декоративные пятна фона */
    --blob-1: rgba(201, 160, 92, 0.14);
    --blob-2: rgba(74, 44, 94, 0.12);
    --blob-3: rgba(139, 26, 43, 0.07);
    --blob-4: rgba(232, 213, 245, 0.5);
}

html[data-theme="dark"] {
    --bg-start: #15101C;
    --bg-mid: #1A1420;
    --bg-end: #241A2E;
    --bg: #1A1420;
    --card-bg: rgba(42, 31, 51, 0.82);
    --card-border: rgba(201, 160, 92, 0.1);
    --text: #F0EAF5;
    --gray: #A89DB5;
    --border: rgba(201, 160, 92, 0.22);
    --msg-mine: #3A2740;
    --msg-theirs: #221A2B;
    --input-bg: #241C2D;
    --shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
    --header-bg: #231A2B;
    --footer-bg: #2A1530;

    --blob-1: rgba(201, 160, 92, 0.08);
    --blob-2: rgba(94, 58, 120, 0.25);
    --blob-3: rgba(139, 26, 43, 0.15);
    --blob-4: rgba(74, 44, 94, 0.3);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { min-height: 100vh; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: linear-gradient(160deg, var(--bg-start) 0%, var(--bg-mid) 50%, var(--bg-end) 100%);
    background-attachment: fixed;
    color: var(--text);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: background .3s, color .3s;
}

/* Декоративные размытые пятна на фоне */
body::before,
body::after {
    content: "";
    position: fixed;
    border-radius: 50%;
    filter: blur(70px);
    z-index: -1;
    pointer-events: none;
}
body::before {
    width: 480px;
    height: 480px;
    top: -120px;
    right: -100px;
    background: var(--blob-1);
}
body::after {
    width: 520px;
    height: 520px;
    bottom: -160px;
    left: -140px;
    background: var(--blob-2);
}

/* Дополнительные мягкие пятна на контенте (через класс на main) */
.page-main::before {
    content: "";
    position: fixed;
    width: 360px;
    height: 360px;
    top: 35%;
    left: -180px;
    border-radius: 50%;
    background: var(--blob-3);
    filter: blur(80px);
    z-index: -1;
    pointer-events: none;
}
.page-main::after {
    content: "";
    position: fixed;
    width: 300px;
    height: 300px;
    top: 60%;
    right: -140px;
    border-radius: 50%;
    background: var(--blob-4);
    filter: blur(90px);
    z-index: -1;
    pointer-events: none;
}

.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* ---------- Шапка (скругление снизу) ---------- */
.site-header {
    background: linear-gradient(135deg, var(--violet), #5C3A78);
    color: var(--header-text);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-radius: 0 0 30px 30px;
    box-shadow: var(--shadow);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.logo {
    color: var(--gold);
    font-weight: 800;
    font-size: 24px;
    text-decoration: none;
    letter-spacing: .5px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}
.logo-img {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.logo-text {
    display: inline-block;
}
.logo-heart {
    color: #C9A05C; /* золотой #C9A05C */
    font-weight: 900;
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
}
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.nav { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.nav-link {
    color: var(--header-text);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 50px;
    font-size: 14px;
    transition: background .2s;
}
.nav-link:hover { background: rgba(255, 255, 255, 0.16); }
.nav-avatar { display: flex; align-items: center; gap: 6px; }

.mini-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--champagne);
    border: 2px solid var(--gold);
}
.mini-avatar.lg { width: 52px; height: 52px; }

/* ---------- Подвал (скругление сверху) ---------- */
.site-footer {
    background: var(--footer-bg);
    color: var(--header-text);
    padding: 28px 0;
    margin-top: auto;
    border-radius: 30px 30px 0 0;
}
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-links { display: flex; gap: 16px; font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.footer-link { color: rgba(255, 255, 255, 0.7); text-decoration: none; transition: color .2s; }
.footer-link:hover { color: var(--gold); }

/* ---------- Контент ---------- */
.page-main { padding: 32px 16px; flex: 1; }
h1 { font-size: 28px; margin-bottom: 20px; color: var(--burgundy); }
h2 { font-size: 22px; margin-bottom: 16px; color: var(--burgundy); }
h3 { font-size: 18px; margin-bottom: 10px; color: var(--burgundy); }
html[data-theme="dark"] h1, html[data-theme="dark"] h2, html[data-theme="dark"] h3 { color: var(--lilac); }

/* ---------- Карточки (30px) ---------- */
.card {
    background: var(--card-bg);
    border-radius: 30px;
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 20px;
    transition: background .3s, border-color .3s, transform .2s;
}
.card:hover { transform: translateY(-2px); }
.card-title { font-weight: 700; color: var(--violet); font-size: 14px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 12px; }

/* ---------- Кнопки (овальные 50px) ---------- */
.btn {
    display: inline-block;
    border: none;
    cursor: pointer;
    padding: 12px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: transform .15s, opacity .2s, filter .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 6px 16px rgba(74, 44, 94, 0.25); }
.btn:active { transform: translateY(0); }
.btn-block { display: block; width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }

.btn-gold { background: var(--gold); color: #2A1A0E; }
.btn-gold:hover { background: #D9B878; }
.btn-action { background: var(--wine); color: white; }
.btn-orange { background: var(--violet); color: white; }
.btn-blue { background: var(--violet); color: white; }
.btn-green { background: var(--gold); color: #2A1A0E; }
.btn-danger { background: var(--wine); color: white; }
.btn-dislike { background: var(--gray); color: white; }
.btn-like {
    background: var(--wine);
    color: white;
    font-size: 22px;
    padding: 8px 18px;
    border-radius: 50px;
}
.btn-like.liked { background: var(--gold); color: #2A1A0E; cursor: default; }

/* ---------- Бейджи ---------- */
.badge {
    display: inline-block;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    margin-right: 6px;
}
.badge.elite { background: var(--gold); color: #2A1A0E; }
.badge.premium { background: var(--violet); color: white; border: 1px solid var(--gold); }
.badge.verified { background: var(--lilac); color: var(--violet); }
.badge.guest { background: var(--gray); color: white; }
.badge.online { background: var(--lilac); color: var(--violet); }
.badge.gold { background: var(--gold); color: #2A1A0E; }

/* ---------- Формы (поля 30px) ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-weight: 600; font-size: 14px; color: var(--gray); }
input[type="text"], input[type="number"], input[type="email"], textarea, select {
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: 30px;
    font-size: 15px;
    background: var(--input-bg);
    color: var(--text);
    transition: border-color .2s;
    width: 100%;
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); }
.checkbox-field, .radio-field { flex-direction: row; align-items: center; gap: 10px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.small-input { width: 90px; padding: 6px; border-radius: 12px; }
.inline-form { display: inline; }

/* ---------- Герой ---------- */
.hero { text-align: center; padding: 64px 0 44px; }
.hero-logo {
    display: inline-block;
    width: 320px;
    height: 320px;
    max-width: 90%;
    margin-bottom: 24px;
    border-radius: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
.hero-title { font-size: 52px; color: var(--burgundy); }
.hero-title .logo-heart { color: var(--gold); }
html[data-theme="dark"] .hero-title { color: var(--gold); }
.hero-subtitle { font-size: 18px; color: var(--gray); max-width: 560px; margin: 16px auto 28px; }
.hero-actions { margin-bottom: 40px; }
.hero-features { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.feature {
    display: flex; align-items: center; gap: 8px;
    color: var(--gray);
    font-weight: 600;
    background: var(--card-bg);
    padding: 12px 20px;
    border-radius: 50px;
    border: 1px solid var(--border);
}
.feature span { font-size: 26px; }

/* ---------- Авторизация ---------- */
.auth-box { max-width: 460px; margin: 40px auto; border-radius: 30px; }
.alert { padding: 12px 16px; border-radius: 20px; margin-bottom: 16px; font-size: 14px; }
.alert-danger { background: rgba(139, 26, 43, 0.12); color: var(--wine); border: 1px solid var(--wine); }

/* ---------- Лента ---------- */
.feed-layout { display: grid; grid-template-columns: 300px 1fr; gap: 22px; }
.feed-sidebar { display: flex; flex-direction: column; gap: 18px; }
.feed-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }

.profile-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; border-radius: 30px; }
.card-badges { padding: 16px 16px 0; display: flex; flex-wrap: wrap; gap: 6px; }
.card-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
    background: var(--champagne);
}
.card-info { padding: 18px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.card-name { font-size: 20px; font-weight: 700; color: var(--burgundy); }
.card-city { color: var(--gray); font-size: 14px; }
.card-about { color: var(--gray); font-size: 14px; line-height: 1.5; }

.compatibility { display: flex; align-items: center; gap: 10px; }
.comp-ring {
    width: 58px; height: 58px;
    border-radius: 50%;
    background: conic-gradient(var(--gold) calc(var(--p) * 1%), rgba(201, 160, 92, 0.2) 0);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.comp-ring span {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--card-bg);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 800; color: var(--gold);
}
.comp-label { color: var(--gray); font-size: 13px; }

.card-actions { display: flex; gap: 8px; margin-top: auto; }

.empty-card { text-align: center; padding: 50px 20px; border-radius: 30px; }
.empty-title { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: var(--burgundy); }
.hint { color: var(--gray); font-size: 13px; margin-top: 6px; }

/* ---------- Уровни ---------- */
.level-name { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.points-count { font-weight: 700; font-size: 16px; margin-bottom: 10px; }
.progress-bar { height: 12px; background: rgba(74, 44, 94, 0.12); border-radius: 20px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 20px; transition: width .5s; }
.progress-hint { font-size: 12px; color: var(--gray); margin-top: 8px; }

/* ---------- Профиль ---------- */
.profile-layout { display: grid; grid-template-columns: 1fr 300px; gap: 22px; }
.profile-head { display: flex; gap: 20px; flex-wrap: wrap; }
.profile-avatar-wrap { position: relative; }
.profile-avatar { width: 140px; height: 140px; border-radius: 50%; object-fit: cover; background: var(--champagne); border: 4px solid var(--gold); }
.gift-overlay {
    position: absolute; bottom: 4px; right: 4px;
    font-size: 26px;
    background: var(--card-bg);
    border-radius: 50%;
    padding: 6px;
    box-shadow: var(--shadow);
}
.profile-info { flex: 1; min-width: 200px; }
.profile-info h2 { margin-bottom: 8px; }
.profile-badges { margin-bottom: 8px; }
.profile-city { color: var(--gray); }
.profile-level { margin: 8px 0; }
.profile-relationship { background: rgba(201, 160, 92, 0.2); padding: 10px 16px; border-radius: 20px; margin-top: 8px; }
.profile-about { margin: 18px 0; }
.profile-about p { line-height: 1.6; color: var(--gray); }
.profile-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.stat-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--border); }
.visitor-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.visitor-row .hint { margin-left: auto; }

.gifts-grid, .rewards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.gift-item, .reward-item {
    background: var(--lilac);
    padding: 14px;
    border-radius: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.gift-emoji { font-size: 32px; }
.gift-name { font-weight: 600; font-size: 14px; }
.reward-icon { font-size: 26px; }

/* ---------- Чаты ---------- */
.chats-list { display: flex; flex-direction: column; gap: 12px; }
.chat-preview { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); padding: 16px 20px; border-radius: 30px; }
.chat-preview:hover { border-color: var(--gold); }
.chat-preview-info { flex: 1; }
.chat-preview-name { font-weight: 700; font-size: 16px; }
.unread-badge {
    background: var(--wine);
    color: white;
    border-radius: 50%;
    min-width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700;
}

.chat-page { display: flex; flex-direction: column; height: calc(100vh - 220px); min-height: 400px; padding: 0; overflow: hidden; border-radius: 30px; }
.chat-header { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.chat-header a { color: var(--text); text-decoration: none; }
.chat-status { margin-left: auto; color: var(--gray); font-size: 13px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 70%; padding: 12px 16px; border-radius: 22px; word-wrap: break-word; }
.msg-text { line-height: 1.5; }
.msg-sticker { font-size: 42px; }
.msg.mine { background: var(--msg-mine); align-self: flex-end; border-bottom-right-radius: 6px; }
.msg.theirs {
    background: var(--msg-theirs);
    align-self: flex-start;
    border-bottom-left-radius: 6px;
    border: 2px solid var(--violet);
    box-shadow: var(--shadow);
}
.msg-system { text-align: center; color: var(--violet); font-size: 13px; padding: 8px 16px; background: var(--lilac); border-radius: 50px; align-self: center; }

.chat-input-area { border-top: 1px solid var(--border); padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.chat-form { display: flex; gap: 10px; }
.chat-form input { flex: 1; }
.chat-tools { display: flex; gap: 8px; }
.chat-readonly { text-align: center; padding: 8px; }

.stickers-panel { display: flex; flex-wrap: wrap; gap: 14px; }
.sticker-pack { background: rgba(232, 213, 245, 0.4); padding: 14px; border-radius: 24px; }
.sticker-pack-name { font-weight: 700; font-size: 13px; margin-bottom: 8px; }
.sticker-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.sticker-btn { font-size: 24px; background: var(--card-bg); border: 1px solid var(--border); border-radius: 20px; padding: 6px; cursor: pointer; transition: transform .2s; }
.sticker-btn:hover { transform: scale(1.15); }

.relationship-panel { display: flex; gap: 8px; }
.relationship-panel form { margin: 0; }

/* ---------- Магазин/Тарифы ---------- */
.store-grid, .pricing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; margin: 18px 0; }
.store-card, .pricing-card { text-align: center; border-radius: 30px; }
.store-emoji { font-size: 44px; margin-bottom: 8px; }
.store-name { font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.store-price { font-size: 22px; font-weight: 800; color: var(--gold); }
.store-price-alt { color: var(--gray); font-size: 13px; margin-bottom: 10px; }
.pricing-card { position: relative; padding: 28px 20px; border-radius: 30px; }
.pricing-popular { border: 2px solid var(--gold); }
.popular-tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #2A1A0E; padding: 5px 20px; border-radius: 50px; font-weight: 800; font-size: 13px; }
.price { font-size: 30px; font-weight: 800; color: var(--gold); margin: 12px 0; }
.price span { font-size: 14px; color: var(--gray); font-weight: 400; }
.price-features { list-style: none; text-align: left; margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px; }
.price-features li { font-size: 14px; color: var(--gray); }
.info-banner { background: rgba(232, 213, 245, 0.35); border-radius: 30px; }
.info-banner ul, .info-banner ol { padding-left: 18px; line-height: 1.8; }

/* ---------- Лотерея ---------- */
.lottery-card { max-width: 640px; margin: 0 auto; border-radius: 30px; }
.countdown { font-size: 36px; font-weight: 800; color: var(--gold); text-align: center; padding: 10px 0; }
.lottery-prizes, .lottery-conditions, .lottery-status, .lottery-results { margin-top: 18px; }
.lottery-prizes li, .lottery-conditions li { line-height: 1.9; }
.result-item { background: var(--lilac); padding: 8px 14px; border-radius: 16px; margin-bottom: 6px; }

/* ---------- Настройки ---------- */
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 18px; }
.settings-grid .card-title { margin-bottom: 16px; }

/* ---------- Модалка (скруглённая) ---------- */
.modal {
    display: none;
    position: fixed; inset: 0;
    background: rgba(30, 18, 40, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center; justify-content: center;
    padding: 20px;
}
.modal-content {
    background: var(--card-bg);
    border-radius: 30px;
    padding: 28px;
    max-width: 420px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}
.modal-content h3 { margin-bottom: 10px; }
.gift-buy-form { margin: 0; }
.gift-buy-btn {
    width: 100%;
    background: var(--lilac);
    border: 2px solid var(--border);
    border-radius: 20px;
    padding: 12px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: border-color .2s;
}
.gift-buy-btn:hover { border-color: var(--gold); }
.gift-buy-form .gift-emoji { font-size: 24px; }

/* ---------- Блоки безопасности ---------- */
.safety-card { background: linear-gradient(145deg, var(--card-bg), var(--lilac)); border: 2px solid var(--gold); }
.safety-title { color: var(--burgundy); text-align: center; margin-bottom: 20px; }
.safety-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.safety-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 14px 16px;
    transition: border-color .2s, transform .2s;
}
.safety-item:hover { border-color: var(--gold); transform: translateY(-2px); }
.safety-icon {
    font-size: 28px;
    background: var(--lilac);
    border-radius: 50%;
    width: 48px; height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 2px solid var(--gold);
}
.safety-text { font-size: 14px; line-height: 1.4; color: var(--text); }

.why-card { background: var(--lilac); border: 2px solid var(--gold); }
.why-card h2 { color: var(--burgundy); }
.why-text { font-size: 16px; line-height: 1.8; color: var(--text); }

.data-card { background: var(--card-bg); border: 2px solid var(--violet); }
.data-card h2 { color: var(--burgundy); }

.privacy-card { background: var(--lilac); border: 2px solid var(--violet); }
.privacy-card h2 { color: var(--burgundy); }

.about-card { background: var(--card-bg); border: 2px solid var(--gold); }
.about-card h2 { color: var(--burgundy); }
.about-list { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.about-list li {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 12px 16px;
    font-size: 15px;
    line-height: 1.5;
}
.about-link { margin-top: 16px; text-align: center; }

/* Блок безопасности на странице входа */
.login-safety { max-width: 460px; margin: 0 auto 24px; }
.safety-mini {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 4px;
    font-size: 14px;
    line-height: 1.4;
}
.safety-mini .safety-icon { width: 40px; height: 40px; font-size: 20px; }

/* ---------- Приветственный попап ---------- */
.welcome-popup {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(30, 18, 40, 0.75);
    backdrop-filter: blur(4px);
    z-index: 2500;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.welcome-popup.show { display: flex; animation: welcomeFade .4s ease; }
.welcome-content {
    background: linear-gradient(145deg, var(--champagne), var(--lilac));
    border: 3px solid var(--gold);
    border-radius: 30px;
    max-width: 420px;
    width: 100%;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 0 50px rgba(201, 160, 92, 0.4);
}
.welcome-heart { font-size: 52px; display: block; margin-bottom: 4px; }
.welcome-content h3 { color: var(--burgundy); margin: 0; }
.welcome-content p { font-size: 14px; line-height: 1.6; color: var(--text); }
@keyframes welcomeFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ---------- Уникальные уведомления ---------- */

/* 1. Лайк / Матч — анимированное сердечко */
.like-popup {
    position: fixed;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.3);
    z-index: 2000;
    width: 280px;
    background: var(--champagne);
    border: 3px solid var(--wine);
    border-radius: 30px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 12px 40px rgba(139, 26, 43, 0.4);
    opacity: 0;
    pointer-events: none;
}
.like-popup.show {
    animation: popHeart 1.5s ease forwards;
}
.like-popup .pop-heart {
    font-size: 64px;
    color: var(--wine);
    display: inline-block;
    animation: heartBurst 0.8s ease-in-out 0.2s;
}
.like-popup .pop-name { font-weight: 800; font-size: 18px; color: var(--burgundy); margin-top: 8px; }
.like-popup .pop-avatar {
    width: 70px; height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
    margin: 10px auto;
    display: block;
}
.like-popup .pop-text { color: var(--gray); font-size: 14px; }

/* искры */
.spark { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); opacity: 0; }
.like-popup.show .spark {
    animation: sparkFly 0.9s ease-out forwards;
}

@keyframes popHeart {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.2); }
    30% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
    50% { transform: translate(-50%, -50%) scale(1); }
    70% { transform: translate(-50%, -50%) scale(1.05); }
    100% { opacity: 0; transform: translate(-50%, -60%) scale(1); }
}
@keyframes heartBurst {
    0% { transform: scale(1); }
    40% { transform: scale(1.6); }
    60% { transform: scale(0.8); }
    100% { transform: scale(1); }
}
@keyframes sparkFly {
    0% { opacity: 1; transform: translate(0, 0) scale(1); }
    100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0); }
}

/* 2. Лотерея / Ачивка / Премиум — золотая карточка со вспышкой */
.prize-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    z-index: 2000;
    width: 340px;
    background: linear-gradient(145deg, var(--violet), #5C3A78);
    border: 3px solid var(--gold);
    border-radius: 30px;
    padding: 32px;
    text-align: center;
    box-shadow: 0 0 60px rgba(201, 160, 92, 0.6);
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
}
.prize-popup.show {
    animation: popPrize 1.6s ease forwards;
}
.prize-popup .prize-icon { font-size: 60px; display: block; margin-bottom: 10px; }
.prize-popup .prize-title { color: var(--gold); font-weight: 800; font-size: 20px; margin-bottom: 8px; }
.prize-popup .prize-text { color: var(--lilac); font-size: 14px; }

/* эффект вспышки */
.prize-popup::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: translateX(-100%);
}
.prize-popup.show::after {
    animation: flash 1s ease 0.2s forwards;
}
@keyframes flash {
    0% { transform: translateX(-100%); }
    60% { transform: translateX(100%); }
    100% { transform: translateX(100%); opacity: 0; }
}
@keyframes popPrize {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
    25% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
    40% { transform: translate(-50%, -50%) scale(1); }
    80% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -58%) scale(1); }
}

/* 3. Статус отношений — огненный круг вокруг аватарки */
.relationship-popup {
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2000;
    width: 260px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
}
.relationship-popup.show { animation: fireIn 1.6s ease forwards; }
.relationship-popup .fire-avatar-wrap { position: relative; width: 150px; height: 150px; margin: 0 auto 14px; }
.relationship-popup .fire-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 4px solid var(--gold);
    box-shadow: 0 0 30px rgba(201, 160, 92, 0.8), inset 0 0 25px rgba(201, 160, 92, 0.5);
    animation: firePulse 1s ease-in-out infinite;
}
.relationship-popup .fire-avatar {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}
.relationship-popup .fire-text {
    color: var(--gold);
    font-weight: 800;
    font-size: 18px;
    text-shadow: 0 0 15px rgba(201, 160, 92, 0.8);
    background: var(--violet);
    border: 2px solid var(--gold);
    border-radius: 50px;
    padding: 10px 20px;
    display: inline-block;
}
@keyframes firePulse {
    0%, 100% { box-shadow: 0 0 20px rgba(201, 160, 92, 0.6), inset 0 0 15px rgba(201, 160, 92, 0.4); }
    50% { box-shadow: 0 0 45px rgba(201, 160, 92, 1), inset 0 0 30px rgba(201, 160, 92, 0.7); }
}
@keyframes fireIn {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.3); }
    30% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
    50% { transform: translate(-50%, -50%) scale(1); }
    85% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, -60%) scale(1); }
}

/* ---------- Админка ---------- */
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.admin-card { text-decoration: none; color: var(--text); font-weight: 700; font-size: 18px; text-align: center; padding: 36px 20px; border-radius: 30px; transition: border-color .2s, transform .2s; }
.admin-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.table-wrap { overflow-x: auto; background: var(--card-bg); border-radius: 30px; box-shadow: var(--shadow); border: 1px solid var(--border); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th { background: var(--violet); color: white; text-align: left; padding: 14px 16px; font-size: 13px; }
.admin-table th:first-child { border-radius: 30px 0 0 0; }
.admin-table th:last-child { border-radius: 0 30px 0 0; }
.admin-table td { padding: 10px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table a { color: var(--text); }
.admin-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Летающие элементы (мороженое, цветы, лепестки) ---------- */
.float-layer {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.floating-item {
    position: absolute;
    bottom: -80px;
    font-size: 32px;
    will-change: transform;
    opacity: 0;
    pointer-events: none;
    filter: drop-shadow(0 4px 12px rgba(74, 44, 94, 0.15));
}
@keyframes floatUp {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    10% {
        opacity: 0.35;
    }
    50% {
        transform: translateY(-45vh) translateX(30px) rotate(180deg) scale(1);
        opacity: 0.5;
    }
    90% {
        opacity: 0.25;
    }
    100% {
        transform: translateY(-105vh) translateX(-25px) rotate(360deg) scale(0.9);
        opacity: 0;
    }
}

/* ---------- SVG-иконки (Outline стиль) ---------- */
.icon-sprite { display: none; }
.icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    vertical-align: middle;
    flex-shrink: 0;
}
.icon-lg { width: 40px; height: 40px; }
.icon-sm { width: 16px; height: 16px; }
.icon-gold { color: var(--gold); }
.icon-wine { color: var(--wine); }
.icon-violet { color: var(--violet); }

/* Вложенные элементы с собственным цветом не наследуют stroke */
.safety-icon-ico { color: var(--violet); }
.safety-icon-ico .icon { width: 28px; height: 28px; }

.badge .icon { width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; }

/* ---------- Адаптивность ---------- */
@media (max-width: 900px) {
    .feed-layout { grid-template-columns: 1fr; }
    .profile-layout { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .site-header { border-radius: 0 0 30px 30px; }
    .header-inner { flex-direction: column; align-items: flex-start; }
    .nav { width: 100%; justify-content: flex-start; }
    .hero-title { font-size: 38px; }
    .card-photo { height: 220px; }
    .sticker-grid { grid-template-columns: repeat(4, 1fr); }
}