/* style.css */
/* Modern Color Palette */
:root {
    --primary: #6366F1;  /* Indigo */
    --primary-dark: #4F46E5;
    --primary-light: #818CF8;
    --accent: #EC4899;   /* Pink */
    --accent-dark: #DB2777;
    --dark: #1E293B;     /* Navy */
    --darker: #1A1A1A;   /* Changed to softer dark */
    --light: #F5F5F5;    /* Softer light */
    --gray: #94A3B8;
    --gray-dark: #64748B;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;
    --twitter-blue: #1DA1F2;
    
    --shadow-sm: 0 0.05vw 0.1vw rgba(0,0,0,0.04);
    --shadow-md: 0 0.21vw 0.31vw rgba(0,0,0,0.1);
    --shadow-lg: 0 0.52vw 0.78vw rgba(0,0,0,0.1);
    --shadow-xl: 0 1.04vw 1.3vw rgba(0,0,0,0.1);
    
    --radius-sm: 0.21vw;
    --radius-md: 0.42vw;
    --radius-lg: 0.62vw;
    --radius-full: 520.78vw;
}

/* Light theme colors - softer */
[data-theme="light"] {
    --dark: #1E293B;
    --darker: #1A1A1A;
    --light: #F5F5F5;
    --gray: #94A3B8;
    --gray-dark: #64748B;
}

/* Social Media Icons */
.social-icon-fb { color: #1877F2; }
.social-icon-ig { color: #E4405F; }
.social-icon-yt { color: #FF0000; }
.social-icon-dc { color: #5865F2; }
.social-icon-x { color: #000000; }
.social-icon-tt { color: #000000; }

/* Base Styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-color: var(--light) !important;
    color: var(--dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 600;
}

a {
    text-decoration: none;
}

/* Top Navigation - Modern Style */
.top-nav {
    background-color: white;
    height: 4.5vw;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    box-shadow: 0 0.2vw 0.6vw rgba(0, 0, 0, 0.08);
    border-bottom: 0.08vw solid rgba(0, 0, 0, 0.1);
    padding: 0.2vw 0;
}

.ots{
    height: 0.1vw;
    margin-bottom: 5vw;
}

.nav-container {
    display: flex;
    align-items: center;
    max-width: 90vw;
    margin: 0 auto;
    padding: 0 2.0vw;
    height: 100%;
    gap: 0.6vw;
}

.logo-container {
    margin-right: 2.5vw;
}

.search-container {
    margin-right: 1vw;
}

.logo-container {
    display: flex;
    align-items: center;
    min-width: 15vw;
    flex-shrink: 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8vw;
    text-decoration: none;
}

.logo-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.2vw;
    height: 3.2vw;
    background-color: rgba(139, 92, 246, 0.1);
    border-radius: 1vw;
    transition: all 0.2s;
}

.logo-icon {
    width: 2.5vw;
    height: 2.5vw;
    color: #8b5cf6;
    margin-top: -0.2vw;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-size: 1.4vw;
    font-weight: 700;
    letter-spacing: -0.03vw;
    color: #0f0f14;
    line-height: 1.2;
}

.logo-subtitle {
    font-size: 0.7vw;
    font-weight: 500;
    letter-spacing: 0.1vw;
    color: rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    margin-top: -0.1vw;
    margin-left: 0.1vw;
}

.logo-img {
    height: 3.0vw;
    width: auto;
    transition: transform 0.2s;
}

.logo-img:hover {
    transform: scale(1.03);
}

/* Modern Search Bar */
.search-container {
    display: flex;
    align-items: center;
    position: relative;
    flex: 1;
    max-width: 30vw;
    height: 2.3vw;
    
    border-radius: 0.8vw;
    padding-left: 1vw;
    padding-right: 1vw;
    border: 0.1vw solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.search-container input {
    flex: 1;
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 0.85vw;
    color: #0f0f14;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.search-container input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.search-icon-button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.8vw;
    flex-shrink: 0;
}

.search-icon {
    width: 1.3vw;
    height: 1.3vw;
    color: rgba(0, 0, 0, 0.4);
}

.search-container {
    flex: 1;
    max-width: 30vw;
}

.shop-btn, .create-article-btn, .vice-coins-btn {
    display: flex;
    align-items: center;
    height: 2.3vw;
    padding-left:1vw; 
    padding-right: 1vw;
    background-color: transparent;
    border-radius: 0.7vw;
    border: 0.08vw solid rgba(0, 0, 0, 0.15);
    gap: 0.5vw;
    font-size: 0.9vw;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.8);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.shop-btn:hover,
.create-article-btn:hover,
.vice-coins-btn:hover {
    background-color: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.3);
    color: #8b5cf6;
    box-shadow: 0 0 1vw rgba(139, 92, 246, 0.2);
}

.shop-icon, .create-icon, .vice-coins-icon-btn {
    width: 1.1vw;
    height: 1.1vw;
    transition: transform 0.3s ease;
}

.shop-btn:hover .shop-icon {
    transform: scale(1.1);
}

.create-article-btn:hover .create-icon {
    transform: scale(1.1) rotate(90deg);
}

.vice-coins-btn:hover .vice-coins-icon-btn {
    transform: scale(1.1);
}

/* Register / Login buttons (guest) — same style as Create/Shop */
.auth-header-buttons {
    display: flex;
    align-items: center;
    gap: 0.5vw;
    margin-left: 1.2vw;
}

.auth-header-btn {
    display: flex;
    align-items: center;
    gap: 0.5vw;
    height: 2.3vw;
    padding-left: 1vw;
    padding-right: 1vw;
    background-color: transparent;
    border-radius: 0.7vw;
    border: 0.08vw solid rgba(0, 0, 0, 0.15);
    font-size: 0.9vw;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.8);
    text-decoration: none;
    transition: all 0.3s;
}

.auth-header-icon {
    width: 1.1vw;
    height: 1.1vw;
    flex-shrink: 0;
}

.auth-header-btn:hover {
    background-color: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.3);
    color: #8b5cf6;
    box-shadow: 0 0 1vw rgba(139, 92, 246, 0.2);
}

/* ===== Profile Ring with XP Progress ===== */
.profile-ring-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.profile-ring-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.6vw;
    height: 3.6vw;
    text-decoration: none;
}

.profile-xp-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    filter: drop-shadow(0 0 0.2vw rgba(139, 92, 246, 0.3));
    transition: filter 0.3s;
}

.profile-ring-wrapper:hover .profile-xp-ring {
    filter: drop-shadow(0 0 0.4vw rgba(139, 92, 246, 0.5));
}

.profile-xp-ring__track {
    stroke: rgba(0, 0, 0, 0.06);
}

.profile-xp-ring__bar {
    stroke: #8b5cf6;
    transition: stroke-dasharray 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.profile-ring-avatar {
    width: 2.8vw;
    height: 2.8vw;
    border-radius: 50%;
    object-fit: cover;
    transition: transform 0.3s;
}

.profile-ring-wrapper:hover .profile-ring-avatar {
    transform: scale(1.05);
}

/* Profile ring level badge removed - now only in hover card */

/* Profile Hover Card */
.profile-hover-card {
    position: absolute;
    top: calc(100% + 0.6vw);
    right: 0;
    width: 16vw;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(1vw);
    border: 0.06vw solid rgba(0, 0, 0, 0.08);
    border-radius: 0.8vw;
    box-shadow: 0 0.6vw 2vw rgba(0, 0, 0, 0.12), 0 0 0 0.06vw rgba(139, 92, 246, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-0.3vw);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 9999;
    padding: 1vw;
    overflow: hidden;
}

.profile-ring-wrapper:hover .profile-hover-card {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.profile-hover-card__header {
    display: flex;
    align-items: center;
    gap: 0.6vw;
    margin-bottom: 0.8vw;
}

.profile-hover-card__avatar {
    width: 2.6vw;
    height: 2.6vw;
    border-radius: 50%;
    object-fit: cover;
    border: 0.12vw solid rgba(139, 92, 246, 0.3);
}

.profile-hover-card__info {
    display: flex;
    flex-direction: column;
    gap: 0.1vw;
}

.profile-hover-card__name {
    font-size: 0.9vw;
    font-weight: 600;
    color: #0f0f14;
}

.profile-hover-card__role {
    font-size: 0.72vw;
    font-weight: 600;
    color: #8b5cf6;
}

/* XP Progress Bar */
.profile-hover-card__xp {
    margin-bottom: 0.8vw;
}

.profile-hover-card__xp-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.62vw;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.5);
    margin-bottom: 0.3vw;
}

.profile-hover-card__xp-bar {
    width: 100%;
    height: 0.35vw;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 0.2vw;
    overflow: hidden;
}

.profile-hover-card__xp-fill {
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #a855f7);
    border-radius: 0.2vw;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Stats row */
.profile-hover-card__stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0.55vw 0 0;
    border-top: 0.06vw solid rgba(0, 0, 0, 0.06);
}

.profile-hover-card__stat {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3vw;
}

.profile-hover-card__stat-divider {
    width: 0.06vw;
    height: 1.2vw;
    background: rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.profile-hover-card__stat-icon {
    width: 1.1vw;
    height: 1.1vw;
    flex-shrink: 0;
}

.profile-hover-card__stat-icon--vc {
    color: #d97706;
}

.profile-hover-card__stat-icon--xp {
    color: #8b5cf6;
}

.profile-hover-card__stat-value {
    font-size: 0.82vw;
    font-weight: 700;
    color: #0f0f14;
    line-height: 1;
}

.profile-hover-card__stat-label {
    font-size: 0.62vw;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.03vw;
}

.header-right {
    display: flex;
    align-items: center;
}

.signin-button {
    background-color: transparent;
    border: 0.05vw solid var(--gray);
    color: var(--dark);
    padding: 0.5vw 1.0vw;
    border-radius: var(--radius-full);
    font-weight: 500;
    transition: all 0.2s;
}

.signin-button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Notifications */
.notifications-wrapper {
    position: relative;
    z-index: 10001;
}

.notification-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3vw;
    height: 3vw;
    background-color: transparent;
    border: none;
    border-radius: 0.7vw;
    color: rgba(0, 0, 0, 0.8);
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
    padding: 0;
    z-index: 101;
    pointer-events: auto;
}

.notification-btn:hover {
    background-color: rgba(139, 92, 246, 0.08);
    color: #8b5cf6;
    box-shadow: 0 0 1vw rgba(139, 92, 246, 0.2);
}

.notification-icon {
    width: 1.6vw;
    height: 1.6vw;
    transition: transform 0.3s ease;
}

.notification-btn:hover .notification-icon {
    transform: rotate(12deg) scale(1.1);
}

.notification-badge {
    position: absolute;
    top: 0.4vw;
    right: 0.4vw;
    width: 0.65vw;
    height: 0.65vw;
    background-color: #ef4444;
    border-radius: 50%;
    box-shadow: 0 0 0.5vw rgba(239, 68, 68, 0.6);
    animation: pulse-badge 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Notification Dropdown */
.notification-dropdown {
    position: fixed !important;
    width: 22vw;
    min-width: 13.812vw;
    min-height: 6.906vw;
    background-color: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(1vw);
    border-radius: 1vw;
    border: 0.1vw solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1vw 3vw rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: none !important;
    visibility: hidden;
    opacity: 0;
    z-index: 99999 !important;
    top: auto;
    left: auto;
    bottom: auto;
}

.notification-dropdown.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.notification-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.8vw 1vw;
    padding-bottom: 0.5vw;
    border-bottom: 0.1vw solid rgba(0, 0, 0, 0.08);
}

.notification-dropdown-title {
    font-size: 0.95vw;
    font-weight: 600;
    color: #0f0f14;
}

.notification-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2vw;
    height: 2vw;
    border-radius: 0.5vw;
    background-color: transparent;
    border: none;
    color: rgba(0, 0, 0, 0.6);
    cursor: pointer;
    transition: all 0.2s;
}

.notification-close-btn:hover {
    background-color: rgba(0, 0, 0, 0.06);
}

.notification-close-icon {
    width: 1.2vw;
    height: 1.2vw;
}

.notification-dropdown-list {
    max-height: 25vw;
    overflow-y: auto;
}

.notification-item {
    padding: 0.8vw 1vw;
    border-bottom: 0.08vw solid rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

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

.notification-item:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.notification-item-content {
    display: flex;
    align-items: flex-start;
    gap: 0.8vw;
}

.notification-item-icon {
    width: 2vw;
    height: 2vw;
    border-radius: 0.4vw;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
}

.notification-item-icon.achievement {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.notification-item-icon.restriction,
.notification-item-icon.adjustment-negative {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.notification-item-icon.adjustment-positive {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

.notification-item-icon.status-promoted {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.notification-item-icon.status-demoted {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.notification-item-icon.info {
    background: transparent;
}

.notification-item-icon svg {
    width: 1vw;
    height: 1vw;
    color: #ffffff;
}

.notification-item-main {
    flex: 1;
    min-width: 0;
}

.notification-item-text {
    font-size: 0.75vw;
    color: rgba(0, 0, 0, 0.9);
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0;
    white-space: normal;
    word-wrap: break-word;
    position: relative;
    max-height: calc(1.4 * 0.75vw * 2); /* 2 строки */
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.notification-item-text.expanded {
    max-height: none;
}

.notification-item-text-wrapper {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 0.4vw;
    margin-bottom: 0.3vw;
}

.notification-item-text-content {
    flex: 1;
    min-width: 0;
    position: relative;
}

/* Кнопка раскрытия уведомления */
.notification-expand-btn {
    flex-shrink: 0;
    width: 1.2vw;
    height: 1.2vw;
    min-width: 1.2vw;
    display: none;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
    padding: 0;
    margin-top: 0.1vw;
    align-self: flex-start;
}

.notification-expand-btn:hover {
    color: rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.05);
    border-radius: 0.2vw;
}

.notification-expand-btn svg {
    width: 0.8vw;
    height: 0.8vw;
    transition: transform 0.3s ease;
}

.notification-expand-btn.expanded svg {
    transform: rotate(180deg);
}

.notification-item-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.4vw;
    margin-top: 0.3vw;
}

/* Стили для ссылок в уведомлениях (как в contributions) */
.notification-item-text .contribution-link {
    font-size: 0.88vw;
    color: #8b5cf6;
    text-decoration: none;
    font-weight: 600;
    background-image: linear-gradient(to right, #8b5cf6, #8b5cf6);
    background-size: 0% 0.138vw;
    background-position: left bottom;
    background-repeat: no-repeat;
    transition: background-size 0.3s ease;
    padding-bottom: 0.138vw;
}

.notification-item-text .contribution-link:hover {
    color: #8b5cf6;
    background-size: 100% 0.138vw;
}

.notification-item-time {
    font-size: 0.65vw;
    color: rgba(0, 0, 0, 0.45);
    margin-left: auto;
}

.notification-item.unread {
    background-color: rgba(139, 92, 246, 0.05);
}

.notification-item-read-indicator {
    width: 0.5vw;
    height: 0.5vw;
    border-radius: 50%;
    background: #8b5cf6;
    flex-shrink: 0;
    margin-top: 0.4vw;
}

.notification-rewards {
    display: flex;
    gap: 0.4vw;
    flex-wrap: wrap;
    align-items: center;
}

.notification-reward {
    display: inline-flex;
    align-items: center;
    gap: 0.2vw;
    padding: 0.15vw 0.4vw;
    border-radius: 0.2vw;
    font-size: 0.65vw;
    font-weight: 600;
}

.notification-reward.xp {
    background: rgba(139, 92, 246, 0.12);
    border: 0.05vw solid rgba(139, 92, 246, 0.25);
}

.notification-reward.vc {
    background: rgba(251, 191, 36, 0.12);
    border: 0.05vw solid rgba(251, 191, 36, 0.25);
}

.reward-amount {
    color: #8b5cf6;
    font-weight: 600;
}

.notification-reward.vc .reward-amount {
    color: #d97706;
}

.reward-type {
    color: #8b5cf6;
    font-weight: 600;
    text-transform: uppercase;
}

.notification-reward.vc .reward-type {
    color: #d97706;
}

/* Отрицательные rewards (для уменьшения баланса/XP) */
.notification-reward.negative {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(220, 38, 38, 0.15));
    border-color: rgba(239, 68, 68, 0.4);
}

.notification-reward.negative .reward-amount {
    color: #ef4444;
}

.notification-reward.negative.xp .reward-type {
    color: #ef4444;
}

.notification-reward.negative.vc .reward-type {
    color: #ef4444;
}

/* Стили для причины изменения (adjustment reason) */
.adjustment-reason {
    margin-top: 0.3vw;
    font-size: 0.75vw;
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.4;
    display: inline;
}

.adjustment-reason-label {
    font-weight: 600;
    color: rgba(0, 0, 0, 0.7);
}

.adjustment-reason-text {
    display: inline;
}

.empty-notifications {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.0vw;
    text-align: center;
}

.empty-notifications i {
    font-size: 2.5vw;
    color: var(--gray);
    margin-bottom: 1.0vw;
}

.empty-notifications p {
    color: var(--gray-dark);
    font-size: 0.88vw;
    margin: 0;
}

.user-avatar img {
    width: 3vw;
    height: 3vw;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 0.1vw solid white;
    box-shadow: 0 0 0 0.1vw var(--primary);
    transition: all 0.2s;
}

.user-avatar:hover img {
    box-shadow: 0 0 0 0.16vw var(--primary);
}

/* Main Layout - Modern */
.main-layout {
    display: flex;
    flex: 1;
    margin-top: 4.5vw; /* Reduced from 5.0vw */
    margin-bottom: 0;
}

/* Slim Sidebar - Modern */
.sidebar {
    width: 4.5vw;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(1vw);
    height: calc(100vh - 4.5vw);
    position: fixed;
    top: 4.5vw;
    bottom: 0;
    left: 0;
    overflow: hidden;
    border-right: 0.12vw solid rgba(0, 0, 0, 0.12);
    box-shadow: 0.15vw 0 0.4vw rgba(0, 0, 0, 0.04);
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 400 !important;
    display: flex;
    flex-direction: column;
}

.sidebar:hover {
    width: 16vw;
}

.sidebar-nav {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-top: 1.5vw;
    padding-bottom: 1.5vw;
    overflow: hidden;
}

.sidebar-menu-items {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5vw;
    overflow: hidden;
    padding-right: 0.2vw;
    min-height: 0;
    align-items: stretch;
}

.sidebar-menu-items::-webkit-scrollbar {
    width: 0.2vw;
}

.sidebar-menu-items::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-menu-items::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0.1vw;
}

.sidebar-item {
    display: flex;
    align-items: center;
    height: 3.5vw;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
    background-color: transparent;
    border-radius: 0.8vw;
    color: rgba(0, 0, 0, 0.7);
    text-decoration: none;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease, margin 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    justify-content: flex-start;
    width: 100%;
    box-sizing: border-box;
    flex-shrink: 0;
}

.sidebar:hover .sidebar-item {
    margin-right: 0.8vw;
    padding-right: 1.2vw;
    width: calc(100% - 0.8vw);
}

.sidebar:hover .sidebar-item {
    justify-content: flex-start;
}

.sidebar-item.active {
    background-color: transparent;
}

.sidebar:not(:hover) .sidebar-item.active {
    background-color: transparent !important;
}

.sidebar-item.active .sidebar-icon-wrapper {
    color: #8b5cf6;
}

.sidebar-item.active .sidebar-icon-wrapper svg {
    stroke: #8b5cf6;
}

.sidebar:hover .sidebar-item.active {
    background-color: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.sidebar:not(:hover) .sidebar-item.active {
    background-color: transparent !important;
}

.sidebar-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0.3vw;
    height: 2vw;
    background-color: #8b5cf6;
    border-radius: 0 0.2vw 0.2vw 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar:hover .sidebar-item.active::before {
    opacity: 1;
}

.sidebar-item:hover:not(.active) {
    background-color: rgba(0, 0, 0, 0.04);
}

.sidebar-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 4.5vw;
    min-width: 4.5vw;
    transition: color 0.2s;
    margin: 0;
    padding: 0;
}

.sidebar:hover .sidebar-icon-wrapper {
    width: 4.5vw;
    min-width: 4.5vw;
}

.sidebar-icon {
    width: 1.5vw;
    height: 1.5vw;
    transition: color 0.2s;
    margin: 0;
    padding: 0;
    display: block;
    flex-shrink: 0;
}

.sidebar-label {
    font-size: 0.88vw;
    font-weight: 500;
    white-space: nowrap;
    margin-left: 0;
    opacity: 0;
    transition: opacity 0.35s ease 0.15s, margin-left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
    overflow: hidden;
    max-width: 0;
}

.sidebar:hover .sidebar-label {
    opacity: 1;
    margin-left: 0.5vw;
    max-width: 15vw;
    transition: opacity 0.35s ease 0.15s, margin-left 0.35s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-item.active .sidebar-label {
    font-weight: 600;
}

.sidebar-logout {
    padding-top: 1.5vw;
    border-top: 0.1vw solid rgba(0, 0, 0, 0.08);
    margin-left: 0;
    margin-right: 0;
    flex-shrink: 0;
    margin-top: auto;
    padding-bottom: 3vw;
    transition: margin 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar:hover .sidebar-logout {
    margin-right: 0.8vw;
}

.sidebar-logout-btn {
    color: rgba(220, 38, 38, 0.8);
}

.sidebar-logout-btn:hover {
    background-color: rgba(239, 68, 68, 0.08);
}

/* Tooltip for collapsed state */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background-color: var(--darker);
    color: white;
    padding: 0.38vw 0.75vw;
    border-radius: var(--radius-sm);
    font-size: 0.81vw;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 60;
    margin-left: 0.75vw;
}

.sidebar:not(:hover) [data-tooltip]:hover::after {
    opacity: 1;
    transition-delay: 0.3s;
}

.sidebar:hover [data-tooltip]::after {
    opacity: 0 !important;
    pointer-events: none;
}

/* Main Content - Modern */
.main-content {
    flex: 1;
    margin-left: 4.5vw;
    padding: 1.5vw;
    min-height: calc(100vh - 4.5vw);
    background-color: var(--light);
    transition: margin-left 0.2s;
}

.sidebar:hover ~ .main-layout .main-content {
    margin-left: 16vw;
}

/* Modern Footer */
.main-footer {
    margin-left: 4vw;
    margin-top: 3vw;
    border-top: 0.12vw solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 -0.15vw 0.4vw rgba(0, 0, 0, 0.04);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(1vw);
    transition: all 0.3s;
}

.footer-container {
    max-width: 90vw;
    margin: 0 auto;
    padding: 3vw 2vw 2vw;
}

.footer-grid {
    display: flex;
    justify-content: center;
    gap: 10.5vw;
    margin-bottom: 3vw;
}

.footer-section {
    flex: 0 0 auto;
}

.footer-section h4 {
    font-size: 0.9vw;
    font-weight: 700;
    color: #8b5cf6;
    text-transform: uppercase;
    letter-spacing: 0.05vw;
    margin-bottom: 1vw;
    margin-top: 0;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 0.7vw;
}

.footer-section ul li a {
    font-size: 0.85vw;
    color: rgba(0, 0, 0, 0.6);
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.footer-section ul li a:hover {
    color: #8b5cf6;
}

/* Join Our Community — centered */
.footer-section.social-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-section.social-section h4 {
    align-self: center;
}

/* Social Links — фиксированные размеры (rem) для одинакового отображения на всех страницах */
.footer-social-links {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
    justify-content: center;
}

.footer-social-btn {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.04);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: rgba(0, 0, 0, 0.9);
}

.footer-social-btn:hover {
    background: rgba(0, 0, 0, 0.08);
    transform: translateY(-0.069vw);
}

.footer-social-btn i {
    font-size: 1.25rem !important;
}

/* Made in Latvia */
.footer-made-in {
    margin-top: 0.7rem;
    padding-top: 0.6rem;
    border-top: 0.069vw solid rgba(0, 0, 0, 0.08);
}

.made-in-text {
    font-size: 0.85vw;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.7);
    text-align: center;
    margin: 0;
    letter-spacing: 0.05vw;
    display: flex;
    align-items: center;
    justify-content: center;
    justify-content: center;
    gap: 0.5vw;
}

.latvia-flag {
    font-size: 1.2vw;
    display: inline-block;
    animation: flagWave 3s ease-in-out infinite;
    filter: drop-shadow(0 0.1vw 0.2vw rgba(0, 0, 0, 0.1));
}

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

.footer-social-mobile {
    display: none;
    gap: 1.0vw;
    margin-top: 1.0vw;
}

.footer-social-mobile a {
    color: var(--gray-dark);
    font-size: 1.25vw;
}

.footer-bottom {
    padding-top: 2vw;
    text-align: center;
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 20vw);
    height: 0.1vw;
    background: rgba(0, 0, 0, 0.15);
}

.copyright p {
    font-size: 0.85vw;
    color: rgba(0, 0, 0, 0.6);
    line-height: 2;
    margin: 0;
    margin-bottom: 0.4vw;
}

.copyright p:last-child {
    margin-bottom: 0;
}

/* Floating Action Button - Mobile */
.fab-button {
    display: none;
    position: fixed;
    bottom: 1.5vw;
    right: 1.5vw;
    width: 3.5vw;
    height: 3.5vw;
    border-radius: var(--radius-full);
    background-color: var(--primary);
    color: white;
    border: none;
    font-size: 1.25vw;
    z-index: 50;
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    transition: all 0.2s;
}

.fab-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-0.12vw);
    box-shadow: var(--shadow-xl);
}

/* Mobile Menu - Hidden by default */
.mobile-menu {
    display: none;
    position: fixed;
    top: 4.5vw;
    left: 0;
    right: 0;
    background-color: white;
    z-index: 45;
    box-shadow: var(--shadow-md);
    padding: 1.0vw;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-menu.open {
    transform: translateY(0);
    opacity: 1;
}

.mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5vw;
}

.mobile-menu-nav a {
    display: flex;
    align-items: center;
    gap: 1.0vw;
    padding: 0.75vw 1.0vw;
    color: var(--dark);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.mobile-menu-nav a:hover {
    background-color: #F1F5F9;
}

.mobile-menu-nav a i {
    width: 1.5vw;
    text-align: center;
}

/* Responsive Adjustments */
@media (max-width: 62.5vw) {
    .nav-container {
        padding: 0 1.5vw;
    }
    
    .search-container {
        max-width: 25vw;
    }
}

@media (max-width: 53.33vw) {
    .sidebar {
        transform: translateX(-100%);
        width: 15.0vw;
        z-index: 45;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .fab-button {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-social-mobile {
        display: flex;
    }
    
    .social-section {
        display: none;
    }
}

@media (max-width: 40.0vw) {
    .nav-container {
        padding: 0 1.0vw;
        gap: 1.0vw;
    }
    
    .logo-container {
        margin-right: 0;
    }
    
    .search-container {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        max-width: 100%;
        height: 3.2vw;
        padding-left: 1.2vw;
        padding-right: 1.2vw;
        background-color: rgba(0, 0, 0, 0.04);
        border: 0.1vw solid rgba(0, 0, 0, 0.08);
        box-shadow: var(--shadow-md);
        z-index: 60;
    }
    
    
    
    .search-container.visible {
        display: flex;
    }
    
    
    
    .shop-btn span, .create-article-btn span, .vice-coins-btn span {
        display: none;
    }
    
    .shop-btn, .create-article-btn, .vice-coins-btn, .auth-header-btn {
        padding-left: 0.5vw;
        padding-right: 0.5vw;
        min-width: 2.8vw;
        height: 2.8vw;
        justify-content: center;
    }
    
    .auth-header-buttons {
        margin-left: 1vw;
    }
    
    .auth-header-btn span {
        display: none;
    }
    
    .auth-header-icon {
        width: 1vw;
        height: 1vw;
    }
    
    .notification-dropdown {
        width: 17.5vw;
    }
    
    .notification-dropdown.show {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .mobile-menu 
}

@media (max-width: 30.0vw) {
    .right-nav {
        gap: 0.5vw;
    }
    
    .shop-btn, .create-article-btn, .vice-coins-btn, .auth-header-buttons {
        display: none;
    }
    
    .notification-dropdown {
        width: 15.0vw;
    }
    
    .notification-dropdown.show {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-section {
        text-align: center;
    }
    
    .social-links {
        align-items: center;
    }
    
    .developer-info {
        align-items: center;
    }
}

@media (max-width: 25.0vw) {
    .nav-container {
        padding: 0 0.75vw;
    }
    
    .logo-img {
        height: 2.5vw;
    }
    
    .signin-button {
        padding: 0.5vw;
        min-width: auto;
    }
    
    .signin-button span {
        display: none;
    }
    
    .user-avatar img {
        width: 2.0vw;
        height: 2.0vw;
    }
    
    .notification-btn {
        width: 2.0vw;
        height: 2.0vw;
    }
    
    .notification-badge {
        width: 0.4vw;
        height: 0.4vw;
        top: 0.3vw;
        right: 0.3vw;
    }
}

/* Animation for sidebar items */
@keyframes slideIn {
    from { transform: translateX(-0.62vw); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.sidebar-nav li {
    animation: slideIn 0.3s ease-out forwards;
    opacity: 0;
}

.sidebar-nav li:nth-child(1) { animation-delay: 0.1s; }
.sidebar-nav li:nth-child(2) { animation-delay: 0.15s; }
.sidebar-nav li:nth-child(3) { animation-delay: 0.2s; }
.sidebar-nav li:nth-child(4) { animation-delay: 0.25s; }
.sidebar-nav li:nth-child(5) { animation-delay: 0.3s; }
.sidebar-nav li:nth-child(6) { animation-delay: 0.35s; }

 #page-preloader {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #ffffff;
            z-index: 9999;
            display: flex;
            align-items: center;
            justify-content: center;
        }

/* ============================================
   MOBILE & TABLET DESIGN - Bottom Tab Bar
   ============================================ */

:root {
    --bottom-bar-h: 64px;
    --vc-primary: #8b5cf6;
    --vc-primary-dark: #7c3aed;
    --vc-white: #ffffff;
    --vc-dark: #0f0f14;
    --vc-light: #f5f5f5;
    --vc-gray: #94a3b8;
    --vc-gray-dark: #64748b;
    --vc-danger: #ef4444;
    --vc-warning: #d97706;
}

/* Mobile Bottom Tab Bar */
.mobile-bottom-tab-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 500;
    background: var(--vc-white);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.mobile-bottom-tab-bar__container {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding: 0 8px;
    height: 64px;
}

.mobile-bottom-tab-bar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    min-width: 56px;
    min-height: 48px;
    text-decoration: none;
    color: var(--vc-gray-dark);
    transition: all 0.2s;
    position: relative;
}

.mobile-bottom-tab-bar__item:active {
    transform: scale(0.9);
}

.mobile-bottom-tab-bar__icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    margin-bottom: 2px;
}

.mobile-bottom-tab-bar__icon {
    width: 22px;
    height: 22px;
    stroke-width: 1.8;
    transition: all 0.2s;
    color: var(--vc-gray-dark);
}

.mobile-bottom-tab-bar__item.active .mobile-bottom-tab-bar__icon {
    color: var(--vc-primary);
    stroke-width: 2.5;
}

.mobile-bottom-tab-bar__label {
    font-size: 10px;
    font-weight: 500;
    margin-top: 2px;
    transition: color 0.2s;
    color: var(--vc-gray-dark);
}

.mobile-bottom-tab-bar__item.active .mobile-bottom-tab-bar__label {
    color: var(--vc-primary);
    font-weight: 600;
}

.mobile-bottom-tab-bar__active-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--vc-primary);
    margin-top: 2px;
    display: none;
}

.mobile-bottom-tab-bar__item.active .mobile-bottom-tab-bar__active-dot {
    display: block;
}

/* Featured Explore Button (Raised) */
.mobile-bottom-tab-bar__item--featured {
    margin-top: -12px;
}

.mobile-bottom-tab-bar__item--featured .mobile-bottom-tab-bar__icon-wrapper {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--vc-white);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: none;
    border-left: none;
    border-right: none;
    box-shadow: none;
    margin-bottom: 4px;
    transition: all 0.3s;
}

.mobile-bottom-tab-bar__item--featured.active .mobile-bottom-tab-bar__icon-wrapper {
    box-shadow: none;
}

.mobile-bottom-tab-bar__item--featured .mobile-bottom-tab-bar__icon {
    width: 32px;
    height: 32px;
    color: var(--vc-gray-dark);
    stroke-width: 2;
}

.mobile-bottom-tab-bar__item--featured.active .mobile-bottom-tab-bar__icon {
    color: var(--vc-primary);
    stroke-width: 2.5;
}

.mobile-bottom-tab-bar__item--featured .mobile-bottom-tab-bar__label {
    margin-top: 4px;
    margin-bottom: 6px;
    font-weight: 600;
}

/* Other Menu Button */
.mobile-bottom-tab-bar__other-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    min-width: 56px;
    min-height: 48px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--vc-gray-dark);
    transition: all 0.2s;
}

.mobile-bottom-tab-bar__other-btn:active {
    transform: scale(0.9);
}

.mobile-bottom-tab-bar__other-btn.active .mobile-bottom-tab-bar__icon {
    color: var(--vc-primary);
    stroke-width: 2.5;
}

.mobile-bottom-tab-bar__other-btn.active .mobile-bottom-tab-bar__label {
    color: var(--vc-primary);
    font-weight: 600;
}

/* Mobile Other Menu Overlay */
/* Other menu: hidden by default; on mobile it's display:block but invisible until .open */
.mobile-other-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 490;
    background: var(--vc-white);
    transition: opacity 0.3s cubic-bezier(0.32, 0.72, 0, 1), transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    padding-bottom: calc(var(--bottom-bar-h) + env(safe-area-inset-bottom, 0px));
}

.mobile-other-menu.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.mobile-other-menu__content {
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.mobile-other-menu__header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    padding: max(env(safe-area-inset-top, 12px), 12px) 20px 12px;
}

.mobile-other-menu__header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.mobile-other-menu__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--vc-dark);
    letter-spacing: -0.01em;
}

.mobile-other-menu__header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-other-menu__action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--vc-light);
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.mobile-other-menu__action-btn:active {
    background: rgba(0, 0, 0, 0.08);
}

.mobile-other-menu__action-btn--notifications {
    position: relative;
}

.mobile-other-menu__action-icon {
    width: 20px;
    height: 20px;
    color: var(--vc-dark);
    stroke-width: 1.8;
}

.mobile-other-menu__notification-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: var(--vc-danger);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
}

.mobile-other-menu__search {
    padding: 0 20px 16px;
}

.mobile-other-menu__search-box {
    display: flex;
    align-items: center;
    height: 44px;
    background: var(--vc-light);
    border-radius: 12px;
    padding: 0 14px;
    gap: 10px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.2s;
}

.mobile-other-menu__search-box:focus-within {
    border-color: var(--vc-primary);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.15);
}

.mobile-other-menu__search-icon {
    width: 18px;
    height: 18px;
    color: var(--vc-gray);
    stroke-width: 2;
    flex-shrink: 0;
}

.mobile-other-menu__search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 15px;
    color: var(--vc-dark);
}

.mobile-other-menu__search-input::placeholder {
    color: var(--vc-gray);
}

.mobile-other-menu__primary-actions {
    padding: 0 20px 8px;
}

.mobile-other-menu__primary-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 4px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--vc-dark);
    transition: background 0.2s;
}

.mobile-other-menu__primary-item:active {
    background: rgba(0, 0, 0, 0.02);
}

.mobile-other-menu__primary-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    flex-shrink: 0;
}

.mobile-other-menu__primary-icon-wrapper--profile {
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.08);
    border: 2px solid rgba(139, 92, 246, 0.2);
}

.mobile-other-menu__primary-icon-wrapper--create {
    background: rgba(139, 92, 246, 0.08);
}

.mobile-other-menu__primary-icon-wrapper--coins {
    background: rgba(217, 119, 6, 0.08);
}

.mobile-other-menu__primary-icon {
    width: 20px;
    height: 20px;
    stroke-width: 1.8;
}

.mobile-other-menu__primary-icon--profile,
.mobile-other-menu__primary-icon--create {
    color: var(--vc-primary);
}

.mobile-other-menu__primary-icon--coins {
    color: var(--vc-warning);
}

.mobile-other-menu__primary-item--logout .mobile-other-menu__primary-title {
    color: rgba(220, 38, 38, 0.9);
}

.mobile-other-menu__primary-icon-wrapper--logout {
    background: rgba(239, 68, 68, 0.08);
}

.mobile-other-menu__primary-item--logout .mobile-other-menu__primary-icon {
    color: var(--vc-danger);
}

.mobile-other-menu__primary-text {
    display: flex;
    flex-direction: column;
}

.mobile-other-menu__primary-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--vc-dark);
    margin-bottom: 2px;
}

.mobile-other-menu__primary-subtitle {
    font-size: 12px;
    color: var(--vc-gray-dark);
}

.mobile-other-menu__divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.06);
    margin: 0 20px;
}

.mobile-other-menu__footer {
    padding: 20px;
}

.mobile-other-menu__footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.mobile-other-menu__footer-column {
    display: flex;
    flex-direction: column;
}

.mobile-other-menu__footer-section-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--vc-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.mobile-other-menu__footer-buttons {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mobile-other-menu__footer-btn {
    display: block;
    width: 100%;
    padding: 10px 0;
    font-size: 13px;
    color: var(--vc-gray-dark);
    text-decoration: none;
    text-align: left;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: color 0.2s, background 0.2s;
}

.mobile-other-menu__footer-btn:last-child {
    border-bottom: none;
}

.mobile-other-menu__footer-btn:active {
    color: var(--vc-primary);
    background: rgba(139, 92, 246, 0.04);
}

.mobile-other-menu__copyright {
    margin-top: 32px;
    padding-top: 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-other-menu__copyright-text {
    font-size: 11px;
    color: var(--vc-gray);
    text-align: center;
    line-height: 1.6;
}

.mobile-other-menu__copyright-text:last-child {
    font-size: 10px;
    margin-top: 4px;
}

/* Mobile Header (Hidden on Desktop) */
.mobile-header {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    padding-top: env(safe-area-inset-top, 0px);
}

.mobile-header__container {
    display: flex;
    align-items: center;
    height: 56px;
    padding: 0 16px;
    gap: 12px;
}

.mobile-header__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.mobile-header__logo-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 8px;
    transition: background 0.2s;
}

.mobile-header__logo-icon {
    width: 24px;
    height: 24px;
    color: var(--vc-primary);
    margin-top: -2px;
}

.mobile-header__logo-text {
    display: flex;
    flex-direction: column;
}

.mobile-header__logo-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--vc-dark);
    line-height: 1.2;
}

.mobile-header__logo-subtitle {
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
    margin-top: -2px;
    margin-left: 1px;
}

.mobile-header__search {
    flex: 1;
    max-width: 460px;
    display: flex;
    align-items: center;
    height: 32px;
    border-radius: 6px;
    padding: 0 8px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.2s;
}

.mobile-header__search:focus-within {
    border-color: var(--vc-primary);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.12);
}

.mobile-header__search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 12px;
    color: var(--vc-dark);
}

.mobile-header__search-input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.mobile-header__search-icon {
    width: 14px;
    height: 14px;
    color: rgba(0, 0, 0, 0.4);
    margin-left: 8px;
    stroke-width: 2;
    flex-shrink: 0;
}

.mobile-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-header__action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    background: transparent;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: rgba(0, 0, 0, 0.7);
}

.mobile-header__action-btn:hover {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.3);
    color: var(--vc-primary);
}

.mobile-header__action-icon {
    width: 12px;
    height: 12px;
    stroke-width: 2;
}

.mobile-header__notification-btn {
    position: relative;
}

.mobile-header__notification-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 6px;
    height: 6px;
    background: var(--vc-danger);
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.5);
    animation: pulse 2s ease infinite;
}

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

.mobile-header__profile-btn {
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid rgba(139, 92, 246, 0.2);
}

.mobile-header__profile-btn:hover {
    border-color: rgba(139, 92, 246, 0.4);
}

.mobile-header__profile-icon-wrapper {
    width: 100%;
    height: 100%;
    background: rgba(139, 92, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-header__profile-icon {
    width: 16px;
    height: 16px;
    color: var(--vc-primary);
    stroke-width: 1.8;
}

/* Mobile Layout Adjustments - no header, no footer; only bottom bar or Other menu */
@media (max-width: 1024px) {
    .mobile-header {
        display: none !important;
    }
    
    .mobile-bottom-tab-bar {
        display: block;
    }
    
    /* Show Other menu container on mobile so .open can reveal it */
    .mobile-other-menu {
        display: block;
    }
    
    /* Hide desktop header and sidebar on mobile */
    .top-nav {
        display: none;
    }
    
    .sidebar {
        display: none;
    }
    
    /* No header => no top padding; only bottom for tab bar */
    .main-layout {
        margin-top: 0;
        padding-top: env(safe-area-inset-top, 0);
        padding-bottom: calc(var(--bottom-bar-h) + env(safe-area-inset-bottom, 0px));
    }
    
    .main-content {
        margin-left: 0 !important;
    }

    /* Отключаем hover на карточках — нет реакции на наведение на мобильных */
    .news-card-search:hover,
    .category-card-search:hover,
    .wiki-card:hover {
        transform: none !important;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
    }
    .news-card-search:hover .news-image-search,
    .category-card-search:hover .category-image-search,
    .wiki-card:hover .wiki-image {
        transform: none !important;
    }
    
    /* No footer on mobile */
    .main-footer {
        display: none !important;
    }
    
    .fab-button {
        display: none !important;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
    .mobile-header__container {
        height: 68px;
        padding: 0 clamp(16px, 2vw, 32px);
    }
    
    .mobile-header__logo-icon-wrapper {
        width: clamp(36px, 3.2vw, 48px);
        height: clamp(36px, 3.2vw, 48px);
    }
    
    .mobile-header__logo-icon {
        width: clamp(24px, 2.5vw, 36px);
        height: clamp(24px, 2.5vw, 36px);
    }
    
    .mobile-header__logo-title {
        font-size: clamp(14px, 1.4vw, 20px);
    }
    
    .mobile-header__logo-subtitle {
        font-size: clamp(8px, 0.7vw, 10px);
    }
    
    .mobile-header__search {
        height: clamp(32px, 2.3vw, 40px);
        max-width: clamp(200px, 30vw, 460px);
        padding: 0 clamp(8px, 1vw, 16px);
    }
    
    .mobile-header__search-input {
        font-size: clamp(12px, 0.85vw, 14px);
    }
    
    .mobile-header__action-btn {
        width: clamp(36px, 3vw, 44px);
        height: clamp(36px, 3vw, 44px);
    }
    
    .mobile-header__action-icon {
        width: clamp(12px, 1.1vw, 16px);
        height: clamp(12px, 1.1vw, 16px);
    }
}
        