﻿/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* РЎР»РѕР¶РЅР°СЏ РїСЂРѕС„РµСЃСЃРёРѕРЅР°Р»СЊРЅР°СЏ РїР°Р»РёС‚СЂР° */
    --primary-color: #17344b;
    --primary-dark: #112838;
    --primary-light: #2c4c62;
    --accent-color: #c46b48;
    --accent-dark: #9f5335;
    --secondary-color: #6B7F8A;
    --success-color: #5A8A6F;
    --danger-color: #C45A4A;
    --warning-color: #B89A5F;
    
    /* РќРµР№С‚СЂР°Р»СЊРЅС‹Рµ С†РІРµС‚Р° */
    --dark-color: #1A1F24;
    --dark-gray: #2A2F35;
    --medium-gray: #3A3F45;
    --light-gray: #E8EAED;
    --bg-color: #FAFAFA;
    --bg-secondary: #F5F5F5;
    --white: #FFFFFF;
    
    /* Р“СЂР°РґР°С†РёРё СЃРµСЂРѕРіРѕ */
    --gray-100: #F7F8F9;
    --gray-200: #E8EAED;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    
    /* РўРµРЅРё */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.12);
    
    /* Р Р°РґРёСѓСЃС‹ */
    --border-radius: 6px;
    --border-radius-lg: 10px;
    --border-radius-xl: 16px;
    
    /* РџРµСЂРµС…РѕРґС‹ */
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    font-size: 15px;
    line-height: 1.65;
    color: var(--gray-800);
    background-color: var(--gray-200);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    min-height: 100vh;
}

/* Floating Panels - Main Design */
.floating-panel {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 1160px;
    width: calc(100% - 40px);
    margin: 1rem auto;
    padding: 1.5rem;
    position: relative;
    left: 0;
    right: 0;
}

.floating-panel.main-panel {
    margin-top: 1rem;
    padding: 1.75rem;
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-100) 100%);
}

.floating-panel.content-panel {
    margin-top: 1rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Main Content */
.main-content {
    min-height: calc(100vh - 200px);
    padding: 0;
}

/* Header */
.header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    gap: 2rem;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-color);
}

.logo-text {
    color: var(--primary-color);
    font-weight: 600;
    letter-spacing: 0;
}

.logo-dot {
    color: var(--gray-500);
    font-weight: 400;
}

.main-nav {
    display: flex;
    gap: 2rem;
    flex: 1;
}

.nav-link {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    padding: 0.5rem 0;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    font-weight: 500;
    border: none;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1.5px solid var(--primary-color);
    font-weight: 500;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.btn-danger {
    background: var(--danger-color);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-danger:hover {
    background: #A84A3A;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-danger:active {
    transform: translateY(0);
    background: #8F3D2E;
}

.btn-text {
    background: transparent;
    color: var(--gray-700);
    padding: 0.75rem 1rem;
}

.btn-text:hover {
    color: var(--primary-color);
}

.btn-full {
    width: 100%;
}

.btn-large {
    padding: 0.75rem 1.75rem;
    font-size: 1rem;
}

.btn-white {
    background: var(--white);
    color: var(--primary-color);
    font-weight: 600;
}

.btn-white:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Hero Section */
.hero-inner {
    text-align: center;
    margin-bottom: 1.5rem;
}

.banners-wrapper {
    margin: 0.5rem 0;
}

.banners-wrapper .banners-carousel {
    height: 420px;
}

.cta-panel {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
    padding: 3rem 2rem;
}

.cta-panel .cta-title {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.cta-panel .cta-text {
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.hero {
    background: transparent;
    color: var(--gray-800);
    padding: 1rem 0 2rem;
    margin-bottom: 0;
    position: relative;
    overflow: visible;
}

.hero::before {
    display: none;
}

.hero-content {
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: 0;
    color: var(--primary-dark);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: var(--gray-600);
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-search {
    max-width: 700px;
    margin: 0 auto 3rem;
}

.search-form {
    display: flex;
    gap: 0.5rem;
    background: var(--white);
    padding: 0.5rem;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: none;
    font-size: 15px;
    border-radius: var(--border-radius);
    background: var(--white);
    color: var(--gray-800);
}

.search-input:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(26, 77, 92, 0.2);
}

.search-input::placeholder {
    color: var(--gray-400);
}

.search-select {
    padding: 1rem 1.25rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 15px;
    background: var(--gray-100);
    cursor: pointer;
    color: var(--gray-700);
    font-weight: 500;
}

.search-select:focus {
    outline: none;
    background: var(--gray-200);
}

.search-btn {
    padding: 1rem 2rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-200);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* Sections */
.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    color: var(--dark-color);
    letter-spacing: 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.section-link:hover {
    text-decoration: underline;
}

/* Categories */
.categories-section {
    padding: 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
}

.category-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    text-decoration: none;
    color: var(--gray-800);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.category-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

.category-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.category-name {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.4;
    max-width: 100%;
}

/* Items Grid */
.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.item-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.item-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--gray-300);
}

.item-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.item-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 125%;
    overflow: hidden;
    background: var(--gray-200);
}

.item-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-image-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--gray-500);
    font-size: 0.9rem;
}

.item-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: var(--success-color);
    color: var(--white);
    padding: 0.35rem 0.85rem;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0;
}

.item-type-badge {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.35rem 0.85rem;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0;
}

.item-content {
    padding: 1rem;
}

.item-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-800);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.item-description {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0;
}

.item-location {
    font-size: 0.85rem;
    color: var(--gray-600);
}

/* Featured Section */
.featured-section {
    padding: 0;
    background: transparent;
}

/* CTA Section */
.cta-section {
    padding: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-xl);
}

.floating-panel.cta-section {
    padding: 3rem 2rem;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-text {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: var(--gray-300);
    padding: 1.5rem 1.5rem 1rem;
    margin: 1.5rem auto 1rem;
    max-width: 1160px;
    width: calc(100% - 40px);
    border-radius: var(--border-radius-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.3rem;
}

.footer-section a {
    color: var(--gray-400);
    text-decoration: none;
    transition: var(--transition);
    font-size: 13px;
}

.footer-section a:hover {
    color: var(--white);
}

.footer-section h3,
.footer-section h4 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.footer-section p {
    font-size: 0.85rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-700);
    color: var(--gray-400);
    font-size: 0.8rem;
}

/* Auth Pages */
.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.auth-container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.auth-card {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.auth-header {
    text-align: center;
    margin-bottom: 1.25rem;
}

.auth-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--dark-color);
}

.auth-header p {
    color: var(--gray-600);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

.form-input,
.form-select {
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 15px;
    transition: var(--transition);
    background: var(--white);
    color: var(--gray-800);
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 77, 92, 0.1);
}

.form-input::placeholder {
    color: var(--gray-400);
}

.form-error {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-group-checkbox {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--gray-600);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Catalog Page */
.catalog-page {
    padding: 2rem 0;
}

.catalog-page .container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

.catalog-sidebar {
    position: sticky;
    top: 80px;
    height: fit-content;
}

.filters-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.filters-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.filters-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.filter-select,
.filter-input {
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 14px;
    background: var(--white);
    color: var(--gray-700);
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 77, 92, 0.1);
}

.catalog-main {
    min-width: 0;
}

.catalog-header {
    margin-bottom: 2rem;
}

.catalog-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--dark-color);
    letter-spacing: 0;
}

.catalog-count {
    color: var(--gray-600);
    font-size: 0.95rem;
}

.empty-state {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--white);
    border-radius: var(--border-radius-lg);
}

.empty-state p {
    font-size: 1rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding: 2rem 0;
}

.pagination-link {
    padding: 0.75rem 1.5rem;
    background: var(--white);
    color: var(--gray-700);
    text-decoration: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.pagination-link:hover {
    background: var(--primary-color);
    color: var(--white);
}

.pagination-info {
    color: var(--gray-600);
}

/* Item Detail Page */
.item-detail-page {
    padding: 1rem 0;
}

.detail-panel {
    max-width: 1200px;
    padding: 2rem;
}

.item-detail-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.item-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.gallery-main {
    position: relative;
    width: 100%;
    padding-top: 100%;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: var(--gray-200);
}

.gallery-main-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.gallery-main-image:hover {
    transform: scale(1.02);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    font-size: 1.25rem;
}

.gallery-thumbnails {
    display: flex;
    gap: 0.5rem;
}

.gallery-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--border-radius);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.gallery-thumbnail:hover {
    border-color: var(--primary-color);
}

.item-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.item-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.item-badges {
    display: flex;
    gap: 0.5rem;
}

.item-title {
    font-size: 2rem;
    font-weight: 700;
}

.item-meta {
    display: flex;
    gap: 1.5rem;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.item-price-section {
    padding: 2rem;
    background: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-200);
}

.item-price-main {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.price-amount {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 0;
}

.price-currency {
    font-size: 1.5rem;
    color: var(--gray-600);
}

.price-text {
    font-size: 1.5rem;
    color: var(--gray-700);
}

.item-actions {
    display: flex;
    gap: 1rem;
    position: relative;
    z-index: 10;
}

.favorite-btn {
    position: relative;
    z-index: 11;
    pointer-events: auto !important;
    cursor: pointer;
}

.favorite-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.item-description h3,
.item-seller h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.item-description p {
    line-height: 1.8;
    color: var(--gray-700);
}

.item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.5rem 1rem;
    background: var(--gray-200);
    color: var(--gray-700);
    text-decoration: none;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    transition: var(--transition);
}

.tag:hover {
    background: var(--primary-color);
    color: var(--white);
}

.seller-card {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--gray-100);
    border-radius: var(--border-radius-lg);
}

.seller-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.seller-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seller-avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
}

.seller-info {
    flex: 1;
}

.seller-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.seller-rating,
.seller-location {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
}

.similar-items-section {
    margin-top: 4rem;
}

/* Profile Page */
.profile-page {
    padding: 0.75rem 0;
}

.profile-header {
    display: flex;
    gap: 1rem;
    background: var(--white);
    padding: 1rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1rem;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: var(--white);
    font-size: 2.25rem;
    font-weight: 700;
}

.profile-info h1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.profile-username {
    color: var(--gray-600);
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
}

.profile-stats {
    display: flex;
    gap: 1.25rem;
    color: var(--gray-600);
    font-size: 0.85rem;
}

.profile-tabs {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--gray-200);
    flex-wrap: wrap;
}

.tab-btn {
    padding: 0.6rem 1rem;
    background: none;
    border: none;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-600);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
    white-space: nowrap;
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.profile-content {
    background: var(--white);
    padding: 1.25rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
}

/* Messages */
.messages-container {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 1rem;
}

.alert {
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow-md);
}

.alert-success {
    background: var(--success-color);
    color: var(--white);
}

.alert-error {
    background: var(--danger-color);
    color: var(--white);
}

.alert-info {
    background: var(--primary-color);
    color: var(--white);
}

/* Responsive */
/* Tablet */
@media (max-width: 992px) {
    .floating-panel {
        width: calc(100% - 32px);
        margin: 1rem auto;
    }
    
    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 1rem;
    }
    
    .category-name {
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.3;
    }
    
    .hero-stats {
        gap: 2rem;
    }
    
    .banners-wrapper .banners-carousel {
        height: 360px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .floating-panel {
        width: calc(100% - 24px);
        margin: 0.75rem auto;
        padding: 1.25rem;
        border-radius: var(--border-radius-lg);
    }
    
    .floating-panel.main-panel {
        padding: 1.5rem;
    }
    
    .main-nav {
        display: none;
    }
    
    .header-actions {
        gap: 0.5rem;
    }
    
    .header-actions .btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .hero-stats {
        gap: 1rem;
        flex-wrap: wrap;
    }
    
    .stat-number {
        font-size: 1.2rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-input,
    .search-select,
    .search-btn {
        width: 100%;
    }
    
    .banners-wrapper .banners-carousel {
        height: 240px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .section-title {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .items-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .item-card .item-content {
        padding: 0.75rem;
    }
    
    .item-title {
        font-size: 0.9rem;
    }
    
    .item-description {
        font-size: 0.8rem;
        -webkit-line-clamp: 1;
    }
    
    .item-price {
        font-size: 1rem;
    }
    
    .item-location,
    .item-seller {
        font-size: 0.75rem;
    }
    
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .category-card {
        padding: 1rem 0.75rem;
    }
    
    .category-icon {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .category-name {
        font-size: 0.8rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        line-height: 1.3;
    }
    
    .cta-panel {
        padding: 2rem 1.5rem;
    }
    
    .cta-panel .cta-title {
        font-size: 1.5rem;
    }
    
    .cta-panel .cta-text {
        font-size: 0.9rem;
    }
    
    .catalog-page .container {
        grid-template-columns: 1fr;
    }
    
    .catalog-sidebar {
        position: static;
    }
    
    .item-detail-main {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 0.75rem;
        gap: 0.5rem;
    }

    .profile-avatar {
        width: 64px;
        height: 64px;
    }

    .profile-info h1 {
        font-size: 1.15rem;
    }
    
    .profile-stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }
    
    .profile-content {
        padding: 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .floating-panel {
        width: calc(100% - 16px);
        margin: 0.5rem auto;
        padding: 1rem;
    }
    
    .hero-title {
        font-size: 1.3rem;
    }
    
    .items-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .banners-wrapper .banners-carousel {
        height: 200px;
    }
}

/* Banners Section */
.banners-section {
    margin: 1.5rem 0 0;
    padding: 0;
    background: transparent;
}

.banners-carousel {
    position: relative;
    width: 100%;
    margin: 0.5rem auto;
    height: 420px;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.banner-slide.active {
    opacity: 1;
    z-index: 1;
}

.banner-link {
    z-index: 2;
    position: relative;
}

.banner-link {
    display: block;
    width: 100%;
    height: 100%;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.banners-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.banner-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--primary-color);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.banner-indicator:hover {
    background: var(--primary-light);
}

.banner-indicator.active {
    background: var(--primary-color);
}

/* Item Form Styles */
.item-form-page {
    padding: 1rem 0;
}

.form-header {
    text-align: center;
    margin-bottom: 1rem;
}

.form-title {
    font-size: 1.4rem;
    color: var(--dark-color);
    margin-bottom: 0.35rem;
}

.form-subtitle {
    color: var(--gray-600);
    font-size: 0.9rem;
}

.item-form {
    max-width: 760px;
    margin: 0 auto;
    background: var(--white);
    padding: 1.25rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
}

.form-section {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 0.75rem;
}

.form-group {
    margin-bottom: 0.75rem;
}

.form-label {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--dark-color);
    font-weight: 500;
    font-size: 0.875rem;
}

.form-input,
.form-select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 0.925rem;
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(26, 77, 92, 0.08);
}

textarea.form-input,
textarea.form-select {
    min-height: 80px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.form-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.form-hint {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.8rem;
    color: var(--gray-500);
}

.form-error {
    color: var(--danger-color);
    font-size: 0.8rem;
    margin-top: 0.15rem;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
    margin-top: 1rem;
    align-items: center;
}

.form-actions .btn-danger {
    margin-left: auto;
    margin-right: 0;
}

/* Popular Section */
.popular-section {
    padding: 0;
    background: transparent;
}

.popular-section.services-section {
    background: transparent;
}

.item-views-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius);
    font-size: 0.75rem;
}

.service-card {
    border-left: 3px solid var(--accent-color);
}

.item-seller {
    color: var(--primary-color);
    font-size: 0.875rem;
}

@media (max-width: 768px) {
    .banners-carousel {
        height: 280px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

/* ==================== MESSAGING SYSTEM ==================== */

/* Floating Messages Button */
.floating-messages-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(26, 77, 92, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-messages-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(26, 77, 92, 0.5);
}

.floating-messages-btn:active {
    transform: scale(0.95);
}

.floating-messages-btn .messages-icon {
    font-size: 1.75rem;
    filter: grayscale(1) brightness(10);
}

.unread-indicator {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    background: var(--danger-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Messages Popup */
.messages-popup {
    position: fixed;
    bottom: 100px;
    right: 24px;
    width: 400px;
    max-height: 520px;
    background: var(--white);
    border-radius: var(--border-radius-xl);
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--gray-200);
    z-index: 1001;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: popupSlideIn 0.25s ease;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--gray-200);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: white;
}

.popup-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.popup-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.view-all-link {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 0.35rem 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    transition: var(--transition);
}

.view-all-link:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
}

.popup-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: var(--transition);
}

.popup-close:hover {
    color: white;
    transform: scale(1.2);
}

.popup-content {
    flex: 1;
    overflow-y: auto;
    max-height: 420px;
}

.popup-conv {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--gray-100);
    transition: var(--transition);
}

.popup-conv:hover {
    background: var(--gray-100);
}

.popup-conv.unread {
    background: rgba(26, 77, 92, 0.05);
}

.conv-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    flex-shrink: 0;
    overflow: hidden;
}

.conv-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.conv-info {
    flex: 1;
    min-width: 0;
}

.conv-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--gray-800);
}

.conv-preview {
    font-size: 0.8rem;
    color: var(--gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conv-unread {
    background: var(--primary-color);
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 600;
    flex-shrink: 0;
}

.no-convs {
    text-align: center;
    padding: 2rem;
    color: var(--gray-500);
}

.loading {
    text-align: center;
    padding: 2rem;
    color: var(--gray-400);
}

/* Django Messages Auto-dismiss */
.django-messages-container {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 1002;
    max-width: 400px;
}

.django-messages-container .alert {
    margin-bottom: 0.5rem;
    padding: 0.875rem 2.5rem 0.875rem 1rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
    transition: all 0.3s ease;
}

.alert-close {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.6;
    color: inherit;
}

.alert-close:hover {
    opacity: 1;
}

@media (max-width: 768px) {
    .floating-messages-btn {
        bottom: 16px;
        right: 16px;
        width: 54px;
        height: 54px;
    }
    
    .messages-popup {
        right: 10px;
        left: 10px;
        bottom: 90px;
        width: auto;
        max-height: 60vh;
    }
    
    .django-messages-container {
        left: 10px;
        right: 10px;
        max-width: none;
    }
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 95%;
    max-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#lightboxImage {
    max-width: 100%;
    max-height: 95vh;
    object-fit: contain;
    border-radius: var(--border-radius-lg);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.lightbox-close:hover {
    background: var(--white);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: all 0.2s ease;
    color: var(--text-primary);
}

.lightbox-nav:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
}

/* Banner Navigation Areas */
.banners-carousel {
    position: relative;
}

.banner-nav-area {
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.banner-nav-area:hover {
    opacity: 1;
    pointer-events: auto;
}

.banners-carousel:hover .banner-nav-area {
    opacity: 0.6;
    pointer-events: auto;
}

.banners-carousel:hover .banner-nav-area:hover {
    opacity: 1;
}

.banner-nav-area.left {
    left: 0;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        transparent 100%
    );
}

.banner-nav-area.right {
    right: 0;
    background: linear-gradient(
        to left,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        transparent 100%
    );
}

.banner-nav-area::after {
    content: '';
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.banner-nav-area:hover::after {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 1);
}

.banner-nav-area.left::after {
    content: 'вќ®';
}

.banner-nav-area.right::after {
    content: 'вќЇ';
}

/* CSS Variables for colors */
:root {
    --color-primary: #1A4D5C;
    --color-primary-rgb: 26, 77, 92;
    --color-secondary: #4A7C59;
    --color-error: #C45A4A;
    --bg-primary: #FFFFFF;
    --bg-secondary: #F5F5F5;
    --text-primary: #1A1F24;
    --text-secondary: #4B5563;
    --text-tertiary: #9CA3AF;
    --border-color: #E8EAED;
}

/* Saveli creator-first theme overrides */
:root {
    --surface-tint: rgba(255, 255, 255, 0.94);
    --paper-color: rgba(255, 255, 255, 0.98);
    --page-bg: #ffffff;
    --ink-color: #1f2933;
    --ink-muted: #5d6670;
    --line-soft: rgba(31, 41, 51, 0.08);
    --shadow-lift: 0 18px 50px rgba(32, 39, 46, 0.12);
}

body.site-shell {
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    color: var(--ink-color);
    background:
        radial-gradient(circle at top left, rgba(23, 52, 75, 0.03), transparent 24%),
        radial-gradient(circle at top right, rgba(196, 107, 72, 0.03), transparent 22%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(252, 253, 255, 0.98) 100%);
}

h1, h2, h3 {
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    letter-spacing: 0;
}

.site-background-glow {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 15% 20%, rgba(196, 107, 72, 0.06), transparent 24%),
        radial-gradient(circle at 85% 12%, rgba(23, 52, 75, 0.05), transparent 28%),
        radial-gradient(circle at 50% 100%, rgba(12, 18, 24, 0.03), transparent 34%);
}

.main-content {
    padding: 0 0 2.5rem;
}

.header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 250, 245, 0.6);
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(35, 35, 35, 0.06);
}

.header-shell {
    display: grid;
    grid-template-columns: minmax(168px, 220px) 1fr auto;
    align-items: center;
    gap: 1.4rem;
    padding: 0.4rem 0;
}

.logo-wrap {
    display: block;
}

.logo a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    white-space: nowrap;
}

.logo-mark {
    width: 48px;
    height: auto;
    flex-shrink: 0;
    filter: drop-shadow(0 6px 12px rgba(20, 32, 45, 0.12));
}

.logo-title-line {
    display: inline-flex;
    align-items: baseline;
    gap: 0.12rem;
    white-space: nowrap;
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: 0.035em;
    line-height: 0.98;
    text-transform: uppercase;
}

.logo-text {
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: 0.035em;
    line-height: 0.98;
    text-transform: uppercase;
    color: #17344b;
}

.logo-dot {
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    font-size: 1.28rem;
    font-weight: 800;
    letter-spacing: 0.035em;
    line-height: 0.98;
    text-transform: uppercase;
    color: #17344b;
}

.main-nav {
    justify-content: center;
    gap: 1.4rem;
}

.nav-link {
    font-size: 0.95rem;
    color: var(--ink-color);
    opacity: 0.82;
}

.nav-link:hover,
.nav-link:focus-visible {
    color: var(--primary-color);
    opacity: 1;
}

.nav-link::after {
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 999px;
}

.header-actions {
    gap: 0.75rem;
}

.btn {
    border-radius: 14px;
    font-weight: 700;
    padding: 0.82rem 1.2rem;
    box-shadow: none;
    letter-spacing: 0;
}

.btn-primary {
    background: linear-gradient(180deg, #17344b 0%, #102537 100%);
    color: #fff;
    box-shadow: 0 12px 22px rgba(23, 52, 75, 0.14);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(23, 52, 75, 0.18);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.96);
    color: #17344b;
    border: 1px solid rgba(23, 52, 75, 0.14);
}

.btn-outline:hover {
    background: rgba(23, 52, 75, 0.06);
    color: #17344b;
    border-color: rgba(23, 52, 75, 0.24);
}

.btn-text {
    color: var(--ink-color);
    border-radius: 12px;
    padding: 0.76rem 0.98rem;
}

.btn-text:hover {
    background: rgba(23, 52, 75, 0.05);
    color: #17344b;
}

.floating-panel,
.seller-header-section,
.reviews-section,
.order-form-card,
.review-form-card,
.review-card,
.seller-stat-card,
.item-card,
.settings-form-card,
.profile-header,
.empty-state,
.messages-popup {
    background: var(--surface-tint);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(18, 28, 39, 0.08);
    box-shadow: var(--shadow-lift);
}

.floating-panel.main-panel {
    background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, var(--surface-tint) 100%);
}

.form-input,
.filter-select,
textarea,
select,
input[type="text"],
input[type="email"],
input[type="number"],
input[type="url"] {
    border-radius: 16px;
    border: 1px solid rgba(31, 41, 51, 0.1);
    background: rgba(255,255,255,0.96);
}

.form-input:focus,
textarea:focus,
select:focus,
input:focus {
    outline: none;
    border-color: rgba(23, 52, 75, 0.34);
    box-shadow: 0 0 0 4px rgba(23, 52, 75, 0.08);
}

.form-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.alert {
    border-radius: 18px;
    box-shadow: var(--shadow-md);
}

.floating-messages-btn {
    background: linear-gradient(180deg, #17344b 0%, #102537 100%);
    color: #fff;
    box-shadow: 0 16px 30px rgba(23, 52, 75, 0.18);
}

.popup-header {
    background: linear-gradient(180deg, #17344b 0%, #112838 100%);
}

.footer {
    width: calc(100% - 40px);
    max-width: 1160px;
    margin: 0 auto 20px;
    border-radius: 28px;
    background: rgba(23, 28, 34, 0.9);
    color: rgba(255,255,255,0.86);
    box-shadow: var(--shadow-lift);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 2rem;
    padding: 2.4rem 0 1.6rem;
    align-items: start;
    justify-items: center;
    text-align: center;
}

.footer-brand,
.footer-section {
    width: 100%;
}

.footer-brand {
    max-width: 34rem;
}

.footer-brand h3,
.footer-section h4 {
    color: #fff;
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: #f3d2b0;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.72rem;
    margin-bottom: 0.9rem;
}

.footer-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-section li + li {
    margin-top: 0.55rem;
}

.footer-section a,
.footer-brand a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    padding: 0 0 1.4rem;
    color: rgba(255,255,255,0.64);
    text-align: center;
}

@media (max-width: 980px) {
    .header-shell {
        grid-template-columns: 1fr auto;
        gap: 1rem;
    }

    .main-nav {
        grid-column: 1 / -1;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .logo-mark {
        width: 40px;
    }

    .logo-title-line {
        font-size: 1.08rem;
        letter-spacing: 0.025em;
    }

    .logo-text,
    .logo-dot {
        font-size: 1.08rem;
        letter-spacing: 0.025em;
    }

    .header-actions {
        display: none;
    }

    .footer {
        width: calc(100% - 24px);
        margin: 0 auto 12px;
        border-radius: 22px;
    }
}


