@import url('https://fonts.googleapis.com/css2?family=Wix+Madefor+Display:wght@400..800&display=swap');


/* === ИСПРАВЛЕНИЕ ДВОЙНОГО СКРОЛЛБАРА === */
/* Скрываем кастомные скроллбары на основных контейнерах */
body::-webkit-scrollbar,
html::-webkit-scrollbar,
.main-content::-webkit-scrollbar,
.profile-body::-webkit-scrollbar,
.post_list_body::-webkit-scrollbar,
.top-menu::-webkit-scrollbar {
    display: none !important;
}

body,
html {
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE/Edge */
    overflow-x: hidden !important;
}

/* Разрешаем скроллбары только там, где они критически нужны */
.chat-messages-modern::-webkit-scrollbar {
    width: 6px !important;
    display: block !important;
}

.chat-messages-modern {
    scrollbar-width: thin !important;
}

/* Убедимся, что основной контент не имеет собственного скролла */
.main-content {
    overflow-y: visible !important;
    overflow-x: hidden !important;
}

.profile-body,
.post_list_body {
    overflow-y: visible !important;
}









/* === БАЗОВЫЕ НАСТРОЙКИ ДЛЯ ВСЕХ УСТРОЙСТВ === */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: Arial, sans-serif;
    display: flex;
    background: #0a0a14;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}

.main-content {
    flex: 1;
    width: 100%;
}

.narrow-alert {
    max-width: 800px;
    margin: 10px auto;
    padding: 10px;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInSlideDown 0.6s ease-out forwards;
}

@keyframes fadeInSlideDown {
    to { opacity: 1; transform: translateY(0); }
}

.upgrade-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.rating-amount {
    color: gold;
    font-weight: bold;
}

/* =========================================
   HEADER STYLES
   ========================================= */
.site-header {
    padding: 20px 40px !important;
    background: rgba(0, 0, 0, 0.7) !important;
    backdrop-filter: blur(12px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    position: relative !important;
    z-index: 10 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5) !important;
    animation: slideInFromLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards 0.2s !important;
}

.logo {
    font-size: 26px !important;
    font-weight: bold !important;
    letter-spacing: 1.2px !important;
    color: #ffffff !important;
    background: linear-gradient(90deg, #ff6b6b, #ff9a8b) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    order: 1 !important;
}

.logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.6);
}

.search-container {
    flex: 1 !important;
    max-width: 700px !important;
    margin: 0 auto !important;
    order: 2 !important;
    display: flex;
    justify-content: center;
}

.search-bar {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50px;
    padding: 10px 20px;
    width: 100%;
    max-width: 650px;
    transition: all 0.4s ease;
}

.search-bar:hover {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.3);
}

.search-bar input {
    background: transparent;
    border: none;
    outline: none;
    color: white;
    width: 100%;
    font-size: 14px;
    padding: 6px 0;
}

.search-bar i {
    color: #ff6b6b;
    margin-right: 10px;
    transition: color 0.3s ease;
}

.search-bar:hover i {
    color: white;
}

.search-results {
    position: absolute;
    top: 90px;
    left: 50% !important;
    transform: translateX(-50%);
    width: 100%;
    max-width: 650px;
    background: rgba(30, 30, 50, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    backdrop-filter: blur(10px);
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    color: #e0e0ff;
    transition: background 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(255, 107, 107, 0.4);
    color: white;
}

.search-result-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #ff9a8b);
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    color: white;
    flex-shrink: 0;
}

.search-result-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.search-result-text {
    flex: 1;
    text-align: left;
}

.no-results {
    padding: 15px;
    text-align: center;
    color: #7a7ac0;
}

.energy-display {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 0.9rem !important;
    color: #ffd166 !important;
    flex-shrink: 0 !important;
    order: 3 !important;
    margin-right: 15px !important;
    margin-left: 10px !important;
}

.energy-display i {
    font-size: 1rem !important;
    color: white !important;
}

.energy-display .energy-amount,
.energy-display .rating-amount {
    font-weight: bold !important;
    color: white !important;
}

.energy-amount {
    font-weight: bold;
}

.energy-icon {
    font-size: 1.3rem;
}

.energy-cost {
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
}

.oval-container {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 6px 12px !important;
    background: linear-gradient(135deg, #ff9a8b, #ff6b6b) !important;
    border-radius: 24px !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 209, 102, 0.2) !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 10px rgba(255, 107, 107, 0.3) !important;
    cursor: pointer !important;
    min-height: 40px !important;
    white-space: nowrap !important;
}

.oval-container:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 6px 15px rgba(255, 107, 107, 0.5) !important;
}

.header-right {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    flex-shrink: 0 !important;
    order: 4 !important;
    margin-left: 0 !important;
    justify-content: flex-end !important;
}

.avatar-in-header {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    order: 4;
    margin-left: auto;
}

.avatar-header {
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #ff6b6b, #ff9a8b) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-weight: bold !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 0 12px rgba(255, 107, 107, 0.4) !important;
    flex-shrink: 0 !important;
    min-width: 44px !important;
    min-height: 44px !important;
}

.avatar-header:hover {
    transform: scale(1.1) !important;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.7) !important;
}

.avatar-header img {
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

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

/* =========================================
   BURGER MENU & NAVIGATION
   ========================================= */
.burger-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.burger-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #ff6b6b;
    margin: 3px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.burger-btn:hover {
    transform: rotate(90deg);
}

.burger-btn:hover span {
    background-color: white;
}

.menu-toggle {
    width: 30px !important;
    height: 30px !important;
    cursor: pointer !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
    min-width: 30px !important;
    min-height: 30px !important;
    margin-left: 8px !important;
}

.menu-toggle span {
    display: block !important;
    height: 3px !important;
    width: 100% !important;
    background: #ff6b6b !important;
    border-radius: 2px !important;
    transition: all 0.3s ease !important;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px) !important;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0 !important;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px) !important;
}

.top-menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0a0a0a;
    z-index: 1000;
    transition: top 0.4s ease;
    padding-top: 80px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.top-menu.active {
    top: 0;
}

.top-menu ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    width: 100%;
    padding: 0;
    margin: 0;
}

.top-menu ul li {
    display: flex;
    justify-content: center;
    width: 100%;
}

.top-menu ul li a {
    position: relative;
    color: white;
    font-size: 2.1em;
    text-decoration: none;
    padding: 8px 10px;
    border-radius: 4px;
    transition: color 0.3s ease;
    width: fit-content;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.top-menu ul li a::before {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 0;
    height: 4px;
    background: linear-gradient(90deg, #dc143c, #f80000);
    border-radius: 4px;
    transition: width 0.4s ease, opacity 0.2s ease;
}

.top-menu ul li a:hover::before {
    width: 100%;
    opacity: 1;
}

.close-menu {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 100px;
    color: white;
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.3s ease;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-menu:hover {
    transform: scale(1.1) rotate(10deg);
}

.close-menu:active {
    transform: scale(1.2) rotate(20deg);
}

.badge {
    background: #d32f2f;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
    margin: 0;
    padding: 0;
    text-align: center;
    line-height: 1;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* =========================================
   PROFILE STYLES
   ========================================= */
.profile-body {
    color: #f0f0f0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 20px;
    padding-bottom: 80px;
    overflow-x: hidden;
    perspective: 1000px;
}

.profile-page {
    width: 90%;
    max-width: 700px;
    background: #1e1e24;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.08s ease-out;
    margin-top: 10px;
    margin-bottom: 40px;
}

.avatar-section {
    padding: 40px 0 20px;
    text-align: center;
}

.avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #ff4d4d);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
}

.role {
    color: #ff6b6b;
    font-size: 16px;
}

.profile-block {
    padding: 24px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-block:first-child {
    border-top: none;
}

.block-title {
    font-size: 18px;
    margin-bottom: 16px;
    color: #ff6b6b;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bio-text {
    line-height: 1.6;
    color: #ccc;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.stat-item {
    background: rgba(255, 107, 107, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff6b6b, #ff7e5f, #ff416c, #ff6b6b);
    background-size: 400% 400%;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.stat-item:hover::before {
    opacity: 0.3;
    animation: gradientShift 3s ease infinite;
}

.stat-item:hover {
    transform: translateY(-8px) rotateX(15deg);
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.4);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 107, 107, 0.5);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: bold;
    background: linear-gradient(45deg, #ff6b6b, #ff7e5f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 5px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.stat-item:hover .stat-value {
    transform: scale(1.3) rotate(5deg);
    text-shadow: 0 0 15px rgba(255, 107, 107, 0.8);
}

.stat-label {
    font-size: 0.9rem;
    color: #ccc;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.stat-item:hover .stat-label {
    color: #fff;
    transform: scale(1.15) translateY(-3px);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.actions {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-js {
    padding: 12px 28px;
    background: #ff6b6b;
    border: none;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    min-height: 44px;
}

.btn-js:hover {
    background: #ff4d4d;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.4);
}

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

.profile-data {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    color: #ff4d4d;
    padding-bottom: 20px;
}

.fancy-button {
    position: relative;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 600;
    color: #ff6b6b;
    background: transparent;
    border: 2px solid #ff6b6b;
    border-radius: 50px;
    cursor: pointer;
    overflow: hidden;
    outline: none;
    transition: all 0.4s ease;
    z-index: 1;
    text-decoration: none;
    min-height: 44px;
}

.fancy-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ff6b6b, #ff9a8b);
    transition: all 0.6s ease;
    z-index: -1;
}

.fancy-button:hover::before {
    width: 100%;
}

.fancy-button span {
    position: relative;
    z-index: 2;
    background: linear-gradient(90deg, #ff6b6b, #ff9a8b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.4s ease;
}

.fancy-button:hover span {
    -webkit-text-fill-color: white;
}

.fancy-button:hover {
    color: white;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.6);
    transform: scale(1.05);
}

.fancy-button:active {
    transform: scale(0.98);
}

.profile-block-an {
    animation: pageRefreshWave 1.5s ease-out forwards;
}

@keyframes pageRefreshWave {
    0% { transform: scale(0.8) translateY(50px); opacity: 0; filter: blur(10px); }
    30% { transform: scale(1.05) translateY(-10px); opacity: 0.8; filter: blur(2px); }
    60% { transform: scale(0.95) translateY(5px); opacity: 1; filter: blur(1px); }
    100% { transform: scale(1) translateY(0); opacity: 1; filter: blur(0); }
}

.buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0px;
    font-family: Arial, sans-serif;
}

.buttons-container {
    display: flex;
    gap: 16px;
}

.btn-dark-red {
    display: inline-block;
    width: 240px;
    padding: 16px 24px;
    background: #000;
    color: #ff4d4d;
    border: 2px solid #ff4d4d;
    border-radius: 12px;
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 1px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0);
    min-height: 44px;
}

.btn-dark-red:hover {
    background: #ff0000;
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
    animation: pulse 1s infinite alternate;
}

.btn-outline-red {
    display: inline-block;
    width: 160px;
    padding: 14px 16px;
    background: white;
    color: #ff4d4d;
    border: 2px solid #ff4d4d;
    border-radius: 12px;
    font-weight: bold;
    font-size: 16px;
    letter-spacing: 1px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: all 0.4s ease;
    box-shadow: 0 4px 6px rgba(255, 0, 0, 0.1);
    min-height: 44px;
}

.btn-outline-red:hover {
    background: #ff4d4d;
    color: white;
    box-shadow: 0 6px 12px rgba(255, 0, 0, 0.3);
}

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

@keyframes pulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

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

/* === PROFILE LIST === */
.container-body {
    color: #333;
    padding: 20px;
}

.container-profile-list {
    max-width: 1200px;
    margin: 0 auto;
}

.profiles-grid-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.profile-card-list {
    background: #111;
    border: 1px solid #333;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.1);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    color: #ffcccc;
}

.profile-card-list:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 0, 0, 0.3);
}

.profile-header-list {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.avatar-list {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff0000, #b30000);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    margin-right: 20px;
}

.profile-info-list h3 {
    font-size: 1.3rem;
    color: #ff4d4d;
}

.profile-info-list p {
    color: #ff9999;
    font-size: 0.9rem;
}

.profile-details-list {
    margin-top: 15px;
}

.detail-item-list {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    color: #ffcccc;
}

.detail-item-list i {
    margin-right: 10px;
    color: #ff4d4d;
}

.view-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background: #ff4d4d;
    color: black;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    margin-top: 20px;
    transition: all 0.3s ease;
    min-height: 44px;
}

.view-btn:hover {
    background: #cc0000;
    color: white;
    transform: translateY(-3px);
}

/* === DELETE FORM STYLE === */
.delete-confirm-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 20px;
    background: #0a0a14;
}

.delete-confirm-container {
    background: #1e1e2e;
    padding: 40px;
    border-radius: 20px;
    max-width: 520px;
    width: 100%;
    text-align: center;
    border: 2px solid #ff4d4d;
    box-shadow: 0 10px 40px rgba(255, 77, 77, 0.3);
    animation: fadeInScale 0.4s ease-out;
}

.delete-confirm-container h1 {
    color: #ff6b6b;
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.delete-confirm-container p {
    color: #ccc;
    line-height: 1.6;
}

.delete-confirm-container strong {
    color: #ff6b6b;
}

.fancy-button-delete {
    border-color: #ff4d4d;
}

.fancy-button-delete::before {
    background: linear-gradient(90deg, #ff4d4d, #cc0000);
}

.fancy-button-delete:hover::before {
    width: 100%;
}

.fancy-button-delete span {
    background: linear-gradient(90deg, #ff4d4d, #cc0000);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fancy-button-delete:hover span {
    -webkit-text-fill-color: white;
}

.fancy-button-delete:hover {
    box-shadow: 0 0 15px rgba(255, 77, 77, 0.6);
}

.fancy-button-delete:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

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

/* === UPDATE PROFILE FORM === */
.update-body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a14;
    color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: cardEntrance 0.8s ease-out forwards 0.1s;
}

.profile-card-update {
    width: 100%;
    max-width: 700px;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(248, 113, 113, 0.2);
    filter: blur(0px);
    transition: filter 0.4s ease;
}

.profile-card-update:not(:hover) {
    filter: blur(4px);
}

.profile-card-update:hover {
    filter: blur(0px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
}

.profile-card-update::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(248, 113, 113, 0.4), transparent 30%);
    animation: rotate 6s linear infinite;
    z-index: -1;
}

.card-header-update {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.card-header-update h1 {
    font-size: 32px;
    background: linear-gradient(90deg, #f87171, #fb7185);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 10px;
    font-weight: 700;
}

.card-header-update p {
    color: #94a3b8;
    font-size: 16px;
}

.avatar-section-update {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 35px;
    position: relative;
    z-index: 1;
}

.avatar-wrapper-update {
    position: relative;
    margin-bottom: 20px;
}

.avatar-update {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f87171, #fb7185);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(248, 113, 113, 0.3);
    position: relative;
    transition: transform 0.3s ease;
}

.avatar-update:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 15px 35px rgba(248, 113, 113, 0.5);
}

.avatar-placeholder-update {
    font-size: 60px;
    color: rgba(255, 255, 255, 0.8);
}

.change-avatar-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #f87171;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid rgba(15, 23, 42, 0.8);
    transition: all 0.3s ease;
    min-width: 44px;
    min-height: 44px;
}

.change-avatar-btn:hover {
    background: #fb7185;
    transform: scale(1.1);
}

.upload-text-update {
    color: #c7d2fe;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
}

.form-grid-update {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    position: relative;
    z-index: 1;
}

.form-group-full-update {
    grid-column: span 2;
}

.form-group-update {
    margin-bottom: 20px;
}

.form-label-update {
    display: block;
    margin-bottom: 8px;
    color: #e2e8f0;
    font-weight: 500;
    font-size: 15px;
}

.form-input-update {
    width: 100%;
    padding: 14px 20px;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 12px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 44px;
}

.form-input-update:focus {
    outline: none;
    border-color: #f87171;
    background: rgba(30, 41, 59, 0.8);
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.2);
}

.form-input-update::placeholder {
    color: #94a3b8;
}

textarea.form-input-update {
    resize: vertical;
    min-height: 120px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-icon {
    flex: 1;
    position: relative;
}

.social-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 18px;
}

.social-icon input {
    padding-left: 45px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.save-btn {
    width: 100%;
    padding: 18px;
    background: linear-gradient(90deg, #f87171, #fb7185);
    border: none;
    border-radius: 15px;
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
    box-shadow: 0 5px 15px rgba(248, 113, 113, 0.3);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 44px;
}

.save-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(248, 113, 113, 0.4);
}

.password-strength {
    height: 5px;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.strength-meter {
    height: 100%;
    width: 0%;
    background: #ef4444;
    transition: width 0.3s ease, background 0.3s ease;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.clickable-avatar {
    cursor: pointer;
    position: relative;
}

.clickable-avatar:hover::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    pointer-events: none;
}

@keyframes cardEntrance {
    0% { opacity: 0; transform: translateX(100vw) scale(0.95); }
    70% { opacity: 0.8; transform: translateX(20px) scale(1.02); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

/* === TEST PROFILE / LIST === */
.list-body {
    background: #0a0a14;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.list-container {
    max-width: 1200px;
    width: 100%;
}

.list-header {
    text-align: center;
    margin-bottom: 50px;
    opacity: 0;
    transform: translateY(-30px);
    animation: fadeInDown 0.8s ease 0.2s forwards;
}

.list-header h1 {
    font-size: 3.5rem;
    background: linear-gradient(to right, #FF0000, #DC143C);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.list-header p {
    font-size: 1.2rem;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 0.8s ease 0.9s forwards;
}

.list-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 1.2s forwards;
}

.list-stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 25px;
    min-width: 150px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: slideInUp 0.6s ease 1.4s forwards;
}

.list-stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.list-stat-card .number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #FF0000;
    margin-bottom: 5px;
}

.list-followers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    animation: popIn 0.6s ease 1.4s forwards;
}

.list-follower-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    padding: 25px;
    text-align: center;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: scale(0.8);
    animation: popIn 0.6s ease 1.6s forwards;
    text-decoration: none;
}

.list-follower-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #FF0000, #B22222);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.list-follower-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.12);
}

.list-follower-card:hover::before {
    transform: scaleX(1);
}

.list-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 4px solid #FF0000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    justify-content: center;
    color: white;
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 20px;
}

.list-name {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff;
}

.list-username {
    color: #FF6347;
    font-size: 1rem;
    margin-bottom: 12px;
}

.list-bio {
    color: #ddd;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 15px;
    min-height: 50px;
}

.list-follow-btn {
    background: linear-gradient(135deg, #FF0000, #B22222);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.4);
    transition: all 0.3s ease;
    min-height: 44px;
}

.list-follow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.6);
}

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

/* === FOLLOWERS STYLE === */
.followers-body {
    background: #0a0a14;
    color: #e6f7ff;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
}

.followers-container {
    max-width: 1400px;
    width: 100%;
    padding: 20px;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

.followers-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

.followers-header::before {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 10px;
    background: linear-gradient(90deg, #ff6b6b, #ff4757, #ff3838, #ff6348, #ff4757);
    border-radius: 5px;
    animation: jelly 3s infinite ease-in-out;
}

.followers-header h1 {
    font-size: 4rem;
    color: #ff6b6b;
    margin-bottom: 20px;
    text-shadow: 3px 3px 0 #ff4757, 6px 6px 0 rgba(0,0,0,0.1);
    animation: jellyTitle 4s infinite ease-in-out;
    transform-origin: center;
}

.followers-header p {
    font-size: 1.4rem;
    color: #ff6b6b;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: bold;
}

.followers-stats-container {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-bottom: 80px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.7s forwards;
}

.followers-stat-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 30px;
    padding: 40px 60px;
    text-align: center;
    min-width: 220px;
    border: 8px solid #ff4757;
    box-shadow: 8px 8px 0 rgba(0,0,0,0.1);
    position: relative;
    animation: jellyStat 3s infinite ease-in-out;
    transform-origin: center;
}

.followers-stat-card:nth-child(2) {
    animation-delay: 0.5s;
}

.followers-stat-number {
    font-size: 3.5rem;
    font-weight: bold;
    color: #ff6b6b;
    margin-bottom: 10px;
    text-shadow: 2px 2px 0 #ff4757;
}

.followers-stat-label {
    font-size: 1.2rem;
    color: #ff6b6b;
    font-weight: bold;
}

.followers-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.followers-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 40px;
    padding: 35px 25px;
    text-align: center;
    border: 5px solid #ff4757;
    box-shadow: 5px 5px 0 rgba(0,0,0,0.1);
    position: relative;
    animation: jellyCard 4s infinite ease-in-out;
    transform-origin: center;
    transition: all 0.3s ease;
}

.followers-card:hover {
    animation: jellyHover 0.6s ease-in-out;
    transform: scale(1.05);
}

.followers-card-top {
    position: relative;
    display: inline-block;
}

.followers-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b6b, #ff4d4d);
    font-size: 40px;
    color: white;
    font-weight: bold;
    border: 6px solid #ff6b6b;
    box-shadow: 0 0 15px rgba(255, 107, 107, 0.5);
    margin: 0 auto 25px;
}

.online-indicator {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 16px;
    height: 16px;
    background-color: #4CAF50;
    border: 3px solid #0a0a14;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.6);
    animation: pulse-green 2s infinite;
    z-index: 2;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(76, 175, 80, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0); }
}

.followers-name {
    font-size: 1.6rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ff6b6b;
    text-shadow: 1px 1px 0 #ff4757;
}

.followers-username {
    color: #ff9a9e;
    font-size: 1.1rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.followers-bio {
    color: #cce6ff;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    min-height: 70px;
    font-weight: bold;
}

.followers-btn {
    background: #ff4757;
    color: #0a0a14;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    font-size: 1rem;
    font-family: 'Comic Sans MS', cursive, sans-serif;
    border: 3px solid #ff6b6b;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.1);
    animation: jellyButton 3s infinite ease-in-out;
    transition: all 0.3s ease;
    min-height: 44px;
}

.followers-btn:hover {
    animation: jellyButtonHover 0.4s ease-in-out;
    transform: scale(1.05);
    background: #ff6b6b;
}

/* Jelly Animations */
@keyframes jelly {
    0%, 100% { transform: translateX(-50%) scaleY(1) scaleX(1); }
    25% { transform: translateX(-50%) scaleY(1.1) scaleX(0.9); }
    50% { transform: translateX(-50%) scaleY(0.9) scaleX(1.1); }
    75% { transform: translateX(-50%) scaleY(1.05) scaleX(0.95); }
}

@keyframes jellyTitle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.05) rotate(2deg); }
    50% { transform: scale(0.95) rotate(-2deg); }
    75% { transform: scale(1.02) rotate(1deg); }
}

@keyframes jellyStat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05) rotate(3deg); }
}

@keyframes jellyCard {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.02) rotate(1deg); }
    50% { transform: scale(0.98) rotate(-1deg); }
    75% { transform: scale(1.01) rotate(0.5deg); }
}

@keyframes jellyHover {
    0%, 100% { transform: scale(1.05); }
    50% { transform: scale(1.1) rotate(2deg); }
}

@keyframes jellyAvatar {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1) rotate(5deg); }
}

@keyframes jellyButton {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05) rotate(1deg); }
}

@keyframes jellyButtonHover {
    0%, 100% { transform: scale(1.05); }
    50% { transform: scale(1.1) rotate(2deg); }
}

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

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

@keyframes popIn {
    0% { opacity: 0; transform: scale(0.8); }
    70% { transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

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

/* === POST FORM === */
.post_form_body {
    background: #0a0a14;
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.post_form_container {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #ff6b6b;
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(255, 107, 107, 0.2);
    width: 100%;
    max-width: 850px;
    padding: 50px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: bubbleIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.post_form_container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, #ff6b6b, #ff416c);
}

.post_form_container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(255, 107, 107, 0.3);
}

.post_form_header {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
}

.post_form_header h1 {
    font-size: 3rem;
    color: #ff6b6b;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
    animation: pulse 2s infinite alternate;
}

.post_form_header p {
    color: #ff6b6b;
    font-size: 1.2rem;
    opacity: 0.8;
}

.post_form_form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

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

.post_form_group label {
    font-weight: bold;
    color: #ff6b6b;
    font-size: 1.2rem;
}

.post_form_group input,
.post_form_group textarea,
.post_form_group select {
    padding: 18px;
    border: 2px solid rgba(255, 107, 107, 0.3);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.08);
    color: #e0e0e0;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    min-height: 44px;
}

.post_form_group input::placeholder,
.post_form_group textarea::placeholder,
.post_form_group select::placeholder {
    color: white;
    opacity: 0.7;
}

.post_form_group input:focus,
.post_form_group textarea:focus,
.post_form_group select:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.3);
    background: rgba(255, 107, 107, 0.1);
    color: #e0e0e0;
}

.post_form_group input:hover,
.post_form_group textarea:hover,
.post_form_group select:hover {
    border-color: #ff416c;
    transform: scale(1.01);
}

.post_form_group textarea {
    min-height: 180px;
    resize: vertical;
    line-height: 1.6;
}

.post_form_image_upload {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.post_form_upload_area {
    border: 3px dashed #ff6b6b;
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 107, 107, 0.05);
    position: relative;
}

.post_form_upload_area:hover {
    background: rgba(255, 107, 107, 0.1);
    transform: translateY(-3px) scale(1.02);
    border-color: #ff416c;
}

.post_form_upload_icon {
    font-size: 4rem;
    color: #ff6b6b;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.post_form_upload_area:hover .post_form_upload_icon {
    transform: scale(1.1);
}

.post_form_upload_text {
    color: #ff6b6b;
    font-weight: bold;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.post_form_upload_hint {
    color: #aaa;
    font-size: 1rem;
}

.post_form_tags_input {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 20px;
    border: 2px solid rgba(255, 107, 107, 0.3);
    border-radius: 15px;
    min-height: 60px;
    background: rgba(255, 107, 107, 0.05);
}

.post_form_tag {
    background: linear-gradient(45deg, #ff6b6b, #ff416c);
    color: white;
    padding: 8px 18px;
    border-radius: 25px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.post_form_tag button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.3rem;
    font-weight: bold;
    transition: transform 0.2s ease;
    min-width: 44px;
    min-height: 44px;
}

.post_form_tag button:hover {
    transform: scale(1.2);
}

.post_form_tag_input {
    flex: 1;
    border: none;
    background: transparent;
    color: #e0e0e0;
    font-size: 1rem;
    outline: none;
    min-height: 44px;
}

.post_form_submit_section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 25px;
    margin-top: 25px;
}

.post_form_draft_btn {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border: 2px solid #ff6b6b;
    padding: 15px 30px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    min-height: 44px;
}

.post_form_draft_btn:hover {
    background: rgba(255, 107, 107, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.post_form_publish_btn {
    background: #000;
    color: #ff6b6b;
    border: 2px solid #ff6b6b;
    padding: 18px 45px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
}

.post_form_publish_btn:hover {
    background: #ff6b6b;
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 107, 107, 0.4);
}

.post_form_preview_image {
    max-width: 100%;
    border-radius: 15px;
    margin-top: 15px;
    border: 2px solid #ff6b6b;
    display: none;
}

.post_form_char_counter {
    text-align: right;
    color: #ff6b6b;
    font-size: 0.9rem;
}

.post_form_upload_area_image {
    position: relative;
    border: 3px dashed #ff6b6b;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 107, 107, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

#preview-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes pulse {
    0% { text-shadow: 0 0 10px rgba(255, 107, 107, 0.5); }
    100% { text-shadow: 0 0 20px rgba(255, 107, 107, 0.8), 0 0 30px rgba(255, 107, 107, 0.6); }
}

@keyframes bubbleIn {
    0% { opacity: 0; transform: scale(0.7); }
    70% { transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

/* === POST LIST === */
.post_list_body {
    font-family: 'Space Grotesk', sans-serif;
    background: #0a0a14;
    color: #e0e0ff;
    padding: 30px;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

.post_list_body::before {
    content: " ";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(100, 80, 255, 0.1), transparent 20%),
                radial-gradient(circle at 80% 70%, rgba(255, 100, 150, 0.1), transparent 20%),
                radial-gradient(circle at 50% 20%, rgba(0, 200, 255, 0.1), transparent 25%);
    z-index: -1;
}

.post_list_header {
    text-align: center;
    padding: 40px 0;
    margin-bottom: 50px;
    position: relative;
}

.post_list_h1 {
    font-size: 3rem;
    color: #ff3b3b;
    letter-spacing: 2px;
}

.subtitle {
    font-size: 1.1rem;
    color: #ffffff;
    margin-top: 10px;
}

.posts-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.post-list {
    background: rgba(30, 30, 50, 0.7);
    border-radius: 16px;
    padding: 25px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 800px;
    height: auto;
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    animation: fadeInUp 0.8s ease-out forwards;
}

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

.post-list::before {
    content: " ";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(100, 80, 255, 0.2), transparent, rgba(255, 100, 150, 0.2), transparent);
    animation: rotate 10s linear infinite;
    z-index: -1;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.post-list:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 40px rgba(255, 59, 59, 0.5);
}

.post-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(100, 80, 255, 0.3);
}

.post-content h2 {
    font-size: 1.6rem;
    color: #ff6b6b;
    margin-bottom: 15px;
}

.post-content p {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #fff;
    margin-bottom: 15px;
    position: relative;
}

.read-more {
    display: inline-block;
    margin-top: auto;
    padding: 10px 20px;
    background: linear-gradient(90deg, #ff3b3b, #0a0a14);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.read-more:hover {
    opacity: 0.9;
    box-shadow: 0 0 15px rgba(255, 59, 59, 0.5);
}

.actions {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(100, 80, 255, 0.2);
}

.action-btn {
    background: rgba(50, 50, 70, 0.6);
    color: #e0e0ff;
    border: none;
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    min-width: 44px;
}

.action-btn:hover {
    background: rgba(100, 80, 255, 0.4);
    box-shadow: 0 0 10px rgba(100, 80, 255, 0.5);
}

.action-btn:active {
    transform: scale(1.1);
    background: rgba(100, 80, 255, 0.7);
    box-shadow: 0 0 20px rgba(100, 80, 255, 0.8);
}

.counter {
    margin-left: 5px;
    font-weight: bold;
}

.heart-animation {
    position: absolute;
    font-size: 2rem;
    animation: floatUp 1.2s ease-out forwards;
    pointer-events: none;
}

@keyframes floatUp {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(-50px) scale(1.5); }
}

.views-btn {
    background: rgba(50, 50, 70, 0.6);
    color: #e0e0ff;
    border: none;
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 0.9rem;
    cursor: default;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
}

/* === POST DETAIL === */
.post_detail_container {
    max-width: 1000px;
    margin: 60px auto;
    background: #121220;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
    overflow: hidden;
    padding: 50px;
    opacity: 0;
    animation: rotateIn 0.8s ease-out forwards;
}

.post_detail_title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #f0f0f0;
    margin-bottom: 20px;
}

.post_detail_img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.post_detail_content {
    font-size: 1.1rem;
    color: #d0d0d0;
    line-height: 1.7;
}

.post_detail_meta {
    display: block;
    color: #a0a0b0;
    font-size: 0.9rem;
    margin: 20px 0;
}

.post_detail_actions {
    margin-top: 25px;
}

.post_detail_btn {
    display: inline-block;
    color: #e74c3c;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    border: 2px solid #e74c3c;
    border-radius: 30px;
    margin-right: 10px;
    transition: all 0.3s ease;
    min-height: 44px;
}

.post_detail_btn:hover {
    background: #e74c3c;
    color: white;
}

.post_detail_social_buttons {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #2a2a3a;
}

.post_detail_like_btn,
.post_detail_repost_btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f0f0f0;
    background: #2a2a3a;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    min-height: 44px;
    min-width: 44px;
}

.post_detail_like_btn:hover,
.post_detail_repost_btn:hover {
    background: #e74c3c;
}

.post_detail_back_btn {
    display: inline-block;
    color: #e74c3c;
    text-decoration: none;
    font-weight: bold;
    padding: 10px 20px;
    border: 2px solid #e74c3c;
    border-radius: 30px;
    margin-top: 20px;
    transition: all 0.3s ease;
    min-height: 44px;
}

.post_detail_back_btn:hover {
    background: #e74c3c;
    color: white;
}

.author-follow-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    background-color: transparent;
    border: 2px solid #ff4d4d;
    border-radius: 20px;
    text-decoration: none;
    width: fit-content;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-top: 15px;
}

.author-follow-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    background-color: rgba(255, 0, 0, 0.05);
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ff4d4d;
}

.author-avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #ff4d4d;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
    border: 2px solid #ff4d4d;
}

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

.author-name {
    font-weight: bold;
    color: white;
    font-size: 16px;
}

.follow-text {
    color: #ff4d4d;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s ease;
}

.author-follow-card:hover .follow-text {
    color: #cc0000;
}

@keyframes rotateIn {
    0% { opacity: 0; transform: rotate(-10deg) scale(0.8); }
    100% { opacity: 1; transform: rotate(0) scale(1); }
}

/* === COMMENTS === */
.comments_section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #2a2a3a;
}

.comments_section h3 {
    color: #f0f0f0;
    margin-bottom: 15px;
}

.comments_list {
    list-style-type: none;
    padding-left: 0;
}

.comment_item {
    background: #1a1a2a;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    color: #f0f0f0;
}

.comment_item strong {
    color: #e74c3c;
}

.comment_item p {
    margin-top: 8px;
    color: #d0d0d0;
}

.comment_form_container {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #2a2a3a;
}

.comment_textarea {
    width: 100%;
    height: 100px;
    background: #2a2a3a;
    color: #f0f0f0;
    border: 1px solid #3a3a4a;
    border-radius: 8px;
    padding: 15px;
    resize: vertical;
    font-size: 1rem;
    min-height: 44px;
}

.comment_submit_btn {
    margin-top: 10px;
    padding: 10px 20px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    min-height: 44px;
}

.comment_submit_btn:hover {
    background: #c0392b;
}

.comment_empty_text {
    color: #f0f0f0;
    font-style: italic;
    text-align: center;
    padding: 20px;
}

/* === REPOSTED USER === */
.reposted_user_body {
    font-family: 'Inter', sans-serif;
    background: #0a0a14;
    color: #e2e8f0;
    line-height: 1.6;
    padding: 30px 20px;
    min-height: 100vh;
}

.reposted_user_body .container_reposted {
    max-width: 800px;
    margin: 0 auto;
    background: #0a0a14;
}

.reposted_user_body .header_reposted {
    text-align: center;
    margin-bottom: 40px;
}

.reposted_user_body h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #f8fafc;
    position: relative;
    display: inline-block;
}

.reposted_user_body h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #e53e3e, #c53030);
    border-radius: 2px;
}

.reposted_user_body .post-card {
    background: #1a1b2e;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 25px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: scaleInWithBounceReposted 0.8s ease-out;
    cursor: pointer;
}

.reposted_user_body .post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(229, 62, 62, 0.2);
}

.reposted_user_body .post-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.reposted_user_body .avatar_reposted {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e53e3e, #c53030);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: 12px;
    font-size: 0.9rem;
}

.reposted_user_body .reposted-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #e53e3e;
    margin-bottom: 10px;
    word-break: break-word;
}

.reposted_user_body .reposted-content {
    color: #cbd5e1;
    margin-bottom: 15px;
    line-height: 1.7;
    word-wrap: break-word;
}

.reposted_user_body .post-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    margin: 15px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.reposted_user_body .post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #718096;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.reposted_user_body .author-link {
    color: #e53e3e;
    font-weight: 600;
    text-decoration: none;
}

.reposted_user_body .author-link:hover {
    text-decoration: underline;
}

.reposted_user_body .repost-icon {
    color: #e53e3e;
    font-size: 1.2rem;
    margin-right: 8px;
}

.reposted_user_body .empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #718096;
}

.reposted_user_body .empty-state i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #4a5568;
}

.reposted_user_body .empty-state h3 {
    font-size: 1.4rem;
    color: #e2e8f0;
    margin-bottom: 10px;
}

.reposted_user_body .empty-state p {
    font-size: 1.1rem;
}

.reposted_user_body .post-link {
    text-decoration: none;
    display: block;
    color: inherit;
}

@keyframes scaleInWithBounceReposted {
    0% { transform: scale(0.1); opacity: 0; }
    70% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* === POST USERS === */
.post_user_body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0a0a14 0%, #000033 100%);
    color: #e0e0ff;
    padding: 40px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.post_user_header {
    text-align: center;
    margin-bottom: 50px;
    width: 100%;
    max-width: 800px;
}

.post_user_h1 {
    font-size: 2.8rem;
    color: #ff3b3b;
    margin-bottom: 10px;
    text-shadow: 0 0 10px rgba(255, 59, 59, 0.5);
}

.post_user_subtitle {
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 300;
}

.post_user_posts-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    width: 100%;
    max-width: 800px;
}

.post_user_post-list {
    background: rgba(30, 30, 50, 0.8);
    border-radius: 16px;
    padding: 30px;
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.post_user_post-list:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 59, 59, 0.4);
}

.post_user_post-content {
    display: flex;
    flex-direction: column;
}

.post_user_post-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.post_user_post-content h2 {
    font-size: 1.8rem;
    color: #ff3b3b;
    margin-bottom: 15px;
}

.post_user_post-content p {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.post_user_post-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #a0a0ff;
    margin-bottom: 20px;
}

.post_user_read-more {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #ff3b3b, #0a0a14);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    margin-top: auto;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.post_user_read-more:hover {
    opacity: 0.9;
    box-shadow: 0 0 20px rgba(255, 59, 59, 0.6);
}

.post_user_actions {
    display: flex;
    justify-content: space-around;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(100, 80, 255, 0.2);
}

.post_user_action-btn {
    background: rgba(50, 50, 70, 0.6);
    color: #e0e0ff;
    border: none;
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    min-height: 44px;
    min-width: 44px;
}

.post_user_action-btn:hover {
    background: rgba(255, 59, 59, 0.3);
    box-shadow: 0 0 15px rgba(255, 59, 59, 0.5);
}

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

.post_user_counter {
    font-weight: 600;
    color: #ffffff;
}

.post_user_heart-animation {
    position: absolute;
    font-size: 2.5rem;
    animation: floatUp 1.2s ease-out forwards;
    pointer-events: none;
    z-index: 100;
}

.post_user_footer {
    margin-top: 80px;
    text-align: center;
    color: #a0a0ff;
    font-size: 0.9rem;
    padding: 20px;
    border-top: 1px solid rgba(100, 80, 255, 0.2);
    width: 100%;
    max-width: 800px;
}

/* === DELETE & MODALS === */
.delete-confirm-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 20px;
    background-color: #121212;
    color: white;
}

.delete-confirm-container {
    background: #1e1e1e;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    max-width: 500px;
    width: 100%;
    text-align: center;
    color: white;
}

.delete-confirm-container h1 {
    margin-top: 0;
    color: #f44336;
    font-size: 1.8em;
}

.delete-confirm-container p {
    font-size: 1.1em;
    line-height: 1.6;
}

.btn-danger {
    background-color: #d32f2f;
    border: none;
    padding: 12px 25px;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    min-height: 44px;
}

.btn-secondary {
    background-color: #6c757d;
    border: none;
    padding: 12px 25px;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    margin-left: 10px;
    font-size: 1em;
    min-height: 44px;
}

.btn-danger:hover {
    background-color: #b71c1c;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-content-energy {
    background: white;
    padding: 25px;
    border-radius: 12px;
    width: 350px;
    max-width: 90vw;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeInScale 0.3s ease-out;
}

.modal-content-energy h3 {
    margin-top: 0;
    font-size: 1.4em;
    color: #333;
    text-align: center;
}

.modal-content-energy label {
    display: block;
    margin-bottom: 10px;
    font-weight: 500;
    color: #555;
}

.modal-content-energy input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    box-sizing: border-box;
    min-height: 44px;
}

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    justify-content: space-between;
}

.btn-submit, .btn-cancel {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
    min-height: 44px;
}

.btn-submit {
    background: #4CAF50;
    color: white;
}

.btn-submit:hover {
    background: #45a049;
}

.btn-cancel {
    background: #f44336;
    color: white;
}

.btn-cancel:hover {
    background: #da190b;
}

/* === TIMERS & ENERGY === */
.night-timer-block,
.peak-timer-block,
.morning-timer-block {
    background: linear-gradient(90deg, #0f2027, #203a43, #2c5364);
    color: white;
    padding: 15px;
    text-align: center;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    position: relative;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInSlideIn 0.6s forwards;
}

.peak-timer-block {
    background: linear-gradient(90deg, #800000, #a52a2a, #b22222);
}

.morning-timer-block {
    background: linear-gradient(90deg, #a8e6cf, #dcedc1, #e8f5e1);
    color: black;
}

@keyframes fadeInSlideIn {
    to { opacity: 1; transform: translateY(0); }
}

.pulse-animation {
    animation: pulse 0.5s ease-in-out;
}

.daily-energy-btn {
    background: linear-gradient(90deg, #ff8f00, #ffca28);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 0.9rem;
    cursor: pointer;
    width: 100%;
    max-width: 200px;
    margin: 10px auto;
    display: block;
    transition: background 0.3s ease, transform 0.2s;
    min-height: 44px;
}

.daily-energy-btn:hover:not(:disabled) {
    background: linear-gradient(90deg, #f57c00, #ffb300);
    transform: scale(1.03);
}

.daily-energy-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.daily-streak {
    font-size: 0.9rem;
    color: #5d4037;
    margin-top: 8px;
}

.daily-streak strong {
    color: #ff8f00;
}

.daily-progress-bar {
    height: 8px;
    background: #e0d6c9;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ff8f00, #ffca28);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.avatar-section {
    position: relative;
    text-align: center;
}

.trophy-icon {
    font-size: 2rem;
    margin-top: 5px;
    display: block;
}

.trophy-icon-small {
    font-size: 1.2rem;
    margin-top: 4px;
    display: block;
}

/* === CHAT MODERN === */
.chat-container-modern {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100vw;
    max-width: none;
    margin: 0;
    background: rgba(30, 30, 50, 0.95);
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    border: none;
    backdrop-filter: blur(20px);
    animation: chatContainerEntrance 0.6s ease-out;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
}

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

.chat-header-modern {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 15px 25px;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.25), rgba(255, 71, 87, 0.15));
    border-bottom: 2px solid rgba(255, 107, 107, 0.4);
    position: relative;
    flex-shrink: 0;
}

.chat-back-btn {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 107, 107, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6b6b;
    text-decoration: none;
    transition: all 0.3s ease;
    z-index: 10;
    min-width: 44px;
    min-height: 44px;
}

.chat-back-btn:hover {
    background: rgba(255, 107, 107, 0.4);
    transform: translateY(-50%) scale(1.1);
    color: white;
}

.chat-profile-btn {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 107, 107, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6b6b;
    text-decoration: none;
    transition: all 0.3s ease;
    min-width: 44px;
    min-height: 44px;
}

.chat-profile-btn:hover {
    background: rgba(255, 107, 107, 0.4);
    transform: translateY(-50%) scale(1.1) rotate(10deg);
}

.chat-user-info {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.avatar-wrapper-chat {
    position: relative;
    display: flex;
    justify-content: center;
}

.chat-user-avatar,
.chat-user-avatar-placeholder {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #ff6b6b;
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
    transition: all 0.3s ease;
}

.chat-user-avatar:hover,
.chat-user-avatar-placeholder:hover {
    transform: scale(1.1) rotate(5deg);
}

.chat-user-avatar-placeholder {
    background: linear-gradient(135deg, #ff6b6b, #ff4d4d);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.3rem;
}

.online-status-dot {
    position: absolute;
    bottom: 3px;
    right: 3px;
    width: 14px;
    height: 14px;
    background: #666;
    border: 2px solid #1e1e2e;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.online-status-dot.online {
    background: #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.6);
    animation: pulse-online 2s infinite;
}

@keyframes pulse-online {
    0%, 100% { box-shadow: 0 0 10px rgba(76, 175, 80, 0.6); }
    50% { box-shadow: 0 0 20px rgba(76, 175, 80, 0.9); }
}

.chat-user-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.chat-user-details h2 {
    color: #fff;
    font-size: 1.4rem;
    margin: 0 0 5px 0;
    text-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
}

.chat-user-status {
    color: #aaa;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.chat-messages-modern {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: radial-gradient(circle at 20% 50%, rgba(255, 107, 107, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255, 71, 87, 0.05) 0%, transparent 50%),
                rgba(10, 10, 20, 0.6);
    position: relative;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.chat-messages-modern::-webkit-scrollbar {
    width: 6px;
}

.chat-messages-modern::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages-modern::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff6b6b, #ff4757);
    border-radius: 3px;
}

.message-bubble-modern {
    display: flex;
    gap: 12px;
    max-width: 75%;
    animation: messageSlideIn 0.5s ease-out;
    position: relative;
}

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

.message-sent-modern {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-received-modern {
    align-self: flex-start;
}

.message-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #ff6b6b;
}

.message-avatar-small img,
.message-avatar-small span {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b6b, #ff4d4d);
    color: white;
    font-weight: bold;
    font-size: 1rem;
}

.message-content-modern {
    background: rgba(255, 107, 107, 0.18);
    padding: 14px 20px;
    border-radius: 20px;
    position: relative;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 107, 107, 0.2);
    transition: all 0.3s ease;
}

.message-sent-modern .message-content-modern {
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    border-bottom-right-radius: 6px;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
}

.message-received-modern .message-content-modern {
    background: rgba(50, 50, 80, 0.9);
    border-bottom-left-radius: 6px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.message-bubble-modern:hover .message-content-modern {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.5);
}

.message-text-modern {
    color: #fff;
    margin: 0 0 10px 0;
    line-height: 1.6;
    font-size: 0.98rem;
    word-wrap: break-word;
}

.message-image-container-modern {
    margin: 10px 0;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 2px solid rgba(255, 107, 107, 0.3);
}

.message-image-modern {
    max-width: 100%;
    max-height: 350px;
    border-radius: 16px;
    display: block;
    transition: all 0.3s ease;
}

.message-image-container-modern:hover .message-image-modern {
    transform: scale(1.02);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.message-image-container-modern:hover .image-overlay {
    opacity: 1;
}

.image-zoom-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 107, 107, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    min-width: 44px;
    min-height: 44px;
}

.image-zoom-btn:hover {
    background: #ff6b6b;
    transform: scale(1.1);
}

.message-meta-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 8px;
}

.message-status-modern {
    color: #4CAF50;
}

.chat-empty-state-modern {
    text-align: center;
    padding: 80px 20px;
    color: #aaa;
}

.empty-icon-modern {
    font-size: 5rem;
    margin-bottom: 25px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.chat-empty-state-modern h3 {
    color: #ff6b6b;
    margin: 0 0 15px 0;
    font-size: 1.5rem;
}

.empty-emojis {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.emoji-float {
    font-size: 2rem;
    animation: emojiFloat 3s ease-in-out infinite;
}

.emoji-float:nth-child(1) { animation-delay: 0s; }
.emoji-float:nth-child(2) { animation-delay: 0.5s; }
.emoji-float:nth-child(3) { animation-delay: 1s; }

@keyframes emojiFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.typing-indicator-modern {
    display: flex;
    gap: 5px;
    padding: 15px 25px;
    background: rgba(50, 50, 80, 0.6);
    backdrop-filter: blur(10px);
}

.typing-bubble {
    display: flex;
    gap: 6px;
    padding: 10px 15px;
    background: rgba(255, 107, 107, 0.2);
    border-radius: 20px;
}

.typing-dot-modern {
    width: 10px;
    height: 10px;
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite;
}

.typing-dot-modern:nth-child(2) { animation-delay: 0.2s; }
.typing-dot-modern:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.chat-form-modern {
    padding: 15px 25px;
    background: linear-gradient(180deg, rgba(20, 20, 35, 0.95), rgba(15, 15, 25, 0.98));
    border-top: 2px solid rgba(255, 107, 107, 0.4);
    flex-shrink: 0;
}

.chat-input-wrapper-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(30, 30, 50, 0.9);
    border-radius: 30px;
    padding: 10px 18px;
    border: 2px solid rgba(255, 107, 107, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    min-height: 44px;
}

.chat-input-wrapper-modern:focus-within {
    border-color: #ff6b6b;
    box-shadow: 0 0 25px rgba(255, 107, 107, 0.4);
    transform: translateY(-2px);
}

.chat-attach-btn-modern {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff6b6b;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 107, 107, 0.1);
    min-width: 44px;
    min-height: 44px;
}

.chat-attach-btn-modern:hover {
    background: rgba(255, 107, 107, 0.25);
    transform: scale(1.1) rotate(-10deg);
}

.chat-input-wrapper-modern textarea {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 0.98rem;
    resize: none;
    max-height: 120px;
    padding: 12px;
    outline: none;
    font-family: inherit;
}

.chat-input-wrapper-modern textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.chat-send-btn-modern {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.4);
    min-width: 44px;
    min-height: 44px;
}

.chat-send-btn-modern:hover {
    transform: scale(1.15) rotate(-15deg);
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.7);
}

.chat-send-btn-modern.active {
    animation: pulseSend 1s infinite;
}

@keyframes pulseSend {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 107, 107, 0.5); }
    50% { box-shadow: 0 0 35px rgba(255, 107, 107, 0.8); }
}

.image-preview-container-modern {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(255, 107, 107, 0.15);
    border-radius: 16px;
    margin-top: 15px;
    border: 2px solid rgba(255, 107, 107, 0.3);
    animation: previewSlideIn 0.4s ease-out;
}

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

.preview-image-wrapper {
    position: relative;
}

.image-preview-container-modern img {
    max-height: 100px;
    border-radius: 12px;
    border: 2px solid rgba(255, 107, 107, 0.5);
}

.remove-image-btn-modern {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(135deg, #ff4757, #ff3838);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.remove-image-btn-modern:hover {
    transform: scale(1.2) rotate(90deg);
}

.preview-filename {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* === MENU & USER INFO === */
.user-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
}

.avatar-menu {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #ff6b6b, #ff9a8b);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    box-shadow: 0 0 12px rgba(255, 107, 107, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.avatar-menu:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 20px rgba(255, 107, 107, 0.8);
}

.user-names {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.short-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 4px;
}

.full-name {
    font-size: 0.9rem;
    color: #ff6b6b;
}

/* === WRITE POST BUTTON === */
.write-post-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.write-post-text {
    margin-bottom: 20px;
    color: #d0d0d0;
    font-size: 1rem;
    line-height: 1.5;
    max-width: 500px;
}

.btn-write-post {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    color: white !important;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    border: none;
    cursor: pointer;
    margin: 0 auto;
    min-height: 44px;
}

.btn-write-post:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
    color: white !important;
}

.btn-write-post:active {
    transform: translateY(-1px);
}

.btn-write-post i:first-child {
    font-size: 1.1rem;
    animation: penWave 2s ease-in-out infinite;
}

.btn-write-post i:last-child {
    font-size: 0.9rem;
    opacity: 0.9;
    transition: transform 0.2s ease;
}

.btn-write-post:hover i:last-child {
    transform: translateX(4px);
}

@keyframes penWave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-10deg); }
    75% { transform: rotate(10deg); }
}

.profile-block .bio-text,
.profile-block .write-post-text {
    text-align: center !important;
}

/* === CAMERA & PASSWORD CHANGE === */
#camera-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

#camera-modal.active {
    display: flex;
}

#camera-video {
    width: 100%;
    max-height: 70vh;
    border-radius: 12px;
    background: #000;
    object-fit: cover;
}

#camera-canvas {
    display: none;
}

#camera-preview img {
    max-width: 100%;
    border-radius: 12px;
    border: 3px solid #ff6b6b;
}

.password-change-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.password-hint {
    color: #94a3b8;
    font-size: 13px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.password-hint i {
    color: #f87171;
}

.form-error {
    color: #ff4d4d;
    font-size: 12px;
    margin-top: 5px;
}

/* === THANK YOU MODAL === */
.modal-content-thank-you {
    max-height: 95vh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    padding: 40px 30px !important;
    margin: 2vh auto !important;
    width: 90% !important;
    max-width: 550px !important;
}

.modal-content-thank-you::-webkit-scrollbar {
    width: 0 !important;
    display: none !important;
}

.modal-content-thank-you {
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

/* Делаем иконку покомпактнее */
.thank-you-icon {
    font-size: 4rem !important;
    margin-bottom: 15px !important;
}

/* Заголовок */
.modal-content-thank-you h2 {
    font-size: 1.8rem !important;
    margin-bottom: 12px !important;
}

/* Текст приветствия */
.thank-you-text {
    font-size: 1rem !important;
    margin-bottom: 20px !important;
    line-height: 1.5 !important;
}

/* Блок с преимуществами - делаем компактнее */
.thank-you-benefits {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    padding: 18px !important;
    margin-bottom: 20px !important;
}

/* Элемент преимущества */
.benefit-item {
    font-size: 0.9rem !important;
    padding: 8px !important;
}

.benefit-icon {
    font-size: 1.3rem !important;
}

/* Подсказка */
.thank-you-hint {
    font-size: 0.85rem !important;
    margin-bottom: 20px !important;
    line-height: 1.5 !important;
}

/* Кнопка */
.btn-close-thank-you {
    padding: 14px 35px !important;
    font-size: 16px !important;
}

/* Для мобильных устройств */
@media (max-height: 700px) {
    .modal-content-thank-you {
        padding: 30px 25px !important;
        max-height: 98vh !important;
    }
    
    .thank-you-icon {
        font-size: 3.5rem !important;
    }
    
    .modal-content-thank-you h2 {
        font-size: 1.6rem !important;
    }
    
    .thank-you-benefits {
        gap: 10px !important;
        padding: 15px !important;
    }
    
    .benefit-item {
        font-size: 0.85rem !important;
        padding: 6px 8px !important;
    }
}

/* Для очень маленьких экранов */
@media (max-height: 600px) {
    .thank-you-icon {
        font-size: 3rem !important;
        margin-bottom: 10px !important;
    }
    
    .modal-content-thank-you h2 {
        font-size: 1.4rem !important;
        margin-bottom: 8px !important;
    }
    
    .thank-you-text {
        font-size: 0.9rem !important;
        margin-bottom: 15px !important;
    }
    
    .thank-you-benefits {
        grid-template-columns: 1fr !important;
        padding: 12px !important;
        margin-bottom: 15px !important;
    }
    
    .thank-you-hint {
        font-size: 0.8rem !important;
        margin-bottom: 15px !important;
    }
    
    .btn-close-thank-you {
        padding: 12px 30px !important;
        font-size: 15px !important;
    }
}

.modal-content-thank-you::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, rgba(255, 107, 107, 0.3), transparent 30%);
    animation: rotate 8s linear infinite;
    z-index: -1;
}

.thank-you-icon {
    font-size: 5rem;
    margin-bottom: 20px;
    animation: bounce 1s infinite;
}

.modal-content-thank-you h2 {
    color: #ff6b6b;
    margin-bottom: 15px;
    font-size: 2rem;
}

.thank-you-text {
    color: #cbd5e1;
    margin-bottom: 25px;
    line-height: 1.6;
    font-size: 1.1rem;
}

.thank-you-benefits {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 25px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e2e8f0;
    font-size: 0.95rem;
}

.benefit-icon {
    font-size: 1.5rem;
}

.thank-you-hint {
    color: #94a3b8;
    font-size: 0.9rem;
    margin-bottom: 25px;
    font-style: italic;
}

.btn-close-thank-you {
    background: linear-gradient(90deg, #ff6b6b, #fb7185);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    min-height: 44px;
}

.btn-close-thank-you:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.6);
}

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

/* =========================================
   UNIVERSAL RESPONSIVE - MOBILE FIRST
   ========================================= */
/* Mobile devices (iPhone, Android) */
@media (max-width: 768px) {
    html {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
        scroll-behavior: smooth;
    }
    
    body {
        -webkit-tap-highlight-color: transparent;
        -webkit-text-size-adjust: 100%;
    }
    
    .site-header {
        padding: 12px 15px !important;
        flex-wrap: wrap;
    }
    
    .logo {
        font-size: 20px !important;
        margin-left: 5px;
    }
    
    .search-container {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin-top: 10px;
    }
    
    .search-bar {
        width: 100%;
    }
    
    .energy-display {
        order: 2;
        font-size: 0.85rem;
        margin: 0 10px;
    }
    
    .header-right {
        order: 1;
        margin-left: auto;
    }
    
    .avatar-header {
        width: 36px !important;
        height: 36px !important;
    }
    
    .top-menu {
        height: 100vh;
        padding-top: 70px;
    }
    
    .top-menu ul li a {
        font-size: 1.6rem;
        padding: 12px 20px;
    }
    
    .close-menu {
        font-size: 60px;
        top: 10px;
        right: 15px;
    }
    
    .site-footer {
        padding: 25px 15px;
    }
    
    .footer-logo {
        font-size: 22px;
    }
    
    .profile-page {
        width: 95%;
        margin: 10px auto;
        border-radius: 16px;
    }
    
    .avatar {
        width: 100px;
        height: 100px;
        font-size: 32px;
    }
    
    .name {
        font-size: 22px;
    }
    
    .role {
        font-size: 14px;
    }
    
    .profile-block {
        padding: 20px;
    }
    
    .block-title {
        font-size: 16px;
        margin-bottom: 12px;
    }
    
    .bio-text {
        font-size: 14px;
        line-height: 1.5;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .stat-item {
        padding: 12px;
        border-radius: 12px;
    }
    
    .stat-value {
        font-size: 1.4rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .btn-js, .fancy-button {
        width: 100%;
        max-width: 280px;
        padding: 14px 24px;
        font-size: 15px;
    }
    
    .profiles-grid-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .profile-card-list {
        padding: 20px;
        border-radius: 14px;
    }
    
    .avatar-list {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin-right: 15px;
    }
    
    .profile-info-list h3 {
        font-size: 1.1rem;
    }
    
    .view-btn {
        padding: 10px;
        font-size: 0.95rem;
        border-radius: 8px;
    }
    
    .followers-header h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    .followers-header p {
        font-size: 1.1rem;
    }
    
    .followers-stats-container {
        gap: 20px;
        margin-bottom: 40px;
    }
    
    .followers-stat-card {
        padding: 25px 35px;
        min-width: 150px;
        border-radius: 20px;
        border-width: 5px;
    }
    
    .followers-stat-number {
        font-size: 2.2rem;
    }
    
    .followers-stat-label {
        font-size: 1rem;
    }
    
    .followers-grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 10px;
    }
    
    .followers-card {
        padding: 25px 20px;
        border-radius: 24px;
        border-width: 4px;
    }
    
    .followers-avatar {
        width: 90px;
        height: 90px;
        font-size: 32px;
        border-width: 4px;
        margin-bottom: 18px;
    }
    
    .followers-name {
        font-size: 1.3rem;
    }
    
    .followers-username {
        font-size: 1rem;
    }
    
    .followers-bio {
        font-size: 0.9rem;
        min-height: 60px;
    }
    
    .followers-btn {
        padding: 10px 24px;
        font-size: 0.95rem;
        border-radius: 24px;
    }
    
    .online-indicator {
        width: 14px;
        height: 14px;
        bottom: 6px;
        right: 6px;
        border-width: 2px;
    }
    
    .update-body {
        padding: 15px 10px;
        align-items: flex-start;
        padding-top: 30px;
    }
    
    .profile-card-update {
        max-width: 100%;
        padding: 25px 20px;
        border-radius: 16px;
    }
    
    .card-header-update h1 {
        font-size: 24px;
    }
    
    .card-header-update p {
        font-size: 14px;
    }
    
    .avatar-update {
        width: 120px;
        height: 120px;
        font-size: 40px;
    }
    
    .change-avatar-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .form-grid-update {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    
    .form-group-update {
        margin-bottom: 16px;
    }
    
    .form-label-update {
        font-size: 14px;
        margin-bottom: 6px;
    }
    
    .form-input-update {
        padding: 12px 16px;
        font-size: 15px;
        border-radius: 10px;
    }
    
    textarea.form-input-update {
        min-height: 100px;
    }
    
    .social-icons {
        flex-direction: column;
        gap: 12px;
    }
    
    .social-icon {
        width: 100%;
    }
    
    .save-btn {
        padding: 16px;
        font-size: 16px;
        border-radius: 12px;
        margin-top: 20px;
    }
    
    .password-change-grid {
        gap: 12px;
    }
    
    .post_form_container {
        padding: 30px 20px;
        border-radius: 18px;
        margin: 10px;
    }
    
    .post_form_header h1 {
        font-size: 2rem;
    }
    
    .post_form_header p {
        font-size: 1rem;
    }
    
    .post_form_group input,
    .post_form_group textarea,
    .post_form_group select {
        padding: 14px;
        font-size: 15px;
        border-radius: 12px;
    }
    
    .post_form_upload_area {
        padding: 30px 20px;
        min-height: 180px;
    }
    
    .post_form_upload_icon {
        font-size: 3rem;
    }
    
    .post_form_submit_section {
        flex-direction: column;
        gap: 15px;
    }
    
    .post_form_draft_btn,
    .post_form_publish_btn {
        width: 100%;
        padding: 14px 24px;
        font-size: 15px;
        border-radius: 12px;
    }
    
    .post_list_body {
        padding: 15px 10px;
    }
    
    .post_list_header {
        padding: 25px 0;
        margin-bottom: 30px;
    }
    
    .post_list_h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .post-list {
        padding: 20px;
        border-radius: 14px;
        max-width: 100%;
    }
    
    .post-image {
        height: 200px;
        border-radius: 8px;
    }
    
    .post-content h2 {
        font-size: 1.3rem;
    }
    
    .post-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .post-meta {
        font-size: 0.85rem;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .read-more {
        padding: 8px 16px;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    
    .actions {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .action-btn {
        padding: 6px 14px;
        font-size: 0.85rem;
        border-radius: 40px;
    }
    
    .post_detail_container {
        margin: 20px 10px;
        padding: 25px 20px;
        border-radius: 14px;
    }
    
    .post_detail_title {
        font-size: 1.8rem;
    }
    
    .post_detail_img {
        max-height: 300px;
        border-radius: 8px;
    }
    
    .post_detail_content {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .post_detail_meta {
        font-size: 0.85rem;
    }
    
    .post_detail_btn,
    .post_detail_back_btn {
        padding: 8px 16px;
        font-size: 0.9rem;
        border-radius: 24px;
    }
    
    .post_detail_social_buttons {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .post_detail_like_btn,
    .post_detail_repost_btn {
        padding: 8px 16px;
        font-size: 0.9rem;
        border-radius: 24px;
    }
    
    .author-follow-card {
        padding: 10px 15px;
        border-radius: 16px;
    }
    
    .author-avatar,
    .author-avatar-placeholder {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .author-name {
        font-size: 14px;
    }
    
    .follow-text {
        font-size: 12px;
    }
    
    .comments_section h3 {
        font-size: 1.2rem;
    }
    
    .comment_item {
        padding: 12px;
        border-radius: 8px;
    }
    
    .comment_textarea {
        height: 80px;
        padding: 12px;
        font-size: 14px;
        border-radius: 10px;
    }
    
    .comment_submit_btn {
        padding: 10px 24px;
        font-size: 0.95rem;
        border-radius: 24px;
    }
    
    .chat-container-modern {
        height: 100vh;
    }
    
    .chat-header-modern {
        padding: 10px 15px;
        flex-direction: column;
        gap: 10px;
    }
    
    .chat-back-btn,
    .chat-profile-btn {
        width: 36px;
        height: 36px;
        top: 10px;
    }
    
    .chat-back-btn {
        left: 10px;
    }
    
    .chat-profile-btn {
        right: 10px;
    }
    
    .chat-user-avatar,
    .chat-user-avatar-placeholder {
        width: 45px;
        height: 45px;
    }
    
    .chat-user-details h2 {
        font-size: 1.2rem;
    }
    
    .chat-user-status {
        font-size: 0.8rem;
    }
    
    .chat-messages-modern {
        padding: 15px;
        gap: 12px;
    }
    
    .message-bubble-modern {
        max-width: 85%;
        gap: 8px;
    }
    
    .message-avatar-small {
        width: 32px;
        height: 32px;
    }
    
    .message-content-modern {
        padding: 12px 16px;
        border-radius: 16px;
    }
    
    .message-text-modern {
        font-size: 0.9rem;
    }
    
    .message-meta-modern {
        font-size: 0.7rem;
    }
    
    .chat-form-modern {
        padding: 12px 15px;
    }
    
    .chat-input-wrapper-modern {
        padding: 8px 14px;
        border-radius: 24px;
    }
    
    .chat-attach-btn-modern {
        width: 38px;
        height: 38px;
    }
    
    .chat-input-wrapper-modern textarea {
        font-size: 14px;
        padding: 8px;
        max-height: 100px;
    }
    
    .chat-send-btn-modern {
        width: 42px;
        height: 42px;
    }
    
    .image-preview-container-modern {
        padding: 12px 15px;
        gap: 10px;
    }
    
    .image-preview-container-modern img {
        max-height: 80px;
    }
    
    .preview-filename {
        font-size: 0.8rem;
        max-width: 150px;
    }
    
    .modal-content-energy,
    .modal-content-welcome,
    .modal-content-thank-you {
        max-width: 95vw;
        padding: 25px 20px;
        margin: 10px;
        border-radius: 16px;
    }
    
    .modal-content-energy h3,
    .modal-content-welcome h2,
    .modal-content-thank-you h2 {
        font-size: 1.3rem;
    }
    
    .welcome-icon,
    .thank-you-icon {
        font-size: 3rem;
    }
    
    .btn-submit,
    .btn-cancel,
    .btn-close-modal,
    .btn-close-thank-you {
        padding: 12px 24px;
        font-size: 14px;
        border-radius: 10px;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .thank-you-benefits {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 15px;
    }
    
    .energy-notification {
        top: 12px;
        right: 12px;
        left: 12px;
        max-width: none;
        justify-content: center;
        text-align: center;
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .energy-notification .icon {
        font-size: 1.2rem;
    }
    
    .delete-confirm-container {
        padding: 25px 20px;
        border-radius: 16px;
        margin: 10px;
    }
    
    .delete-confirm-container h1 {
        font-size: 1.4rem;
    }
    
    .delete-confirm-container p {
        font-size: 0.95rem;
    }
    
    .fancy-button {
        width: 100%;
        padding: 14px 24px;
        font-size: 15px;
    }
    
    .write-post-container {
        padding: 15px;
    }
    
    .write-post-text {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }
    
    .btn-write-post {
        width: 100%;
        max-width: 280px;
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .search-results {
        left: 50%;
        width: 90vw;
        max-width: 320px;
        max-height: 40vh;
    }
    
    .search-result-item {
        padding: 12px 15px;
    }
    
    .search-result-avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .user-info {
        padding: 15px 8px;
    }
    
    .avatar-menu {
        width: 80px;
        height: 80px;
        font-size: 24px;
    }
    
    .short-name {
        font-size: 1rem;
    }
    
    .full-name {
        font-size: 0.85rem;
    }
    
    button,
    .btn,
    .btn-js,
    .fancy-button,
    .action-btn,
    .followers-btn,
    .view-btn,
    .save-btn,
    .chat-send-btn-modern {
        min-height: 44px !important;
        min-width: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    a {
        -webkit-tap-highlight-color: transparent;
    }
    
    input[type="date"],
    input[type="email"],
    input[type="password"],
    input[type="text"],
    input[type="number"],
    textarea,
    select {
        -webkit-appearance: none;
        appearance: none;
        font-size: 16px !important;
    }
    
    img {
        max-width: 100%;
        height: auto;
        display: block;
    }
    
    ::-webkit-scrollbar {
        width: 4px;
        height: 4px;
    }
    
    ::-webkit-scrollbar-track {
        background: transparent;
    }
    
    ::-webkit-scrollbar-thumb {
        background: rgba(255, 107, 107, 0.5);
        border-radius: 2px;
    }
}

/* Small mobile devices */
@media (max-width: 360px) {
    .logo { font-size: 18px; }
    .search-bar { padding: 6px 12px; }
    .avatar { width: 80px; height: 80px; font-size: 28px; }
    .name { font-size: 18px; }
    .followers-header h1 { font-size: 1.8rem; }
    .followers-avatar { width: 70px; height: 70px; font-size: 24px; }
    .post_list_h1 { font-size: 1.6rem; }
    .post-content h2 { font-size: 1.1rem; }
    .btn-js, .fancy-button { font-size: 14px; padding: 12px 20px; }
}

/* Landscape mode on small screens */
@media (max-height: 500px) and (orientation: landscape) {
    .chat-container-modern { height: 100vh; }
    .chat-messages-modern { max-height: 60vh; }
    .modal-content-energy,
    .modal-content-welcome,
    .modal-content-thank-you {
        max-height: 90vh;
        overflow-y: auto;
    }
    .profile-card-update {
        max-height: 95vh;
        overflow-y: auto;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .avatar,
    .avatar-menu,
    .followers-avatar,
    .chat-user-avatar,
    .message-avatar-small,
    .post-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Dark mode preference */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #0a0a14, #1a1a2e);
    }
    
    .profile-card-update,
    .post_form_container,
    .modal-content-energy {
        background: rgba(30, 30, 50, 0.95);
        border-color: rgba(255, 107, 107, 0.3);
    }
    
    .form-input-update {
        background: rgba(30, 41, 59, 0.7);
        border-color: rgba(148, 163, 184, 0.3);
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .profile-card-update,
    .followers-card,
    .stat-item,
    .post-list {
        animation: none !important;
        transform: none !important;
    }
    .energy-notification,
    .modal-overlay {
        transition: none !important;
    }
}

/* Touch devices only */
@media (hover: none) and (pointer: coarse) {
    .btn-js:active,
    .fancy-button:active,
    .followers-btn:active,
    .action-btn:active,
    .save-btn:active,
    .chat-send-btn-modern:active {
        transform: scale(0.98) !important;
        opacity: 0.9;
    }
    .tab-btn:hover,
    .followers-card:hover,
    .stat-item:hover,
    .post-list:hover,
    .profile-card-list:hover {
        transform: none !important;
        box-shadow: none !important;
    }
}

/* Safe area for notched devices (iPhone X and newer) */
@supports (padding: max(0px)) {
    @media (max-width: 768px) {
        body {
            padding-left: env(safe-area-inset-left);
            padding-right: env(safe-area-inset-right);
        }
        .site-header {
            padding-left: max(20px, env(safe-area-inset-left)) !important;
            padding-right: max(20px, env(safe-area-inset-right)) !important;
        }
        .chat-container-modern {
            padding-left: env(safe-area-inset-left);
            padding-right: env(safe-area-inset-right);
            padding-bottom: env(safe-area-inset-bottom);
        }
    }
}

/* =========================================
   DESKTOP SPECIFIC FIXES
   ========================================= */
@media (min-width: 769px) {
    .site-header {
        position: relative !important;
    }
    .search-container {
        position: absolute !important;
        left: 50% !important;
        top: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 5 !important;
        margin: 0 !important;
        flex: none !important;
        max-width: 650px !important;
        width: 100% !important;
    }
    .search-bar {
        width: 100% !important;
        max-width: 650px !important;
    }
    .search-results {
        left: 50% !important;
        transform: translateX(-50%) !important;
        max-width: 650px !important;
        width: 100%;
    }
}

/* =========================================
   FOOTER STYLES
   ========================================= */
body {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh !important;
}

.main-content {
    flex: 1 0 auto !important;
    width: 100% !important;
}

.site-footer {
    margin-top: auto !important;
    flex-shrink: 0 !important;
    background: #000000;
    padding: 40px 20px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #aaa;
    animation: slideInFromBottom 0.8s ease-out forwards 0.5s;
}

.footer-logo {
    font-size: 28px;
    font-weight: bold;
    background: linear-gradient(90deg, #ff6b6b, #ff9a8b) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: transparent !important;
    margin-bottom: 15px;
    animation: fadeInDelay 1.6s forwards 1.0s;
    display: inline-block;
}

.footer-bottom {
    margin-top: 20px;
    font-size: 14px;
    animation: fadeInDelay 1.6s forwards 1.3s;
    color: #aaa;
}

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

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

/* =========================================
   LOGOUT BUTTON IN MENU
   ========================================= */
.top-menu {
    overflow-y: auto !important;
    height: 100vh !important;
    padding-bottom: 80px !important;
}

.top-menu::-webkit-scrollbar {
    display: none;
}

.top-menu form {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin-top: 40px !important;
    margin-bottom: 20px !important;
    padding: 0 20px !important;
}

.top-menu .logout-btn {
    display: inline-block !important;
    width: auto !important;
    min-width: 220px !important;
    max-width: 300px !important;
    padding: 14px 28px !important;
    margin: 0 auto !important;
    border-radius: 50px !important;
    font-size: 1.4rem !important;
    font-weight: bold !important;
    letter-spacing: 1px;
    background: linear-gradient(45deg, #ff6b6b, #ff4757) !important;
    border: none !important;
    color: white !important;
    text-decoration: none !important;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4) !important;
    transition: all 0.3s ease !important;
    min-height: 44px !important;
}

.top-menu .logout-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6) !important;
    background: linear-gradient(45deg, #ff4757, #ff3838) !important;
}

@media (max-width: 768px) {
    .top-menu .logout-btn {
        font-size: 1.2rem !important;
        padding: 12px 24px !important;
        min-width: 200px !important;
    }
}

/* =========================================
   LOGIN/REGISTER BUTTONS
   ========================================= */
.login-register-btn .btn-outline-light {
    border: 2px solid #ff6b6b !important;
    color: #ff6b6b !important;
    background: transparent !important;
    font-weight: 600 !important;
    padding: 8px 24px !important;
    border-radius: 25px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
    min-height: 44px !important;
}

.login-register-btn .btn-outline-light:hover {
    background: linear-gradient(45deg, #ff6b6b, #ff4757) !important;
    border-color: #ff6b6b !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4) !important;
}

.login-register-btn .btn {
    background: linear-gradient(45deg, #ff6b6b, #ff4757) !important;
    color: white !important;
    border: 2px solid transparent !important;
    font-weight: 600 !important;
    padding: 8px 24px !important;
    border-radius: 25px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3) !important;
    min-height: 44px !important;
}

.login-register-btn .btn:hover {
    background: linear-gradient(45deg, #ff4757, #ff3838) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5) !important;
    color: white !important;
}

.login-register-btn {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

@media (max-width: 768px) {
    .login-register-btn {
        flex-direction: column !important;
        gap: 8px !important;
        margin-top: 10px !important;
    }
    .login-register-btn .btn-outline-light,
    .login-register-btn .btn {
        width: 100% !important;
        text-align: center !important;
    }
}

.login-register-btn {
    position: absolute !important;
    right: 100px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    gap: 10px !important;
    z-index: 15 !important;
}

.login-register-btn .btn-outline-light,
.login-register-btn .btn {
    padding: 8px 20px !important;
    border-radius: 25px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
}

.login-register-btn .btn-outline-light {
    background: transparent !important;
    border: 2px solid #ff6b6b !important;
    color: #ff6b6b !important;
}

.login-register-btn .btn-outline-light:hover {
    background: linear-gradient(45deg, #ff6b6b, #ff4757) !important;
    color: white !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4) !important;
}

.login-register-btn .btn {
    background: linear-gradient(45deg, #ff6b6b, #ff4757) !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3) !important;
}

.login-register-btn .btn:hover {
    background: linear-gradient(45deg, #ff4757, #ff3838) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5) !important;
}

@media (max-width: 768px) {
    .login-register-btn {
        position: static !important;
        transform: none !important;
        flex-direction: column !important;
        gap: 8px !important;
        margin-top: 10px !important;
        width: 100% !important;
        justify-content: center !important;
    }
    .login-register-btn .btn-outline-light,
    .login-register-btn .btn {
        width: 100% !important;
        max-width: 200px !important;
    }
}

/* =========================================
   TOAST NOTIFICATIONS
   ========================================= */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 16px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    min-width: 280px;
    max-width: 350px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.4s ease-out;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    animation: progress 3s linear forwards;
}

.toast.success {
    background: linear-gradient(135deg, #ff6b6b, #ff4757);
    border: 1px solid rgba(255, 107, 107, 0.5);
}

.toast.info {
    background: linear-gradient(135deg, #4a90d9, #357abd);
    border: 1px solid rgba(74, 144, 217, 0.5);
}

.toast.warning {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    border: 1px solid rgba(243, 156, 18, 0.5);
}

.toast.error {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    border: 1px solid rgba(231, 76, 60, 0.5);
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast-message {
    flex: 1;
}

.toast-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    cursor: pointer;
    padding: 0 4px;
    transition: color 0.2s;
    min-width: 44px;
    min-height: 44px;
}

.toast-close:hover {
    color: white;
}

.toast.hiding {
    animation: slideOutRight 0.3s ease-in forwards;
}

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

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

@keyframes progress {
    from { width: 100%; }
    to { width: 0%; }
}

@media (max-width: 768px) {
    .toast-container {
        top: auto;
        bottom: 20px;
        right: 10px;
        left: 10px;
    }
    .toast {
        min-width: auto;
        max-width: none;
    }
}

/* =========================================
   ENERGY NOTIFICATIONS
   ========================================= */
.energy-notification {
    position: fixed !important;
    top: 20px !important;       /* Прижимаем к верху */
    right: 20px !important;     /* Справа */
    bottom: auto !important;    /* Отменяем привязку к низу */
    left: auto !important;
    z-index: 9999 !important;
    
    /* Возвращаем стили оформления, так как старый блок был сломан */
    padding: 10px 16px !important;
    background: rgba(20, 20, 30, 0.95) !important; /* Темный фон */
    color: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 107, 107, 0.2) !important;
    backdrop-filter: blur(8px) !important;
    font-size: 0.9rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    transition: all 0.3s ease !important;
}


.energy-notification.show {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.energy-notification.hide {
    opacity: 0;
    transform: translateX(150%);
    pointer-events: none;
}

.energy-notification.error {
    background: linear-gradient(135deg, #f44336, #d32f2f);
}

.energy-notification .icon {
    font-size: 1.3rem;
    display: flex;
    align-items: center;
}

.energy-notification .message {
    line-height: 1.4;
}

@media (max-width: 480px) {
    .energy-notification {
        top: 10px !important;
        right: 10px !important;
        left: auto !important;
        width: auto !important;
        min-width: auto !important;
        max-width: 80vw !important;     /* Не шире 80% экрана */
        padding: 6px 12px !important;   /* Очень компактные отступы */
        font-size: 0.75rem !important;  /* Мелкий шрифт */
        border-radius: 6px !important;
    }
}


@media (max-width: 768px) {
    .energy-notification {
        top: 15px !important;
        right: 15px !important;
        left: auto !important;
        bottom: auto !important;
        max-width: 90vw !important;
    }
}

.site-header .logout-btn,
.site-header form button.logout-btn,
.site-header a.logout-btn,
header .logout-btn,
.header-actions .logout-btn {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* 2. Гарантируем, что кнопка видна только внутри бургер-меню */
.top-menu .logout-btn {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* 3. Дополнительно: скрываем форму выхода, если она вдруг рендерится в шапке */
.site-header form[action*="logout"],
.site-header .logout-form {
    display: none !important;
}

/* === ИСПРАВЛЕНИЕ: КНОПКИ ВХОДА/РЕГИСТРАЦИИ НА МОБИЛЬНЫХ === */
@media (max-width: 768px) {
    /* Добавляем отступ сверху для кнопок входа/регистрации */
    .login-register-btn {
        margin-top: 20px !important;
        padding-top: 10px !important;
    }
    
    /* Увеличиваем отступ между кнопками */
    .login-register-btn .btn-outline-light,
    .login-register-btn .btn {
        margin-bottom: 10px !important;
    }
    
    /* Последняя кнопка без нижнего отступа */
    .login-register-btn .btn:last-child {
        margin-bottom: 0 !important;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .login-register-btn {
        margin-top: 25px !important;
        padding-top: 15px !important;
    }
}

/* === ИСПРАВЛЕНИЕ: SAFE AREA ДЛЯ IPHONE С ЧЕЛКОЙ === */
@media (max-width: 768px) {
    /* Добавляем отступ сверху для всего body */
    body {
        padding-top: max(20px, env(safe-area-inset-top)) !important;
    }
    
    /* Header должен учитывать safe area */
    .site-header {
        padding-top: max(30px, env(safe-area-inset-top)) !important;
    }
    
    /* Основной контент тоже */
    .main-content {
        padding-top: max(20px, env(safe-area-inset-top)) !important;
    }
    
    /* Профиль */
    .profile-body {
        padding-top: max(40px, env(safe-area-inset-top)) !important;
    }
    
    /* Посты */
    .post_list_body {
        padding-top: max(35px, env(safe-area-inset-top)) !important;
    }
    
    /* Чат */
    .chat-container-modern {
        padding-top: max(20px, env(safe-area-inset-top)) !important;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    body {
        padding-top: max(25px, env(safe-area-inset-top)) !important;
    }
    .site-header {
        padding-top: max(35px, env(safe-area-inset-top)) !important;
    }
}

/* =========================================
   ИСПРАВЛЕНИЕ: МОБИЛЬНЫЙ ЧАТ (ВЕРХ/НИЗ)
   ========================================= */
/* Фикс для мобильных браузеров (iOS Safari, Chrome Mobile) */
/* =========================================
   ИСПРАВЛЕНИЕ: ОТСТУП ШАПКИ В ЧАТЕ (МОБИЛЬНЫЕ)
   ========================================= */
@media (max-width: 768px) {
    /* Добавляем отступ сверху для контейнера сообщений */
    .chat-messages-modern {
        padding-top: 80px !important; /* Отступ равен высоте шапки */
    }
    
    /* Убеждаемся, что само поле чата начинается ниже */
    .chat-container-modern {
        padding-top: env(safe-area-inset-top) !important; /* Учет челки iPhone */
    }
    
    /* Область сообщений */
    .chat-messages-modern {
        max-height: calc(100dvh - 150px) !important;
        max-height: calc(-webkit-fill-available - 150px) !important;
        padding-bottom: 20px !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    /* Поле ввода сообщений */
    .chat-form-modern {
        padding-bottom: max(15px, env(safe-area-inset-bottom)) !important;
        position: relative !important;
        z-index: 10 !important;
    }
    
    /* Шапка чата */
    .chat-header-modern {
        padding-top: max(15px, env(safe-area-inset-top)) !important;
        position: sticky !important;
        top: 0 !important;
        z-index: 100 !important;
    }
    
    /* Кнопка назад */
    .chat-back-btn {
        top: max(15px, env(safe-area-inset-top)) !important;
    }
    
    /* Кнопка профиля */
    .chat-profile-btn {
        top: max(15px, env(safe-area-inset-top)) !important;
    }
    
    /* Фикс для iOS Safari */
    @supports (-webkit-touch-callout: none) {
        .chat-container-modern {
            height: -webkit-fill-available !important;
        }
        .chat-messages-modern {
            max-height: calc(100vh - 160px) !important;
        }
    }
    
    /* Фикс для Android Chrome */
    @supports (-moz-appearance: none) {
        .chat-container-modern {
            height: 100dvh !important;
        }
        .chat-messages-modern {
            max-height: calc(100dvh - 150px) !important;
        }
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .chat-messages-modern {
        max-height: calc(100dvh - 140px) !important;
        padding: 10px !important;
    }
    .chat-form-modern {
        padding: 10px !important;
    }
}

/* Предотвращение масштабирования на iOS */
@media (max-width: 768px) {
    input, textarea, select, button {
        font-size: 16px !important;
    }
    
    /* Блокировка горизонтальной прокрутки */
    body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    .chat-container-modern {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }
}

/* =========================================
   ИСПРАВЛЕНИЕ: МОБИЛЬНЫЙ ВЕРХ И ВЫСОТА ЭКРАНА
   ========================================= */
@media (max-width: 768px) {
    /* Используем динамическую высоту экрана (dvh) */
    html, body {
        height: auto !important;
        min-height: 100dvh !important; /* Работает на всех современных телефонах */
        height: -webkit-fill-available !important; /* Для старых браузеров */
    }
    
    /* Убеждаемся, что контент не прячется под шапку */
    body {
        padding-top: max(60px, env(safe-area-inset-top)) !important;
    }
    
    /* Исправление для чата, чтобы он влезал в экран */
    .chat-container-modern {
        height: 100dvh !important;
        height: -webkit-fill-available !important;
        top: 0 !important;
    }
    
    /* Исправление для меню, чтобы не обрезалось */
    .top-menu {
        height: 100dvh !important;
        height: -webkit-fill-available !important;
    }
    
    /* Если есть другие контейнеры на 100vh, исправляем их */
    .post_detail_container,
    .profile-page,
    .main-content {
        min-height: auto !important;
        height: auto !important;
    }
}

/* =========================================
   EXCHANGE MODAL STYLES
   ========================================= */
/* Основной оверлей модального окна */
#exchangeModal.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    animation: exchangeModalFadeIn 0.3s ease;
}

#exchangeModal.modal[style*="block"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* Контент модального окна */
#exchangeModal .modal-content {
    background: linear-gradient(135deg, #1e1e2e 0%, #2a2a3e 100%);
    border: 2px solid rgba(255, 107, 107, 0.5);
    margin: 10% auto;
    padding: 40px 35px;
    border-radius: 24px;
    width: 90%;
    max-width: 480px;
    box-shadow:
        0 20px 60px rgba(255, 107, 107, 0.4),
        0 0 100px rgba(255, 107, 107, 0.2);
    position: relative;
    animation: exchangeModalSlideIn 0.4s ease;
}

/* Анимации появления */
@keyframes exchangeModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes exchangeModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Свечение при наведении */
#exchangeModal .modal-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b6b, #ff9a8b, #ff6b6b);
    border-radius: 24px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#exchangeModal .modal-content:hover::before {
    opacity: 0.25;
}

/* Заголовок модального окна */
#exchangeModal .modal-content h3 {
    color: #ff6b6b;
    margin: 0 0 18px 0;
    font-size: 1.7rem;
    font-weight: 700;
    text-align: center;
    text-shadow: 0 0 20px rgba(255, 107, 107, 0.5);
}

/* Описание */
#exchangeModal .modal-content p {
    color: #cbd5e1;
    margin: 0 0 28px 0;
    text-align: center;
    font-size: 1rem;
    line-height: 1.6;
}

/* Контейнер управления */
#exchangeModal .exchange-controls {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

/* Лейбл поля ввода */
#exchangeModal .exchange-controls label {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 6px;
    display: block;
}

/* Поле ввода количества */
#exchangeModal .exchange-controls input[type="number"] {
    width: 100%;
    padding: 16px 20px;
    background: rgba(30, 41, 59, 0.85);
    border: 2px solid rgba(255, 107, 107, 0.35);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
}

#exchangeModal .exchange-controls input[type="number"]:focus {
    outline: none;
    border-color: #ff6b6b;
    background: rgba(30, 41, 59, 1);
    box-shadow: 0 0 25px rgba(255, 107, 107, 0.45);
    transform: scale(1.02);
}

#exchangeModal .exchange-controls input[type="number"]::-webkit-inner-spin-button,
#exchangeModal .exchange-controls input[type="number"]::-webkit-outer-spin-button {
    opacity: 1;
    cursor: pointer;
}

/* Кнопка обмена */
#exchangeModal .exchange-controls .exchange-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ff4757 100%);
    color: #ffffff;
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 107, 107, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
    overflow: hidden;
    width: 100%;
}

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

#exchangeModal .exchange-controls .exchange-btn:hover::before {
    left: 100%;
}

#exchangeModal .exchange-controls .exchange-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 107, 107, 0.65);
    background: linear-gradient(135deg, #ff4757 0%, #ff6b6b 100%);
}

#exchangeModal .exchange-controls .exchange-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 107, 107, 0.5);
}

/* Кнопка закрытия (крестик) */
#exchangeModal .modal-content .close {
    color: #94a3b8;
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    line-height: 1;
}

#exchangeModal .modal-content .close:hover {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.12);
    transform: rotate(90deg);
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    #exchangeModal .modal-content {
        margin: 20px auto;
        padding: 32px 24px;
        width: 95%;
        max-width: 420px;
    }
    
    #exchangeModal .modal-content h3 {
        font-size: 1.4rem;
        margin-bottom: 16px;
    }
    
    #exchangeModal .modal-content p {
        font-size: 0.95rem;
        margin-bottom: 24px;
    }
    
    #exchangeModal .exchange-controls input[type="number"] {
        font-size: 1.1rem;
        padding: 14px 18px;
    }
    
    #exchangeModal .exchange-controls .exchange-btn {
        padding: 14px 28px;
        font-size: 1rem;
    }
    
    #exchangeModal .modal-content .close {
        top: 14px;
        right: 18px;
        font-size: 24px;
        width: 32px;
        height: 32px;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 400px) {
    #exchangeModal .modal-content {
        padding: 28px 20px;
    }
    
    #exchangeModal .modal-content h3 {
        font-size: 1.3rem;
    }
    
    #exchangeModal .exchange-controls input[type="number"] {
        font-size: 1rem;
    }
}

/* =========================================
   ИСПРАВЛЕНИЕ ЧЕРНОГО ЭКРАНА НА ANDROID
   ========================================= */
@media (max-width: 768px) {
    /* 1. Отключаем размытие (backdrop-filter), которое часто дает черный экран на Android */
    #exchangeModal.modal,
    .overlay,
    .top-menu,
    .modal-overlay {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }
    
    /* 2. Принудительно скрываем меню при загрузке, чтобы оно не перекрывало экран */
    .top-menu {
        top: -100% !important;
        transform: translateY(-100%) !important;
        /* Делаем фон плотным, чтобы не было просвечивания */
        background-color: #0a0a14 !important;
    }
    
    /* 3. Принудительно скрываем модальное окно обмена */
    #exchangeModal.modal {
        display: none !important;
        background-color: #0a0a14 !important;
    }
    
    /* 4. Но разрешаем показывать его, когда нажимают кнопку (через стиль display: block) */
    #exchangeModal.modal[style*="block"] {
        display: flex !important;
        background-color: rgba(10, 10, 20, 0.98) !important; /* Почти непрозрачный фон */
    }
    
    /* 5. Исправляем оверлей (затемнение) */
    .overlay {
        background-color: rgba(0, 0, 0, 0.8) !important; /* Четкое затемнение, а не черная дыра */
        opacity: 0;
        visibility: hidden;
    }
    
    .overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* === ИСПРАВЛЕНИЕ МЕНЮ ДЛЯ МОБИЛЬНЫХ === */
@media (max-width: 768px) {
    .top-menu {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100dvh !important; /* Dynamic Viewport Height */
        height: -webkit-fill-available !important; /* iOS Safari Fix */
        background-color: #0a0a14 !important; /* Solid color to prevent black screen bugs */
        backdrop-filter: none !important; /* Remove blur to prevent rendering glitches */
        -webkit-backdrop-filter: none !important;
        z-index: 2000 !important;
        padding-top: max(20px, env(safe-area-inset-top)) !important;
        padding-bottom: max(20px, env(safe-area-inset-bottom)) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        transform: translateY(-100%) !important;
        transition: transform 0.3s ease-in-out !important;
    }

    .top-menu.active {
        transform: translateY(0) !important;
    }

    .top-menu ul {
        padding: 0 20px !important;
        margin: 0 !important;
    }

    .close-menu {
        position: fixed !important;
        top: max(15px, env(safe-area-inset-top)) !important;
        right: 15px !important;
        z-index: 2001 !important;
    }
}

/* =========================================
   ИСПРАВЛЕНИЕ: ШАПКА НА МОБИЛЬНЫХ В РЕЖИМЕ ЧТЕНИЯ
   ========================================= */
@media (max-width: 768px) {
    /* Фиксируем шапку всегда видимой */
    .site-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9999 !important;
        transform: translateY(0) !important;
    }

    /* Добавляем отступ для контента под шапку */
    body {
        padding-top: calc(80px + env(safe-area-inset-top)) !important;
    }

    /* Убеждаемся что основной контент не прячется */
    .main-content {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    /* Фикс для viewport на мобильных */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        min-height: 100vh !important;
    }

    /* Принудительно показываем шапку */
    .site-header::before {
        content: '' !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 100% !important;
        background: rgba(0, 0, 0, 0.7) !important;
        z-index: -1 !important;
    }
}

/* =========================================
   ИСПРАВЛЕНИЕ: ЧТОБЫ ШАПКА НЕ ПРЯТАЛАСЬ ПРИ СКРОЛЛЕ
   ========================================= */
@media (max-width: 768px) {
    .site-header {
        animation: none !important;
        transform: none !important;
        transition: none !important;
    }
    
    /* Отключаем скрытие шапки при скролле на мобильных */
    .site-header.hide-on-scroll {
        transform: translateY(0) !important;
    }
}

/* Исправление для основного контента */
.main-content {
    flex: 1 0 auto !important;
    width: 100% !important;
    padding-top: 20px !important; /* Добавляем отступ сверху */
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    body {
        padding-top: calc(90px + env(safe-area-inset-top)) !important; /* Увеличиваем отступ */
    }
    
    .site-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9999 !important;
        padding-top: max(10px, env(safe-area-inset-top)) !important; /* Учитываем челку iPhone */
    }

    .main-content {
        padding-top: 10px !important;
    }
}

/* Для десктопа */
@media (min-width: 769px) {
    .site-header {
        position: relative !important;
    }
    body {
        padding-top: 0 !important;
    }
}

/* === ФИКС МЕНЮ ДЛЯ МОБИЛЬНЫХ === */
@media (max-width: 768px) {
    .top-menu {
        top: -100% !important;
        transform: translateY(-100%) !important;
        transition: top 0.4s ease, transform 0.4s ease !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    .top-menu.active {
        top: 0 !important;
        transform: translateY(0) !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    /* Убедимся что кнопка бургера кликабельна */
    .menu-toggle {
        cursor: pointer !important;
        z-index: 1001 !important;
        position: relative !important;
    }

    /* Кнопка закрытия */
    .close-menu {
        display: flex !important;
        position: fixed !important;
        top: 10px !important;
        right: 15px !important;
        z-index: 1002 !important;
        background: rgba(255, 107, 107, 0.2) !important;
        width: 50px !important;
        height: 50px !important;
        border-radius: 50% !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* Ссылки в меню */
    .top-menu ul li a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 44px !important;
        padding: 15px 20px !important;
    }

    /* Оверлей */
    .overlay {
        display: block !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: opacity 0.4s ease !important;
    }
    .overlay.active {
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* === ИСПРАВЛЕНИЕ: ОТСТУП ДЛЯ АВАТАРА В МОБИЛЬНОМ МЕНЮ === */
@media (max-width: 768px) {
    .top-menu {
        padding-top: 100px !important; /* Увеличен отступ сверху */
    }
    .user-info {
        padding-top: 20px !important; /* Дополнительный отступ для блока пользователя */
        margin-bottom: 30px !important;
    }

    .avatar-menu {
        margin-top: 10px !important; /* Отступ для самой аватарки */
    }
}

/* Для очень маленьких экранов */
@media (max-width: 360px) {
    .top-menu {
        padding-top: 110px !important; /* Еще больше отступа для маленьких экранов */
    }
}

/* Для мобильных устройств */
/* ✅ ИСПРАВЛЕННЫЙ БЛОК ДЛЯ МОБИЛЬНЫХ */
@media (max-width: 768px) {
    /* Скрываем все скроллбары кроме чата */
    ::-webkit-scrollbar {
        width: 0 !important;
        height: 0 !important;
        display: none !important;
    }
    
    * {
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
    }
    
    /* Исключение для чата */
    .chat-messages-modern::-webkit-scrollbar {
        width: 4px !important;
        display: block !important;
    }
    
    .chat-messages-modern {
        scrollbar-width: thin !important;
    }

    /* Убираем горизонтальный скролл */
    body, html {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
}

/* =========================================
   КРАСИВАЯ МОБИЛЬНАЯ ШАПКА (ТОЛЬКО < 768PX)
   Вставьте в КОНЕЦ style.css
   ========================================= */
@media (max-width: 768px) {
    /* Отступ под фиксированную шапку (учитываем челку iPhone) */
    body {
        /* padding-top: calc(60px + env(safe-area-inset-top)) !important; */
        padding-top: calc(110px + env(safe-area-inset-top)) !important;
    }
    
    /* Шапка: фиксированная, с эффектом стекла */
    .site-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 1000 !important;
        padding: 10px 16px !important;
        background: rgba(10, 10, 20, 0.88) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        border-bottom: 1px solid rgba(255, 107, 107, 0.15) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        height: auto !important;
        min-height: 56px !important;
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4) !important;
    }

    /* 1. Логотип (слева) */
    .logo {
        order: 1 !important;
        font-size: 19px !important;
        margin: 0 !important;
        white-space: nowrap !important;
        background: linear-gradient(90deg, #ff6b6b, #ff9a8b) !important;
        -webkit-background-clip: text !important;
        -webkit-text-fill-color: transparent !important;
    }

    /* 2. Энергия и рейтинг (компактно по центру) */
    .energy-display {
        order: 2 !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        font-size: 0.75rem !important;
        margin: 0 8px !important;
    }
    
    .oval-container {
        padding: 3px 8px !important;
        border-radius: 16px !important;
        min-height: auto !important;
        font-size: 0.75rem !important;
        gap: 4px !important;
        box-shadow: 0 2px 8px rgba(255, 107, 107, 0.2) !important;
    }
    
    .oval-container i { font-size: 0.8rem !important; }

    /* 3. Правая часть: Аватар + Бургер */
    .header-actions {
        order: 3 !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        margin-left: 0 !important;
    }
    
    .avatar-header {
        width: 34px !important;
        height: 34px !important;
        border-radius: 50% !important;
        box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
    }
    
    .menu-toggle {
        width: 28px !important;
        height: 28px !important;
        margin-left: 0 !important;
        padding: 4px !important;
        cursor: pointer !important;
    }
    
    .menu-toggle span {
        border-radius: 2px !important;
    }

    /* Поиск: скрываем в шапке для чистоты интерфейса.
       Если нужен всегда видимый поиск, замените display: none на display: block 
       и добавьте padding-top: calc(110px + env(safe-area-inset-top)) к body */
    .search-container {
        display: block !important;
        width: 100% !important;
        order: 4 !important;
        padding: 0 12px 10px 12px !important;
        margin: 0 !important;
    }

    /* Гарантируем, что контент не прячется под шапку */
    .main-content {
        padding-top: 0 !important;
    }
}

/* =========================================
   ИСПРАВЛЕНИЕ: ОТСТУП ШАПКИ В ЧАТЕ (МОБИЛЬНЫЕ)
   ========================================= */
@media (max-width: 768px) {
    /* Добавляем отступ сверху для контейнера сообщений */
    .chat-messages-modern {
        padding-top: 80px !important; /* Отступ равен высоте шапки */
    }
    
    /* Убеждаемся, что само поле чата начинается ниже */
    .chat-container-modern {
        padding-top: env(safe-area-inset-top) !important; /* Учет челки iPhone */
    }
}

/* ════════════════════════════════════════════════════════
   🛡️ СТИЛИ ДЛЯ ЩИТА ОТ КРАЖ (НОЧЬ ОХОТЫ)
   ════════════════════════════════════════════════════════ */
/* Бейдж активного щита в заголовке */
.shield-badge-active {
    font-size: 0.75em;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    margin-left: 10px;
    font-weight: 600;
    animation: shieldPulse 2s infinite;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Контент щита */
.shield-content {
    display: flex;
    flex-direction: column;
    align-items: center;      /* Центрируем по горизонтали */
    justify-content: center;  /* Центрируем по вертикали (если нужно) */
    text-align: center;       /* Центрируем текст */
    width: 100%;
    padding: 8px 0;
}

/* Активный щит (зелёная коробка) */
.shield-active-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 400px;         /* Ограничиваем ширину для красоты */
    margin: 0 auto;           /* Центрируем сам блок */
    padding: 20px;
    border-radius: 12px;
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
    border: 2px solid #10b981;
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.3), inset 0 1px 0 rgba(255,255,255,0.1);
    animation: shieldGlow 3s ease-in-out infinite;
}

/* Неактивный щит (серая коробка) */
.shield-inactive-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid #334155;
}

/* Отключённый блок */
.shield-disabled {
    opacity: 0.85;
    position: relative;
}

.shield-disabled::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    pointer-events: none;
}

/* Большая иконка щита */
.shield-icon-large {
    font-size: 3.5em;
    margin: 0 auto 12px auto;  /* Центрируем и добавляем отступы */
    display: block;            /* Чтобы margin auto работал */
    animation: shieldFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(16, 185, 129, 0.3));
}

/* Описание щита */
.shield-desc {
    margin: 10px auto;         /* Центрируем через auto */
    color: #e2e8f0;
    font-size: 1.1em;
    font-weight: 500;
    max-width: 90%;            /* Чтобы текст не растягивался */
}

/* Таймер щита */
.shield-timer {
    color: #6ee7b7;
    font-size: 1em;
    margin: 8px auto;
    font-family: 'Courier New', monospace;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.shield-timer i {
    color: #10b981;
}

/* Заметка под таймером */
.shield-note {
    color: #6ee7b7;
    font-size: 0.85em;
    margin: 12px auto 0 auto;
    font-style: italic;
    opacity: 0.9;
    max-width: 90%;
}

/* Подсказка */
.shield-hint {
    color: #94a3b8;
    font-size: 0.85em;
    margin: 12px auto 0 auto;
    font-style: italic;
    line-height: 1.5;
    max-width: 90%;
}

/* Стоимость щита */
.shield-cost {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 16px auto;
    flex-wrap: wrap;
    width: 100%;
}

.cost-item {
    background: rgba(51, 65, 85, 0.8);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.9em;
    color: #e2e8f0;
    border: 1px solid #475569;
    font-weight: 500;
    text-align: center;
    min-width: 120px;          /* Чтобы блоки были одинаковой ширины */
}

.cost-item strong {
    color: #fbbf24;
}

/* Кнопка щита */
.shield-btn {
    width: auto;               /* Не на всю ширину, а по контенту */
    min-width: 200px;          /* Минимальная ширина для красоты */
    padding: 12px 24px;
    font-size: 1em;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;      /* Чтобы центрировалась как блок */
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 10px auto 0 auto;  /* Центрируем через auto */
}

/* Активная кнопка (синяя) */
.shield-btn-active {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    animation: buttonPulse 2s infinite;
}

.shield-btn-active:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
}

.shield-btn-active:active:not(:disabled) {
    transform: translateY(0);
}

/* Отключённая кнопка (серая) */
.shield-btn-disabled {
    background: linear-gradient(135deg, #475569, #334155);
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.7;
}

.shield-btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Бейдж "НОЧЬ ОХОТЫ ИДЁТ" (красный) */
.event-badge-live,
.event-badge-wait {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 700;
    margin: 0 auto 14px auto;  /* Центрируем через auto */
    text-align: center;
}

.event-badge-live {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    animation: badgePulse 1.5s infinite;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-badge-wait {
    background: linear-gradient(135deg, #64748b, #475569);
    color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.3);
}

/* Отключённый таймер (когда ивент не активен) */
.shield-timer-disabled {
    background: rgba(30, 41, 59, 0.8);
    padding: 12px 16px;
    border-radius: 10px;
    margin: 14px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #94a3b8;
    font-size: 0.9em;
    border: 1px solid #334155;
    width: fit-content;        /* По контенту, не на всю ширину */
    max-width: 90%;
}

.shield-timer-disabled i {
    font-size: 1.3em;
    color: #6366f1;
}

.shield-timer-disabled strong {
    color: #fbbf24;
}

.shield-badge-active {
    font-size: 0.75em;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    margin-left: 10px;
    font-weight: 600;
    animation: shieldPulse 2s infinite;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    display: inline-block;
    vertical-align: middle;
}

/* ════════════════════════════════════════════════════════
   АНИМАЦИИ
   ════════════════════════════════════════════════════════ */
@keyframes shieldPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.85;
        transform: scale(0.98);
    }
}

@keyframes shieldGlow {
    0%, 100% {
        box-shadow: 0 0 25px rgba(16, 185, 129, 0.3), inset 0 1px 0 rgba(255,255,255,0.1);
    }
    50% {
        box-shadow: 0 0 35px rgba(16, 185, 129, 0.5), inset 0 1px 0 rgba(255,255,255,0.2);
    }
}

@keyframes shieldFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

@keyframes buttonPulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    }
    50% {
        box-shadow: 0 4px 25px rgba(59, 130, 246, 0.6);
    }
}

@keyframes badgePulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.9;
        transform: scale(1.05);
    }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .shield-cost {
        flex-direction: column;
        gap: 8px;
    }
    .cost-item {
        width: 100%;
    }
    .shield-icon-large {
        font-size: 2.5em;
    }
    .shield-desc {
        font-size: 1em;
    }
}

/* ════════════════════════════════════════════════════════
   🌙🗡️ БЛОК "НОЧЬ ОХОТЫ" (таймер в ленте постов)
   ════════════════════════════════════════════════════════ */
.nighthunt-timer-block {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    border: 2px solid #e94560;
    border-radius: 16px;
    padding: 20px 24px;
    margin: 20px auto;
    max-width: 600px;
    text-align: center;
    color: #fff;
    box-shadow:
        0 0 30px rgba(233, 69, 96, 0.4),
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: nighthuntGlow 3s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.nighthunt-timer-block::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(233, 69, 96, 0.15) 0%, transparent 70%);
    animation: nighthuntPulse 4s ease-in-out infinite;
    pointer-events: none;
}

.nighthunt-timer-block h3 {
    margin: 0 0 10px 0;
    font-size: 1.3em;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.nighthunt-timer-block p {
    margin: 6px 0;
    font-size: 1em;
    color: #e0e0e0;
    position: relative;
    z-index: 1;
}

.nighthunt-timer-block p strong {
    color: #fbbf24;
    font-weight: 700;
}

.nighthunt-hint {
    font-size: 0.9em !important;
    color: #cbd5e1 !important;
    font-style: italic;
    margin-top: 8px !important;
    opacity: 0.95;
}

#nighthunt-timer {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 1.2em;
    color: #fbbf24;
    text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
    background: rgba(0, 0, 0, 0.2);
    padding: 4px 12px;
    border-radius: 8px;
    display: inline-block;
}

/* Анимации */
@keyframes nighthuntGlow {
    0%, 100% {
        box-shadow:
            0 0 30px rgba(233, 69, 96, 0.4),
            0 8px 32px rgba(0, 0, 0, 0.4),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow:
            0 0 45px rgba(233, 69, 96, 0.6),
            0 12px 40px rgba(0, 0, 0, 0.5),
            inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
}

@keyframes nighthuntPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Пульсация таймера */
#nighthunt-timer.pulse-animation {
    animation: timerPulse 1s ease;
}

@keyframes timerPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Адаптивность */
@media (max-width: 768px) {
    .nighthunt-timer-block {
        padding: 16px 20px;
        margin: 16px;
    }
    .nighthunt-timer-block h3 {
        font-size: 1.15em;
    }
    .nighthunt-timer-block p {
        font-size: 0.95em;
    }
    #nighthunt-timer {
        font-size: 1.1em;
    }
}

/* === ИЗОБРАЖЕНИЯ В POST DETAIL === */
/* Основное изображение поста */
.post_detail_img {
    display: block !important;
    margin: 25px auto !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 12px !important;
    border: 2px solid rgba(255, 107, 107, 0.3) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}

/* Изображения внутри контента поста (из Quill редактора) */
.post_detail_content img {
    display: block !important;
    margin: 20px auto !important;
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    border-radius: 10px !important;
    border: 2px solid rgba(255, 107, 107, 0.3) !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2) !important;
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .post_detail_img {
        margin: 15px auto !important;
        border-radius: 10px !important;
        max-height: 400px !important;
    }
    .post_detail_content img {
        margin: 15px auto !important;
        border-radius: 8px !important;
        max-height: 350px !important;
    }
}

/* === ИСПРАВЛЕНИЕ: ИЗОБРАЖЕНИЯ В ПОСТАХ (ЗАПОЛНЕНИЕ БЛОКА) === */
/* Изображения в ленте постов */
.post-image,
.post_user_post-image,
.reposted_user_body .post-image {
    width: 100% !important;
    max-height: 400px !important;
    object-fit: cover !important; /* ИЗМЕНЕНО: cover заполняет блок без полос */
    border-radius: 12px !important;
    margin: 15px 0 !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
    border: 2px solid rgba(255, 107, 107, 0.3) !important;
    display: block !important;
}

/* Изображение в детальном просмотре поста */
.post_detail_img {
    width: 100% !important;
    max-height: 500px !important;
    object-fit: cover !important; /* ИЗМЕНЕНО: cover вместо contain */
    border-radius: 12px !important;
    margin: 20px 0 !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
    border: 2px solid rgba(255, 107, 107, 0.4) !important;
    display: block !important;
}

/* Изображения внутри контента поста (из редактора Quill) */
.post_detail_content img,
.ql-editor img {
    max-width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    border-radius: 10px !important;
    margin: 20px auto !important;
    display: block !important;
    border: 2px solid rgba(255, 107, 107, 0.3) !important;
}

/* Контейнер для изображения - фиксированная высота */
.post-list .post-image,
.post_user_post-list .post_user_post-image,
.post-card .post-image {
    width: 100% !important;
    height: 350px !important; /* Фиксированная высота для всех изображений */
    object-fit: cover !important; /* ИЗМЕНЕНО: cover вместо contain */
    background: linear-gradient(135deg, rgba(30, 30, 50, 0.8), rgba(40, 40, 70, 0.8)) !important;
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .post-image,
    .post_user_post-image,
    .reposted_user_body .post-image {
        max-height: 300px !important;
        height: 250px !important;
    }
    .post_detail_img {
        max-height: 350px !important;
    }
}

/* Для очень маленьких экранов */
@media (max-width: 480px) {
    .post-image,
    .post_user_post-image,
    .reposted_user_body .post-image {
        height: 200px !important;
        max-height: 250px !important;
    }
}

/* === TOOLTIP ЗАТУХАНИЯ РЕЙТИНГА === */
.rating-wrapper-header {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.rating-decay-badge {
    margin-left: 6px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #ffffff; /* ИЗМЕНЕНО: белый цвет для максимальной видимости */
    background: rgba(255, 107, 107, 0.25); /* Немного увеличил прозрачность фона */
    padding: 2px 8px;
    border-radius: 10px;
    animation: pulse-decay 2s infinite;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8); /* Тень для лучшей читаемости */
}

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

/* Tooltip стили */
.rating-decay-tooltip {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: linear-gradient(135deg, #1e1e2e 0%, #2a2a3e 100%);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 14px;
    padding: 16px;
    min-width: 280px;
    max-width: 320px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    pointer-events: none;
}

.rating-wrapper-header:hover .rating-decay-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Стрелочка tooltip */
.rating-decay-tooltip::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 24px;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #1e1e2e, #2a2a3e);
    border-top: 1px solid rgba(255, 107, 107, 0.3);
    border-left: 1px solid rgba(255, 107, 107, 0.3);
    transform: rotate(45deg);
}

/* Заголовок тултипа */
.tooltip-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.tooltip-header i {
    color: #ffd93d;
    font-size: 1.1rem;
}

/* Содержимое */
.tooltip-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Измененный блок строки затухания */
.decay-tier {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Выравнивание по левому краю для контроля отступов */
    gap: 16px; /* ОТСТУПЫ: расстояние между блоками и текстом */
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.decay-tier.active {
    opacity: 1;
    background: rgba(255, 107, 107, 0.15);
    border: 1px solid rgba(255, 107, 107, 0.3);
}

.tier-range {
    color: #e2e8f0;
    font-size: 0.85rem;
    font-weight: 600;
    min-width: 60px; /* Фиксируем ширину левой части для ровности */
}

/* Измененный блок с рейтингом (-0.2/ч) */
.tier-rate {
    color: #ffffff; /* ЯРКИЙ БЕЛЫЙ ЦВЕТ */
    font-weight: 800;
    font-size: 0.95rem;
    background: linear-gradient(135deg, #ff3b3b, #ff6b6b);
    padding: 6px 12px;
    border-radius: 8px;
    /* Тень для читаемости на красном фоне */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    box-shadow: 0 4px 8px rgba(255, 71, 87, 0.4);
    letter-spacing: 0.5px;
    white-space: nowrap; /* Запрет переноса текста, чтобы было читаемо */
}

.tier-desc {
    color: #b0c4d8;
    font-size: 0.85rem;
    font-style: italic;
    font-weight: 500;
    /* Текст описания теперь отделен gap-ом от красного блока */
}

/* Футер */
.tooltip-footer {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cbd5e1;
    font-size: 0.85rem;
    font-weight: 500;
}

.tooltip-footer i {
    color: #ffd93d;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .rating-decay-badge {
        font-size: 0.65rem;
        padding: 1px 6px;
        margin-left: 4px;
    }
    .rating-decay-tooltip {
        right: -20px;
        min-width: 260px;
        max-width: 300px;
        padding: 14px;
    }

    .decay-tier {
        padding: 8px 10px;
        gap: 10px; /* Чуть меньше отступ на мобильных */
    }

    .tier-rate {
        font-size: 0.9rem;
        padding: 4px 8px;
    }
}





.profile-body {
    overflow: hidden !important; /* Запрещаем появление скролла при наклоне */
}

.profile-page {
    transform-origin: center center !important; /* Вращаем от центра, а не от угла */
    will-change: transform; /* Оптимизация рендеринга */
}

/* Если вдруг контент обрезается — добавляем внутренние отступы */
@media (max-width: 768px) {
    .profile-page {
        transform-origin: center top !important; /* На мобильных вращаем от верха */
    }
}






/* ════════════════════════════════════════════════════════
ИСПРАВЛЕНИЕ: ПОЛНОЕ СКРЫТИЕ СКРОЛЛБАРОВ
════════════════════════════════════════════════════════ */

/* Скрываем скроллбары для всех основных элементов */
html,
body,
.main-content,
.profile-body,
.profile-page,
.post_list_body,
.top-menu {
    scrollbar-width: none !important; /* Firefox */
    -ms-overflow-style: none !important; /* IE/Edge */
}

/* Для WebKit браузеров (Chrome, Safari, Edge) */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
.main-content::-webkit-scrollbar,
.profile-body::-webkit-scrollbar,
.profile-page::-webkit-scrollbar,
.post_list_body::-webkit-scrollbar,
.top-menu::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
    background: transparent !important;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
.main-content::-webkit-scrollbar-thumb,
.profile-body::-webkit-scrollbar-thumb,
.profile-page::-webkit-scrollbar-thumb,
.post_list_body::-webkit-scrollbar-thumb,
.top-menu::-webkit-scrollbar-thumb {
    background: transparent !important;
    display: none !important;
}

/* Разрешаем прокрутку, но скрываем визуальный скроллбар */
html,
body {
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

/* Исключение: оставляем скроллбар только для чата (там он нужен) */
.chat-messages-modern {
    scrollbar-width: thin !important;
    -ms-overflow-style: auto !important;
}

.chat-messages-modern::-webkit-scrollbar {
    width: 6px !important;
    display: block !important;
}

.chat-messages-modern::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff6b6b, #ff4757) !important;
    border-radius: 3px !important;
    display: block !important;
}





/* === ИСПРАВЛЕНИЕ: БЛОКИРОВКА СКРОЛЛА ПРИ ОТКРЫТОМ МОДАЛЬНОМ ОКНЕ === */

/* Когда модальное окно активно - блокируем скролл body */
body.modal-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100% !important;
    height: 100% !important;
    overscroll-behavior: none !important;
}

/* Модальное окно на весь экран, фиксированное */
.modal-overlay {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important; /* Для мобильных браузеров */
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    z-index: 999999 !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    overscroll-behavior: none !important;
    touch-action: none !important; /* Запрещаем жесты прокрутки на тач-устройствах */
}

.modal-overlay.active {
    display: flex !important;
}

/* Контент модального окна */
.modal-content-thank-you {
    position: relative !important;
    z-index: 1000000 !important;
    max-height: 95vh !important;
    max-height: 95dvh !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    margin: 20px auto !important;
    width: 90% !important;
    max-width: 550px !important;
    animation: modalZoomIn 0.4s ease !important;
    /* Скрываем скроллбар внутри модалки */
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.modal-content-thank-you::-webkit-scrollbar {
    width: 0 !important;
    display: none !important;
}

/* Запрещаем выделение текста в модалке */
.modal-overlay * {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* Разрешаем выделение только для текста внутри контента */
.modal-content-thank-you p,
.modal-content-thank-you h2,
.thank-you-text,
.thank-you-hint {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

@keyframes modalZoomIn {
    from { 
        opacity: 0; 
        transform: scale(0.8) translateY(-30px); 
    }
    to { 
        opacity: 1; 
        transform: scale(1) translateY(0); 
    }
}

.profile-body {
    overflow: visible !important;
}