/* Основные стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

:root {
    --primary: linear-gradient(to bottom, #EAFF00, #A6FF00);
    --secondary: linear-gradient(to bottom, #EAFF00, #A6FF00);
    --accent: #EC4899;
    --dark: #111827;
    --darker: #0F172A;
    --gray: #374151;
    --light-gray: #9CA3AF;
    --text: #F9FAFB;
    --text-secondary: #D1D5DB;
    --bg: #0F172A;
    --card-bg: rgba(30, 41, 59, 0.7);
    --glass: rgba(234, 255, 0, 0.1);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --hover-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --info: #3B82F6;
    --creative: linear-gradient(to bottom, #EAFF00, #A6FF00);
    --games: #10B981;
    --health: #3B82F6;
    --development: #F59E0B;
    --social: #8B5CF6;
    --other: #6B7280;
}

body {
    background: var(--bg);
    color: var(--text);
    max-width: 100%;
    overflow-x: hidden;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Стили для модального окна баланса */
.balance-info-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10004;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.balance-info-content {
    background: var(--card-bg);
    border-radius: 20px;
    max-width: 400px;
    width: 100%;
    padding: 24px;
    position: relative;
    border: 1px solid rgba(234, 255, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.balance-info-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.balance-info-close:hover {
    background: rgba(234, 255, 0, 0.2);
}

.balance-info-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.balance-info-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
}

.balance-info-description {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.balance-info-stats {
    background: rgba(234, 255, 0, 0.1);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    text-align: center;
}

.balance-percentage {
    font-size: 32px;
    font-weight: 700;
    color: #EAFF00;
    margin-bottom: 8px;
}

.balance-events {
    font-size: 13px;
    color: var(--text-secondary);
}

.balance-info-message {
    background: rgba(234, 255, 0, 0.05);
    border: 1px solid rgba(234, 255, 0, 0.2);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

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

@keyframes slideUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.container {
    max-width: 100%;
    min-height: 100vh;
    padding-bottom: 80px;
}

/* Анимации */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
}

@keyframes interestBlink {
    0%, 100% { 
        border-color: rgba(234, 255, 0, 0.3);
        box-shadow: 0 0 0 0 rgba(234, 255, 0, 0);
    }
    50% { 
        border-color: rgba(234, 255, 0, 1);
        box-shadow: 0 0 20px 5px rgba(234, 255, 0, 0.5);
        transform: scale(1.02);
    }
}

.interest-blinking {
    animation: interestBlink 1.5s ease-in-out infinite !important;
}

.test-blinking {
    animation: interestBlink 1.5s ease-in-out infinite !important;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 10px rgba(234, 255, 0, 0.3); }
    50% { box-shadow: 0 0 20px rgba(234, 255, 0, 0.6); }
}

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

@keyframes rotate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes photo-upload-blink {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(234, 255, 0, 0.0);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 18px 4px rgba(234, 255, 0, 0.7);
        transform: scale(1.03);
    }
}

.photo-upload-blink {
    animation: photo-upload-blink 0.7s ease-in-out infinite;
}

/* Навигация */
.nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    border-top: 1px solid rgba(234, 255, 0, 0.2);
    z-index: 1000;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

/* Модалка всех чатов Нячанга (город) */
.city-chats-button {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 2px solid #EAFF00;
    background: linear-gradient(135deg, rgba(234, 255, 0, 0.15), rgba(234, 255, 0, 0.3));
    color: #FFFFFF;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.city-chats-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.6);
    background: linear-gradient(135deg, rgba(234, 255, 0, 0.25), rgba(234, 255, 0, 0.4));
}

.city-chats-modal {
    z-index: 10005;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.86);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.city-chats-close-btn {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 10006;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(148, 163, 184, 0.3);
    color: #9CA3AF;
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.city-chats-close-btn:hover {
    background: rgba(148, 163, 184, 0.5);
    color: #D1D5DB;
    transform: scale(1.1);
}

.city-chats-modal-content {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    background: rgba(18, 24, 38, 0.98);
    border-radius: 20px;
    padding: 20px 16px 18px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(20px);
}

.city-chats-title {
    font-size: 18px;
    font-weight: 700;
    color: #EAFF00;
    text-align: center;
    margin-bottom: 6px;
}

.city-chats-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 12px;
}

.city-chats-list {
    margin-top: 4px;
    padding-right: 6px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.city-chat-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 12px;
    background: rgba(18, 24, 38, 0.95);
    border: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.city-chat-card:hover {
    background: rgba(24, 32, 48, 0.98);
    border-color: rgba(148, 163, 184, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.city-chat-icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(135, 116, 225, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.city-chat-content {
    flex: 1 1 auto;
    min-width: 0;
}

.city-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 8px;
}

.city-chat-name {
    font-size: 14px;
    font-weight: 600;
    color: #F9FAFB;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.city-chat-category {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(135, 116, 225, 0.2);
    color: #C4B5FD;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
}

.city-chat-post-image {
    width: 100%;
    margin-bottom: 8px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.city-chat-post-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 200px;
    min-height: 150px;
}

.city-chat-post {
    margin-bottom: 6px;
}

.city-chat-post-text {
    font-size: 13px;
    color: #D1D5DB;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.city-chat-post-time {
    font-size: 11px;
    color: #6B7280;
    font-weight: 500;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 500;
    color: var(--light-gray);
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 12px;
    min-width: 70px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item.active {
    color: var(--text);
    background: transparent;
    transform: none;
    animation: none;
}

.nav-icon {
    font-size: 20px;
    transition: all 0.3s;
    pointer-events: none;
}

.nav-item:hover .nav-icon {
    transform: scale(1.2);
}

/* Шапка */
.header {
    background: linear-gradient(to bottom, #EAFF00, #A6FF00);
    color: #111827;
    padding: 30px 20px 25px;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 70%);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
    pointer-events: none;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    animation: slideIn 0.5s ease-out;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 18px;
    color: #111827;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.user-avatar:hover {
    transform: rotate(10deg) scale(1.1);
}

.coins {
    background: rgba(0, 0, 0, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.coins:hover {
    transform: scale(1.05);
    background: rgba(0, 0, 0, 0.3);
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 5px;
    animation: float 3s ease-in-out infinite;
}

.page-subtitle {
    font-size: 14px;
    color: rgba(17, 24, 39, 0.8);
    font-weight: 400;
}

/* КАЛЕНДАРЬ */
.calendar-section {
    padding: 15px 20px 10px;
    background: var(--card-bg);
    border-bottom: 1px solid rgba(234, 255, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(20px);
    overflow: hidden;
    max-height: 240px;
    transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.25s ease;
    will-change: max-height, padding, opacity;
    transform: translateZ(0); /* Аппаратное ускорение */
}

.calendar-section.collapsed {
    max-height: 90px;
    padding: 2px 12px 4px;
    opacity: 0.95;
}

.calendar-section.collapsed .week-navigation {
    margin-bottom: 0;
}

.week-navigation {
    display: none;
}

.nav-week-btn {
    background: none;
    border: none;
    color: #EAFF00;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    transition: all 0.3s;
    border-radius: 10px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-week-btn:hover {
    background: rgba(234, 255, 0, 0.1);
    transform: scale(1.1);
}

.nav-week-btn:disabled,
.nav-week-btn.disabled {
    opacity: 0.35;
    cursor: not-allowed;
    transform: none;
}

.current-week {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.3s;
    padding: 4px 12px;
    border-radius: 10px;
    background: rgba(234, 255, 0, 0.05);
}

.calendar-section.collapsed .current-week {
    opacity: 0;
    height: 0;
    padding: 0;
    margin: 0;
    pointer-events: none;
}

.calendar-week {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    max-height: 140px;
    transition: max-height 0.3s ease, opacity 0.2s ease, margin 0.25s ease;
}

.calendar-section.collapsed .calendar-week {
    max-height: 56px;
    opacity: 1;
    margin: 2px 0 0;
    pointer-events: auto;
}

.day-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 5px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid rgba(234, 255, 0, 0.1);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 0;
    overflow: hidden;
}

.calendar-section.collapsed .day-btn {
    padding: 6px 4px;
}

.day-btn:hover {
    transform: translateY(-2px);
    background: rgba(234, 255, 0, 0.05);
    border-color: rgba(234, 255, 0, 0.3);
}

.day-btn.active {
    background: rgba(234, 255, 0, 0.15);
    border-color: #EAFF00;
    color: var(--text);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(234, 255, 0, 0.2);
}

.day-name {
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* При сжатии календаря скрываем числа, оставляем дни недели */
.calendar-section.collapsed .day-number {
    display: none;
}

.day-name {
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* При сжатии календаря дни недели остаются видимыми и более заметными */
.calendar-section.collapsed .day-name {
    font-size: 10px;
    margin-bottom: 0;
}

.day-number {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
}

.day-events {
    font-size: 10px;
    background: rgba(234, 255, 0, 0.15);
    color: #EAFF00;
    padding: 2px 6px;
    border-radius: 8px;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
}

.calendar-section.collapsed .day-events {
    display: none;
}

.day-btn.today .day-name {
    color: #EAFF00;
    font-weight: 700;
}

.day-btn.today .day-number {
    color: #EAFF00;
}

.day-btn.active .day-number {
    position: relative;
}

.day-btn.active .day-number::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: #EAFF00;
    border-radius: 2px;
}

/* КАТЕГОРИИ С ТЕГАМИ */
.categories {
    display: flex;
    gap: 8px;
    padding: 20px 20px 15px;
    overflow-x: auto;
    scrollbar-width: none;
}

.categories::-webkit-scrollbar {
    display: none;
}

.category-btn {
    padding: 10px 16px;
    border-radius: 20px;
    background: var(--card-bg);
    border: 1px solid rgba(234, 255, 0, 0.2);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
}

.category-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.category-btn.active {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(234, 255, 0, 0.4);
}

/* Цвета категорий */
.category-creative {
    background: rgba(234, 255, 0, 0.1);
    border-color: rgba(234, 255, 0, 0.3);
    color: #EAFF00;
}

.category-creative.active {
    background: linear-gradient(to bottom, #EAFF00, #A6FF00);
    border-color: #EAFF00;
    color: #111827;
}

.category-games {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--games);
}

.category-games.active {
    background: var(--games);
    border-color: var(--games);
    color: white;
}

.category-health {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--health);
}

.category-health.active {
    background: var(--health);
    border-color: var(--health);
    color: white;
}

.category-development {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--development);
}

.category-development.active {
    background: var(--development);
    border-color: var(--development);
    color: white;
}

.category-social {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    color: var(--social);
}

.category-social.active {
    background: var(--social);
    border-color: var(--social);
    color: white;
}

.category-other {
    background: rgba(107, 114, 128, 0.1);
    border-color: rgba(107, 114, 128, 0.3);
    color: var(--other);
}

.category-other.active {
    background: var(--other);
    border-color: var(--other);
    color: white;
}

/* ТЕГИ В КАТЕГОРИЯХ */
.category-with-tags {
    position: relative;
}

.category-tags-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid rgba(234, 255, 0, 0.2);
    border-radius: 12px;
    padding: 12px;
    margin-top: 5px;
    z-index: 100;
    box-shadow: var(--shadow);
    backdrop-filter: blur(20px);
}

.category-tags-dropdown.active {
    display: block;
    animation: slideIn 0.3s;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.tag-item {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(234, 255, 0, 0.1);
    color: #EAFF00;
    cursor: pointer;
    transition: all 0.2s;
}

.tag-item:hover {
    background: rgba(234, 255, 0, 0.2);
    transform: scale(1.05);
}

.tag-item.active {
    background: #EAFF00;
    color: #111827;
}

.tag-count {
    font-size: 9px;
    margin-left: 4px;
    opacity: 0.8;
    color: var(--text-secondary);
}

.show-all-tags {
    font-size: 11px;
    color: #EAFF00;
    cursor: pointer;
    padding: 5px;
    text-align: center;
    border-top: 1px solid rgba(234, 255, 0, 0.1);
    margin-top: 8px;
}

/* Карточки мероприятий с хештегами */
.events-grid {
    padding: 0 0 0;
}

.event-card {
    background: var(--card-bg);
    border-radius: 20px;
    margin-bottom: 20px;
    overflow: hidden;
    border: 1px solid rgba(234, 255, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideIn 0.6s ease-out;
    animation-fill-mode: both;
    position: relative;
}

/* Избранные события - анимация перемещения наверх */
.event-card.event-favorite {
    border-color: rgba(234, 255, 0, 0.5);
    animation: favoriteMoveUp 0.8s ease-out;
    animation-fill-mode: both;
}

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

.event-card:nth-child(1) { animation-delay: 0.1s; }
.event-card:nth-child(2) { animation-delay: 0.2s; }
.event-card:nth-child(3) { animation-delay: 0.3s; }
.event-card:nth-child(4) { animation-delay: 0.4s; }
.event-card:nth-child(5) { animation-delay: 0.5s; }

.event-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--hover-shadow);
    border-color: #EAFF00;
}

/* Раскрытая карточка */
.event-card.expanded {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--hover-shadow);
    border-color: #EAFF00;
    z-index: 10;
}

.event-description-full {
    margin-top: 0;
    text-indent: 0;
    white-space: pre-line;
}

/* Убираем отступы над основным текстом в раскрытом состоянии */
.event-card.expanded .event-description-full {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.event-card.expanded .event-content {
    padding-bottom: 20px;
}

.event-description-full {
    animation: fadeIn 0.3s ease-in;
}

/* Модальное окно "Мой план" */
.my-plan-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 3000;
}

.my-plan-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

.my-plan-modal-content {
    position: relative;
    max-width: 480px;
    width: 92%;
    max-height: 80vh;
    background: rgba(12, 12, 20, 0.98);
    border-radius: 20px;
    padding: 14px 14px 13px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(234, 255, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.my-plan-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.my-plan-title {
    font-size: 18px;
    font-weight: 700;
    color: #FFFFFF;
}

.my-plan-close-btn {
    border: none;
    background: transparent;
    color: #EAFF00;
    font-size: 18px;
    cursor: pointer;
    padding: 4px 8px;
}

.my-plan-body {
    overflow-y: auto;
    padding-right: 4px;
}

.my-plan-day {
    margin-bottom: 16px;
}

.my-plan-day-header {
    font-size: 14px;
    font-weight: 600;
    background: var(--primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 6px;
}

.my-plan-day-events {
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    padding: 6px 8px;
}

.my-plan-event {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
}

.my-plan-event:last-child {
    border-bottom: none;
}

.my-plan-event-divider {
    width: 80%;
    height: 1px;
    margin: 2px auto 4px;
    background: rgba(255, 255, 255, 0.08);
}

.my-plan-event-time {
    font-size: 13px;
    font-weight: 600;
    color: #EAFF00;
    min-width: 52px;
}

.my-plan-event-title {
    font-size: 14px;
    color: var(--text);
}

/* Заголовок в одну строку с кнопкой G (не внутри social-stack) */
.my-plan-event > .my-plan-event-title {
    flex: 1;
    min-width: 0;
}

.my-plan-gcal-btn {
    flex-shrink: 0;
    margin-left: auto;
    align-self: center;
    border: 1px solid rgba(234, 255, 0, 0.45);
    background: rgba(234, 255, 0, 0.12);
    color: #EAFF00;
    font-size: 11px;
    font-weight: 700;
    width: 28px;
    height: 28px;
    line-height: 1;
    border-radius: 8px;
    cursor: pointer;
    padding: 0;
}

.my-plan-gcal-btn:active {
    opacity: 0.85;
}

.my-plan-event-thumb {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.08);
}

/* Встреча с пользователем: тема справа от времени, место — отдельной строкой на всю ширину */
.my-plan-event--social {
    flex-wrap: wrap;
    align-items: flex-start;
}

.my-plan-event--social .my-plan-event-time {
    align-self: flex-start;
    padding-top: 2px;
}

.my-plan-event-social-stack {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.my-plan-meeting-topic {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.my-plan-meeting-place {
    flex: 0 0 100%;
    width: 100%;
    box-sizing: border-box;
    margin-top: 4px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

@keyframes my-plan-highlight-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(234, 255, 0, 0.25);
    }
    50% {
        box-shadow: 0 0 0 3px rgba(234, 255, 0, 0.45), 0 0 28px rgba(234, 255, 0, 0.2);
    }
}

.my-plan-event.my-plan-event--highlight,
.my-plan-loc-wrap.my-plan-event--highlight {
    animation: my-plan-highlight-pulse 0.85s ease-in-out 4;
    border-radius: 14px;
    outline: 1px solid rgba(234, 255, 0, 0.35);
    outline-offset: 2px;
}

.my-plan-loc-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
}

.my-plan-loc-cancel-btn {
    align-self: flex-end;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1px solid rgba(234, 255, 0, 0.45);
    background: rgba(14, 18, 28, 0.95);
    color: var(--text-secondary, #9ca3af);
    cursor: pointer;
}

.my-plan-loc-cancel-btn:active {
    opacity: 0.85;
}

/* Модалка предложения встречи: кто предлагает + место/ивент */
.mp-proposal-visual {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.mp-proposal-from {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(234, 255, 0, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(234, 255, 0, 0.2);
}

.mp-proposal-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.25);
    border: 2px solid rgba(234, 255, 0, 0.35);
}

.mp-proposal-from-text {
    min-width: 0;
}

.mp-proposal-from-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.mp-proposal-from-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
}

.mp-proposal-place-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(234, 255, 0, 0.18);
    background: rgba(0, 0, 0, 0.2);
}

.mp-proposal-place-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 220px;
    background: linear-gradient(145deg, #1a1f2e 0%, #0d1117 100%);
}

.mp-proposal-place-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mp-proposal-place-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    opacity: 0.85;
}

.mp-proposal-place-body {
    padding: 12px 14px 14px;
}

.mp-proposal-place-type {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 6px;
}

.mp-proposal-place-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.35;
    margin-bottom: 6px;
}

.mp-proposal-place-meta {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.45;
}

.mp-proposal-topic-row {
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.45;
    color: var(--text);
}

.mp-proposal-status {
    margin-top: 14px;
    font-size: 12px;
    color: var(--text-secondary);
}

.my-plan-empty-day .my-plan-event-title {
    color: var(--text-secondary);
    font-style: italic;
}

.my-plan-empty {
    padding: 20px 10px 10px;
    text-align: center;
}

.my-plan-empty-icon {
    font-size: 40px;
    margin-bottom: 8px;
    opacity: 0.7;
}

.my-plan-empty-text {
    font-size: 14px;
    color: var(--text-secondary);
}

.category-my {
    font-weight: 600;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.event-image {
    height: 180px;
    position: relative;
    overflow: hidden;
    background: var(--darker);
}

/* Увеличиваем высоту изображений на 20% в раскрытом состоянии */
.event-card.expanded .event-image {
    height: 216px; /* 180px * 1.2 = 216px */
}

.event-card.expanded .event-image .has-gallery-container {
    height: 216px; /* Такая же высота для галереи */
}

/* Для отдельной страницы ивента - фото в полную высоту */
.single-event-page .event-image {
    height: 50vh; /* Половина высоты экрана */
    min-height: 300px;
    max-height: 600px;
}

.single-event-page.expanded .event-image {
    height: 50vh;
    min-height: 300px;
    max-height: 600px;
}

.single-event-page.expanded .event-image .has-gallery-container {
    height: 50vh;
    min-height: 300px;
    max-height: 600px;
}

/* Обертка изображения должна заполнять всю высоту */
.single-event-page .event-image-breathe-wrap {
    height: 100%;
    width: 100%;
}

.single-event-page .event-image-breathe-wrap img {
    height: 100%;
    width: 100%;
    /* Широкие/низкие фото не должны обрезаться по краям. */
    object-fit: contain !important;
}

/* Для галереи на отдельной странице */
.single-event-page .gallery-slider {
    height: 100%;
}

.single-event-page .gallery-slide {
    height: 100%;
}

.single-event-page .gallery-slide img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

/* Обёртка для анимации «дыхание» — полное фото, прокрутка сверху вниз */
.event-image-breathe-wrap {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    /* Высота = высота изображения (не контейнера), чтобы показывать фото целиком */
    min-height: 100%;
    overflow: visible;
    animation: eventPhotoBreathe 14s ease-in-out infinite;
}
.event-image-breathe-wrap img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: top;
    /* Без object-fit — полное фото без обрезки */
}
.event-card:hover .event-image-breathe-wrap img {
    transform: none; /* Отключаем scale при hover */
}

/* Прокрутка по полному фото: расстояние задаётся через JS (--breathe-scroll) */
@keyframes eventPhotoBreathe {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(calc(-1 * var(--breathe-scroll, 0px))); }
}
/* Отключаем анимацию, если фото не выше контейнера */
.event-image-breathe-wrap.breathe-no-scroll {
    animation: none;
}

.event-price {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.event-card:hover .event-price {
    transform: scale(1.1);
    background: rgba(0, 0, 0, 0.9);
}

/* Стили для слайд-шоу галереи */
.has-gallery-container {
    position: relative;
    overflow: hidden;
}

.gallery-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.gallery-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: translateX(100%);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1; /* Ниже чем event-friends (z-index: 20) */
}

.gallery-slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 2; /* Ниже чем event-friends (z-index: 20) */
}

.gallery-slide.slide-out-left {
    transform: translateX(-100%);
    opacity: 0;
}

.gallery-slide.slide-out-right {
    transform: translateX(100%);
    opacity: 0;
}

.gallery-slide.slide-in-left {
    animation: slideInFromLeft 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.gallery-slide.slide-in-right {
    animation: slideInFromRight 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Fade эффект */
.gallery-slide.fade-out {
    animation: fadeOut 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.gallery-slide.fade-in {
    animation: fadeInSlide 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Zoom эффект */
.gallery-slide.zoom-out {
    animation: zoomOut 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.gallery-slide.zoom-in {
    animation: zoomIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes zoomOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(1.2);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Rotate эффект */
.gallery-slide.rotate-out {
    animation: rotateOut 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.gallery-slide.rotate-in {
    animation: rotateIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes rotateOut {
    from {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
    to {
        opacity: 0;
        transform: rotate(-15deg) scale(0.9);
    }
}

@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(15deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

/* Flip эффект */
.gallery-slide.flip-out {
    animation: flipOut 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.gallery-slide.flip-in {
    animation: flipIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes flipOut {
    from {
        opacity: 1;
        transform: perspective(1000px) rotateY(0deg);
    }
    to {
        opacity: 0;
        transform: perspective(1000px) rotateY(-90deg);
    }
}

@keyframes flipIn {
    from {
        opacity: 0;
        transform: perspective(1000px) rotateY(90deg);
    }
    to {
        opacity: 1;
        transform: perspective(1000px) rotateY(0deg);
    }
}

/* Slide up/down эффекты */
.gallery-slide.slide-out-down {
    animation: slideOutDown 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.gallery-slide.slide-in-up {
    animation: slideInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.gallery-slide.slide-out-up {
    animation: slideOutUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.gallery-slide.slide-in-down {
    animation: slideInDown 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideOutDown {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(100%);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-100%);
    }
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.gallery-indicators {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.4);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.gallery-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.gallery-dot.active {
    background: #EAFF00;
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(234, 255, 0, 0.6);
}

.event-friends {
    position: absolute;
    bottom: 15px;
    left: 15px;
    display: flex;
    gap: -10px;
    z-index: 20; /* Выше чем слайд-шоу, чтобы кружки были поверх */
}

.friend-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #111827; /* Черный цвет для кружка без фото */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 12px;
    border: none;
    box-shadow: 0 0 0 1px rgba(234, 255, 0, 0.3); /* Рамка 1px снаружи, 70% прозрачности */
    transition: all 0.3s;
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.friend-avatar-small .avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 50%;
}

.friend-avatar-small:hover {
    transform: scale(1.2) rotate(10deg);
    z-index: 10;
}

.friend-avatar-small.more {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
    font-size: 10px;
}

/* Стили для видео в развернутом событии */
.event-video-container {
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Убираем отступы под видео в раскрытом состоянии */
.event-card.expanded .event-video-container {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    padding-bottom: 0 !important;
}

.event-card.expanded .event-description-full .event-video-container {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Убираем отступы над текстом после видео в раскрытом состоянии */
.event-card.expanded .event-description-full > div {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
}

.event-card.expanded .event-description-full .event-video-container + div {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.event-video-container video {
    width: 100%;
    max-height: 500px;
    display: block;
    background: #000;
}

.event-video-container video:focus {
    outline: 2px solid #EAFF00;
    outline-offset: 2px;
}

.event-content {
    padding: 20px;
}

.event-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.event-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.3;
    color: var(--text);
    transition: color 0.3s;
}

.event-card:hover .event-title {
    color: #EAFF00;
}

/* ХЕШТЕГИ в карточках */
.event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.event-hashtag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    background: rgba(234, 255, 0, 0.1);
    color: #EAFF00;
    cursor: pointer;
    transition: all 0.2s;
}

.event-hashtag:hover {
    background: rgba(234, 255, 0, 0.2);
    transform: translateY(-1px);
}

/* Неактивные хэштеги в карточках событий */
.event-hashtag-inactive {
    cursor: default;
    pointer-events: none;
}

.event-hashtag-inactive:hover {
    background: rgba(234, 255, 0, 0.1);
    transform: none;
}

.event-hashtag.active,
.event-hashtag:active,
.hashtag-filter.active {
    color: #111827 !important;
}

.event-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: var(--light-gray);
    margin-bottom: 20px;
}

/* Убираем отступы под блоком локации в раскрытом состоянии */
.event-card.expanded .event-details {
    margin-bottom: 0 !important;
}

.event-detail {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s;
}

.event-detail:hover {
    color: var(--text);
    transform: translateX(5px);
}

.event-actions {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.btn {
    background: linear-gradient(to bottom, #EAFF00, #A6FF00);
    color: #111827;
    border: none;
    padding: 12px 6px;
    border-radius: 15px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    flex: 1;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(234, 255, 0, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #EAFF00;
    border: 1px solid #EAFF00;
}

.btn-secondary:hover {
    background: rgba(234, 255, 0, 0.1);
}

.event-favorite-btn .event-favorite-count-num {
    margin-left: 6px;
    font-size: 13px;
    font-weight: 600;
}

/* Стили для ряда из 3 кнопок: широкая + две короткие */
.actions-three-layout {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 8px;
    align-items: stretch;
}

.actions-three-layout .btn {
    width: 100%;
    min-width: 0;
    padding-left: 8px;
    padding-right: 8px;
}

/* СТРАНИЦА ПОСЕЩЕНИЙ */
.history-page {
    padding: 20px;
}

/* Профиль: секция Посещения без боковых отступов — фото на всю ширину */
.profile-visits-section .profile-visits-list {
    padding-left: 0;
    padding-right: 0;
}

/* Архивное фото: карточка колонкой, фото целиком без обрезки */
.history-item.history-item-archive {
    flex-direction: column !important;
    overflow: visible !important;
}
.history-item.history-item-archive .archive-photo-wrapper {
    width: 100% !important;
    flex: 0 0 auto !important;
    overflow: visible !important;
}
.history-item.history-item-archive .archive-photo-wrapper img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: unset !important;
}

/* Выделение метки при нажатии (понятно, что палец попал именно в метку) */
.archive-tag-marker-selected,
.archive-tag-marker.archive-tag-marker-selected {
    transform: translate(-50%, -50%) scale(1.25) !important;
    box-shadow: 0 0 0 4px #EAFF00, 0 0 20px rgba(234, 255, 0, 0.6) !important;
    border-width: 3px !important;
    z-index: 12 !important;
}

.history-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

/* Блок друзей в профиле */
.profile-friends-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-friend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.7);
    border: 1px solid rgba(234, 255, 0, 0.15);
}

.profile-friend-avatar {
    position: relative;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: #111827;
    border: 1px solid rgba(234, 255, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-friend-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-friend-initials {
    color: #EAFF00;
    font-weight: 600;
    font-size: 14px;
    display: none;
}

.profile-friend-info {
    display: flex;
    flex-direction: column;
}

.profile-friend-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.profile-friend-username {
    font-size: 12px;
    color: var(--text-secondary);
}

.profile-friend-item-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px dashed rgba(234, 255, 0, 0.4);
    color: var(--text-secondary);
    font-size: 13px;
}

.history-item {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 16px;
    border: 1px solid rgba(234, 255, 0, 0.1);
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.history-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #EAFF00, #A6FF00);
    transform: scaleY(0);
    transition: transform 0.3s;
}

.history-item:hover::before {
    transform: scaleY(1);
}

.history-item:hover {
    transform: translateX(10px);
    border-color: #EAFF00;
}

.history-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.history-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.history-item:hover .history-image img {
    transform: scale(1.1);
}

.history-content {
    flex: 1;
    min-width: 0;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.history-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.history-date {
    font-size: 12px;
    color: var(--light-gray);
    font-weight: 500;
    background: rgba(234, 255, 0, 0.1);
    color: #EAFF00;
    padding: 3px 8px;
    border-radius: 8px;
}

.history-participants-title {
    font-size: 13px;
    color: var(--light-gray);
    margin: 12px 0 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.history-participants-title::before {
    content: '👥';
    font-size: 14px;
}

.history-participants {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.participant-with-note {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(234, 255, 0, 0.1);
    padding: 6px 12px;
    border-radius: 10px;
    transition: all 0.3s;
    cursor: pointer;
    border: 1px solid transparent;
}

.participant-with-note:hover {
    background: rgba(234, 255, 0, 0.2);
    transform: translateY(-2px);
    border-color: rgba(234, 255, 0, 0.3);
}

.strength-badge {
    font-size: 10px;
    padding: 3px 8px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
    font-weight: 600;
    margin-left: auto;
}

/* СТРАНИЦА СВЯЗИ */
.connections-page {
    padding: 20px;
}

/* Tinder-подобный просмотр анкет */
.tinder-section {
    margin-bottom: 30px;
}

.tinder-container {
    position: relative;
    width: 100%;
    height: 500px;
    margin-bottom: 20px;
    perspective: 1000px;
}

.tinder-card {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid rgba(234, 255, 0, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(234, 255, 0, 0.1);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease, box-shadow 0.3s ease;
    cursor: grab;
    animation: cardAppear 0.5s ease-out;
    will-change: transform;
}

.tinder-card:active {
    cursor: grabbing;
    transform: scale(0.98);
}

.tinder-card:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6), 0 0 30px rgba(234, 255, 0, 0.2);
    transform: translateY(-5px);
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.tinder-card.empty-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border: 2px dashed rgba(234, 255, 0, 0.3);
}

.tinder-photo {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tinder-card:hover .tinder-photo {
    transform: scale(1.05);
}

.tinder-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.7) 50%, transparent 100%);
    padding: 30px 20px 20px;
}

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

.tinder-name-age {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
}

.tinder-name {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
}

.tinder-age {
    font-size: 24px;
    color: var(--light-gray);
}

.tinder-location {
    font-size: 14px;
    color: var(--light-gray);
    margin-bottom: 12px;
}

.tinder-bio {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 15px;
    color: var(--text-secondary);
}

.tinder-interests {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.interest-tag {
    background: rgba(234, 255, 0, 0.15);
    border: 1px solid rgba(234, 255, 0, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    color: #EAFF00;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: default;
}

.interest-tag:hover {
    background: rgba(234, 255, 0, 0.25);
    border-color: rgba(234, 255, 0, 0.5);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(234, 255, 0, 0.3);
}

.tinder-compatibility {
    margin-top: 10px;
}

.compatibility-badge {
    background: linear-gradient(to right, rgba(234, 255, 0, 0.2), rgba(166, 255, 0, 0.2));
    border: 1px solid rgba(234, 255, 0, 0.4);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #EAFF00;
    display: inline-block;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.compatibility-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(234, 255, 0, 0.3), transparent);
    transition: left 0.5s ease;
}

.compatibility-badge:hover::before {
    left: 100%;
}

.compatibility-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(234, 255, 0, 0.4);
    border-color: rgba(234, 255, 0, 0.6);
}

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

.tinder-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    font-size: 28px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.tinder-btn:active {
    transform: scale(0.9);
}

.skip-btn {
    background: transparent;
    border: 1px solid #FFFFFF;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.skip-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.skip-btn:hover::before {
    width: 100px;
    height: 100px;
}

.skip-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.5), 0 6px 20px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) scale(1.05);
}

.skip-btn:active {
    transform: scale(0.95);
}

.view-btn {
    background: transparent;
    border: 1px solid #EAFF00;
    color: #EAFF00;
    position: relative;
    overflow: hidden;
}

.view-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(234, 255, 0, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.view-btn:hover::before {
    width: 100px;
    height: 100px;
}

.view-btn:hover {
    background: rgba(234, 255, 0, 0.15);
    box-shadow: 0 0 25px rgba(234, 255, 0, 0.6), 0 6px 20px rgba(234, 255, 0, 0.4);
    transform: translateY(-2px) scale(1.05);
    animation: pulse-glow 2s infinite;
}

.view-btn:active {
    transform: scale(0.95);
}

.message-btn {
    background: transparent;
    border: 1px solid #FFFFFF;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.message-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.message-btn:hover::before {
    width: 100px;
    height: 100px;
}

.message-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.5), 0 6px 20px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px) scale(1.05);
}

.message-btn:active {
    transform: scale(0.95);
}

.connect-btn {
    background: transparent;
    border: 1px solid #EAFF00;
    color: #EAFF00;
    position: relative;
    overflow: hidden;
}

.connect-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(234, 255, 0, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.connect-btn:hover::before {
    width: 100px;
    height: 100px;
}

.connect-btn:hover {
    background: rgba(234, 255, 0, 0.15);
    box-shadow: 0 0 30px rgba(234, 255, 0, 0.7), 0 6px 20px rgba(234, 255, 0, 0.4);
    transform: translateY(-2px) scale(1.05);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 30px rgba(234, 255, 0, 0.7), 0 6px 20px rgba(234, 255, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(234, 255, 0, 0.9), 0 8px 25px rgba(234, 255, 0, 0.6);
    }
}

.connect-btn:active {
    transform: scale(0.95);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 30px rgba(234, 255, 0, 0.7), 0 6px 20px rgba(234, 255, 0, 0.4);
    }
    50% {
        box-shadow: 0 0 40px rgba(234, 255, 0, 0.9), 0 8px 25px rgba(234, 255, 0, 0.6);
    }
}

.connections-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: 15px;
    background: var(--card-bg);
    border: 1px solid rgba(234, 255, 0, 0.2);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.filter-btn.active {
    background: linear-gradient(to bottom, #EAFF00, #A6FF00);
    color: #111827;
    border-color: #EAFF00;
}

.connection-card {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 16px;
    border: 1px solid rgba(234, 255, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.connection-card::after {
    content: none;
    display: none;
}

.connection-card:hover {
    transform: translateY(-5px);
    border-color: #EAFF00;
    box-shadow: var(--hover-shadow);
}

.connection-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.connection-avatar {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(to bottom, #EAFF00, #A6FF00);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111827;
    font-weight: 600;
    font-size: 20px;
    position: relative;
    transition: all 0.3s;
}

.connection-card:hover .connection-avatar {
    transform: rotate(10deg) scale(1.1);
}

.connection-compatibility {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--success);
    color: #111827; /* черный текст на зеленой плашке */
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--card-bg);
    animation: pulse 2s infinite;
}

/* Боковая панель диалогов в модалке переписки */
.chat-sidebar {
    width: 58px;
    border-right: 1px solid rgba(234, 255, 0, 0.2);
    padding: 8px 4px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--bg);
}

.chat-sidebar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

.chat-sidebar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-color: #111827;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #111827; /* тёмный текст / инициал внутри круга */
    font-weight: 600;
    font-size: 14px;
    border: 2px solid rgba(234, 255, 0, 0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-sidebar-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(234, 255, 0, 0.5);
}

.chat-sidebar-name {
    margin-top: 4px;
    font-size: 11px;
    color: white;
    text-align: center;
    line-height: 1.2;
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    overflow: hidden;
}

.personality-system {
    margin: 15px 0;
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(234, 255, 0, 0.2);
}

.personality-level {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(234, 255, 0, 0.1);
}

.personality-level:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.level-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
}

.level-icon {
    font-size: 16px;
}

.level-title {
    flex: 1;
    color: var(--text);
}

.level-description {
    font-size: 12px;
    color: var(--light-gray);
    line-height: 1.4;
    margin-left: 24px;
}

.type-badge {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 10px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--info);
    margin: 2px;
    display: inline-block;
}

.sociotype-badge {
    background: rgba(236, 72, 153, 0.1);
    color: var(--accent);
}

.radical-badge {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.archetype-badge {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.compatibility-breakdown {
    display: flex;
    gap: 8px;
    margin: 10px 0;
    flex-wrap: wrap;
}

.compatibility-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 10px;
    background: rgba(234, 255, 0, 0.1);
    color: #EAFF00;
}

.insight-item {
    background: rgba(234, 255, 0, 0.08);
    border-radius: 10px;
    padding: 10px;
    margin: 8px 0;
    font-size: 13px;
    transition: all 0.3s;
    color: var(--text);
}

.insight-item:hover {
    background: rgba(234, 255, 0, 0.15);
    transform: translateX(5px);
}

.chat-btn {
    background: linear-gradient(to bottom, #EAFF00, #A6FF00);
    color: #111827;
    border: none;
    padding: 10px 20px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    transition: all 0.3s;
}

.chat-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(234, 255, 0, 0.3);
}

.friend-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.reminder-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.reminder-badge:hover {
    background: rgba(245, 158, 11, 0.2);
    transform: scale(1.05);
}

.communication-guide {
    background: rgba(16, 185, 129, 0.1);
    border-left: 3px solid var(--success);
    padding: 10px;
    margin-top: 12px;
    border-radius: 0 8px 8px 0;
    font-size: 13px;
    animation: slideIn 0.5s;
}

/* Профиль */
.profile-visualization {
    position: relative;
    margin: 20px 15px;
    height: 380px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 25px;
    overflow: visible;
    border: 1px solid rgba(234, 255, 0, 0.2);
}

.orbital-system {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 340px;
    height: 340px;
    pointer-events: none;
}

.core-planet {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
    background: transparent;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 20;
    gap: 3px;
    overflow: visible;
    pointer-events: none;
}

.core-planet > * {
    pointer-events: auto;
}

.level-number {
    font-size: 18px;
    font-weight: 700;
    color: #EAFF00;
    background: rgba(0, 0, 0, 0.8);
    padding: 4px 12px;
    border-radius: 12px;
    border: 2px solid #EAFF00;
    margin-bottom: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.level-number:hover {
    background: rgba(234, 255, 0, 0.2);
    transform: scale(1.05);
}

.tagged-events-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.95);
    color: #EAFF00;
    padding: 12px 16px;
    border-radius: 12px;
    border: 2px solid #EAFF00;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    max-width: 280px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(234, 255, 0, 0.3);
    pointer-events: none;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tagged-events-tooltip.tooltip-hiding {
    opacity: 0;
    transform: translateY(-10px);
}

.user-name {
    font-size: 16px;
    font-weight: 700;
    color: #EAFF00;
    text-shadow:
        -1px -1px 0 #000000,
        1px -1px 0 #000000,
        -1px 1px 0 #000000,
        1px 1px 0 #000000;
    text-align: center;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 2px;
}

.telegram-auth-button {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 15px auto 0;
    background: linear-gradient(135deg, #0088cc, #229ED9);
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    color: white;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    transition: all 0.3s ease;
    text-align: center;
    padding: 5px;
}

.telegram-auth-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 136, 204, 0.4);
}

.telegram-auth-button:active {
    transform: scale(0.95);
}

.user-photo {
    flex: 0 0 96px;
    position: relative;
    z-index: 30;
    width: 96px !important;
    height: 96px !important;
    min-width: 96px;
    min-height: 96px;
    border-radius: 50%;
    border: 3px solid #EAFF00;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
    color: #000;
    background-color: #EAFF00;
    box-shadow: 0 8px 28px rgba(234, 255, 0, 0.25);
    margin: 6px auto;
    overflow: hidden;
}

.telegram-auth-button .telegram-icon {
    font-size: 18px;
    margin-bottom: 2px;
}

.telegram-auth-button .telegram-text {
    line-height: 1.1;
    word-break: break-word;
}

.orbit {
    position: absolute;
    border: 1px solid rgba(234, 255, 0, 0.2);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

.orbit-1 {
    width: 260px;
    height: 260px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rotate 30s linear infinite;
}

.orbit-2 {
    width: 340px;
    height: 340px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rotate 40s linear infinite reverse;
    z-index: 1;
}

.satellite {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
    background: var(--card-bg);
    animation: float 3s ease-in-out infinite;
    animation-delay: calc(var(--i) * 0.2s);
    z-index: 50;
    pointer-events: auto;
}

.satellite:hover {
    transform: scale(1.1);
    background: linear-gradient(to bottom, #EAFF00, #A6FF00);
    animation-play-state: paused;
}

/* 8 спутников вокруг */
.satellite-1 { top: 0; left: 50%; transform: translateX(-50%); --i: 1; }
.satellite-2 { top: 50%; right: 0; transform: translateY(-50%); --i: 2; }
.satellite-3 { bottom: 0; left: 50%; transform: translateX(-50%); --i: 3; }
.satellite-4 { top: 50%; left: 0; transform: translateY(-50%); --i: 4; }
.satellite-5 { top: 15%; right: 15%; --i: 5; }
.satellite-6 { bottom: 15%; right: 15%; --i: 6; }
.satellite-7 { bottom: 15%; left: 15%; --i: 7; }
.satellite-8 { top: 15%; left: 15%; --i: 8; }

/* Совместимость */
.compatibility-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

.compatibility-high {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.compatibility-medium {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
}

.compatibility-low {
    background: rgba(239, 68, 68, 0.2);
    color: var(--danger);
}

/* Уведомления */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(to bottom, #EAFF00, #A6FF00);
    color: #111827;
    padding: 15px 20px;
    border-radius: 12px;
    z-index: 10003;
    animation: slideIn 0.3s;
    box-shadow: var(--shadow);
}

.notification.hiding {
    animation: slideIn 0.3s reverse;
}

/* Адаптивность */
@media (max-width: 480px) {
    .nav-item {
        font-size: 10px;
        min-width: 60px;
        padding: 6px 8px;
    }

    .nav-icon {
        font-size: 18px;
    }

    .page-title {
        font-size: 24px;
    }

    .event-title {
        font-size: 16px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    .history-item {
        flex-direction: column;
    }
    
    .history-image {
        width: 100%;
        height: 120px;
    }

    .profile-visualization {
        height: 340px;
    }

    .orbital-system {
        width: 300px;
        height: 300px;
    }

    .core-planet {
        width: 200px;
        height: 200px;
    }

    .user-photo {
        width: 96px !important;
        height: 96px !important;
        min-width: 96px;
        min-height: 96px;
    }

    .level-number {
        font-size: 16px;
        padding: 3px 10px;
    }

    .user-name {
        font-size: 14px;
    }

    .satellite {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }

    .orbit-1 {
        width: 220px;
        height: 220px;
    }

    .orbit-2 {
        width: 280px;
        height: 280px;
    }

    .calendar-section {
        padding: 12px 15px 8px;
    }
    
    .day-name {
        font-size: 10px;
    }
    
    .day-number {
        font-size: 16px;
    }
    
    .day-events {
        font-size: 9px;
        padding: 1px 4px;
    }
}

@media (max-width: 360px) {
    .profile-visualization {
        height: 300px;
    }

    .orbital-system {
        width: 260px;
        height: 260px;
    }

    .core-planet {
        width: 180px;
        height: 180px;
    }

    .user-photo {
        width: 96px !important;
        height: 96px !important;
        min-width: 96px;
        min-height: 96px;
    }

    .level-number {
        font-size: 14px;
        padding: 2px 8px;
    }

    .user-name {
        font-size: 12px;
    }

    .satellite {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }

    .orbit-1 {
        width: 180px;
        height: 180px;
    }

    .orbit-2 {
        width: 240px;
        height: 240px;
    }

    .calendar-section {
        padding: 10px 12px 6px;
    }
    
    .day-btn {
        padding: 8px 3px;
    }
    
    .day-name {
        font-size: 9px;
    }
    
    .day-number {
        font-size: 14px;
    }
}

.page {
    display: none;
    animation: fadeIn 0.3s;
}

.page.active {
    display: block;
}

/* Мероприятия по датам */
.events-by-date {
    padding: 0 20px 20px;
}

.date-header {
    font-size: 16px;
    font-weight: 600;
    margin: 20px 0 15px;
    color: var(--text);
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(234, 255, 0, 0.2);
}

.date-header:first-child {
    margin-top: 0;
}

.no-events {
    text-align: center;
    padding: 40px 20px;
    color: var(--light-gray);
    font-size: 14px;
}

/* СТИЛИ ДЛЯ МОДАЛЬНОГО ОКНА ЗАМЕТОК */
.strength-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.strength-option {
    padding: 10px;
    border-radius: 10px;
    background: rgba(234, 255, 0, 0.1);
    border: 1px solid rgba(234, 255, 0, 0.2);
    color: var(--text);
    cursor: pointer;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s;
}

.strength-option:hover {
    background: rgba(234, 255, 0, 0.2);
    transform: translateY(-1px);
}

.strength-option.selected {
    background: linear-gradient(to bottom, #EAFF00, #A6FF00);
    color: #111827;
    border-color: #EAFF00;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(234, 255, 0, 0.3);
}

/* СТИЛИ ДЛЯ СТРАНИЦЫ ГОРОДА */
.city-page {
    padding: 20px;
}

/* СТИЛИ ДЛЯ ТОП БЛОГЕРОВ И РИЕЛТОРОВ */
.top-section {
    margin-bottom: 30px;
}

.top-list {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 10px 0 20px;
    scrollbar-width: thin;
    scrollbar-color: rgba(234, 255, 0, 0.3) transparent;
    -webkit-overflow-scrolling: touch;
}

.top-list::-webkit-scrollbar {
    height: 6px;
}

.top-list::-webkit-scrollbar-track {
    background: transparent;
}

.top-list::-webkit-scrollbar-thumb {
    background: rgba(234, 255, 0, 0.3);
    border-radius: 3px;
}

.top-list::-webkit-scrollbar-thumb:hover {
    background: rgba(234, 255, 0, 0.5);
}

.top-person-circle {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.top-person-circle:hover {
    transform: scale(1.15);
}

.top-person-avatar-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #EAFF00;
    background: linear-gradient(to bottom, #EAFF00, #A6FF00);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(234, 255, 0, 0.3);
    transition: all 0.3s;
}

.top-person-circle:hover .top-person-avatar-circle {
    border-color: #A6FF00;
    box-shadow: 0 6px 20px rgba(234, 255, 0, 0.5);
    transform: rotate(5deg);
}

.top-person-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.instagram-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: 2px solid var(--bg);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    z-index: 5;
    pointer-events: none;
}

.top-person-circle:hover .instagram-badge {
    transform: scale(1.1);
}

.city-section {
    margin-bottom: 30px;
}

.shortcut-card {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid rgba(234, 255, 0, 0.15);
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.shortcut-text {
    font-size: 15px;
    color: var(--text);
    line-height: 1.4;
    flex: 1;
}

.shortcut-btn {
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 12px;
    border: none;
    background: linear-gradient(to bottom, #EAFF00, #A6FF00);
    color: #111827;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s, box-shadow 0.2s;
}

.shortcut-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(234, 255, 0, 0.35);
}

.shortcut-btn:active {
    transform: translateY(0);
}

/* Аккордеон справочника — по умолчанию закрыт */
.city-accordion {
    background: var(--card-bg);
    border-radius: 16px;
    border: 1px solid rgba(234, 255, 0, 0.1);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.city-accordion:hover {
    border-color: rgba(234, 255, 0, 0.3);
}

.city-accordion .section-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.city-accordion .section-header::after {
    content: '▼';
    font-size: 12px;
    color: var(--light-gray);
    transition: transform 0.3s;
}

.city-accordion.active .section-header::after {
    transform: rotate(180deg);
}

.city-accordion .section-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.35s ease-out;
}

.city-accordion.active .section-content {
    max-height: 800px;
    padding: 0 20px 16px;
    transition: max-height 0.5s ease-in;
}

.city-accordion .section-title {
    margin-bottom: 0;
    font-size: 18px;
}

/* Элементы внутри аккордеона */
.city-accordion .top-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    margin-bottom: 8px;
    background: rgba(234, 255, 0, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(234, 255, 0, 0.08);
}

.city-accordion .top-item:last-child {
    margin-bottom: 0;
}

.city-accordion .top-info {
    flex: 1;
    font-size: 15px;
    color: var(--text);
    line-height: 1.4;
}

.city-accordion .top-info b {
    color: var(--text);
}

.city-accordion .top-info small {
    color: var(--light-gray);
    font-size: 13px;
}

.city-accordion .top-action {
    flex-shrink: 0;
}

.btn-small {
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    background: linear-gradient(to bottom, #EAFF00, #A6FF00);
    color: #111827;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-small:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(234, 255, 0, 0.4);
}

.btn-small:active {
    transform: scale(0.98);
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.service-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 18px;
    border: 1px solid rgba(234, 255, 0, 0.1);
    transition: all 0.3s;
    cursor: pointer;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: #EAFF00;
    box-shadow: var(--hover-shadow);
}

.service-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.service-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(to bottom, #EAFF00, #A6FF00);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #111827;
    flex-shrink: 0;
}

.service-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.service-address {
    font-size: 13px;
    color: var(--light-gray);
}

/* Разделитель перед прошедшими мероприятиями внутри дня */
.events-divider {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 4px;
    color: var(--light-gray);
    font-size: 12px;
}

.events-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(148, 163, 184, 0.7), transparent);
}

.events-divider-label {
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.service-details {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 10px 0;
}

.service-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
    background: rgba(234, 255, 0, 0.1);
    color: #EAFF00;
}

.service-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    font-size: 12px;
    color: var(--light-gray);
}

.service-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--warning);
    font-weight: 600;
}

.service-distance {
    display: flex;
    align-items: center;
    gap: 4px;
}

.open-now {
    color: var(--success);
    font-weight: 500;
}

.closed {
    color: var(--danger);
}

.service-action {
    margin-top: 15px;
}

.service-photo {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
    background: rgba(30, 41, 59, 0.5);
    flex-shrink: 0;
    position: relative;
}

.service-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-width: 100%;
    transition: transform 0.3s;
}

.service-photo-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    background: linear-gradient(135deg, rgba(17, 24, 39, 0.85), rgba(30, 41, 59, 0.9));
    color: rgba(234, 255, 0, 0.85);
}

.service-photo.has-image .service-photo-fallback {
    display: none;
}

.service-card.restaurant-card {
    padding: 0;
    overflow: hidden;
}

.restaurant-card:hover .service-photo img {
    transform: scale(1.05);
}

.restaurant-card .service-header,
.restaurant-card .service-details,
.restaurant-card .service-meta,
.restaurant-card .service-action {
    padding: 0 18px;
}

.restaurant-card .service-header {
    padding-top: 18px;
}

.restaurant-card .service-action {
    padding-bottom: 18px;
}

.route-btn {
    width: 100%;
    padding: 10px;
    background: rgba(234, 255, 0, 0.1);
    border: 1px solid rgba(234, 255, 0, 0.2);
    border-radius: 10px;
    color: #EAFF00;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.route-btn:hover {
    background: linear-gradient(to bottom, #EAFF00, #A6FF00);
    color: #111827;
    transform: translateY(-1px);
}

.city-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
}

.city-filters::-webkit-scrollbar {
    display: none;
}

.city-filter-btn {
    padding: 8px 16px;
    border-radius: 15px;
    background: var(--card-bg);
    border: 1px solid rgba(234, 255, 0, 0.2);
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}

.city-filter-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(234, 255, 0, 0.4);
}

.city-filter-btn.active {
    background: linear-gradient(to bottom, #EAFF00, #A6FF00);
    color: #111827;
    border-color: #EAFF00;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(234, 255, 0, 0.3);
}

/* СТИЛИ ДЛЯ СТАТИСТИКИ В ПРОФИЛЕ */
.profile-stats {
    padding: 0 20px 20px;
}

.stats-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-item {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid rgba(234, 255, 0, 0.1);
    transition: all 0.3s;
    cursor: pointer;
}

.stat-item:hover {
    transform: translateY(-3px);
    border-color: #EAFF00;
    box-shadow: var(--shadow);
}

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: var(--light-gray);
    font-weight: 500;
}

.stat-icon {
    font-size: 32px;
    opacity: 0.8;
    transition: all 0.3s;
}

.stat-item:hover .stat-icon {
    transform: scale(1.1);
    opacity: 1;
}

/* СТИЛИ ДЛЯ ПРОГРЕСС-БАРА КАТЕГОРИЙ В ПРОФИЛЕ */
.category-progress {
    margin-bottom: 15px;
}

.category-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.category-progress-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text);
}

.category-progress-count {
    font-size: 14px;
    font-weight: 600;
}

.category-progress-bar {
    height: 8px;
    background: rgba(234, 255, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.category-progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

/* Стили для конкретных категорий */
.category-progress-fill.creative {
    background: linear-gradient(to bottom, #EAFF00, #A6FF00);
}

.category-progress-fill.games {
    background: var(--games);
}

.category-progress-fill.health {
    background: var(--health);
}

.category-progress-fill.development {
    background: var(--development);
}

.category-progress-fill.social {
    background: var(--social);
}

/* АДАПТИВНОСТЬ ДЛЯ ГОРОДСКИХ СЕРВИСОВ */
@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .city-filters {
        padding: 0 5px 10px;
    }
    
    .city-filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .service-card {
        padding: 15px;
    }
    
    .service-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .service-name {
        font-size: 15px;
    }
}

/* АДАПТИВНОСТЬ ДЛЯ СТАТИСТИКИ */
@media (max-width: 480px) {
    .stat-item {
        padding: 15px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .stat-icon {
        font-size: 28px;
    }
}

/* СТИЛИ ДЛЯ УВЕДОМЛЕНИЙ */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(to bottom, #EAFF00, #A6FF00);
    color: #111827;
    padding: 15px 20px;
    border-radius: 12px;
    z-index: 10003;
    animation: slideIn 0.3s;
    box-shadow: var(--shadow);
    max-width: 300px;
    word-break: break-word;
    white-space: pre-line;
}

.notification-error {
    background: linear-gradient(to bottom, #ff4444, #cc0000);
    color: white !important;
    max-width: 500px;
    max-height: 400px;
    overflow-y: auto;
}

.notification-error * {
    color: white !important;
}

.notification-error button {
    transition: all 0.2s;
    color: white !important;
    border-color: rgba(255,255,255,0.3) !important;
}

.notification-error button:hover {
    background: rgba(255,255,255,0.3) !important;
    transform: scale(1.05);
    color: white !important;
}

/* СТИЛИ ДЛЯ МОДАЛЬНЫХ ОКОН */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 0.3s;
}

/* Стили для модального окна сообщений */
#messageModal .modal-content {
    background: var(--card-bg);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

#messageModal .modal-header {
    border-bottom: 1px solid rgba(234, 255, 0, 0.2);
}

#messageModal .modal-footer {
    border-top: 1px solid rgba(234, 255, 0, 0.2);
}

#messagesContainer {
    scrollbar-width: thin;
    scrollbar-color: rgba(234, 255, 0, 0.3) transparent;
}

#messagesContainer::-webkit-scrollbar {
    width: 6px;
}

#messagesContainer::-webkit-scrollbar-track {
    background: transparent;
}

#messagesContainer::-webkit-scrollbar-thumb {
    background: rgba(234, 255, 0, 0.3);
    border-radius: 3px;
}

#messagesContainer::-webkit-scrollbar-thumb:hover {
    background: rgba(234, 255, 0, 0.5);
}

.modal {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 30px;
    max-width: 90%;
    width: 400px;
    border: 1px solid rgba(234, 255, 0, 0.3);
    box-shadow: var(--hover-shadow);
    animation: slideIn 0.3s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}

/* ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ ПРОФИЛЯ */
.profile-insights {
    padding: 0 20px;
    margin-top: 20px;
}

.profile-insights h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.insight-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.insight-card {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(234, 255, 0, 0.1);
    transition: all 0.3s;
}

.insight-card:hover {
    transform: translateY(-3px);
    border-color: #EAFF00;
}

.insight-card h4 {
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.insight-card p {
    font-size: 13px;
    color: var(--light-gray);
    line-height: 1.5;
}

/* СТИЛИ ДЛЯ ТЕКСТОВОГО ПОЛЯ В МОДАЛКЕ */
textarea {
    width: 100%;
    height: 100px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(234, 255, 0, 0.1);
    border: 1px solid rgba(234, 255, 0, 0.2);
    color: var(--text);
    margin-bottom: 20px;
    resize: none;
    font-family: inherit;
    font-size: 14px;
}

textarea:focus {
    outline: none;
    border-color: #EAFF00;
    background: rgba(234, 255, 0, 0.15);
}

/* Заметная раздвигалка для textarea в форме редактирования ивента */
textarea[id^="edit_description_"],
textarea[id^="edit_booking_extra_text_"],
textarea[id^="edit_reminder_text_"] {
    resize: vertical;
}

textarea[id^="edit_description_"]::-webkit-resizer,
textarea[id^="edit_booking_extra_text_"]::-webkit-resizer,
textarea[id^="edit_reminder_text_"]::-webkit-resizer {
    background-color: #EAFF00;
    border: 2px solid #A6FF00;
    border-radius: 4px 0 0 0;
    box-shadow: 0 0 8px rgba(234, 255, 0, 0.6);
    cursor: ns-resize;
    width: 20px;
    height: 20px;
}

/* Для Firefox - заметный скроллбар */
textarea[id^="edit_description_"],
textarea[id^="edit_booking_extra_text_"],
textarea[id^="edit_reminder_text_"] {
    scrollbar-width: thin;
    scrollbar-color: #EAFF00 rgba(234, 255, 0, 0.2);
}

/* СТИЛИ ДЛЯ ГИДА ПО ОБЩЕНИЮ В СВЯЗЯХ */
.communication-guide {
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid var(--success);
    padding: 15px;
    margin: 15px 0;
    border-radius: 0 8px 8px 0;
    animation: slideIn 0.5s;
}

.communication-guide h4 {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text);
}

.guide-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 8px 0;
    font-size: 13px;
    line-height: 1.4;
}

.guide-item.check {
    color: var(--success);
}

.guide-item.cross {
    color: var(--danger);
}

.guide-item span:first-child {
    font-size: 12px;
    margin-top: 2px;
}

/* Строка хэштегов для фильтрации */
.hashtags-container {
    display: flex;
    gap: 8px;
    padding: 0 20px 15px;
    overflow-x: auto;
    scrollbar-width: none;
    background: var(--card-bg);
    border-bottom: 1px solid rgba(234, 255, 0, 0.1);
}

.hashtags-container::-webkit-scrollbar {
    display: none;
}

.hashtag-filter {
    padding: 8px 14px;
    margin-top: 15px;
    border-radius: 16px;
    background: rgba(234, 255, 0, 0.1);
    border: 1px solid rgba(234, 255, 0, 0.2);
    color: #EAFF00;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
    -webkit-user-select: none;
}

.hashtag-filter:hover {
    background: rgba(234, 255, 0, 0.2);
    transform: translateY(-2px);
}

.hashtag-filter.active {
    background: linear-gradient(to bottom, #EAFF00, #A6FF00);
    color: #111827;
    border-color: #EAFF00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(234, 255, 0, 0.3);
}

.clear-hashtag {
    padding: 8px 14px;
    border-radius: 16px;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
    user-select: none;
    -webkit-user-select: none;
}

.clear-hashtag:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: translateY(-2px);
}

.no-events-filtered {
    text-align: center;
    padding: 40px 20px;
    color: var(--light-gray);
    font-size: 14px;
    animation: fadeIn 0.3s;
}

/* Стили для реферальной системы */

/* Заголовок над колесом баланса */
.balance-wheel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    margin-bottom: 10px;
    position: relative;
    z-index: 10;
    pointer-events: none;
}

.balance-wheel-label {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    pointer-events: none;
}

/* Иконка монет в правом верхнем углу */
.coins-badge {
    background: linear-gradient(to bottom, #EAFF00, #A6FF00);
    color: #111827;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(234, 255, 0, 0.3);
    transition: all 0.3s ease;
    user-select: none;
    pointer-events: auto;
}

.coins-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(234, 255, 0, 0.4);
}

/* Модалка монет */
.coins-modal-content {
    max-width: 800px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--card-bg);
    border-radius: 20px;
    padding: 0;
}

.coins-modal-content .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(234, 255, 0, 0.2);
}

.coins-modal-content .modal-header h2 {
    margin: 0;
    font-size: 20px;
    color: var(--text);
}

.coins-modal-content .modal-body {
    padding: 24px;
}

.coins-balance-section {
    text-align: center;
    padding: 20px;
    background: rgba(234, 255, 0, 0.1);
    border-radius: 15px;
    margin-bottom: 24px;
}

.coins-balance-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.coins-balance-amount {
    font-size: 36px;
    font-weight: 700;
    color: #EAFF00;
}

.coins-description {
    margin-bottom: 24px;
}

.coins-description h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text);
}

.coins-description p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.coins-description ul {
    list-style: none;
    padding-left: 0;
}

.coins-description li {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
}

.coins-description li:before {
    content: "•";
    position: absolute;
    left: 8px;
    color: #EAFF00;
}

.coins-referral-info {
    margin-top: 20px;
    padding: 16px;
    background: rgba(234, 255, 0, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(234, 255, 0, 0.2);
}

.coins-referral-info h4 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #EAFF00;
}

.coins-referral-info ul {
    list-style: none;
    padding-left: 0;
    margin-top: 8px;
}

.coins-referral-info li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 6px 0;
    padding-left: 24px;
    position: relative;
    line-height: 1.5;
}

.coins-referral-info li:before {
    content: "•";
    position: absolute;
    left: 8px;
    color: #EAFF00;
}

.coins-referral-info strong {
    color: #EAFF00;
}

.referrals-section {
    margin-bottom: 24px;
}

.referrals-section h3 {
    font-size: 18px;
    margin-bottom: 16px;
    color: var(--text);
}

.referrals-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    overflow: hidden;
}

.referrals-table thead {
    background: rgba(234, 255, 0, 0.1);
}

.referrals-table th {
    padding: 12px 8px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid rgba(234, 255, 0, 0.2);
}

.referrals-table th:first-child {
    min-width: 100px;
}

.referrals-table th:not(:first-child) {
    text-align: center;
    width: 50px;
}

.referrals-table td {
    padding: 12px 8px;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.referrals-table td:first-child {
    text-align: left;
}

.referral-name-link {
    color: #EAFF00;
    text-decoration: none;
    transition: all 0.2s;
}

.referral-name-link:hover {
    color: #A6FF00;
    text-decoration: underline;
}

.referral-step-icon {
    font-size: 20px;
    cursor: pointer;
    display: inline-block;
    transition: transform 0.2s;
    user-select: none;
}

.referral-step-icon:hover {
    transform: scale(1.2);
}

.referrals-table tbody tr:last-child td {
    border-bottom: none;
}

.referrals-table tbody tr:hover {
    background: rgba(234, 255, 0, 0.05);
}

.referrals-table small {
    display: block;
    font-size: 11px;
    color: var(--light-gray);
    margin-top: 4px;
}

.referral-link-section {
    margin-top: 24px;
}

.referral-link-section h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: var(--text);
}

.referral-link-input-group {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.referral-link-input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(234, 255, 0, 0.2);
    border-radius: 10px;
    color: var(--text);
    font-size: 13px;
    font-family: monospace;
}

.referral-link-input:focus {
    outline: none;
    border-color: #EAFF00;
}

.referral-link-copy-btn {
    padding: 12px;
    background: linear-gradient(to bottom, #EAFF00, #A6FF00);
    color: #111827;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
}

.referral-link-copy-btn svg {
    width: 20px;
    height: 20px;
    stroke: #111827;
}

.referral-link-copy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(234, 255, 0, 0.3);
}

.referral-link-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
    line-height: 1.5;
}

/* ===== Локации (кафе) / food.html ===== */
.food-page {
    padding-top: 12px;
}

.food-loading {
    padding: 24px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

.food-page .services-grid {
    gap: 16px;
}

.food-page .food-location-card.event-card {
    margin-bottom: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

/* Подсветка тапа только на кнопках, а не на всей карточке */
.food-page .food-location-card.event-card .btn,
.food-page .food-location-card.event-card .route-btn,
.food-page .food-location-card.event-card button {
    -webkit-tap-highlight-color: rgba(234, 255, 0, 0.35);
}

.location-light-root .food-location-card.location-page-card {
    -webkit-tap-highlight-color: transparent;
}

.location-light-root .food-location-card.location-page-card .btn,
.location-light-root .food-location-card.location-page-card .route-btn,
.location-light-root .food-location-card.location-page-card button {
    -webkit-tap-highlight-color: rgba(234, 255, 0, 0.35);
}

.food-location-card .food-going-today {
    padding-left: 0;
    padding-right: 0;
}

.food-loc-header {
    cursor: pointer;
}

.food-loc-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
    margin: 8px 0 12px;
    cursor: pointer;
    padding: 0 18px;
    overflow-wrap: anywhere;
}

.food-going-today {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0 12px;
    flex-wrap: wrap;
    padding: 0 18px;
}

.food-going-label {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.food-going-empty {
    font-size: 12px;
    color: var(--text-secondary);
}

.food-avatar-row {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.food-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid rgba(234, 255, 0, 0.35);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 24, 39, 0.8);
}

.food-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.food-avatar-letter {
    font-size: 11px;
    font-weight: 700;
    color: #EAFF00;
}

.food-loc-actions {
    margin-bottom: 12px;
    padding: 0 18px;
}

.food-loc-actions.actions-three-layout {
    gap: 8px;
}

.food-like-btn .food-like-num {
    margin-left: 6px;
    font-size: 13px;
    font-weight: 600;
}

.food-book-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.food-book-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.food-book-modal-panel {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #111827;
    border-radius: 16px 16px 0 0;
    padding: 20px 18px 24px;
    border: 1px solid rgba(234, 255, 0, 0.2);
    border-bottom: none;
}

.food-book-modal-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text);
}

.food-book-label {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin: 10px 0 4px;
}

.food-book-input {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(234, 255, 0, 0.25);
    background: rgba(0, 0, 0, 0.35);
    color: var(--text);
    font-size: 15px;
}

.food-book-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.food-book-modal-actions .btn {
    flex: 1;
}

/* Три кнопки в ряд на странице локации: широкая + две короткие */
.location-single-card .event-actions {
    gap: 12px;
    flex-wrap: nowrap;
}

.location-single-card .event-actions .btn:first-child {
    flex: 0 0 50%;
    min-width: 0;
}

.location-single-card .event-actions .btn-secondary {
    flex: 0 0 calc(25% - 8px);
    min-width: 0;
}

.location-like-with-count .loc-like-count-num {
    margin-left: 6px;
    font-size: 13px;
    font-weight: 600;
}