/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Backdrop Overlay */
.backdrop-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(2px);
}

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

.backdrop-overlay.no-blur {
    backdrop-filter: none;
}

/* Disable backdrop on tablet devices for better UX */
@media (min-width: 769px) and (max-width: 1023px) {
    .backdrop-overlay {
        display: none;
    }
}

/* CRITICAL: Force item cards to be visible */
.item-card {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    width: 100% !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    transition: all 0.2s ease !important;
}

.listings-grid {
    display: grid !important;
    visibility: visible !important;
    opacity: 1 !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 20px !important;
    margin-bottom: 32px !important;
    width: 100% !important;
}

.main-content {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    min-height: 400px !important;
}

.latest-ads {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    min-height: 400px !important;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #111827;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevent body scroll when dropdowns are open */
body.scroll-locked {
    overflow: hidden;
    height: 100vh;
}

/* Container */
.container {
    max-width: 1366px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Utility classes for responsive design */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* Hide mobile navigation on desktop */
.mobile-nav {
    display: none !important;
}

/* Ensure desktop elements are visible */
@media (min-width: 1024px) {
    .desktop-only {
        display: block !important;
    }
    
    .mobile-only {
        display: none !important;
    }
    
    .mobile-nav {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .mobile-bottom-nav {
        display: none !important;
    }
    
    /* Ensure header action buttons are visible on desktop */
    .header-action-btn {
        display: flex !important;
    }
    
    .header-messages-btn {
        display: flex !important;
    }
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: #4f46e5;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: #6057f5;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.4);
}

.scroll-to-top:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
}

.scroll-to-top .material-icons {
    font-size: 24px;
    color: #ffffff;
}

@media (min-width: 769px) and (max-width: 1023px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }
    
    .scroll-to-top .material-icons {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        bottom: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
    }
    
    .scroll-to-top .material-icons {
        font-size: 20px;
    }
}

/* ===== DEVELOPMENT BANNER ===== */
.development-banner {
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    color: #ffffff;
    padding: 16px 0;
    margin-top: 80px;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.15);
}

.development-banner__content {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    text-align: center;
}

.development-banner__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    flex-shrink: 0;
}

.development-banner__icon .material-icons {
    font-size: 20px;
    color: #ffffff;
}

.development-banner__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.development-banner__text strong {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
}

.development-banner__text span {
    font-size: 13px;
    opacity: 0.9;
    line-height: 1.3;
    max-width: 600px;
}

/* Tablet styles for development banner */
@media (min-width: 769px) and (max-width: 1023px) {
    .development-banner {
        padding: 12px 0;
    }
    
    .development-banner__content {
        gap: 12px;
    }
    
    .development-banner__icon {
        width: 32px;
        height: 32px;
    }
    
    .development-banner__icon .material-icons {
        font-size: 18px;
    }
    
    .development-banner__text strong {
        font-size: 15px;
    }
    
    .development-banner__text span {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .development-banner {
        padding: 10px 0;
    }
    
    .development-banner__content {
        gap: 10px;
    }
    
    .development-banner__icon {
        width: 28px;
        height: 28px;
    }
    
    .development-banner__icon .material-icons {
        font-size: 16px;
    }
    
    .development-banner__text strong {
        font-size: 14px;
    }
    
    .development-banner__text span {
        font-size: 11px;
    }
}

/* Header */
.header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transform: translateZ(0); /* Hardware acceleration for better performance */
    will-change: transform; /* Optimize for transforms */
}

/* Header Notifications Corner - Top Right */
.header-notifications-corner {
    position: absolute;
    top: 12px;
    right: 20px;
    z-index: 101; /* Higher than header to ensure visibility */
}

/* Кнопка уведомлений использует оригинальные стили .header-notifications-btn */

.header__content {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px 0;
    flex-wrap: wrap;
}

.header__logo .logo {
    height: 40px;
    width: auto;
}

/* Categories Dropdown */
.header__categories {
    position: relative;
    z-index: 101;
}

.categories-dropdown__toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #4f46e5;
    border: 1px solid #4f46e5;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    transition: all 0.2s ease;
    height: 40px;
    box-sizing: border-box;
}

.categories-dropdown__toggle:hover {
    background: #6057f5;
    border-color: #6057f5;
    color: #ffffff;
}

.categories-dropdown__toggle .material-icons {
    color: #ffffff;
    font-size: 18px;
    transition: transform 0.2s ease;
}

.categories-dropdown__toggle .toggle-icon {
    transition: transform 0.2s ease;
}

.categories-dropdown.is-open .toggle-icon {
    transform: rotate(90deg);
}

.categories-dropdown__menu {
    position: absolute;
    top: 57px;
    left: -153px;
    min-width: 100%;
    max-width: 1366px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    height: calc(100vh - 64px);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.categories-dropdown.is-open .categories-dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Mega Menu Styles */
.categories-mega-menu {
    display: flex;
    height: 100%;
    width: 1318px;
}

.categories-mega-menu__left {
    width: 300px;
    background: #f8fafc;
    border-right: 1px solid #e5e7eb;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
    padding-bottom: 60px; /* Safe zone for scrolling */
}

.categories-mega-menu__left::-webkit-scrollbar {
    width: 6px;
}

.categories-mega-menu__left::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.categories-mega-menu__left::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.categories-mega-menu__left::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.categories-mega-menu__right {
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
    padding-bottom: 60px; /* Safe zone for scrolling */
}

.categories-mega-menu__right::-webkit-scrollbar {
    width: 6px;
}

.categories-mega-menu__right::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.categories-mega-menu__right::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.categories-mega-menu__right::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}


.categories-list {
    padding: 16px 0;
}

.category-item {
    position: relative;
    transition: background-color 0.2s ease;
}

.category-item.active {
    background: #4f46e5;
    box-shadow: inset 3px 0 0 #ffffff;
}

.category-item.active .category-link {
    color: #ffffff;
}

.category-item.active .category-link .material-icons {
    color: #ffffff;
}

.category-item:hover:not(.active) {
    background: #f1f5f9;
}

/* Disable hover effects on mobile devices */
@media (hover: none) and (pointer: coarse) {
    .category-item:hover:not(.active) {
        background: transparent;
    }
    
    .category-link:hover {
        color: inherit;
    }
    
    .category-link:hover .material-icons {
        color: #4f46e5;
    }
}

.category-link {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    text-decoration: none;
    color: #111827;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f1f5f9;
    min-height: 40px;
}

.category-link:hover {
    color: #4f46e5;
}

.category-link .material-icons {
    font-size: 18px;
    margin-right: 10px;
    color: #4f46e5;
    transition: color 0.2s ease;
    flex-shrink: 0;
}

.category-link:hover .material-icons {
    color: #4f46e5;
}

.category-name {
    flex: 1;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.3;
}


.subcategories-content {
    padding: 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.subcategories-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    color: #9ca3af;
    text-align: center;
}

.subcategories-placeholder .material-icons {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.subcategories-placeholder p {
    font-size: 16px;
    margin: 0;
}

.subcategories-placeholder p:last-child {
    font-size: 14px;
    margin-top: 8px;
    color: #6b7280;
}

.categories-dropdown__menu .subcategories-grid {
    display: block;
    column-count: 4 !important;
    column-gap: 20px;
    flex: 1;
    break-inside: avoid;
    padding-bottom: 60px; /* Safe zone for scrolling */
}

.subcategory-group {
    display: flex;
    flex-direction: column;
    height: max-content;
    min-height: auto;
    break-inside: avoid;
    margin-bottom: 20px;
    padding-bottom: 10px; /* Additional safe zone for each group */
}

.subcategory-group__title {
    font-weight: 700;
    font-size: 16px;
    color: #111827;
    margin-bottom: 8px;
}


.sections-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    justify-content: flex-start;
}

.section-link {
    display: block;
    text-decoration: none;
    color: #6b7280;
    font-size: 14px;
    transition: color 0.2s ease;
}

.section-link:hover {
    color: #4f46e5;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0;
    padding: 20px;
}

.category-group {
    padding: 16px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.category-group:hover {
    background-color: #f9fafb;
}

.category-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #111827;
    font-weight: 600;
    font-size: 15px;
    transition: color 0.2s ease;
}

.category-link:hover {
    color: #4f46e5;
}

.category-link .material-icons {
    font-size: 20px;
    color: #4f46e5;
}

.subcategories {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-left: 32px;
}

.subcategory-link {
    text-decoration: none;
    color: #6b7280;
    font-size: 13px;
    padding: 4px 0;
    transition: color 0.2s ease;
}

.subcategory-link:hover,
.subcategory-link.more {
    color: #4f46e5;
}

/* Search */
.header__search {
    flex: 1;
    max-width: 400px;
    position: relative;
    z-index: 101;
}

/* Region Selector */
.header__region {
    position: relative;
    z-index: 101;
}

.region-selector {
    position: relative;
}

.region-selector__toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    background: none;
    border: none;
    font-size: 14px;
    color: #111827;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.2s ease;
    white-space: nowrap;
    height: auto;
}

.region-selector__toggle:hover {
    color: #4f46e5;
    text-decoration: none;
}

.region-selector__toggle .material-icons {
    font-size: 18px;
    color: #4f46e5;
}

.region-selector__text {
    font-weight: 500;
    color: #111827;
}

.region-dropdown {
    position: absolute;
    top: calc(100% + 17px);
    right: 0;
    width: 400px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    margin-top: 8px;
}

.region-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


.region-dropdown__content {
    padding: 0;
}

.region-dropdown__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}

.region-dropdown__header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.region-dropdown__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.region-dropdown__close:hover {
    background: #f3f4f6;
}

.region-dropdown__close .material-icons {
    font-size: 20px;
    color: #6b7280;
}

.region-dropdown__body {
    padding: 20px;
}

.region-dropdown__level1,
.region-dropdown__level2 {
    margin-bottom: 16px;
}

.region-dropdown__level2 {
    opacity: 0.5;
    pointer-events: none;
}

.region-dropdown__level2.active {
    opacity: 1;
    pointer-events: auto;
}

.region-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: #ffffff;
    color: #111827;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.region-select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.region-select:disabled {
    background: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
}

.region-dropdown__actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

.region-dropdown__actions .btn {
    padding: 8px 16px;
    font-size: 14px;
}

.search-form {
    width: 100%;
}

.search-input-group {
    position: relative;
    display: flex;
    border-radius: 8px;
    overflow: visible;
    border: 1px solid #d1d5db;
    transition: border-color 0.2s ease;
    width: 100%;
    max-width: 400px;
    min-height: 40px;
    background: #ffffff;
}

.search-input-group:focus-within {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
    outline: none;
}


.search-input {
    flex: 1;
    padding: 8px 16px;
    border: none;
    font-size: 14px;
    outline: none;
    background: transparent;
    color: #111827;
    border-radius: 8px 0 0 8px;
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-btn {
    padding: 8px 16px;
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.2s ease;
    height: 40px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    border-radius: 0 8px 8px 0;
}

.search-btn:hover {
    color: #4f46e5;
}

/* Voice Search Button */
.voice-search-btn {
    position: absolute;
    right: 48px;
    top: 0;
    height: 100%;
    width: 40px;
    background: transparent;
    border: none;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2;
}

.voice-search-btn:hover {
    color: #4f46e5;
    background: rgba(79, 70, 229, 0.1);
}

.voice-search-btn.recording {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.1);
    animation: voicePulse 1.5s ease-in-out infinite;
}

.voice-search-btn .material-icons {
    font-size: 20px;
}

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

/* Search Dropdown */
.search-dropdown {
    position: absolute;
    top: calc(100% + 17px);
    left: -1px;
    right: -1px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.search-dropdown.active {
    display: block;
}

.search-dropdown__section {
    padding: 12px 0;
    border-bottom: 1px solid #f3f4f6;
}

.search-dropdown__section:last-child {
    border-bottom: none;
    background: #e8eff7;
}

.search-dropdown__title {
    padding: 0 16px 8px;
    font-size: 12px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-dropdown__item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.search-dropdown__item:hover {
    background: #f9fafb;
}

.search-dropdown__item-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 6px;
    margin-right: 12px;
    flex-shrink: 0;
    overflow: hidden;
}

.search-dropdown__item-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.search-dropdown__item-icon .material-icons {
    font-size: 18px;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.search-dropdown__item-title {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-dropdown__item-subtitle {
    font-size: 12px;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-dropdown__no-results {
    padding: 20px 16px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
}

.search-dropdown__loading {
    padding: 20px 16px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.search-dropdown__loading .material-icons {
    font-size: 18px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* User Actions */
.header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    text-decoration: none;
    color: #6b7280;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 14px;
    height: 40px;
    box-sizing: border-box;
}

.action-btn:hover {
    background: #f3f4f6;
    color: #4f46e5;
}

/* Header Action Buttons - Improved Design */
.header-action-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #ffffff;
    color: #6b7280;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-action-btn:hover {
    background: #f9fafb;
    color: #4f46e5;
    border-color: #4f46e5;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.15);
}

.header-action-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-favorites-btn:hover {
    color: #06b6d4;
    border-color: #06b6d4;
    box-shadow: 0 2px 8px rgba(6, 182, 212, 0.15);
}

.header-messages-btn:hover {
    color: #3b82f6;
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.header-action-btn .material-icons {
    font-size: 25px;
    color: inherit;
}

.header-action-label {
    display: none;
}

.notification-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ef4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ffffff;
    z-index: 2;
}


.action-btn--delete {
    color: #4f46e5;
}

.action-btn--delete:hover {
    background: #faf5ff;
    color: #4a0e6b;
}

.action-btn--favorite-remove {
    color: #4f46e5;
}

.action-btn--favorite-remove:hover {
    background: #faf5ff;
    color: #4f46e5;
}

.action-btn--edit {
    color: #4f46e5;
}

.action-btn--edit:hover {
    background: #faf5ff;
    color: #4f46e5;
}

.action-label {
    display: none;
}

.action-btn .material-icons {
    font-size: 24px;
}

/* User Menu */
.user-menu {
    position: relative;
    z-index: 101;
}

.user-menu__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
}


.user-menu__toggle:hover {
    border-color: #4f46e5;
    color: #4f46e5;
    background-color: #f8f5ff;
}

.user-menu__toggle:hover .user-avatar {
    background-color: #4f46e5;
    color: #ffffff;
}

.user-menu__toggle:hover .user-avatar .material-icons {
    color: #ffffff;
}

.user-menu__toggle:hover .user-avatar img {
    opacity: 0.8;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-avatar .material-icons {
    font-size: 20px;
    color: #6b7280;
}

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

.user-menu__dropdown {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    margin-top: 8px;
}

.user-menu.is-open .user-menu__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    text-decoration: none;
    color: #111827;
    font-size: 14px;
    transition: all 0.2s ease;
    position: relative;
}

.user-menu__item:hover {
    background: #faf5ff;
    color: #4f46e5;
}

.user-menu__item:hover .material-icons {
    color: #4f46e5;
}

.user-menu__item .material-icons {
    font-size: 18px;
    color: #6b7280;
    transition: color 0.2s ease;
}

.user-menu__divider {
    margin: 8px 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}

.logout-btn {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
}


/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    height: 40px;
    box-sizing: border-box;
}

.btn--primary {
    background: #4f46e5;
    color: #ffffff;
    border-color: #4f46e5;
}

.btn--primary:hover {
    background: #6057f5;
    border-color: #6057f5;
}

.btn--outline {
    background: transparent;
    color: #4f46e5;
    border-color: #4f46e5;
}

.btn--outline:hover {
    background: #4f46e5;
    color: #ffffff;
}

/* Create Ad Button with Shine Animation */
.btn--create-ad {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #06b6d4 0%, #4f46e5 100%);
    border: none;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
    transition: all 0.3s ease;
    animation: subtle-pulse 2s ease-in-out infinite;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn--create-ad:hover {
    background: linear-gradient(135deg, #0891b2 0%, #4338ca 100%);
    box-shadow: 0 6px 25px rgba(79, 70, 229, 0.5);
    animation: none;
}

/* Shine effect - блики внутри кнопки */
.btn--create-ad::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.5),
        transparent
    );
    animation: shine 4s infinite;
}

.btn--create-ad:hover::before {
    animation: shine 2s infinite;
}

/* Shine animation keyframes - блик движется внутри кнопки */
@keyframes shine {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* Subtle pulse animation for create ad button */
@keyframes subtle-pulse {
    0% {
        box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(6, 182, 212, 0.4), 0 4px 25px rgba(79, 70, 229, 0.3);
    }
    100% {
        box-shadow: 0 4px 15px rgba(79, 70, 229, 0.4);
    }
}

/* Icon spacing and alignment */
.btn--create-ad .material-icons {
    margin-right: 0;
    font-size: 18px;
    position: relative;
    z-index: 1;
    vertical-align: middle;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Text alignment */
.btn--create-ad span:not(.material-icons) {
    position: relative;
    z-index: 1;
    vertical-align: middle;
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

/* Button requiring verification */
.btn--create-ad[title*="верификация"] {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4) !important;
}

.btn--create-ad[title*="верификация"]:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.5) !important;
}

.btn--large {
    padding: 12px 24px;
    font-size: 16px;
}

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

.btn--full {
    width: 100%;
}

/* Main Content */
.main {
    min-height: calc(100vh - 140px);
    margin-top: 80px; /* Отступ для фиксированного header */
}

/* Home Layout */
.home-layout {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 32px;
    margin-top: 24px;
    position: relative;
    overflow: visible;
}

/* Left Sidebar */
.leftside {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 100px;
}


.filters-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 20px;
}

.filters-title .material-icons {
    font-size: 20px;
    color: #4f46e5;
}

.filter-group {
    margin-bottom: 24px;
}

.filter-group__title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

/* Filter Form Styles */
.filter-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-row {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.filter-input {
    flex: 1;
    min-width: 0; /* Позволяет flex-элементам сжиматься */
    max-width: 50%; /* Ограничиваем максимальную ширину */
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.filter-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.filter-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background-color: #ffffff;
    color: #111827;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.filter-select:hover {
    border-color: #9ca3af;
}



.category-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-filter-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #111827;
    transition: all 0.2s ease;
}

.category-filter-item:hover {
    background: #f3f4f6;
    border-color: #4f46e5;
    color: #4f46e5;
}

.category-filter-item .material-icons {
    font-size: 20px;
    color: #6b7280;
}

.category-filter-item:hover .material-icons {
    color: #4f46e5;
}

.category-name {
    flex: 1;
    font-weight: 500;
}



/* Main Content Area */
.main-content {
    min-height: calc(100vh - 200px);
    display: block;
    visibility: visible;
    opacity: 1;
    width: 100%;
}

/* Latest Listings Section */
.latest-listings {
    display: block;
    visibility: visible;
    opacity: 1;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* No Listings Message */
.no-listings-message {
    text-align: center;
    padding: 60px 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.no-listings-icon {
    margin-bottom: 24px;
}

.no-listings-icon .material-icons {
    font-size: 64px;
    color: #d1d5db;
}

.no-listings-message h3 {
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

.no-listings-message p {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 24px;
}

/* Home Page */
.home-page {
    padding: 40px 0;
}

/* Categories Hero Section */
.categories-hero {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 40px;
    position: relative;
}

/* Remove animated shapes - clean Apple style */

/* Additional decorative elements */
.categories-hero > * {
    position: relative;
    z-index: 2;
}

/* Floating decorative shapes */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 8s ease-in-out infinite;
}

.floating-shape--1 {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-shape--2 {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.floating-shape--3 {
    width: 60px;
    height: 60px;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

/* Add subtle glow effect */
.categories-hero {
    background: linear-gradient(135deg, #4f46e5 0%, #06b6d4 100%);
    position: relative;
}

.categories-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
    border-radius: 12px;
    z-index: 1;
    pointer-events: none;
}

/* Keyframe animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px) scale(1);
    }
    25% {
        transform: translateY(-30px) translateX(15px) scale(1.05);
    }
    50% {
        transform: translateY(-15px) translateX(-10px) scale(0.95);
    }
    75% {
        transform: translateY(10px) translateX(5px) scale(1.02);
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 0.1;
        transform: scale(1);
    }
    50% {
        opacity: 0.2;
        transform: scale(1.1);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.2), 0 0 60px rgba(255, 255, 255, 0.1);
    }
}

@keyframes cardFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-3px) rotate(0.5deg);
    }
    50% {
        transform: translateY(-1px) rotate(0deg);
    }
    75% {
        transform: translateY(-4px) rotate(-0.5deg);
    }
}

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

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

@keyframes drift {
    0% {
        transform: translateX(0px) translateY(0px);
    }
    25% {
        transform: translateX(10px) translateY(-5px);
    }
    50% {
        transform: translateX(-5px) translateY(10px);
    }
    75% {
        transform: translateX(15px) translateY(-8px);
    }
    100% {
        transform: translateX(0px) translateY(0px);
    }
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 0 8px rgba(79, 70, 229, 0);
    }
}

/* Floating decorative shapes */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: drift 15s ease-in-out infinite;
}

.floating-shape--1 {
    width: 60px;
    height: 60px;
    top: 10%;
    left: 5%;
    animation-delay: 0s;
    animation-duration: 12s;
}

.floating-shape--2 {
    width: 40px;
    height: 40px;
    top: 20%;
    right: 10%;
    animation-delay: -3s;
    animation-duration: 18s;
}

.floating-shape--3 {
    width: 80px;
    height: 80px;
    bottom: 20%;
    left: 15%;
    animation-delay: -6s;
    animation-duration: 20s;
}

.floating-shape--4 {
    width: 30px;
    height: 30px;
    top: 60%;
    right: 20%;
    animation-delay: -9s;
    animation-duration: 14s;
}

.floating-shape--5 {
    width: 50px;
    height: 50px;
    top: 40%;
    left: 80%;
    animation-delay: -12s;
    animation-duration: 16s;
}

.floating-shape--6 {
    width: 70px;
    height: 70px;
    bottom: 10%;
    right: 5%;
    animation-delay: -15s;
    animation-duration: 22s;
}


.categories-grid-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    position: relative;
    z-index: 2;
}

.category-card-hero {
    background: #ffffff;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #111827;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
    cursor: pointer;
}

.category-card-hero:hover {
    border-color: #4f46e5;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.1);
}

.category-card-hero:hover::before {
    left: 100%;
}

.category-card-hero:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}

.category-card-hero__icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    background: #f1f5f9;
}

.category-card-hero__icon .material-icons {
    font-size: 20px;
    color: #4f46e5;
}

.category-card-hero:hover .category-card-hero__icon {
    background: #4f46e5;
}

.category-card-hero:hover .category-card-hero__icon .material-icons {
    color: #ffffff;
}

.category-card-hero__content {
    flex: 1;
    min-width: 0;
}

.category-card-hero__title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
    line-height: 1.3;
}

.category-card-hero:hover .category-card-hero__title {
    color: #4f46e5;
}

.category-card-hero__count {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}


.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 24px;
}

.section-title .material-icons {
    font-size: 28px;
    color: #4f46e5;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}


/* Recently Viewed */
.recently-viewed {
    margin-bottom: 48px;
    max-width: 1006px;
}

/* Recently Viewed Slider - Desktop Only */
@media (min-width: 1024px) {
    .recently-viewed-slider {
        position: relative;
        max-width: 100%;
        overflow: hidden;
    }

    .section-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 24px;
    }

    .slider-nav-container {
        display: flex;
        gap: 12px;
    }

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

    .slider-wrapper {
        flex: 1;
        overflow: hidden;
        position: relative;
    }

    .slider-track {
        display: flex;
        transition: transform 0.3s ease;
        gap: 16px;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        cursor: grab;
    }

    .slider-track:active {
        cursor: grabbing;
    }

    .slider-item {
        flex: 0 0 calc(20% - 12.8px); /* Show 5 cards at once, but scroll by 1 */
        min-width: 0;
    }

    .slider-item .item-card {
        position: relative;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        overflow: hidden;
        transition: all 0.2s ease;
        display: block;
        visibility: visible;
        opacity: 1;
        height: 100%;
    }

    .slider-item .item-card:hover {
        border-color: rgba(79, 70, 229, 0.3);
        box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
    }

    .slider-item .item-card__link {
        text-decoration: none;
        color: inherit;
        display: block;
        height: 100%;
    }

    .slider-item .item-card:hover .item-card__title {
        color: #4f46e5;
    }

    .slider-item .item-card__image {
        position: relative;
        width: 100%;
        height: 140px;
        overflow: hidden;
        background: #f3f4f6;
    }

    .slider-item .item-card__image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.2s ease, opacity 0.3s ease;
    }

    .slider-item .item-card__image img.lazy {
        opacity: 0.7;
        filter: blur(2px);
    }

    .slider-item .item-card__image img.loaded {
        opacity: 1;
        filter: none;
    }

    .slider-item .item-card:hover .item-card__image img {
        transform: none;
    }

    .slider-item .no-image {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        color: #9ca3af;
        background: #f9fafb;
    }

    .slider-item .item-card__badge {
        position: absolute;
        top: 8px;
        left: 8px;
        padding: 4px 8px;
        border-radius: 6px;
        font-size: 12px;
        font-weight: 600;
    }

    .slider-item .item-card__badge--featured {
        background: #fbbf24;
        color: #92400e;
    }
    
    .slider-item .item-card__badge--company {
        background: #4f46e5;
        color: #ffffff;
        top: 8px;
        left: 8px;
    }

    .slider-item .item-card__content {
        padding: 16px;
    }

    .slider-item .item-card__title {
        font-size: 16px;
        font-weight: 600;
        color: #111827;
        margin-bottom: 8px;
        line-height: 1.4;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .slider-item .item-card__price {
        font-size: 18px;
        font-weight: 700;
        color: #111827;
        margin-bottom: 12px;
        transition: color 0.3s ease;
    }

    .slider-item .item-card:hover .item-card__price {
        color: #111827;
    }

    .slider-item .item-card__meta {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 0;
        font-size: 14px;
        color: #6b7280;
    }

    .slider-item .item-card__time {
        font-size: 11px;
        color: #9ca3af;
    }

    /* Slider Navigation */
    .slider-nav {
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: 2px solid #4f46e5;
        background: rgba(255, 255, 255, 0.95);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
        box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2);
        color: #4f46e5;
        backdrop-filter: blur(8px);
        flex-shrink: 0;
    }

    .slider-nav:hover:not(:disabled) {
        background: #4f46e5;
        color: #ffffff;
        box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
        transform: scale(1.05);
    }

    .slider-nav:disabled {
        opacity: 0.3;
        cursor: not-allowed;
        background: rgba(255, 255, 255, 0.5);
        border-color: #d1d5db;
        color: #9ca3af;
    }

    .slider-nav:disabled:hover {
        transform: none;
        background: rgba(255, 255, 255, 0.5);
        color: #9ca3af;
        box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
    }

    .slider-nav .material-icons {
        font-size: 20px;
    }

    
    /* Hide mobile scroll on desktop */
    .recently-viewed .items-scroll-container {
        display: none !important;
    }
}


.items-scroll-container {
    position: relative;
    overflow: hidden;
    margin: 0 -16px;
    padding: 0 16px;
    width: 100%;
}

/* Эффект полупрозрачности для правого края */
.items-scroll-container::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 120px;
    background: linear-gradient(to left, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.3s ease;
    border-radius: 0 12px 12px 0;
}

/* Эффект полупрозрачности для левого края */
.items-scroll-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 120px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
    pointer-events: none;
    z-index: 2;
    transition: opacity 0.3s ease;
    border-radius: 12px 0 0 12px;
}

/* Скрыть градиенты когда прокрутка достигла концов */
.items-scroll-container.scrolled-to-end::after {
    opacity: 0;
}

.items-scroll-container.scrolled-to-start::before {
    opacity: 0;
}

/* Кнопки навигации для скролла */
.items-scroll-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #4f46e5;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
    color: #4f46e5;
    backdrop-filter: blur(8px);
    /* Принудительные стили для кликабельности */
    pointer-events: auto !important;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.items-scroll-nav:hover {
    background: #4f46e5;
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
    transform: translateY(-50%) scale(1.05);
}

.items-scroll-nav--prev {
    left: 8px;
}

.items-scroll-nav--next {
    right: 8px;
}

.items-scroll-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background: rgba(255, 255, 255, 0.5);
    border-color: #d1d5db;
    color: #9ca3af;
}

.items-scroll-nav:disabled:hover {
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.5);
    color: #9ca3af;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.items-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 8px 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    scroll-snap-type: x mandatory;
    cursor: grab;
    user-select: none;
    width: 100%;
    min-width: 100%;
    position: relative;
}

.items-scroll:active {
    cursor: grabbing;
}

.items-scroll.dragging {
    cursor: grabbing;
    scroll-snap-type: none;
    scroll-behavior: auto;
}

/* Скрыть скроллбар для всех браузеров */
.items-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.items-scroll::-webkit-scrollbar-track {
    display: none;
}

.items-scroll::-webkit-scrollbar-thumb {
    display: none;
}

.items-scroll-container::before,
.items-scroll-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 20px;
    z-index: 1;
    pointer-events: none;
}

.items-scroll-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0));
}

.items-scroll-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(255,255,255,1), rgba(255,255,255,0));
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-card:hover {
    border-color: #4f46e5;
    box-shadow: 0 4px 12px rgba(167, 58, 253, 0.1);
    transform: translateY(-2px);
}

.category-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #f3f4f6;
    border-radius: 12px;
    color: #4f46e5;
}

.category-card__icon .material-icons {
    font-size: 24px;
}

.category-card__content {
    flex: 1;
}

.category-card__title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.category-card__count {
    font-size: 14px;
    color: #6b7280;
}

/* Listings Grid */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
    width: 100%;
    visibility: visible;
    opacity: 1;
}

.item-card {
    position: relative;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    display: block;
    visibility: visible;
    opacity: 1;
}

.item-card:hover {
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}

.item-card--small {
    min-width: calc(20% - 12.8px); /* 5 карточек в ряд с учетом gap */
    max-width: calc(20% - 12.8px);
    flex-shrink: 0;
    scroll-snap-align: start;
    width: calc(20% - 12.8px);
}

.items-scroll {
    overflow-x: auto;
}

.item-card__link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.item-card__image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f3f4f6;
}

.item-card--small .item-card__image {
    height: 120px;
}

.item-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease, opacity 0.3s ease;
}

.item-card__image img.lazy {
    opacity: 0.7;
    filter: blur(2px);
}

.item-card__image img.loaded {
    opacity: 1;
    filter: none;
}

.item-card:hover .item-card__image img {
    transform: none;
}

.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #9ca3af;
}

.no-image .material-icons {
    font-size: 48px;
}

.item-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
}

.item-card__badge--featured {
    background: #fbbf24;
    color: #92400e;
}

.item-card__badge--company {
    background: #4f46e5;
    color: #ffffff;
    top: 8px;
    left: 8px;
}

.item-card__content {
    padding: 16px;
}

.item-card__title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.item-card:hover .item-card__title {
    color: #4f46e5;
}

.item-card__price {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.item-card:hover .item-card__price {
    color: #111827;
}

/* Price with conversion styles */
.price-with-conversion {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.price-main {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    line-height: 1.2;
}

.price-references {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
    font-weight: 400;
    line-height: 1.3;
}

.price-ref {
    color: #6b7280;
}

.price-ref-separator {
    color: #d1d5db;
    font-size: 10px;
}

.price-negotiable {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.price-free {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

/* Item card specific price styles */
.item-card .price-with-conversion .price-main {
    font-size: 18px;
    font-weight: 700;
    color: #111827;
}

.item-card .price-references {
    font-size: 12px;
}

.item-card:hover .price-main {
    color: #111827;
}

/* Small card variations */
.item-card--small .price-with-conversion .price-main {
    font-size: 16px;
}

.item-card--small .price-references {
    font-size: 11px;
    gap: 4px;
}

/* Profile listings price styles */
.profile-listings .item-card .price-with-conversion .price-main {
    font-size: 20px;
}

.profile-listings .item-card .price-references {
    font-size: 12px;
}

.item-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #6b7280;
}

.item-card__location {
    display: flex;
    align-items: center;
    gap: 4px;
}

.item-card__location .material-icons {
    font-size: 16px;
}

.item-card__category {
    font-size: 12px;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.item-card__actions {
    position: absolute;
    top: 8px;
    right: 8px;
}

.favorite-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.favorite-btn:hover {
    color: #06b6d4;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 8px rgba(6, 182, 212, 0.2);
}

.favorite-btn.active {
    color: #ff1e00;
    background: rgba(6, 182, 212, 0.1);
    box-shadow: 0 2px 4px rgba(6, 182, 212, 0.2);
}


/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 32px 0;
    padding: 20px 0;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #6b7280;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    height: 40px;
    box-sizing: border-box;
}

.pagination-btn:hover {
    background: #f9fafb;
    border-color: #4f46e5;
    color: #4f46e5;
}

.pagination-btn .material-icons {
    font-size: 18px;
}

.pagination-info {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

/* Auth Pages - Updated to match main page */
.auth-page {
    padding: 24px 0;
    background: #ffffff;
    min-height: calc(100vh - 140px);
}

.auth-container {
    max-width: 1366px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    min-height: calc(100vh - 188px);
    padding-top: 40px;
}

.auth-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 400px;
}

/* Benefits card - same style as auth-card */
.auth-benefits-card {
    max-width: 500px;
    flex: 1;
}

/* Verify Email Layout - Two cards side by side */
.auth-page .auth-container {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    max-width: 1000px;
    margin: 0 auto;
}

.auth-page .auth-card:first-child {
    margin-top: 0;
}

.auth-page .auth-benefits-card {
    margin-top: 0;
}

/* Benefits list styling - Compact */
.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid #f3f4f6;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.benefit-item:hover {
    border-color: #4f46e5;
    background: #faf5ff;
}

.benefit-icon {
    font-size: 20px;
    color: #4f46e5;
    flex-shrink: 0;
}

.benefit-text {
    font-size: 14px;
    color: #111827;
    font-weight: 500;
}

.auth-card__header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 16px;
    color: #6b7280;
}

/* Forms */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 12px;
    color: #9ca3af;
    font-size: 18px;
    z-index: 1;
}

.form-input {
    width: 100%;
    padding: 12px 12px 12px 40px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(167, 58, 253, 0.1);
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: color 0.2s ease;
}

.password-toggle:hover {
    color: #6b7280;
}

.form-help {
    font-size: 12px;
    color: #6b7280;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    color: #111827;
    line-height: 1.4;
}

.checkbox-text {
    flex: 1;
    white-space: normal;
    word-wrap: break-word;
    line-height: 1.4;
}

.checkbox-input {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-input:checked + .checkbox-custom {
    background: #4f46e5;
    border-color: #4f46e5;
}

.checkbox-input:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
}

/* Free checkbox styles */
.checkbox-label--free {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    transition: all 0.2s ease;
}

.checkbox-label--free:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.checkbox-label--free .checkbox-text {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: #374151;
}

.checkbox-label--free .checkbox-text .material-icons {
    font-size: 20px;
    color: #059669;
}

.checkbox-label--free .checkbox-input:checked ~ .checkbox-text {
    color: #059669;
    font-weight: 600;
}

.checkbox-label--free .checkbox-input:checked + .checkbox-custom {
    background: #059669;
    border-color: #059669;
}

/* User Type Selection */
.user-type-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.user-type-option {
    cursor: pointer;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.2s ease;
    background: #ffffff;
}

.user-type-option:hover {
    border-color: #4f46e5;
    background: #f9fafb;
}

.user-type-option input[type="radio"] {
    display: none;
}

.user-type-option:has(input[type="radio"]:checked) {
    border-color: #4f46e5;
    background: #eef2ff;
}

.user-type-option__content {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.user-type-option__content .material-icons {
    font-size: 28px;
    color: #6b7280;
    transition: color 0.2s ease;
}

.user-type-option:has(input[type="radio"]:checked) .user-type-option__content .material-icons {
    color: #4f46e5;
}

.user-type-option__text {
    flex: 1;
}

.user-type-option__title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.user-type-option__description {
    font-size: 13px;
    color: #6b7280;
}

.user-type-option:has(input[type="radio"]:checked) .user-type-option__title {
    color: #4f46e5;
}

/* User Type Locked State */
.user-type-locked {
    margin-top: 8px;
}

.user-type-locked__notification {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    margin-bottom: 16px;
}

.user-type-locked__notification .material-icons {
    color: #92400e;
    font-size: 24px;
    margin-top: 2px;
}

.user-type-locked__text {
    flex: 1;
}

.user-type-locked__title {
    font-size: 14px;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 4px;
}

.user-type-locked__description {
    font-size: 13px;
    color: #b45309;
    line-height: 1.4;
}

.user-type-options--locked .user-type-option {
    cursor: default;
    position: relative;
}

.user-type-option--locked {
    opacity: 0.6;
    cursor: default !important;
}

.user-type-option--locked:hover {
    border-color: #e5e7eb;
    background: #ffffff;
    transform: none;
}

.user-type-option--active {
    border-color: #4f46e5;
    background: #eef2ff;
    opacity: 1;
}

.user-type-option--active .user-type-option__content .material-icons {
    color: #4f46e5;
}

.user-type-option--active .user-type-option__title {
    color: #4f46e5;
}

.user-type-option__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #059669;
    color: #ffffff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.user-type-option__badge .material-icons {
    font-size: 16px;
    color: #ffffff;
}

/* User Type Upgrade Info */
.user-type-upgrade-info {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    margin-top: 12px;
    background: #e0f2fe;
    border: 1px solid #0284c7;
    border-radius: 8px;
}

.user-type-upgrade-info .material-icons {
    color: #0369a1;
    font-size: 20px;
    margin-top: 1px;
}

.user-type-upgrade-info small {
    flex: 1;
    color: #075985;
    font-size: 13px;
    line-height: 1.5;
}

/* Verification Banner */
.verification-banner {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    border: 2px solid;
}

.verification-banner__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.verification-banner__icon .material-icons {
    font-size: 28px;
}

.verification-banner__content {
    flex: 1;
}

.verification-banner__title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.verification-banner__text {
    font-size: 14px;
    line-height: 1.6;
}

/* Verification Banner Variants */
.verification-banner--warning {
    background: #fef3c7;
    border-color: #f59e0b;
}

.verification-banner--warning .verification-banner__icon {
    background: #fbbf24;
}

.verification-banner--warning .verification-banner__icon .material-icons {
    color: #78350f;
}

.verification-banner--warning .verification-banner__title {
    color: #78350f;
}

.verification-banner--warning .verification-banner__text {
    color: #92400e;
}

.verification-banner--info {
    background: #dbeafe;
    border-color: #3b82f6;
}

.verification-banner--info .verification-banner__icon {
    background: #60a5fa;
}

.verification-banner--info .verification-banner__icon .material-icons {
    color: #1e3a8a;
}

.verification-banner--info .verification-banner__title {
    color: #1e40af;
}

.verification-banner--info .verification-banner__text {
    color: #1e3a8a;
}

.verification-banner--success {
    background: #d1fae5;
    border-color: #10b981;
}

.verification-banner--success .verification-banner__icon {
    background: #34d399;
}

.verification-banner--success .verification-banner__icon .material-icons {
    color: #064e3b;
}

.verification-banner--success .verification-banner__title {
    color: #065f46;
}

.verification-banner--success .verification-banner__text {
    color: #047857;
}

/* Company info section */
.company-info-section {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    margin-top: 8px;
}

.company-info-section__header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.company-info-section__header .material-icons {
    color: #4f46e5;
    font-size: 24px;
}

.company-info-section__title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

/* Company Verified Notice */
.company-verified-notice {
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.company-verified-notice__icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.company-verified-notice__icon .material-icons {
    color: #f59e0b;
    font-size: 20px;
}

.company-verified-notice__content {
    flex: 1;
}

.company-verified-notice__title {
    font-size: 14px;
    font-weight: 600;
    color: #92400e;
    margin: 0 0 4px 0;
}

.company-verified-notice__text {
    font-size: 13px;
    color: #92400e;
    line-height: 1.4;
    margin: 0;
}

/* Locked Form Inputs */
.form-input--locked {
    background: #f3f4f6 !important;
    color: #6b7280 !important;
    cursor: not-allowed !important;
    border-color: #d1d5db !important;
}

.form-input--locked:focus {
    border-color: #d1d5db !important;
    box-shadow: none !important;
}

.form-locked-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    color: #6b7280;
}

.form-locked-indicator .material-icons {
    font-size: 16px;
    color: #6b7280;
}

.company-document-preview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-top: 8px;
}

.company-document-preview__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #eef2ff;
    border-radius: 8px;
}

.company-document-preview__icon .material-icons {
    font-size: 28px;
    color: #4f46e5;
}

.company-document-preview__info {
    flex: 1;
}

.company-document-preview__name {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 4px;
}

.company-document-preview__meta {
    font-size: 12px;
    color: #6b7280;
}

.company-document-preview__actions {
    display: flex;
    gap: 8px;
}

.company-document-preview__btn {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 13px;
    background: #ffffff;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.company-document-preview__btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.company-document-preview__btn .material-icons {
    font-size: 16px;
}

.company-document-preview__btn--danger {
    color: #dc2626;
    border-color: #fca5a5;
}

.company-document-preview__btn--danger:hover {
    background: #fee2e2;
    border-color: #dc2626;
}

.company-verification-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
}

.company-verification-status--pending {
    background: #fef3c7;
    color: #92400e;
}

.company-verification-status--verified {
    background: #d1fae5;
    color: #065f46;
}

.company-verification-status--rejected {
    background: #fee2e2;
    color: #991b1b;
}

.company-verification-status .material-icons {
    font-size: 16px;
}

/* Tablet styles for user type and company fields */
@media (min-width: 769px) and (max-width: 1023px) {
    .user-type-options {
        gap: 12px;
    }
    
    .user-type-option {
        padding: 14px;
    }
    
    .user-type-option__content .material-icons {
        font-size: 24px;
    }
    
    .user-type-option__title {
        font-size: 14px;
    }
    
    .user-type-option__description {
        font-size: 12px;
    }
    
    .company-info-section {
        padding: 18px;
    }
    
    .company-info-section__title {
        font-size: 15px;
    }
    
    .company-document-preview {
        padding: 10px;
    }
    
    .company-document-preview__icon {
        width: 44px;
        height: 44px;
    }
    
    .company-document-preview__icon .material-icons {
        font-size: 24px;
    }
    
    .company-document-preview__name {
        font-size: 13px;
    }
    
    .company-document-preview__meta {
        font-size: 11px;
    }
    
    .company-verification-status {
        font-size: 12px;
        padding: 5px 10px;
    }
}

/* Alerts */
.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 20px;
}

.create-item-form .alert {
    margin-bottom: 16px;
    margin-top: 0;
}

.alert--error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.alert .material-icons {
    font-size: 18px;
}

/* Auth Links */
.auth-link {
    color: #4f46e5;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: #6057f5;
}

.auth-link--button {
    background: none;
    border: none;
    color: #4f46e5;
    cursor: pointer;
    text-decoration: underline;
    font-size: inherit;
    font-family: inherit;
    padding: 0;
    margin: 0;
    font-weight: 500;
    transition: color 0.2s ease;
}

.auth-link--button:hover {
    color: #6057f5;
    text-decoration: underline;
}

.auth-card__footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.auth-card__footer p {
    margin-bottom: 8px;
    color: #6b7280;
}

/* Footer */
.footer {
    background: #111827;
    color: #d1d5db;
    padding: 48px 0 24px;
}

.footer__content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 48px;
    margin-bottom: 32px;
}

.footer__logo .logo {
    height: 40px;
    margin-bottom: 16px;
}

.footer__description {
    font-size: 14px;
    line-height: 1.6;
    color: #9ca3af;
}

.footer__links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}

.footer__column h4 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 16px;
}

.footer__column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer__column a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer__column a:hover {
    color: #4f46e5;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #374151;
    border-radius: 8px;
    color: #9ca3af;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: #4f46e5;
    color: #ffffff;
}

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    border-top: 1px solid #374151;
    font-size: 14px;
    flex-wrap: wrap;
    gap: 16px;
}

.footer__copyright .footer__owner {
    margin-top: 8px;
    color: #9ca3af;
    font-size: 12px;
    line-height: 1.4;
}

.footer__copyright .footer__owner p {
    margin: 0;
}

.footer__copyright .footer__owner p:first-child {
    font-weight: 500;
    margin-bottom: 2px;
}

.footer__legal {
    display: flex;
    gap: 24px;
}

.footer__legal a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer__legal a:hover {
    color: #4f46e5;
}

/* Large Desktop Styles */
@media (min-width: 1200px) {
    .listings-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 24px;
    }
    
    .item-card--small {
        min-width: calc(20% - 19px); /* 5 карточек в ряд на больших экранах */
        max-width: calc(20% - 19px);
    }
    
}

/* Desktop Styles - Ensure cards are visible */
@media (min-width: 769px) {
    .listings-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 20px !important;
        margin-bottom: 32px !important;
        width: 100% !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        min-height: 200px !important;
    }
    
    
    .item-card {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: relative !important;
        width: 100% !important;
        background: #ffffff !important;
        border: 1px solid #e5e7eb !important;
        border-radius: 12px !important;
        overflow: hidden !important;
        transition: all 0.2s ease !important;
    }
    
    .main-content {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        min-height: 400px !important;
    }
    
    .latest-listings {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        min-height: 400px !important;
    }
    
    .home-layout {
        display: grid !important;
        grid-template-columns: 280px 1fr !important;
        gap: 32px !important;
        min-height: 600px !important;
    }
    
    /* Category page specific styles */
    .category-content {
        display: grid !important;
        grid-template-columns: 280px 1fr !important;
        gap: 32px !important;
        min-height: 600px !important;
    }
    
    .category-main {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        min-height: 400px !important;
    }
    
    .category-listings {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        min-height: 400px !important;
    }
    
    /* Force visibility for all listing-related elements */
    .item-card__image,
    .item-card__content,
    .item-card__title,
    .item-card__price,
    .item-card__meta {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Tablet Styles */
@media (min-width: 481px) and (max-width: 768px) {
    .listings-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
    
    /* Profile List View - Tablet */
    .profile-listings .item-card__image {
        width: 150px;
        min-width: 150px;
        height: 100px;
    }
    
    .profile-listings .item-card__title {
        font-size: 16px;
    }
    
    .profile-listings .item-card__price {
        font-size: 18px;
    }
    
    /* Profile Action Buttons - Tablet */
    .profile-listings .item-card__actions-top {
        top: 10px;
        right: 10px;
        gap: 4px;
    }
    
    .action-icon-btn {
        width: 36px;
        height: 36px;
    }
    
    .action-icon-btn .material-icons {
        font-size: 18px;
    }
    
    .profile-listings .item-card__actions-bottom {
        bottom: 12px;
        right: 12px;
        gap: 6px;
    }
    
    .profile-listings .item-card__actions-bottom .btn {
        padding: 6px 10px;
        font-size: 10px;
        min-height: 30px;
    }
    
    .profile-listings .item-card__actions-bottom .btn .material-icons {
        font-size: 14px;
    }
    
    .profile-listings .item-card__actions-bottom .btn--bump-disabled {
        font-size: 9px;
        padding: 6px 8px;
    }
    
    .item-card--small {
        min-width: calc(33.333% - 11px); /* 3 карточки в ряд */
        max-width: calc(33.333% - 11px);
    }
    
    /* Tablet filter styles */
    .filter-row {
        flex-direction: row;
        gap: 8px;
    }
    
    .filter-input {
        max-width: 50%;
        flex: 1;
    }
    
    /* Tablet radio button styles */
    .checkbox-group .checkbox-custom {
        width: 18px;
        height: 18px;
    }
    
    .checkbox-group input[type="radio"]:checked + .checkbox-custom::after {
        width: 6px;
        height: 6px;
    }
    
    
}

/* Large Desktop Styles for Categories Menu */
@media (min-width: 1200px) {
    .categories-dropdown__menu .subcategories-grid {
        column-count: 4 !important;
        column-gap: 24px;
        padding-bottom: 60px; /* Safe zone for large desktop scrolling */
    }
}

/* Tablet Styles for Categories Menu */
@media (min-width: 769px) and (max-width: 1024px) {
    .categories-dropdown__menu .subcategories-grid {
        column-count: 4 !important;
        column-gap: 16px;
        padding-bottom: 50px; /* Safe zone for tablet scrolling */
    }
}

/* Responsive Design - Tablet only */
@media (min-width: 769px) and (max-width: 1023px) {
    .container {
        padding: 0 16px;
    }
    
    .categories-hero {
        padding: 32px 20px;
        margin-bottom: 32px;
        border-radius: 20px;
    }
    
    .floating-shape {
        opacity: 0.7;
    }
    
    .floating-shape--1,
    .floating-shape--3,
    .floating-shape--6 {
        display: none;
    }
    
    
    .categories-grid-hero {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .category-card-hero {
        padding: 14px;
    }
    
    .category-card-hero__icon {
        width: 36px;
        height: 36px;
    }
    
    .category-card-hero__icon .material-icons {
        font-size: 18px;
    }
    
    .category-card-hero__title {
        font-size: 15px;
    }
    
    .category-card-hero__count {
        font-size: 12px;
    }
    
    /* Mobile header styles moved to mobile.css */
    
    .header__search {
        order: 3;
        width: 100%;
        max-width: none;
    }
    
    .search-input-group {
        flex-direction: column;
        gap: 8px;
        max-width: none;
        width: 100%;
    }
    
    .search-dropdown {
        position: fixed;
        top: 60px;
        left: 16px;
        right: 16px;
        max-height: 60vh;
        border-radius: 8px;
        border: 1px solid #e5e7eb;
    }
    
    
    /* Mobile header actions styles moved to mobile.css */
    
    .action-label {
        display: none;
    }
    
    /* Header icons on tablet */
    .header-action-btn {
        width: 36px;
        height: 36px;
        border-radius: 6px;
    }
    
    .header-action-btn .material-icons {
        font-size: 18px;
    }
    
    .notification-badge {
        min-width: 16px;
        height: 16px;
        font-size: 10px;
        border-radius: 8px;
    }
    
    /* Tablet header actions styles moved to mobile.css */
    
    .user-menu__dropdown {
        min-width: 200px;
        right: -10px;
    }
    
    .user-menu__toggle {
        width: 36px;
        height: 36px;
        padding: 6px;
    }
    
    .user-avatar {
        width: 28px;
        height: 28px;
    }
    
    .user-avatar .material-icons {
        font-size: 18px;
    }
    
    .user-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }
    
    .categories-dropdown__menu {
        position: absolute;
        top: 48px;
        left: -20px;
        right: -20px;
        width: 100vw;
        max-width: 100vw;
        border-radius: 0;
        border-left: none;
        border-right: none;
        height: calc(100vh - 48px);
    }
    
    .categories-mega-menu {
        flex-direction: column;
        height: 100%;
    }
    
    .categories-mega-menu__left {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e5e7eb;
        max-height: 40vh;
        overflow-y: auto;
        padding-bottom: 40px; /* Safe zone for mobile scrolling */
    }
    
    .category-link {
        padding: 6px 12px;
        min-height: 36px;
    }
    
    .category-link .material-icons {
        font-size: 16px;
        margin-right: 8px;
    }
    
    .category-name {
        font-size: 13px;
    }
    
    
    .categories-mega-menu__right {
        flex: 1;
        height: 60vh;
        overflow-y: auto;
        padding-bottom: 40px; /* Safe zone for mobile scrolling */
    }
    
    .categories-dropdown__menu .subcategories-grid {
        column-count: 3 !important;
        column-gap: 16px;
        padding-bottom: 40px; /* Safe zone for mobile scrolling */
    }
    
    .subcategory-group__title {
        font-size: 15px;
        margin-bottom: 6px;
    }
    
    .section-link {
        font-size: 13px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        padding: 16px;
    }
    
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    /* Profile List View - Mobile */
    .profile-listings .item-card {
        flex-direction: column;
        min-height: auto;
    }
    
    .profile-listings .item-card__link {
        flex-direction: column;
    }
    
    .profile-listings .item-card__image {
        width: 100%;
        min-width: 100%;
        height: 150px;
    }
    
    .profile-listings .item-card__content {
        padding: 12px;
    }
    
    .profile-listings .item-card__title {
        font-size: 16px;
        margin-bottom: 6px;
    }
    
    .profile-listings .item-card__price {
        font-size: 18px;
        margin-bottom: 6px;
    }
    
    .profile-listings .item-card__meta {
        gap: 12px;
        margin-bottom: 6px;
        font-size: 13px;
    }
    
    .profile-listings .item-card__stats {
        gap: 16px;
    }
    
    /* Profile Action Buttons - Mobile */
    .profile-listings .item-card__actions-top {
        top: 8px;
        right: 8px;
        gap: 4px;
    }
    
    .action-icon-btn {
        width: 32px;
        height: 32px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    }
    
    .action-icon-btn .material-icons {
        font-size: 16px;
    }
    
    .profile-listings .item-card__actions-bottom {
        bottom: 8px;
        right: 8px;
        gap: 4px;
    }
    
    .profile-listings .item-card__actions-bottom .btn {
        padding: 6px 8px;
        font-size: 9px;
        min-height: 28px;
    }
    
    .profile-listings .item-card__actions-bottom .btn .material-icons {
        font-size: 14px;
    }
    
    .profile-listings .item-card__actions-bottom .btn--bump-disabled {
        font-size: 8px;
        padding: 6px;
    }
    
    .profile-listings .item-card__actions-bottom .btn--bump-disabled .material-icons {
        font-size: 12px;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    
    .footer__legal {
        justify-content: center;
        order: 3;
    }
    
    .auth-card {
        margin: 0 16px;
        padding: 24px;
    }
    
    .items-scroll {
        gap: 12px;
    }
    
    .items-scroll-container {
        margin: 0 -8px;
        padding: 0 8px;
    }
    
    .pagination {
        flex-direction: column;
        gap: 12px;
    }
    
    .pagination-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .item-card--small {
        min-width: calc(50% - 8px); /* 2 карточки в ряд на мобильных */
        max-width: calc(50% - 8px);
    }
    
    
    
    /* Уменьшить градиент на мобильных */
    .items-scroll-container::after {
        width: 40px;
    }
    
    /* Home Layout Mobile */
    .home-layout {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-top: 16px;
    }
    
    .leftside {
        position: static;
        order: 2;
        top: auto;
        padding: 20px;
    }
    
    .main-content {
        order: 1;
    }
    
    .filters-title {
        font-size: 16px;
    }
    
    .category-filter-item {
        padding: 10px 12px;
    }
    
    .categories-mega-menu__left {
        max-height: 160px;
    }
    
    .category-link {
        padding: 4px 10px;
        min-height: 32px;
    }
    
    .category-link .material-icons {
        font-size: 14px;
        margin-right: 6px;
    }
    
    .category-name {
        font-size: 12px;
    }
    
    
    .category-filter-item .material-icons {
        font-size: 18px;
    }
    
    /* Mobile filter styles */
    .filter-checkbox {
        padding: 6px 0;
    }
    
    .filter-checkbox .checkmark {
        width: 18px;
        height: 18px;
    }
    
    .filter-checkbox input[type="radio"]:checked + .checkmark::after {
        width: 8px;
        height: 8px;
    }
    
    /* Mobile price inputs */
    .filter-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .filter-input {
        max-width: 100%;
        width: 100%;
    }
    
}

@media (max-width: 480px) {
    .categories-hero {
        padding: 24px 16px;
        margin-bottom: 24px;
        border-radius: 16px;
    }
    
    .floating-shape {
        opacity: 0.5;
    }
    
    .floating-shape--1,
    .floating-shape--3,
    .floating-shape--5,
    .floating-shape--6 {
        display: none;
    }
    
    
    .category-card-hero {
        padding: 12px;
    }
    
    .category-card-hero__icon {
        width: 32px;
        height: 32px;
    }
    
    .category-card-hero__icon .material-icons {
        font-size: 16px;
    }
    
    .category-card-hero__title {
        font-size: 14px;
    }
    
    .category-card-hero__count {
        font-size: 11px;
    }
    
    /* Mobile header content styles moved to mobile.css */
    
    .user-menu__dropdown {
        min-width: 180px;
        right: -15px;
    }
    
    .user-menu__toggle {
        width: 32px;
        height: 32px;
        padding: 4px;
    }
    
    .user-avatar {
        width: 24px;
        height: 24px;
    }
    
    .user-avatar .material-icons {
        font-size: 16px;
    }
    
    .user-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }
    
    .header__logo .logo {
        height: 32px;
    }
    
    .categories-dropdown__toggle {
        padding: 8px 12px;
        font-size: 13px;
        height: 40px;
    }
    
    .search-input {
        padding: 8px 12px;
        font-size: 13px;
        height: 40px;
    }
    
    .search-btn {
        padding: 8px 12px;
        height: 40px;
    }
    
    .voice-search-btn {
        right: 40px;
        width: 36px;
    }
    
    .voice-search-btn .material-icons {
        font-size: 18px;
    }
    
    /* Header icons on mobile */
    .header-action-btn {
        width: 32px;
        height: 32px;
        border-radius: 6px;
    }
    
    .header-action-btn .material-icons {
        font-size: 16px;
    }
    
    .notification-badge {
        min-width: 14px;
        height: 14px;
        font-size: 9px;
        border-radius: 7px;
        border-width: 1px;
    }
    
    /* Mobile header actions styles moved to mobile.css */
    
    .item-card {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .btn {
        padding: 6px 12px;
        font-size: 13px;
        height: 40px;
    }
    
    .btn--create-ad .material-icons {
        font-size: 16px;
        margin-right: 0;
        vertical-align: middle;
        line-height: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .btn--create-ad span:not(.material-icons) {
        vertical-align: middle;
        line-height: 1;
        display: inline-flex;
        align-items: center;
    }
    
    .listings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .item-card {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .item-card__image {
        height: 150px;
    }
    
    .item-card--small .item-card__image {
        height: 100px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .home-page {
        padding: 24px 0;
    }
    
    /* Mobile Home Layout */
    .home-layout {
        gap: 16px;
        margin-top: 16px;
    }
    
    .leftside {
        padding: 16px;
        margin: 0 -16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .filters-title {
        font-size: 14px;
        margin-bottom: 16px;
    }
    
    .filter-group {
        margin-bottom: 20px;
    }
    
    .filter-group__title {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .filter-row {
        flex-direction: column;
        gap: 8px;
    }
    
    .filter-input {
        max-width: 100%;
        width: 100%;
    }
    
    /* Mobile radio button styles */
    .checkbox-group .checkbox-custom {
        width: 20px;
        height: 20px;
    }
    
    .checkbox-group input[type="radio"]:checked + .checkbox-custom::after {
        width: 8px;
        height: 8px;
    }
    
    .category-filter-item {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    
    /* Very small screens filter styles */
    .filter-checkbox {
        padding: 8px 0;
    }
    
    .filter-checkbox .checkmark {
        width: 20px;
        height: 20px;
    }
    
    .filter-checkbox input[type="radio"]:checked + .checkmark::after {
        width: 10px;
        height: 10px;
    }
    
    .filter-input {
        padding: 10px 12px;
        font-size: 16px; /* Prevent zoom on iOS */
        max-width: 100%;
        width: 100%;
    }
    
    .filter-select {
        padding: 10px 12px;
        font-size: 16px; /* Prevent zoom on iOS */
        width: 100%;
    }
    
    /* Mobile region selector styles */
    .header__region {
        order: 2;
        width: 100%;
        margin-bottom: 12px;
    }
    
    .region-selector__toggle {
        width: 100%;
        justify-content: center;
        padding: 0;
        font-size: 16px; /* Prevent zoom on iOS */
        height: auto;
    }
    
    .region-dropdown {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0.95);
        width: 90%;
        max-width: 400px;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .region-dropdown.active {
        transform: translate(-50%, -50%) scale(1);
    }
    
    
    /* Very small screens radio button styles */
    .checkbox-group .checkbox-custom {
        width: 22px;
        height: 22px;
    }
    
    .checkbox-group input[type="radio"]:checked + .checkbox-custom::after {
        width: 10px;
        height: 10px;
    }
}

/* Item Detail Page Styles */
.item-detail-page {
    padding: 24px 0;
    background: #ffffff;
    min-height: calc(100vh - 140px);
}

.item-detail-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    margin-top: 24px;
}

.item-detail-main {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
}

.item-images__main {
    margin-bottom: 16px;
    border-radius: 8px;
    overflow: hidden;
}

.item-images__main img {
    width: 100%;
    height: 400px;
    object-fit: contain;
}

.item-images__thumbnails {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0;
}

.item-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
    line-height: 1.3;
}

.item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.item-meta__item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b7280;
    font-size: 14px;
}

.item-meta__item .material-icons {
    font-size: 18px;
}

.item-price {
    margin-bottom: 32px;
}

/* Product price on detail page */
.product-price {
    margin-bottom: 24px;
}

.product-price .price-with-conversion {
    gap: 6px;
}

.product-price .price-main {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
}

.product-price .price-references {
    font-size: 15px;
    gap: 8px;
}

.product-price .price-negotiable {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

.product-price .price-free {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
}

.item-description,
.item-details {
    margin-bottom: 32px;
}

.item-description h3,
.item-details h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
}

/* Map Section */
.map-section {
    margin-top: 24px;
    margin-bottom: 32px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.map-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.map-section h3 .material-icons {
    font-size: 20px;
    margin-right: 8px;
    color: #4f46e5;
}

/* VIN Section */
.vin-section {
    margin-top: 24px;
    margin-bottom: 32px;
    padding: 20px;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.vin-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
}

.vin-section h3 .material-icons {
    font-size: 20px;
    margin-right: 8px;
    color: #4f46e5;
}

.vin-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #ffffff;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    margin-bottom: 8px;
}

.vin-number {
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    letter-spacing: 1px;
    flex: 1;
}

.btn-copy-vin {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.btn-copy-vin:hover {
    background: #4f46e5;
    border-color: #4f46e5;
    color: white;
}

.btn-copy-vin .material-icons {
    font-size: 20px;
    color: inherit;
}

.vin-help {
    display: block;
    color: #6b7280;
    font-size: 12px;
    margin-top: 4px;
}

.map-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden;
    border-radius: 8px;
}

#property-map {
    width: 100% !important;
    max-width: 100% !important;
    height: 300px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.map-info {
    margin-top: 12px;
    padding: 12px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.map-coordinates {
    font-size: 13px;
    color: #6b7280;
    font-family: 'Courier New', monospace;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.map-coordinates a {
    color: #4f46e5;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.map-coordinates a:hover {
    color: #4338ca;
    text-decoration: underline;
}

.map-coordinates .material-icons {
    font-size: 16px;
    vertical-align: middle;
}

.item-detail-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* Create Item Page Styles */

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-row--category {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
}

@media (min-width: 769px) and (max-width: 1023px) {
    .form-row--category {
        grid-template-columns: 1fr;
    }
}

.form-label.required::after {
    content: ' *';
    color: #ef4444;
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
    background: #ffffff;
}

.form-select:focus {
    border-color: #6057f5;
    box-shadow: 0 0 0 3px rgba(167, 58, 253, 0.1);
}

.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

.form-textarea:focus {
    border-color: #6057f5;
    box-shadow: 0 0 0 3px rgba(167, 58, 253, 0.1);
}

.form-file {
    width: 100%;
    padding: 12px 16px;
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
    background: #f9fafb;
}

.form-file:focus,
.form-file:hover {
    border-color: #6057f5;
    background: #faf5ff;
}

.image-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.image-preview {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.remove-image:hover {
    background: rgba(0, 0, 0, 0.9);
}

.contact-info {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
}

.contact-info__text {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 14px;
    color: #111827;
}

.contact-info__list {
    list-style: none;
    margin-bottom: 16px;
}

.contact-info__list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 14px;
    color: #111827;
}

.contact-info__list .material-icons {
    font-size: 18px;
    color: #6b7280;
}

.contact-info__link {
    color: #6057f5;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.contact-info__link:hover {
    color: #6057f5;
}

/* Contact Method Options */
.contact-method-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.contact-method-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    transition: all 0.2s ease;
    background: #ffffff;
}

.contact-method-option:hover {
    border-color: #4f46e5;
    background: #faf5ff;
}

.contact-method-option input[type="radio"] {
    display: none;
}

.contact-method-option input[type="radio"]:checked + .contact-method-option__content {
    color: #4f46e5;
}

.contact-method-option input[type="radio"]:checked ~ .contact-method-option {
    border-color: #4f46e5;
    background: #faf5ff;
}

.contact-method-option:has(input[type="radio"]:checked) {
    border-color: #4f46e5;
    background: #faf5ff;
}

.contact-method-option__content {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.contact-method-option__content .material-icons {
    font-size: 24px;
    color: #6b7280;
    flex-shrink: 0;
}

.contact-method-option:has(input[type="radio"]:checked) .contact-method-option__content .material-icons {
    color: #4f46e5;
}

.contact-method-option__title {
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.contact-method-option__description {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.4;
}

.contact-method-option:has(input[type="radio"]:checked) .contact-method-option__title {
    color: #4f46e5;
}

/* Contact Warning */
.contact-warning {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fef3c7;
    border: 1px solid #f97316;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.contact-warning__icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-warning__icon .material-icons {
    font-size: 20px;
    color: #f97316;
}

.contact-warning__content {
    flex: 1;
}

.contact-warning__title {
    font-weight: 600;
    color: #92400e;
    margin-bottom: 4px;
    font-size: 14px;
}

.contact-warning__text {
    font-size: 14px;
    color: #92400e;
    line-height: 1.5;
}

/* Responsive Design for Contact Method - Tablet */
@media (min-width: 769px) and (max-width: 1023px) {
    .contact-method-options {
        gap: 8px;
    }
    
    .contact-method-option {
        padding: 12px;
    }
    
    .contact-method-option__content {
        gap: 8px;
    }
    
    .contact-method-option__content .material-icons {
        font-size: 20px;
    }
    
    .contact-method-option__title {
        font-size: 14px;
    }
    
    .contact-method-option__description {
        font-size: 13px;
    }
    
    .contact-warning {
        padding: 12px;
        gap: 8px;
    }
    
    .contact-warning__icon .material-icons {
        font-size: 18px;
    }
    
    .contact-warning__title {
        font-size: 13px;
    }
    
    .contact-warning__text {
        font-size: 13px;
    }
}

.form-actions {
    display: flex;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

/* Responsive for item detail - Tablet */
@media (min-width: 769px) and (max-width: 1023px) {
    .item-detail-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .item-detail-main {
        padding: 20px;
    }
    
    .item-title {
        font-size: 24px;
    }
    
    .item-meta {
        flex-direction: column;
        gap: 12px;
    }
    
    .item-images__main img {
        height: 300px;
    }
    
    .product-price .price-main {
        font-size: 24px;
    }
    
    .product-price .price-references {
        font-size: 14px;
    }
}

/* Items Grid - Same as Listings Grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

/* Large Desktop Styles for Items Grid */
@media (min-width: 1200px) {
    .items-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 24px;
    }
}

/* Desktop Styles for Items Grid */
@media (min-width: 769px) {
    .items-grid {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 20px !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* Tablet Styles for Items Grid */
@media (min-width: 481px) and (max-width: 768px) {
    .items-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }
}

/* Tablet Styles for Items Grid */
@media (min-width: 769px) and (max-width: 1023px) {
    .items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

/* Small Mobile Styles for Items Grid */
@media (max-width: 480px) {
    .items-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Category Page Styles */
.category-page {
    padding: 24px 0;
    background: #ffffff;
    min-height: calc(100vh - 140px);
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    padding: 12px 0;
}

.breadcrumb-link {
    color: #4f46e5;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-link:hover {
    color: #4f46e5;
    text-decoration: underline;
}

.breadcrumb-current {
    color: #6b7280;
    font-weight: 500;
}

.breadcrumbs .material-icons {
    font-size: 16px;
    color: #9ca3af;
}

.category-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
}

/* Sidebar */
.category-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.filters-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
}

.filters-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.filters-title .material-icons {
    font-size: 20px;
    color: #6057f5;
}

.filter-group {
    margin-bottom: 24px;
}

.filter-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-inputs input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.price-inputs input:focus {
    border-color: #6057f5;
}

.price-inputs span {
    color: #6b7280;
    font-weight: 500;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-group .checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #111827;
    cursor: pointer;
    padding: 4px 0;
}

/* Radio button styles for filters */
.checkbox-group input[type="radio"] {
    display: none;
}

.checkbox-group .checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 50%; /* Круглая форма для радиокнопок */
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-group input[type="radio"]:checked + .checkbox-custom {
    background: #4f46e5;
    border-color: #4f46e5;
}

.checkbox-group input[type="radio"]:checked + .checkbox-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #ffffff;
}

.checkbox-group .checkbox-label:hover .checkbox-custom {
    border-color: #4f46e5;
}

/* Filter Checkboxes for Home Page */
.filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #111827;
    cursor: pointer;
    padding: 4px 0;
}

.filter-checkbox input[type="radio"] {
    display: none;
}

.filter-checkbox .checkmark {
    width: 16px;
    height: 16px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.filter-checkbox input[type="radio"]:checked + .checkmark {
    border-color: #4f46e5;
    background-color: #4f46e5;
}

.filter-checkbox input[type="radio"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #ffffff;
}

.filter-checkbox:hover .checkmark {
    border-color: #4f46e5;
}

.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
}

/* Main Content */
.category-main {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.sort-select:focus {
    border-color: #6057f5;
}

/* Subcategories */
.subcategories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.subcategory-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.subcategory-card:hover {
    border-color: #6057f5;
    box-shadow: 0 2px 8px rgba(167, 58, 253, 0.1);
}

.subcategory-card__title {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 4px;
}

.subcategory-card__count {
    font-size: 13px;
    color: #6b7280;
}

.subcategory-card .material-icons {
    color: #9ca3af;
    transition: color 0.2s ease;
}

.subcategory-card:hover .material-icons {
    color: #6057f5;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 64px 32px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.empty-state__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.empty-state__icon .material-icons {
    font-size: 40px;
}

.empty-state__title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.empty-state__text {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive for Category Page - Tablet */
@media (min-width: 769px) and (max-width: 1023px) {
    .category-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .category-sidebar {
        position: static;
        order: 2;
    }
    
    .category-main {
        order: 1;
    }
    
    .filters-card {
        padding: 20px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .subcategories-grid {
        grid-template-columns: 1fr;
    }
}




/* Responsive for Auth Pages */
@media (max-width: 1366px) {
    .auth-container {
        max-width: 1200px;
    }
    
    .auth-page:has(.auth-benefits) .auth-container {
        max-width: 1200px;
    }
}

@media (max-width: 1200px) {
    .auth-container {
        max-width: 100%;
        padding: 0 16px;
        flex-direction: column;
        align-items: center;
    }
    
    .auth-benefits-card {
        max-width: 400px;
        order: 2;
    }
    
    .auth-card:not(.auth-benefits-card) {
        order: 1;
    }
    
    /* Verify Email Layout - Stack on tablet */
    .auth-page .auth-container {
        flex-direction: column;
        gap: 20px;
        max-width: 500px;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .auth-page {
        padding: 16px 0;
    }
    
    .auth-container {
        padding: 0 12px;
        min-height: calc(100vh - 164px);
        gap: 24px;
        padding-top: 20px;
    }
    
    .auth-card {
        padding: 24px;
        max-width: 100%;
    }
    
    .auth-benefits-card {
        max-width: 100%;
    }
    
    /* Verify Email Layout - Stack on mobile */
    .auth-page .auth-container {
        flex-direction: column;
        gap: 16px;
        max-width: 100%;
    }
    
    .benefits-list {
        gap: 10px;
    }
    
    /* Tablet checkbox styles */
    .checkbox-text {
        white-space: normal;
        word-wrap: break-word;
    }
    
    .benefit-item {
        padding: 10px 12px;
    }
    
    .benefit-icon {
        font-size: 18px;
    }
    
    .benefit-text {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .auth-page {
        padding: 12px 0;
    }
    
    .auth-container {
        padding: 0 8px;
        gap: 20px;
        padding-top: 16px;
    }
    
    .auth-card {
        padding: 20px;
    }
    
    .auth-title {
        font-size: 24px;
    }
    
    /* Mobile checkbox styles */
    .checkbox-text {
        white-space: normal;
        word-wrap: break-word;
        line-height: 1.3;
    }
    
    .auth-subtitle {
        font-size: 14px;
    }
    
    .benefits-list {
        gap: 8px;
    }
    
    .benefit-item {
        padding: 10px 12px;
        flex-direction: row;
        text-align: left;
        gap: 8px;
    }
    
    .benefit-icon {
        font-size: 18px;
    }
    
    .benefit-text {
        font-size: 13px;
    }
}

/* Search Page Styles */
.search-page {
    padding: 24px 0;
    background: #ffffff;
    min-height: calc(100vh - 140px);
}

.search-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
}

/* Search Sidebar */
.search-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* Popular Searches */
.popular-searches {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
}

.popular-searches__title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
}

.popular-searches__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.search-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    color: #111827;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s ease;
}

.search-tag:hover {
    background: #6057f5;
    border-color: #6057f5;
    color: #ffffff;
}

/* Search Main Content */
.search-main {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

.sort-select:focus {
    border-color: #6057f5;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 64px 32px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.no-results__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
}

.no-results__icon .material-icons {
    font-size: 40px;
}

.no-results__title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.no-results__text {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 24px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.no-results__suggestions {
    text-align: left;
    max-width: 400px;
    margin: 0 auto 24px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
}

.no-results__suggestions h4 {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
}

.no-results__suggestions ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.no-results__suggestions li {
    font-size: 14px;
    color: #6b7280;
    position: relative;
    padding-left: 16px;
}

.no-results__suggestions li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #6057f5;
}

/* Search Tips */
.search-tips {
    text-align: center;
    padding: 64px 32px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.search-tips__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: #fef3c7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f97316;
}

.search-tips__icon .material-icons {
    font-size: 40px;
}

.search-tips__title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 24px;
}

.search-tips__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.tip {
    text-align: left;
    padding: 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.tip h4 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.tip p {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

/* Responsive for Create Item Page - Tablet */
@media (min-width: 769px) and (max-width: 1023px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 24px;
    }
    
    .form-section {
        padding: 20px;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

/* Responsive for Search Page - Tablet */
@media (min-width: 769px) and (max-width: 1023px) {
    .search-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .search-sidebar {
        position: static;
        order: 2;
    }
    
    .search-main {
        order: 1;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .search-tips__content {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 24px;
    }
}

/* Resend Section Styles */
.resend-section {
    margin-top: 24px;
    text-align: center;
}

.resend-text {
    margin-bottom: 12px;
    color: #6b7280;
    font-size: 14px;
}

.resend-timer {
    margin-top: 12px;
    padding: 8px 16px;
    background: #f3f4f6;
    border-radius: 6px;
    color: #6b7280;
    font-size: 14px;
}

.resend-timer--hidden {
    display: none;
}

.btn--hidden {
    display: none;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    max-width: 400px;
    animation: slideIn 0.3s ease;
    font-weight: 500;
}

.notification--success {
    border-color: #06b6d4;
    background: #f0fdf4;
    color: #065f46;
}

.notification--error {
    border-color: #ef4444;
    background: #fef2f2;
    color: #991b1b;
}

.notification--info {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #1e40af;
}

.notification-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-close:hover {
    background: rgba(0, 0, 0, 0.1);
}

.notification .material-icons {
    font-size: 20px;
}

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

/* Responsive notifications - Tablet */
@media (min-width: 769px) and (max-width: 1023px) {
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }
    
    @keyframes slideIn {
        from {
            transform: translateY(-100%);
            opacity: 0;
        }
        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
}

/* Code Input Styling */
#code {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 4px;
    font-family: 'Courier New', monospace;
}

#code:focus {
    letter-spacing: 4px;
}

/* Disabled Button Styles */
.btn--disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #f3f4f6 !important;
    border-color: #d1d5db !important;
    color: #9ca3af !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn--disabled:hover {
    background: #f3f4f6 !important;
    border-color: #d1d5db !important;
    color: #9ca3af !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Timer Animation */
.btn--disabled::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
    border-radius: inherit;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* ========================================
   PROFILE PAGE STYLES
   ======================================== */

/* Profile Page Layout */
.profile-page {
    padding: 40px 0;
    background: #ffffff;
    min-height: calc(100vh - 140px);
}

.profile-header {
    margin-bottom: 40px;
}

.profile-header .page-title {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.profile-header .page-subtitle {
    font-size: 16px;
    color: #6b7280;
}

/* Profile Content Layout */
.profile-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Hide mobile popup on desktop and tablet */
@media (min-width: 769px) {
    .mobile-ad-popup {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
        position: absolute !important;
        left: -9999px !important;
        top: -9999px !important;
    }
}

/* Profile Layout - Use same as item-detail */
.item-detail-content {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
    margin-top: 24px;
}

.item-detail-main {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
}

.item-detail-sidebar {
    position: sticky;
    top: 20px;
}

/* Profile Card */
.profile-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 32px;
}

.item-detail-sidebar .profile-card {
    margin-bottom: 0;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.item-detail-sidebar .profile-info {
    flex-direction: column;
    text-align: center;
    gap: 16px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

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

.profile-avatar .material-icons {
    font-size: 40px;
    color: #9ca3af;
}

.profile-details {
    flex: 1;
}

.item-detail-sidebar .profile-details {
    text-align: center;
}

.profile-name {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.item-detail-sidebar .profile-name {
    font-size: 20px;
    margin-bottom: 8px;
}

.profile-email,
.profile-phone {
    font-size: 16px;
    color: #6b7280;
    margin-bottom: 4px;
}

.item-detail-sidebar .profile-email,
.item-detail-sidebar .profile-phone {
    font-size: 14px;
    margin-bottom: 4px;
}

.profile-joined {
    font-size: 14px;
    color: #9ca3af;
}

.item-detail-sidebar .profile-joined {
    font-size: 12px;
    color: #9ca3af;
}

.profile-navigation {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.item-detail-sidebar .profile-navigation {
    gap: 8px;
    padding-top: 20px;
}

.profile-nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    transition: all 0.2s ease;
    position: relative;
}

.profile-nav-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #1f2937;
    text-decoration: none;
}

.profile-nav-btn.active {
    background: #4f46e5;
    border-color: #4f46e5;
    color: white;
}

.profile-nav-btn.active:hover {
    background: #4338ca;
    border-color: #4338ca;
    color: white;
}

.profile-nav-btn .material-icons {
    font-size: 20px;
    color: #6b7280;
}

.profile-nav-btn.active .material-icons {
    color: white;
}

.nav-label {
    flex: 1;
    font-weight: 500;
    font-size: 14px;
}

.nav-count {
    background: #e5e7eb;
    color: #374151;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.profile-nav-btn.active .nav-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.stat-number {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #6057f5;
    margin-bottom: 4px;
}

.item-detail-sidebar .stat-number {
    font-size: 20px;
    color: #4f46e5;
}

.stat-label {
    font-size: 14px;
    color: #6b7280;
}

.item-detail-sidebar .stat-label {
    font-size: 12px;
    color: #6b7280;
}

/* Profile Tabs */
.profile-tabs {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
}

.item-detail-main .profile-tabs {
    border: none;
    border-radius: 0;
    margin-bottom: 0;
}

.tab-nav {
    display: flex;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.tab-btn {
    flex: 1;
    padding: 16px 24px;
    background: none;
    border: none;
    font-size: 16px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.tab-btn:hover {
    color: #111827;
    background: #ffffff;
}

.tab-btn.active {
    color: #6057f5;
    background: #ffffff;
    border-bottom-color: #6057f5;
}

.tab-content {
    display: none;
    padding: 32px;
}

.tab-content.active {
    display: block;
}

.tab-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}

.tab-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
}

/* Ad Cards Management */
.item-card--manage {
    position: relative;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.item-card--manage:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Profile List View Styles */
.profile-listings {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.profile-listings .item-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    height: auto;
    min-height: 120px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    background: #ffffff;
}

.profile-listings .item-card:hover {
    border-color: rgba(79, 70, 229, 0.3);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.1);
}

.profile-listings .item-card__link {
    display: flex;
    flex-direction: row;
    width: 100%;
    text-decoration: none;
    color: inherit;
}

.profile-listings .item-card__image {
    width: 200px;
    min-width: 200px;
    overflow: hidden;
    background: #f3f4f6;
    position: relative;
}

.profile-listings .item-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-listings .item-card__content {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.profile-listings .item-card__title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.profile-listings .item-card:hover .item-card__title {
    color: #4f46e5;
}

.profile-listings .item-card__price {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.profile-listings .item-card__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 8px;
    font-size: 14px;
    color: #6b7280;
}

.profile-listings .item-card__location {
    display: flex;
    align-items: center;
    gap: 4px;
}

.profile-listings .item-card__location .material-icons {
    font-size: 16px;
}

.profile-listings .item-card__stats {
    display: flex;
    gap: 20px;
    margin-top: auto;
}

.profile-listings .stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #6b7280;
}

.profile-listings .stat .material-icons {
    font-size: 16px;
}

/* Top Right Actions (Edit & Delete Icons) */
.profile-listings .item-card__actions-top {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 6px;
    z-index: 3;
}

/* Icon Action Buttons */
.action-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #4f46e5;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.action-icon-btn .material-icons {
    font-size: 20px;
}

.action-icon-btn--edit {
    background: rgba(255, 255, 255, 0.95);
    color: #4f46e5;
}

.action-icon-btn--edit:hover {
    background: #4f46e5;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

.action-icon-btn--disabled {
    background: rgba(255, 255, 255, 0.95);
    color: #9ca3af;
    opacity: 0.6;
    cursor: not-allowed;
}

.action-icon-btn--disabled:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #9ca3af;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: none;
}

.action-icon-btn--delete {
    background: #ffffff;
    color: #4f46e5;
}

.action-icon-btn--delete:hover {
    background: #4f46e5;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
}

/* Bottom Right Actions (Bump Buttons) */
.profile-listings .item-card__actions-bottom {
    position: absolute;
    bottom: 16px;
    right: 16px;
    display: flex;
    flex-direction: row;
    gap: 8px;
    z-index: 2;
}

/* Bump Action Buttons (Bottom Right) */
.profile-listings .item-card__actions-bottom .btn {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-decoration: none;
    min-height: 32px;
    white-space: nowrap;
    position: relative;
    letter-spacing: 0.3px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.profile-listings .item-card__actions-bottom .btn .material-icons {
    font-size: 16px;
    position: relative;
    z-index: 1;
}

.profile-listings .item-card__actions-bottom .btn span:not(.material-icons) {
    position: relative;
    z-index: 1;
}

.profile-listings .item-card__actions-bottom .btn:active:not(:disabled) {
    transform: translateY(0);
}

/* Bump Button Styles */
.profile-listings .item-card__actions-bottom .btn--bump {
    background: #ffffff;
    color: #4f46e5;
    border: 1px solid #4f46e5;
    position: relative;
    overflow: hidden;
}

.profile-listings .item-card__actions-bottom .btn--bump::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
}

.profile-listings .item-card__actions-bottom .btn--bump:hover::before {
    left: 100%;
}

.profile-listings .item-card__actions-bottom .btn--bump:hover {
    background: #4f46e5;
    color: #ffffff;
}

/* Favorite Remove Button Styles */
.profile-listings .item-card__actions-bottom .btn--favorite-remove {
    background: linear-gradient(135deg, #4f46e5 0%, #6057f5 100%);
    color: #ffffff;
    border: none;
    position: relative;
    overflow: hidden;
}

.profile-listings .item-card__actions-bottom .btn--favorite-remove::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.profile-listings .item-card__actions-bottom .btn--favorite-remove:hover::before {
    left: 100%;
}

.profile-listings .item-card__actions-bottom .btn--favorite-remove:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4f46e5 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.5);
}

.profile-listings .item-card__actions-bottom .btn--bump-disabled {
    background: rgba(79, 70, 229, 0.15);
    color: #4f46e5;
    cursor: not-allowed;
    font-size: 10px;
    padding: 6px 10px;
    opacity: 0.8;
}

.profile-listings .item-card__actions-bottom .btn--bump-disabled:hover {
    background: rgba(79, 70, 229, 0.15);
    color: #4f46e5;
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.profile-listings .item-card__actions-bottom .btn--bump-disabled .material-icons {
    animation: pulse-icon 2s ease-in-out infinite;
}

@keyframes pulse-icon {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}

/* Modal Styles */
.modal {
    display: none;
}

.modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10000 !important;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: #ffffff !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
    max-width: 400px !important;
    width: 90% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    animation: slideIn 0.3s ease !important;
    position: relative !important;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

.modal-close {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #111827;
}

.modal-body {
    padding: 20px 24px;
}

/* Phone Modal Body Specific */
.phone-modal .modal-body {
    padding: 0;
}

.modal-body p {
    margin: 0 0 12px 0;
    color: #4b5563;
    line-height: 1.5;
}

.modal-warning {
    color: #dc2626 !important;
    font-weight: 500;
}

.modal-info {
    color: #3b82f6 !important;
    font-weight: 500;
    background: #eff6ff;
    padding: 12px;
    border-radius: 6px;
    margin-top: 12px;
}

.modal-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 12px 20px 16px;
    border-top: 1px solid #e5e7eb;
}

/* Phone Modal Footer Specific */
.phone-modal .modal-footer {
    justify-content: center;
    padding: 16px 20px;
    border-top: none;
    flex-direction: column;
    gap: 12px;
}

.phone-modal .modal-footer .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid #22c55e;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 400;
    font-size: 16px;
    transition: all 0.2s ease;
    background: #22c55e;
    color: #ffffff;
    height: auto;
}

.phone-modal .modal-footer .btn:hover {
    background: #16a34a;
    color: #ffffff;
}

.phone-modal-disclaimer {
    margin: 0;
    font-size: 13px;
    color: #6b7280;
    text-align: center;
    line-height: 1.4;
}
    
    /* Desktop Map Styles - Hide mobile iframe and button */
    .mobile-map-iframe {
        display: none;
    }
    
    .mobile-open-maps-btn {
        display: none;
    }

/* Phone Modal Styles */
.phone-modal-number {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

.phone-modal-number .material-icons {
    font-size: 20px;
    color: #4f46e5;
    flex-shrink: 0;
}

.phone-number-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    overflow: hidden;
}

.phone-modal-number span:not(.material-icons) {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
}

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

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

.item-card__badge--inactive {
    background: #6b7280;
    color: #ffffff;
}

.item-card__stats {
    display: flex;
    gap: 16px;
    margin-top: 8px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #6b7280;
}

.stat .material-icons {
    font-size: 20px;
}

.item-card__actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
    text-decoration: none;
}

.action-btn--edit {
    color: #3b82f6;
}

.action-btn--edit:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

.action-btn--delete {
    color: #ef4444;
}

.action-btn--delete:hover {
    background: #fef2f2;
    color: #dc2626;
}

.action-btn .material-icons {
    font-size: 18px;
}

/* Settings Form */
.settings-form {
    max-width: 600px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.settings-section {
    margin-top: 32px;
    padding: 32px;
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.settings-section:first-child {
    margin-top: 0;
    border-top: none;
    padding-top: 32px;
}

.settings-section h4 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-section h4 .material-icons {
    font-size: 20px;
    color: #4f46e5;
}

.settings-form .form-group {
    margin-bottom: 24px;
}

.settings-form .form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 8px;
}

.settings-form .form-label.required::after {
    content: ' *';
    color: #ef4444;
}

.settings-form .form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.2s ease;
    background: #ffffff;
}

.settings-form .form-input:focus {
    outline: none;
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.settings-form .form-input:invalid {
    border-color: #ef4444;
}

.settings-form .form-help {
    display: block;
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

.settings-form .form-help.error {
    color: #ef4444;
}

.settings-form .form-help.success {
    color: #06b6d4;
}

.settings-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.settings-form .form-row.single {
    grid-template-columns: 1fr;
}

.settings-form .form-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.settings-form .btn {
    min-width: 140px;
}

.avatar-upload {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.avatar-preview {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f9fafb;
}

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

.avatar-preview .material-icons {
    font-size: 32px;
    color: #9ca3af;
}

.avatar-upload-info {
    flex: 1;
}

.avatar-upload-info h5 {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 4px;
}

.avatar-upload-info p {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 8px;
}

.avatar-upload-info .btn {
    min-width: auto;
    padding: 8px 16px;
    font-size: 14px;
}

.password-strength {
    margin-top: 8px;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.password-strength-bar.weak {
    background: #ef4444;
    width: 25%;
}

.password-strength-bar.fair {
    background: #f97316;
    width: 50%;
}

.password-strength-bar.good {
    background: #3b82f6;
    width: 75%;
}

.password-strength-bar.strong {
    background: #06b6d4;
    width: 100%;
}

.password-strength-text {
    font-size: 12px;
    margin-top: 4px;
    font-weight: 500;
}

.password-strength-text.weak {
    color: #ef4444;
}

.password-strength-text.fair {
    color: #f97316;
}

.password-strength-text.good {
    color: #3b82f6;
}

.password-strength-text.strong {
    color: #06b6d4;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ffffff;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #06b6d4;
    z-index: 1000;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInRight 0.3s ease;
}

.notification--error {
    border-left-color: #ef4444;
}

.notification--warning {
    border-left-color: #f97316;
}

.notification--info {
    border-left-color: #3b82f6;
}

.notification .material-icons {
    font-size: 20px;
    color: #06b6d4;
}

.notification--error .material-icons {
    color: #ef4444;
}

.notification--warning .material-icons {
    color: #f97316;
}

.notification--info .material-icons {
    color: #3b82f6;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
}

.notification-message {
    font-size: 13px;
    color: #6b7280;
}

.notification-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.notification-close:hover {
    background: #f3f4f6;
    color: #6b7280;
}

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

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-group .form-input {
    padding-right: 48px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.password-toggle:hover {
    color: #6b7280;
    background: #f3f4f6;
}

.password-toggle .material-icons {
    font-size: 20px;
}

.account-info {
    background: #f9fafb;
    border-radius: 8px;
    padding: 20px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

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

.info-label {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
}

.info-value {
    font-size: 14px;
    color: #111827;
    font-weight: 600;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge--verified {
    background: #d1fae5;
    color: #065f46;
}

.status-badge--unverified {
    background: #fef3c7;
    color: #92400e;
}

.status-badge .material-icons {
    font-size: 16px;
}

/* Profile Responsive Styles - Tablet */
@media (min-width: 769px) and (max-width: 1023px) {
    .item-detail-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .item-detail-main {
        padding: 20px;
    }
    
    .item-detail-sidebar {
        position: static;
        order: -1; /* Show sidebar first on mobile */
    }
    
    .item-detail-sidebar .profile-info {
        flex-direction: row;
        text-align: left;
        gap: 16px;
    }
    
    .item-detail-sidebar .profile-details {
        text-align: left;
    }
    
    .item-detail-sidebar .profile-navigation {
        gap: 8px;
    }
    
    /* Phone Modal Tablet Styles */
    .phone-modal .modal-body {
        padding: 14px 16px !important;
    }
    
    .phone-modal .modal-footer {
        padding: 10px 16px 14px !important;
    }
    
    .phone-modal-number {
        padding: 14px 16px !important;
        max-width: 280px !important;
    }
    
    .phone-modal-number span:not(.material-icons) {
        font-size: 16px !important;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .profile-content {
        margin: 0 16px;
    }
    
    .profile-card {
        padding: 24px;
    }
    
    .profile-info {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .profile-navigation {
        gap: 16px;
    }
    
    .tab-nav {
        flex-direction: column;
    }
    
    .tab-content {
        padding: 24px;
    }
    
    .tab-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 600px) {
    .item-detail-sidebar .profile-info {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .item-detail-sidebar .profile-details {
        text-align: center;
    }
    
    .item-detail-sidebar .profile-navigation {
        gap: 6px;
    }
}

/* Settings Form Responsive Styles - Tablet */
@media (min-width: 769px) and (max-width: 1023px) {
    .settings-form {
        max-width: 100%;
        margin: 0 16px;
    }
    
    .settings-section {
        padding: 24px 20px;
        margin: 0 16px 24px 16px;
    }
    
    .settings-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .settings-form .form-actions {
        flex-direction: column;
    }
    
    .settings-form .btn {
        min-width: auto;
        width: 100%;
    }
    
    .avatar-upload {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .avatar-preview {
        width: 100px;
        height: 100px;
    }
    
    .notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .settings-section {
        padding: 20px 16px;
        margin: 0 8px 20px 8px;
    }
    
    .settings-section h4 {
        font-size: 16px;
    }
    
    .avatar-preview {
        width: 80px;
        height: 80px;
    }
    
    .avatar-preview .material-icons {
        font-size: 28px;
    }
    
    /* Phone Modal Mobile Styles */
    .phone-modal .modal-body {
        padding: 12px 16px !important;
    }
    
    .phone-modal .modal-footer {
        padding: 8px 16px 12px !important;
    }
    
    .phone-modal-info {
        padding: 12px 0 !important;
    }
    
    .phone-modal-number {
        padding: 12px 16px !important;
        gap: 8px !important;
        max-width: 260px !important;
    }
    
    .phone-modal-number .material-icons {
        font-size: 18px !important;
    }
    
    .phone-modal-number span:not(.material-icons) {
        font-size: 14px !important;
    }
    
    .phone-modal .modal-content {
        width: 95% !important;
        max-width: 95% !important;
    }
    
    .phone-modal .modal-footer .btn {
        height: 40px !important;
        padding: 8px 16px !important;
        font-size: 14px !important;
    }
}

/* ========================================
   MESSAGES PAGE STYLES
   ======================================== */

/* Messages Page Layout */
.messages-page {
    padding: 40px 0;
    background: #ffffff;
    height: calc(100vh - 77px);
    overflow: hidden;
}

.messages-page .container {
    height: 100%;
    max-width: 1366px;
    padding: 0 24px;
}

.messages-header {
    display: none;
}

.messages-header .page-title {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
}

/* Messages Layout - Two Column */
.messages-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 0;
    max-width: 1366px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    height: 100%;
    min-height: 100%;
}

/* Left Sidebar - Conversations */
.conversations-sidebar {
    display: flex;
    flex-direction: column;
    border-right: 1px solid #e5e7eb;
    background: #f9fafb;
    height: 100%;
    overflow: hidden;
}

.conversations-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
    flex-shrink: 0;
}

.conversations-title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.conversations-count {
    background: #4f46e5;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.conversations-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
    min-height: 0;
}

.conversations-list::-webkit-scrollbar {
    width: 6px;
}

.conversations-list::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.conversations-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.conversations-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Conversation Item */
.conversation-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.conversation-item:hover {
    background: #ffffff;
}

.conversation-item.active {
    background: #ffffff;
    border-left: 3px solid #4f46e5;
}

.conversation-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: #e5e7eb;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.conversation-avatar .material-icons {
    font-size: 24px;
    color: #9ca3af;
}

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

.conversation-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 4px;
    padding-right: 40px; /* Space for unread indicator */
}

.conversation-name {
    font-size: 15px;
    font-weight: 600;
    color: #111827;
    margin: 0;
}

.conversation-time {
    font-size: 12px;
    color: #9ca3af;
}

.conversation-ad-title {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #4f46e5;
    margin-bottom: 4px;
}

.conversation-ad-title .material-icons {
    font-size: 14px;
}

.conversation-preview {
    font-size: 13px;
    color: #6b7280;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-unread {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #ef4444;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    z-index: 2;
}

/* Empty Conversations State */
.empty-conversations {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
}

.empty-conversations__icon {
    width: 80px;
    height: 80px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.empty-conversations__icon .material-icons {
    font-size: 40px;
    color: #9ca3af;
}

.empty-conversations__title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.empty-conversations__text {
    font-size: 14px;
    color: #6b7280;
    max-width: 300px;
    margin: 0;
}

/* Right Content - Messages Area */
.messages-content {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    height: 100%;
    overflow: hidden;
}

/* Chat Header */
.chat-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.chat-back-btn {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.chat-back-btn:hover {
    background: #f3f4f6;
    color: #4f46e5;
}

/* Chat Actions Menu */
.chat-actions-menu {
    position: relative;
    margin-left: auto;
}

.chat-actions-toggle {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.chat-actions-toggle:hover {
    background: #f3f4f6;
    color: #4f46e5;
}

.chat-actions-toggle .material-icons {
    font-size: 24px;
}

.chat-actions-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.chat-actions-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-action-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: #111827;
    font-size: 14px;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
}

.chat-action-item:hover {
    background: #f9fafb;
    color: #4f46e5;
}

.chat-action-item:hover .material-icons {
    color: #4f46e5;
}

.chat-action-item .material-icons {
    font-size: 20px;
    color: #6b7280;
    transition: color 0.2s ease;
}

.chat-action-item--danger {
    color: #6b7280;
}

.chat-action-item--danger:hover {
    background: #fef2f2;
    color: #dc2626;
}

.chat-action-item--danger:hover .material-icons {
    color: #dc2626;
}

.chat-action-divider {
    margin: 8px 0;
    border: none;
    border-top: 1px solid #e5e7eb;
}

.chat-header__user {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.chat-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    background: #e5e7eb;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.chat-avatar .material-icons {
    font-size: 24px;
    color: #9ca3af;
}

.chat-user-info {
    flex: 1;
}

.chat-user-name {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0 0 4px 0;
}

.chat-ad-link {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #4f46e5;
    text-decoration: none;
    transition: color 0.2s ease;
}

.chat-ad-link:hover {
    color: #4f46e5;
    text-decoration: underline;
}

.chat-ad-link .material-icons {
    font-size: 16px;
}

/* Messages Area */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 24px;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
    min-height: 0;
}

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

.chat-messages::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Message Bubble */
.message {
    display: flex;
    gap: 12px;
    max-width: 70%;
    align-items: flex-end;
}

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

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

.message-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    background: #e5e7eb;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.message-avatar .material-icons {
    font-size: 18px;
    color: #9ca3af;
}

.message-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 100%;
}

.message--sent .message-content {
    align-items: flex-end;
}

.message--received .message-content {
    align-items: flex-start;
}

.message-bubble {
    padding: 12px 16px;
    border-radius: 16px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.message--sent .message-bubble {
    background: linear-gradient(135deg, #4f46e5 0%, #6057f5 100%);
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.message--received .message-bubble {
    background: #ffffff;
    color: #111827;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 4px;
}

.message-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
}

.message-image {
    max-width: 300px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
}

.message-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.message-image img {
    width: 100%;
    height: auto;
    display: block;
}

.message-image--error {
    cursor: default;
    border-color: #fca5a5;
    background: #fef2f2;
}

.message-image--error:hover {
    transform: none;
    box-shadow: none;
}

.message-image-error {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    color: #dc2626;
}

.message-image-error .material-icons {
    font-size: 20px;
    flex-shrink: 0;
}

.message-image-error p {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
}

.message-time {
    font-size: 11px;
    color: #9ca3af;
    padding: 0 4px;
}

/* Chat Blocked Warning */
.chat-blocked-warning {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    text-align: center;
    background: #fef3c7;
    border: 1px solid #f97316;
    border-radius: 12px;
    margin: 24px;
}

.chat-blocked-warning--danger {
    background: #fef2f2;
    border-color: #dc2626;
}

.chat-blocked-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.chat-blocked-warning .chat-blocked-icon .material-icons {
    font-size: 32px;
    color: #f97316;
}

.chat-blocked-warning--danger .chat-blocked-icon .material-icons {
    color: #dc2626;
}

.chat-blocked-title {
    font-size: 18px;
    font-weight: 600;
    color: #92400e;
    margin: 0 0 8px 0;
}

.chat-blocked-warning--danger .chat-blocked-title {
    color: #7f1d1d;
}

.chat-blocked-text {
    font-size: 14px;
    color: #92400e;
    margin: 0;
    max-width: 400px;
    line-height: 1.5;
}

.chat-blocked-warning--danger .chat-blocked-text {
    color: #7f1d1d;
}

/* Empty Messages State */
.empty-messages {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    flex: 1;
}

.empty-messages__icon {
    width: 80px;
    height: 80px;
    background: #f3f4f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.empty-messages__icon .material-icons {
    font-size: 40px;
    color: #9ca3af;
}

.empty-messages__title {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.empty-messages__text {
    font-size: 14px;
    color: #6b7280;
}

/* No Conversation Selected */
.no-conversation-selected {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    padding: 48px 24px;
}

.no-conversation-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #4f46e5 0%, #6057f5 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.no-conversation-icon .material-icons {
    font-size: 48px;
    color: #ffffff;
}

.no-conversation-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
}

.no-conversation-text {
    font-size: 16px;
    color: #6b7280;
    max-width: 400px;
}

/* Chat Input Form */
.chat-input-form {
    border-top: 1px solid #e5e7eb;
    background: #ffffff;
    flex-shrink: 0;
}

.chat-input-form--disabled {
    background: #f9fafb;
}

.chat-input-blocked {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    color: #dc2626;
    font-size: 14px;
    font-weight: 500;
}

.chat-input-blocked .material-icons {
    font-size: 20px;
}

.chat-input-container {
    padding: 16px 24px;
}

.chat-image-preview {
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.chat-image-preview img {
    max-width: 200px;
    max-height: 150px;
    display: block;
}

.chat-image-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.chat-image-remove:hover {
    background: rgba(0, 0, 0, 0.9);
}

.chat-image-remove .material-icons {
    font-size: 18px;
}

.chat-input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 8px 12px;
    transition: all 0.2s ease;
}

.chat-input-wrapper:focus-within {
    border-color: #4f46e5;
    background: #ffffff;
}

.chat-attach-btn,
.chat-send-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.chat-attach-btn:hover {
    background: #f3f4f6;
    color: #4f46e5;
}

.chat-send-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #6057f5 100%);
    color: #ffffff;
}

.chat-send-btn:hover {
    background: linear-gradient(135deg, #4f46e5 0%, #4f46e5 100%);
    transform: scale(1.05);
}

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

.chat-send-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.5;
    resize: none;
    background: transparent;
    color: #111827;
    padding: 6px 0;
    max-height: 120px;
    min-height: 24px;
}

.chat-input::placeholder {
    color: #9ca3af;
}

.chat-input-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 12px;
    color: #6b7280;
}

.chat-input-hint .material-icons {
    font-size: 14px;
    color: #9ca3af;
}

/* Responsive Messages Page */
@media (max-width: 1024px) {
    .messages-layout {
        grid-template-columns: 320px 1fr;
    }
    
    .message {
        max-width: 80%;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    .messages-page {
        padding: 16px 0;
        height: calc(100vh - 77px);
    }
    
    .messages-page .container {
        padding: 0 16px;
    }
    
    .messages-header {
        display: none;
    }
    
    .messages-header .page-title {
        font-size: 24px;
    }
    
    .messages-layout {
        grid-template-columns: 1fr;
        border-radius: 12px;
        border: 1px solid #e5e7eb;
        height: 100%;
    }
    
    /* Blocked warning responsive */
    .chat-blocked-warning {
        margin: 16px;
        padding: 24px 16px;
    }
    
    .chat-blocked-icon {
        width: 56px;
        height: 56px;
    }
    
    .chat-blocked-icon .material-icons {
        font-size: 28px;
    }
    
    .chat-blocked-title {
        font-size: 16px;
    }
    
    .chat-blocked-text {
        font-size: 13px;
    }
    
    .chat-input-blocked {
        padding: 14px;
        font-size: 13px;
    }
    
    .chat-input-blocked .material-icons {
        font-size: 18px;
    }
    
    .conversations-sidebar {
        display: none;
        height: 100%;
        overflow: hidden;
    }
    
    /* Show sidebar when no conversation selected */
    .messages-layout:not(.has-conversation) .conversations-sidebar {
        display: flex;
    }
    
    .messages-layout:not(.has-conversation) .messages-content {
        display: none;
    }
    
    .conversations-header {
        padding: 16px;
        flex-shrink: 0;
    }
    
    .conversations-list {
        min-height: 0;
        overflow-y: auto;
    }
    
    .conversation-item {
        padding: 12px 16px;
    }
    
    .conversation-unread {
        top: 8px;
        right: 8px;
        min-width: 18px;
        height: 18px;
        font-size: 10px;
    }
    
    .conversation-header {
        padding-right: 35px; /* Space for unread indicator on mobile */
    }
    
    .conversation-avatar {
        width: 44px;
        height: 44px;
    }
    
    .chat-back-btn {
        display: flex;
    }
    
    .chat-header {
        padding: 16px;
        flex-shrink: 0;
    }
    
    .chat-header__user {
        gap: 12px;
    }
    
    .chat-avatar {
        width: 40px;
        height: 40px;
    }
    
    /* Chat actions responsive */
    .chat-actions-toggle {
        width: 36px;
        height: 36px;
    }
    
    .chat-actions-toggle .material-icons {
        font-size: 22px;
    }
    
    .chat-actions-dropdown {
        min-width: 220px;
        right: 0;
    }
    
    .chat-action-item {
        padding: 10px 14px;
        font-size: 13px;
        gap: 10px;
    }
    
    .chat-action-item .material-icons {
        font-size: 18px;
    }
    
    .chat-messages {
        padding: 16px;
        min-height: 0;
        overflow-y: auto;
    }
    
    .message {
        max-width: 85%;
    }
    
    .chat-input-container {
        padding: 12px 16px;
    }
    
    .chat-input-wrapper {
        padding: 6px 10px;
    }
    
    .chat-input-form {
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .messages-page {
        padding: 12px 0;
        height: calc(100vh - 77px);
    }
    
    .messages-page .container {
        padding: 0 12px;
    }
    
    .messages-header .page-title {
        font-size: 20px;
    }
    
    .messages-layout {
        border-radius: 12px;
        height: 100%;
        min-height: 100%;
    }
    
    /* Blocked warning mobile */
    .chat-blocked-warning {
        margin: 12px;
        padding: 20px 12px;
    }
    
    .chat-blocked-icon {
        width: 48px;
        height: 48px;
    }
    
    .chat-blocked-icon .material-icons {
        font-size: 24px;
    }
    
    .chat-blocked-title {
        font-size: 15px;
    }
    
    .chat-blocked-text {
        font-size: 12px;
    }
    
    .chat-input-blocked {
        padding: 12px;
        font-size: 12px;
        gap: 6px;
    }
    
    .chat-input-blocked .material-icons {
        font-size: 16px;
    }
    
    .conversations-sidebar {
        height: 100%;
        overflow: hidden;
    }
    
    .conversations-list {
        min-height: 0;
        overflow-y: auto;
    }
    
    .conversation-item {
        padding: 10px 12px;
    }
    
    .conversation-unread {
        top: 6px;
        right: 6px;
        min-width: 16px;
        height: 16px;
        font-size: 9px;
    }
    
    .conversation-header {
        padding-right: 30px; /* Space for unread indicator on small mobile */
    }
    
    .conversation-avatar {
        width: 40px;
        height: 40px;
    }
    
    .conversation-name {
        font-size: 14px;
    }
    
    .conversation-preview {
        font-size: 12px;
    }
    
    .messages-content {
        height: 100%;
        overflow: hidden;
    }
    
    .chat-header {
        padding: 12px;
        flex-shrink: 0;
        gap: 8px;
    }
    
    .chat-avatar {
        width: 36px;
        height: 36px;
    }
    
    .chat-user-name {
        font-size: 15px;
    }
    
    .chat-ad-link {
        font-size: 12px;
    }
    
    /* Chat actions mobile */
    .chat-actions-toggle {
        width: 32px;
        height: 32px;
    }
    
    .chat-actions-toggle .material-icons {
        font-size: 20px;
    }
    
    .chat-actions-dropdown {
        min-width: 200px;
        right: -8px;
    }
    
    .chat-action-item {
        padding: 10px 12px;
        font-size: 13px;
        gap: 8px;
    }
    
    .chat-action-item .material-icons {
        font-size: 18px;
    }
    
    .chat-messages {
        padding: 12px;
        gap: 12px;
        min-height: 0;
        overflow-y: auto;
    }
    
    .message {
        max-width: 90%;
    }
    
    .message-avatar {
        width: 28px;
        height: 28px;
    }
    
    .message-bubble {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .message-image {
        max-width: 250px;
    }
    
    .message-image-error {
        padding: 10px;
        gap: 6px;
    }
    
    .message-image-error .material-icons {
        font-size: 18px;
    }
    
    .message-image-error p {
        font-size: 11px;
    }
    
    .chat-input-container {
        padding: 10px 12px;
    }
    
    .chat-input-form {
        flex-shrink: 0;
    }
    
    .chat-input-hint {
        font-size: 11px;
    }
}

/* Chat Image Modal */
.chat-image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.chat-image-modal.active {
    display: flex;
}

.chat-image-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.chat-image-modal__content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.chat-image-modal__close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.chat-image-modal__close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.chat-image-modal__close .material-icons {
    font-size: 24px;
}

.chat-image-modal__image {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Responsive Chat Image Modal - Tablet */
@media (min-width: 769px) and (max-width: 1023px) {
    .chat-image-modal__close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
    
    .chat-image-modal__close .material-icons {
        font-size: 20px;
    }
    
    .chat-image-modal__image {
        max-width: 95vw;
        max-height: 80vh;
    }
}

@media (max-width: 480px) {
    .chat-image-modal__close {
        width: 36px;
        height: 36px;
    }
    
    .chat-image-modal__close .material-icons {
        font-size: 18px;
    }
}

/* Support Chat Styles */
.support-conversation {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border: none;
    margin-bottom: 8px;
}

.support-conversation:hover {
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
    color: white;
}

.support-conversation.active {
    background: linear-gradient(135deg, #3730a3 0%, #5b21b6 100%);
    color: white;
}

.support-avatar {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.support-avatar .material-icons {
    color: white;
}

.support-conversation .conversation-name {
    color: white;
    font-weight: 600;
}

.support-conversation .conversation-time {
    color: rgba(255, 255, 255, 0.8);
}

.support-conversation .conversation-preview {
    color: rgba(255, 255, 255, 0.9);
}

.chat-avatar .material-icons {
    color: #4f46e5;
}

.support-conversation .conversation-avatar {
    background: rgba(255, 255, 255, 0.2);
}

.support-conversation .conversation-avatar .material-icons {
    color: white;
}

/* Support message avatar styles */
.message-avatar .material-icons {
    color: #4f46e5;
    font-size: 20px;
}

.message-avatar {
    background: #f3f4f6;
    color: #4f46e5;
}

/* ============================================
   AD CREATE/EDIT PAGE STYLES
   ============================================ */

/* Create/Edit Ad Page Layout */
.create-item-page {
    padding: 24px 0;
    background: #f8f9fa;
    min-height: calc(100vh - 140px);
}

.create-item-header {
    text-align: center;
    margin-bottom: 40px;
}

.create-item-form {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.form-sections {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Category Form Fields Enhancement */
.form-group--category {
    position: relative;
}

.form-group--category .form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.form-group--category .form-select {
    border: 2px solid #e5e7eb;
    transition: all 0.2s ease;
}

.form-group--category .form-select:focus {
    border-color: #4f46e5;
    box-shadow: 0 0 0 3px rgba(142, 49, 196, 0.1);
}

.form-group--category .form-select:disabled {
    background-color: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
}

.category-loading {
    position: relative;
}

.category-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 12px;
    width: 16px;
    height: 16px;
    border: 2px solid #e5e7eb;
    border-top: 2px solid #4f46e5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translateY(-50%);
}

/* Existing Images Grid */
.existing-images {
    margin-bottom: 24px;
}

.existing-images h4 {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 16px;
}

.images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
}

.image-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e5e7eb;
}

.image-item .image-preview {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.image-item .remove-image {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.image-item .remove-image:hover {
    background: rgba(239, 68, 68, 1);
}

.image-item .remove-image .material-icons {
    font-size: 18px;
}

.image-item--marked-delete {
    opacity: 0.5;
    border: 2px solid #ef4444 !important;
}

/* New Images Preview */
.file-count {
    font-size: 14px;
    color: #4f46e5;
    font-weight: 500;
    margin-top: 8px;
    padding: 8px 12px;
    background: #f3f4f6;
    border-radius: 6px;
    border-left: 3px solid #4f46e5;
    display: none;
}

.file-count:not(:empty) {
    display: block;
}

.preview-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e5e7eb;
}

.preview-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.preview-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.preview-remove:hover {
    background: rgba(239, 68, 68, 1);
}

.preview-remove .material-icons {
    font-size: 18px;
}

/* Map Section Styles */
#yandex-map {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    position: relative;
}

#map-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f9fafb;
    color: #6b7280;
    font-size: 14px;
}

#map-loading .material-icons {
    margin-right: 8px;
    animation: spin 1s linear infinite;
}

.map-coordinates {
    flex: 1;
}

.map-coordinates .material-icons {
    font-size: 14px;
    vertical-align: middle;
}

/* Form Group Utilities */
.form-group--mt-20 {
    margin-top: 20px;
}

.form-group--mb-0 {
    margin-bottom: 0;
}

.form-row--mt-12 {
    margin-top: 12px;
}

.btn--mt-8 {
    margin-top: 8px;
}

/* Map Error States */
.map-error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 14px;
    text-align: center;
    padding: 20px;
}

.map-error-container__message {
    margin-bottom: 10px;
}

.map-error-container__iframe {
    border: none;
    border-radius: 8px;
}

.map-error-container__text {
    font-size: 12px;
}

/* Dynamic State Classes */
.hidden {
    display: none !important;
}

.visible {
    display: block !important;
}

/* Map Coordinates Color States */
.map-coordinates--loading {
    color: #6b7280;
}

.map-coordinates--success {
    color: #059669;
}

.map-coordinates--error {
    color: #ef4444;
}

/* Form Field Disabled State */
.form-input--disabled,
.form-select--disabled {
    background-color: #f9fafb !important;
}

/* ===== DRAG AND DROP IMAGE SORTING STYLES ===== */

/* Sortable container */
.images-grid--sortable {
    position: relative;
}

/* Sortable image items */
.image-item--sortable {
    cursor: grab;
    transition: all 0.3s ease;
    position: relative;
    user-select: none;
}

.image-item--sortable:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.image-item--sortable:active {
    cursor: grabbing;
}

/* Dragging state */
.image-item--dragging {
    opacity: 0.6;
    transform: rotate(5deg) scale(1.05);
    z-index: 1000;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    cursor: grabbing !important;
}

/* Drop zone indicators */
.image-item--drag-over {
    border: 2px dashed #3b82f6;
    background-color: rgba(59, 130, 246, 0.1);
    transform: scale(1.02);
}

/* Sortable placeholder */
.sortable-placeholder {
    background-color: rgba(59, 130, 246, 0.1);
    border: 2px dashed #3b82f6;
    border-radius: 8px;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 8px;
    transition: all 0.3s ease;
}

.sortable-placeholder::before {
    content: "Drop here";
    color: #3b82f6;
    font-size: 14px;
    font-weight: 500;
}

/* Drag handle */
.image-item__drag-handle {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px;
    cursor: grab;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-item--sortable:hover .image-item__drag-handle {
    opacity: 1;
}

.image-item__drag-handle:active {
    cursor: grabbing;
}

.image-item__drag-handle .material-icons {
    font-size: 16px;
}

/* Sort indicator */
.image-item__sort-indicator {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(59, 130, 246, 0.9);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-item--sortable:hover .image-item__sort-indicator {
    opacity: 1;
}

/* Drag and drop feedback */
.drag-drop-feedback {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.drag-drop-feedback--show {
    opacity: 1;
}

/* Loading state for drag operations */
.image-item--updating {
    opacity: 0.7;
    pointer-events: none;
}

.image-item--updating::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.image-item--updating::before {
    content: "Updating...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #3b82f6;
    font-size: 12px;
    font-weight: 500;
    z-index: 1;
}

/* Sortable preview container */
.preview-item--sortable {
    cursor: grab;
    transition: all 0.3s ease;
    position: relative;
    user-select: none;
}

.preview-item--sortable:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.preview-item--sortable:active {
    cursor: grabbing;
}

.preview-item--dragging {
    opacity: 0.6;
    transform: rotate(5deg) scale(1.05);
    z-index: 1000;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    cursor: grabbing !important;
}

.preview-item--drag-over {
    border: 2px dashed #3b82f6;
    background-color: rgba(59, 130, 246, 0.1);
    transform: scale(1.02);
}

.preview-item__drag-handle {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px;
    cursor: grab;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-item--sortable:hover .preview-item__drag-handle {
    opacity: 1;
}

.preview-item__drag-handle:active {
    cursor: grabbing;
}

.preview-item__drag-handle .material-icons {
    font-size: 16px;
}

.preview-item__sort-indicator {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(59, 130, 246, 0.9);
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.preview-item--sortable:hover .preview-item__sort-indicator {
    opacity: 1;
}

/* Disabled state for non-sortable items */
.image-item--not-sortable,
.preview-item--not-sortable {
    cursor: default;
}

.image-item--not-sortable:hover,
.preview-item--not-sortable:hover {
    transform: none;
    box-shadow: none;
}

/* Animation for successful sort */
@keyframes sortSuccess {
    0% { background-color: rgba(34, 197, 94, 0.2); }
    100% { background-color: transparent; }
}

.image-item--sort-success,
.preview-item--sort-success {
    animation: sortSuccess 0.5s ease-out;
}

/* ========================================
   CATEGORY LIMIT INFO STYLES
   ======================================== */

.category-limit-info {
    margin: 16px 0;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.category-limit-info--warning {
    background: #fef2f2;
    border-color: #fecaca;
    border-left-color: #ef4444;
}

.category-limit-info__content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.category-limit-info__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: #3b82f6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.category-limit-info--warning .category-limit-info__icon {
    background: #ef4444;
}

.category-limit-info__icon .material-icons {
    font-size: 16px;
    color: white;
}

.category-limit-info__text {
    flex: 1;
}

.category-limit-info__title {
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 4px;
}

.category-limit-info--warning .category-limit-info__title {
    color: #7f1d1d;
}

.category-limit-info__description {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
    line-height: 1.4;
}

.category-limit-info--warning .category-limit-info__description {
    color: #92400e;
}

#limit-status-text {
    font-weight: 600;
    color: #ef4444;
}

.category-limit-info--warning #limit-status-text {
    color: #dc2626;
}

.category-limit-info__upgrade {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6b7280;
    background: #f1f5f9;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.category-limit-info--warning .category-limit-info__upgrade {
    background: #fef3c7;
    border-color: #fbbf24;
    color: #92400e;
}

.category-limit-info__upgrade .material-icons {
    font-size: 14px;
}

.category-limit-info__upgrade a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
}

.category-limit-info__upgrade a:hover {
    text-decoration: underline;
}

.category-limit-info--warning .category-limit-info__upgrade a {
    color: #b45309;
}

@media (min-width: 769px) and (max-width: 1023px) {
    .category-limit-info {
        padding: 14px;
    }
    
    .category-limit-info__content {
        gap: 10px;
    }
    
    .category-limit-info__icon {
        width: 22px;
        height: 22px;
    }
    
    .category-limit-info__icon .material-icons {
        font-size: 14px;
    }
    
    .category-limit-info__title {
        font-size: 13px;
    }
    
    .category-limit-info__description {
        font-size: 12px;
    }
    
    .category-limit-info__upgrade {
        font-size: 11px;
        padding: 6px 10px;
    }
    
    .category-limit-info__upgrade .material-icons {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .category-limit-info {
        padding: 12px;
        margin: 12px 0;
    }
    
    .category-limit-info__content {
        gap: 8px;
    }
    
    .category-limit-info__icon {
        width: 20px;
        height: 20px;
    }
    
    .category-limit-info__icon .material-icons {
        font-size: 12px;
    }
    
    .category-limit-info__title {
        font-size: 12px;
    }
    
    .category-limit-info__description {
        font-size: 11px;
    }
    
    .category-limit-info__upgrade {
        font-size: 10px;
        padding: 6px 8px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .category-limit-info__upgrade .material-icons {
        font-size: 12px;
    }
}

/* ========================================
   NOTIFICATIONS SYSTEM STYLES
   ======================================== */

/* Notification Bell Button */
.header-notifications-btn {
    position: relative;
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #ffffff;
    color: #6b7280;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-notifications-btn:hover {
    background: #f9fafb;
    color: #3b82f6;
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.15);
}

.header-notifications-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-notifications-btn .material-icons {
    font-size: 25px;
    color: inherit;
}

.header-notifications-btn .notification-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #f44336;
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    animation: notificationPulse 2s infinite;
}

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

/* Notifications Backdrop */
.notifications-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 50; /* Lower than header z-index (100) to avoid darkening header */
    animation: backdropFadeIn 0.3s ease-out;
}

/* Notifications Dropdown */
.notifications-dropdown {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 400px;
    max-width: calc(100vw - 40px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 150; /* Higher than header z-index (100) but lower than other overlays */
    max-height: 500px;
    display: flex;
    flex-direction: column;
    animation: notificationSlideIn 0.3s ease-out;
}

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

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

.notifications-dropdown__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.notifications-dropdown__header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
}

.notifications-dropdown__close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    color: #6c757d;
    transition: all 0.2s ease;
}

.notifications-dropdown__close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #495057;
}

.notifications-dropdown__content {
    flex: 1;
    overflow-y: auto;
    max-height: 350px;
}

.notifications-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #6c757d;
    gap: 8px;
}

.notifications-loading .material-icons {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.notifications-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #6c757d;
    text-align: center;
}

.notifications-empty .material-icons {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

.notifications-empty h4 {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    color: #495057;
}

.notifications-empty p {
    margin: 0;
    font-size: 0.9rem;
}

/* Notification Item */
.notification-item {
    padding: 10px 16px;
    border-bottom: 1px solid #f1f3f4;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

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

.notification-item:hover {
    background: #f8f9fa;
}

.notification-item--unread {
    background: #f0f8ff;
    border-left: 4px solid #2196f3;
}

.notification-item--unread:hover {
    background: #e3f2fd;
}

.notification-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.notification-item__type {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
}

.notification-item__type--news {
    background: #e3f2fd;
    color: #1976d2;
}

.notification-item__type--update {
    background: #f3e5f5;
    color: #7b1fa2;
}

.notification-item__type--maintenance {
    background: #fff3e0;
    color: #f57c00;
}

.notification-item__type--feature {
    background: #e8f5e8;
    color: #388e3c;
}

.notification-item__date {
    font-size: 0.7rem;
    color: #6c757d;
}

.notification-item__title {
    font-weight: 600;
    margin-bottom: 3px;
    color: #212529;
    line-height: 1.3;
    font-size: 0.9rem;
}

.notification-item__description {
    font-size: 0.8rem;
    color: #6c757d;
    line-height: 1.3;
}

.notification-item__unread-indicator {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 8px;
    height: 8px;
    background: #2196f3;
    border-radius: 50%;
}

.notifications-dropdown__footer {
    padding: 12px 20px;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
    border-radius: 0 0 12px 12px;
    display: flex;
    justify-content: center;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .notifications-dropdown {
        top: 70px;
        right: 10px;
        left: 10px;
        width: auto;
        max-height: 400px;
    }
    
    .notifications-dropdown__content {
        max-height: 300px;
    }
    
    .notification-item {
        padding: 12px 16px;
    }
    
    .notification-item__title {
        font-size: 0.95rem;
    }
    
    .notification-item__description {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }
    
    .header-notifications-btn .header-action-label {
        display: none;
    }
}

@media (max-width: 480px) {
    .notifications-dropdown {
        top: 60px;
        right: 5px;
        left: 5px;
    }
    
    .notifications-dropdown__header {
        padding: 12px 16px;
    }
    
    .notifications-dropdown__header h3 {
        font-size: 1rem;
    }
    
    .notification-item {
        padding: 10px 12px;
    }
    
    .notification-item__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}
