:root {
    --primary-color: #cc3441;
    --secondary-color: #1D3557;
    --background-color: #F8F9FA;
    --text-color: #333;
    --white: #ffffff;
    
    /* Typography Scale */
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-base: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 24px;
    --font-size-2xl: 32px;
    --font-size-3xl: 40px;
    
    /* Spacing Scale */
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 30px;
    --spacing-xl: 40px;
    --spacing-2xl: 60px;
    --page-gutter: 32px;
    
    /* Line Heights */
    --line-height-tight: 1.3;
    --line-height-normal: 1.6;
    --line-height-relaxed: 1.8;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Typography System */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
}

h1 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    line-height: var(--line-height-tight);
    color: var(--secondary-color);
    margin: 0 0 var(--spacing-md) 0;
}

h2 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    line-height: var(--line-height-tight);
    color: var(--secondary-color);
    margin: 0 0 var(--spacing-lg) 0;
}

h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    line-height: var(--line-height-tight);
    color: var(--secondary-color);
    margin: 0 0 var(--spacing-md) 0;
}

h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    line-height: var(--line-height-tight);
    color: var(--secondary-color);
    margin: 0 0 var(--spacing-sm) 0;
}

p {
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: var(--text-color);
    margin: 0 0 var(--spacing-md) 0;
    max-width: 75ch;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 15px 0;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--page-gutter);
    box-sizing: border-box;
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    margin-right: var(--spacing-sm);
    font-size: var(--font-size-xl);
}

nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav li {
    margin-left: var(--spacing-md);
}

nav a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    font-size: var(--font-size-base);
    transition: color 0.2s;
}

nav a:hover {
    color: var(--primary-color);
}

.secondary-nav {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    position: relative;
    margin-top: 9px;
    padding-top: 8px;
    border-top: 1px solid #edf0f4;
}

.secondary-nav li {
    margin: 0 12px;
}

.secondary-nav a {
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.secondary-nav .secondary-nav-admin {
    color: #6c5ce7;
    font-weight: 700;
}

.impersonation-user-id {
    position: absolute;
    top: 9px;
    right: 0;
    min-width: 42px;
    height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e11d48;
    color: #fff;
    box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.14);
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

/* Mobile Logout Button - Hidden on desktop */
.mobile-logout-form {
    display: none;
}

.mobile-logout-btn {
    padding: 6px 12px;
    font-size: var(--font-size-sm);
    background-color: #dc3545;
    color: var(--white);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.mobile-logout-btn:hover {
    background-color: #c82333;
}

/* Header Right Section */
.header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.header-object-edit {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #0f766e;
    background: #fff;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s, background-color 0.2s;
}

.header-object-edit:hover,
.header-object-edit:focus-visible {
    color: #fff;
    border-color: #0f766e;
    background: #0f766e;
}

.header-object-edit svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.filter-form {
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
    grid-gap: var(--spacing-md);
    align-items: end;
}

.filter-form .form-group,
.filter-form .form-group-floating {
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}

.filter-form button {
    align-self: flex-end;
}

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

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: none;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    padding: 6px 12px 6px 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: var(--font-size-base);
    color: var(--text-color);
}

.user-menu-toggle:hover {
    border-color: var(--primary-color);
    background: #f8f9fa;
}

.user-avatar-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: block;
}

.user-name {
    font-weight: 500;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-menu-arrow {
    font-size: 10px;
    color: #999;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.user-menu.active .user-menu-arrow {
    transform: rotate(180deg);
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.user-menu:hover .user-menu-dropdown,
.user-menu.active .user-menu-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 12px 16px;
    text-decoration: none;
    color: var(--text-color);
    font-size: var(--font-size-base);
    transition: background-color 0.2s ease;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.user-menu-item:hover {
    background-color: #f8f9fa;
}

.user-menu-item-danger {
    color: #dc3545;
}

.user-menu-item-danger:hover {
    background-color: #fff5f5;
    color: #c82333;
}

.user-menu-item-return {
    color: #be123c;
    font-weight: 600;
}

.user-menu-item-return:hover {
    background-color: #fff1f2;
    color: #9f1239;
}

.user-menu-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    display: inline-block;
}

.user-menu-divider {
    margin: 4px 0;
    border: none;
    border-top: 1px solid #e0e0e0;
}

.user-menu-form {
    margin: 0;
    padding: 0;
    display: block;
    width: 100%;
}

.user-menu-form button {
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.btn-login {
    white-space: nowrap;
    padding: 6px 12px;
    font-size: var(--font-size-sm);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    text-decoration: none;
    text-decoration-line: underline;
    text-decoration-style: dashed;
    text-underline-offset: 3px;
    font-weight: 500;
    font-size: var(--font-size-base);
    cursor: pointer;
    border: none;
    background: transparent;
    transition: all 0.2s ease;
    line-height: 1.5;
    position: relative;
    text-align: center;
}

.btn.w-full {
    display: flex !important;
    width: 100%;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
}

.site-sidebar .btn.w-full,
.site-sidebar a.btn.w-full {
    display: flex !important;
    width: 100%;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    margin: 0 auto;
}

.btn-primary {
    color: #c92a36;
}

.btn-primary:hover {
    color: #a81d28;
}

.btn-primary:active {
    color: #8f1a23;
}

.btn-primary:disabled,
.btn-primary.disabled {
    color: #999;
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-primary.loading {
    pointer-events: none;
    position: relative;
    color: transparent;
    text-decoration: none;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    width: 14px;
    height: 14px;
    top: 50%;
    left: 50%;
    margin-left: -7px;
    margin-top: -7px;
    border: 2px solid rgba(201, 42, 54, 0.3);
    border-radius: 50%;
    border-top-color: #c92a36;
    animation: spin 0.6s linear infinite;
}

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

.btn-primary.success {
    color: #0ea66e;
}

.btn-outline {
    color: #666;
}

.btn-outline:hover {
    color: var(--primary-color);
}

.btn-outline:active {
    color: #c92a36;
}

.btn-outline:disabled,
.btn-outline.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    color: #999;
}

.btn-telegram {
    color: #0077b5;
}

.btn-telegram:hover {
    color: #006ba3;
}

.btn-telegram:active {
    color: #005a8a;
}

.btn-sm {
    padding: 4px 10px;
    font-size: var(--font-size-sm);
}

.btn-xs {
    padding: 4px 8px;
    font-size: var(--font-size-xs);
}

.btn-lg {
    padding: 8px 16px;
    font-size: var(--font-size-lg);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-icon svg,
.btn-icon i {
    width: 16px;
    height: 16px;
}

/* Hero Section */
.hero-search {
    background: linear-gradient(135deg, var(--secondary-color), #457b9d);
    color: var(--white);
    padding: var(--spacing-2xl) 0;
    text-align: center;
}

.hero-search h1 {
    margin-bottom: var(--spacing-sm);
    color: var(--white);
    font-size: var(--font-size-3xl);
}

.hero-search p {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.9);
    max-width: 100%;
}

.search-box {
    margin-top: var(--spacing-lg);
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
}

.search-box input {
    box-sizing: border-box;
    padding: 15px;
    width: 500px;
    border-radius: 6px;
    border: 1px solid rgba(18, 38, 58, 0.14);
    font-size: var(--font-size-base);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 8px 24px rgba(18, 38, 58, 0.08);
}

.hero-search .hero-search-btn {
    background: linear-gradient(135deg, var(--primary-color), #e14d5b);
    color: #fff;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 14px 26px;
    min-height: 52px;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    box-shadow: 0 12px 28px rgba(198, 47, 59, 0.28);
    text-decoration: none;
}

.hero-search .hero-search-btn:hover {
    background: linear-gradient(135deg, #ae2531, #cf3f4c);
    box-shadow: 0 14px 34px rgba(198, 47, 59, 0.34);
}

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

/* Sections */
.section {
    padding: var(--spacing-xl) 0;
}

.container.section {
    padding-left: var(--page-gutter);
    padding-right: var(--page-gutter);
}

.section-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    color: var(--secondary-color);
}

/* Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

/* Hover effects only for non-admin cards */
body:not(.admin-page) .card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: rgba(230, 57, 70, 0.2);
}

body:not(.admin-page) .card:hover::before {
    transform: scaleX(1);
}

/* Admin cards should not scale on hover */
.admin-wrapper .card:hover {
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.card-img {
    height: 180px;
    background-color: #eee;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

/* Skeleton Loading for Images */
.card-img.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

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

.card-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

body:not(.admin-page) .card:hover .card-img::after {
    opacity: 1;
}

.card-body {
    padding: var(--spacing-md);
}

.card-title {
    font-size: var(--font-size-lg);
    margin-bottom: var(--spacing-sm);
    color: var(--secondary-color);
    font-weight: 600;
}

.card-title a {
    text-decoration: none;
    color: inherit;
}

.card-price {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.card-meta {
    font-size: var(--font-size-sm);
    color: #666;
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-normal);
}

/* Footer */
footer {
    background-color: #0f172a;
    color: rgba(255, 255, 255, 0.88);
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-2xl);
}

.site-footer-inner {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--spacing-lg);
    flex-wrap: nowrap;
    white-space: nowrap;
}

.site-footer-brand {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-shrink: 0;
}

.site-footer-name {
    font-family: "Roboto Condensed", Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0;
    color: #fff;
}

.site-footer-text {
    font-size: 14px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.75);
}

.site-footer-text strong {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
}

.site-footer-links {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    align-items: baseline;
    flex-shrink: 0;
}

.site-footer-links a {
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    font-weight: 500;
}

.site-footer-links a:hover {
    color: #fff;
}

/* Sites Catalog Flex Layout */
.sites-catalog-container {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.sites-column {
    flex: 0 0 calc(20% - 16px);
    min-width: 200px;
}

.sites-column-title {
    display: block;
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--secondary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: var(--spacing-xs);
}

.sites-column-name {
    display: inline;
}

.sites-column-count {
    display: inline;
    margin-left: 10px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.2;
    color: #94a3b8;
    white-space: nowrap;
}

.sites-column-title-link {
    text-decoration: none;
    cursor: pointer;
}

.sites-column-title-link:hover {
    color: inherit;
}

.site-item {
    position: relative;
    padding: 4px 8px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: var(--spacing-xs);
}

.site-item:hover {
    background-color: #f8f9fa;
}

.site-favicon {
    width: 14px;
    height: 14px;
    margin-right: 8px;
    object-fit: contain;
}

.site-name {
    font-size: var(--font-size-sm);
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-traffic {
    font-size: var(--font-size-xs);
    color: #888;
    background: #f5f5f5;
    padding: 1px 4px;
    border-radius: 4px;
    margin-right: var(--spacing-xs);
    white-space: nowrap;
}

.site-external-link {
    opacity: 0;
    color: #999;
    transition: opacity 0.2s;
    font-size: var(--font-size-xs);
}

.site-item:hover .site-external-link {
    opacity: 1;
}

/* Tooltip */
.site-tooltip {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-md);
    width: 250px;
    z-index: 100;
    border-radius: 8px;
    text-align: center;
    margin-top: var(--spacing-sm);
}

.site-item:hover .site-tooltip {
    display: block;
}

.tooltip-logo {
    width: 48px;
    height: 48px;
    margin-bottom: var(--spacing-sm);
}

.tooltip-title {
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    font-size: var(--font-size-base);
}

.tooltip-desc {
    font-size: var(--font-size-sm);
    color: #666;
    margin-bottom: var(--spacing-xs);
    line-height: var(--line-height-normal);
}

.tooltip-domain {
    font-size: var(--font-size-xs);
    color: #999;
}

/* Compact Lots Grid */
.lots-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--spacing-md);
}

.lot-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
}

.lot-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
    z-index: 1;
}

.lot-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: rgba(230, 57, 70, 0.2);
}

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

.lot-card-img {
    height: 140px;
    background-color: #eee;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.lot-card-img.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

.lot-card-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lot-card:hover .lot-card-img::after {
    opacity: 1;
}

.lot-card-body {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.lot-card-title {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-xs);
    color: var(--secondary-color);
    line-height: var(--line-height-tight);
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    font-weight: 600;
}

.lot-card-title a {
    text-decoration: none;
    color: inherit;
}

.lot-card-price {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.lot-card-meta {
    font-size: var(--font-size-sm);
    color: #666;
    margin-bottom: var(--spacing-sm);
    flex-grow: 1;
    line-height: var(--line-height-normal);
}

.lot-card-meta div {
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lot-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 6px 0;
    font-size: var(--font-size-sm);
    background: transparent;
    color: #c92a36;
    text-decoration: none;
    text-decoration-line: underline;
    text-decoration-style: dashed;
    text-underline-offset: 3px;
    border: none;
    transition: all 0.2s;
    font-weight: 500;
    cursor: pointer;
}

.lot-btn:hover {
    color: #a81d28;
}

/* Add Lot Card */
.lot-card-add {
    background: var(--white);
    border: 2px dashed rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lot-card-add:hover {
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 0, 0, 0.2);
}

.lot-card-add-content {
    text-align: center;
    padding: var(--spacing-md);
    color: var(--text-color);
}

.lot-card-add-icon {
    margin-bottom: var(--spacing-md);
    opacity: 1;
    transition: transform 0.3s ease;
    color: #cc3441;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lot-card-add-icon svg {
    width: 48px;
    height: 48px;
    stroke: #cc3441;
}

.lot-card-add:hover .lot-card-add-icon {
    opacity: 1;
}

.lot-card-add:hover .lot-card-add-icon svg {
    stroke: #a81d28;
}

.lot-card-add-title {
    font-size: var(--font-size-lg);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
}

.lot-card-add-text {
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-md);
    opacity: 0.8;
    line-height: var(--line-height-normal);
    color: var(--text-color);
}

.lot-card-add-btn {
    display: inline-block;
    background: transparent;
    color: #c92a36;
    padding: 6px 12px;
    text-decoration: none;
    text-decoration-line: underline;
    text-decoration-style: dashed;
    text-underline-offset: 3px;
    border: none;
    font-weight: 500;
    font-size: var(--font-size-sm);
    transition: all 0.2s ease;
    cursor: pointer;
}

.lot-card-add-btn:hover {
    color: #a81d28;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.feature-card {
    background: var(--white);
    border-radius: 12px;
    padding: var(--spacing-xl) var(--spacing-lg);
    text-align: center;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
}

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

.feature-card .feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--spacing-lg);
    background: linear-gradient(135deg, var(--primary-color), #c92a36);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--white);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    box-shadow: var(--shadow-lg);
}

.feature-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: var(--spacing-md);
    line-height: var(--line-height-tight);
}

.feature-card p {
    font-size: var(--font-size-base);
    color: #666;
    line-height: var(--line-height-relaxed);
    margin: 0;
    max-width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--secondary-color);
    font-size: var(--font-size-xl);
    cursor: pointer;
    padding: var(--spacing-xs);
}

.mobile-menu-toggle:hover {
    color: var(--primary-color);
}

/* Utility Classes */
.flex {
    display: flex;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-col {
    flex-direction: column;
}

.gap-sm {
    gap: var(--spacing-sm);
}

.gap-md {
    gap: var(--spacing-md);
}

.gap-lg {
    gap: var(--spacing-lg);
}

.mb-0 {
    margin-bottom: 0;
}

.mb-sm {
    margin-bottom: var(--spacing-sm);
}

.mb-md {
    margin-bottom: var(--spacing-md);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.mt-sm {
    margin-top: var(--spacing-sm);
}

.mt-md {
    margin-top: var(--spacing-md);
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.w-full {
    width: 100%;
}

.bg-white {
    background-color: var(--white);
}

.bg-light {
    background-color: #f1f3f5;
}

.bg-blue-light {
    background-color: #e3f2fd;
}

.bg-green-light {
    background-color: #e8f5e9;
}

.p-sm {
    padding: var(--spacing-sm);
}

.p-md {
    padding: var(--spacing-md);
}

.p-lg {
    padding: var(--spacing-lg);
}

.p-xl {
    padding: var(--spacing-xl);
}

.rounded {
    border-radius: 8px;
}

.rounded-lg {
    border-radius: 12px;
}

.shadow {
    box-shadow: var(--shadow-md);
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

/* Site Detail Page */
.site-detail-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--spacing-xl);
}

.site-main-content {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.site-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.site-sidebar > div {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    position: sticky;
    top: 100px;
}

.site-sidebar > div > a.btn.w-full {
    display: flex !important;
    width: 100%;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    margin: 0 auto;
}

.site-header {
    display: flex;
    align-items: start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.site-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
}

.site-rating {
    color: #f39c12;
    font-size: var(--font-size-xl);
    font-weight: 700;
}

.site-description {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
    color: var(--text-color);
    margin-bottom: var(--spacing-xl);
}

.site-description p {
    max-width: 100%;
}

.reviews-section {
    margin-top: 50px;
}

.reviews-title {
    border-bottom: 2px solid #eee;
    padding-bottom: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.review-card {
    background: #f9f9f9;
    padding: var(--spacing-md);
    border-radius: 8px;
    margin-bottom: var(--spacing-md);
    border-left: 4px solid var(--primary-color);
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-sm);
}

.review-author {
    font-weight: 700;
}

.review-rating {
    color: #f39c12;
    font-weight: 700;
}

.review-text {
    margin: var(--spacing-sm) 0;
    color: #555;
    line-height: var(--line-height-relaxed);
}

.review-date {
    color: #999;
    font-size: var(--font-size-sm);
}

.review-form-container {
    background: #f0f2f5;
    padding: var(--spacing-lg);
    border-radius: 12px;
}

/* Forms */
.form-group {
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
    font-size: var(--font-size-sm);
    color: var(--text-color);
    transition: all 0.3s ease;
}

/* Floating Labels */
.form-group-floating {
    position: relative;
}

.form-group-floating .form-label {
    position: absolute;
    left: 12px;
    top: 14px;
    margin: 0;
    color: #999;
    pointer-events: none;
    transition: all 0.3s ease;
    background: var(--white);
    padding: 0 4px;
    font-size: var(--font-size-base);
    z-index: 2;
}

.form-group-floating .form-input:focus ~ .form-label,
.form-group-floating .form-input:not(:placeholder-shown) ~ .form-label {
    top: -8px;
    left: 8px;
    font-size: var(--font-size-xs);
    color: var(--primary-color);
    font-weight: 600;
}

.form-group-floating .form-select:focus ~ .form-label,
.form-group-floating .form-select.has-value ~ .form-label,
.form-group-floating .form-select:not([value=""]) ~ .form-label {
    top: -8px;
    left: 8px;
    font-size: var(--font-size-xs);
    color: var(--primary-color);
    font-weight: 600;
}

.form-group-floating .form-input:focus {
    padding-top: 20px;
    padding-bottom: 8px;
}

.form-group-floating .form-select:focus {
    padding-top: 20px;
    padding-bottom: 8px;
}

/* Input with Icon */
.form-input-wrapper {
    position: relative;
}

.form-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    font-size: 18px;
    z-index: 1;
    transition: color 0.3s ease;
}

.form-input-wrapper .form-input:focus ~ .form-input-icon,
.form-input-wrapper .form-select:focus ~ .form-input-icon {
    color: var(--primary-color);
}

.form-input-wrapper .form-input {
    padding-left: 40px;
}

.form-input-wrapper .form-select {
    padding-left: 40px;
}

.form-input-wrapper .form-label {
    left: 40px;
}

.form-input-wrapper.form-group-floating .form-input:focus ~ .form-label,
.form-input-wrapper.form-group-floating .form-input:not(:placeholder-shown) ~ .form-label {
    left: 36px;
}

.form-input-wrapper.form-group-floating .form-select:focus ~ .form-label,
.form-input-wrapper.form-group-floating .form-select:not([value=""]) ~ .form-label {
    left: 36px;
}

/* Form Inputs */
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    font-size: var(--font-size-base);
    font-family: inherit;
    box-sizing: border-box;
    transition: all 0.3s ease;
    background-color: var(--white);
    color: var(--text-color);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.1);
    background-color: #fff;
}

.form-input:hover:not(:disabled):not(:focus),
.form-select:hover:not(:disabled):not(:focus),
.form-textarea:hover:not(:disabled):not(:focus) {
    border-color: #b0b0b0;
}

/* Form States */
.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.form-input.error:focus,
.form-select.error:focus,
.form-textarea.error:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.form-input.success,
.form-select.success,
.form-textarea.success {
    border-color: #10b981;
    background-color: #f0fdf4;
}

.form-input.success:focus,
.form-select.success:focus,
.form-textarea.success:focus {
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.form-input[readonly] {
    background: #f8f9fa;
    cursor: not-allowed;
    border-color: #e0e0e0;
}

.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
    border-color: #e0e0e0;
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
    line-height: var(--line-height-relaxed);
}

/* Form Feedback */
.form-feedback {
    margin-top: var(--spacing-xs);
    font-size: var(--font-size-sm);
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-feedback.error {
    color: #ef4444;
}

.form-feedback.success {
    color: #10b981;
}

.form-feedback.info {
    color: #3b82f6;
}

.form-feedback-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Select Styling */
.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
    cursor: pointer;
}

.form-select:focus {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23E63946' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

/* Lot Detail Page */
.lot-detail-page {
    max-width: 1240px;
}

.lot-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
    gap: 28px;
    align-items: start;
}

.lot-image-container {
    min-width: 0;
}

.lot-gallery {
    display: grid;
    gap: 10px;
}

.lot-gallery-stage {
    position: relative;
    height: 440px;
    background-color: #eef2f6;
    border: 1px solid #dce5ef;
    border-radius: 14px;
    overflow: hidden;
}

.lot-gallery-open {
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
}

.lot-gallery-main {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lot-gallery-arrow,
.lot-lightbox-arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    color: #fff;
    background: rgba(18, 38, 65, .86);
    border: 0;
    border-radius: 50%;
    box-shadow: 0 5px 18px rgba(15, 23, 42, .24);
    cursor: pointer;
    transform: translateY(-50%);
}

.lot-gallery-arrow:hover,
.lot-lightbox-arrow:hover {
    background: var(--primary-color);
}

.lot-gallery-arrow svg,
.lot-lightbox-arrow svg,
.lot-lightbox-close svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.lot-gallery-arrow-left { left: 14px; }
.lot-gallery-arrow-right { right: 14px; }

.lot-gallery-counter,
.lot-lightbox-counter {
    position: absolute;
    z-index: 2;
    padding: 5px 10px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    background: rgba(18, 38, 65, .82);
    border-radius: 999px;
}

.lot-gallery-counter {
    right: 14px;
    bottom: 14px;
}

.lot-gallery-thumbnails {
    display: flex;
    gap: 8px;
    padding: 1px 1px 5px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
}

.lot-gallery-thumbnail {
    flex: 0 0 88px;
    width: 88px;
    height: 66px;
    padding: 2px;
    overflow: hidden;
    background: #fff;
    border: 2px solid transparent;
    border-radius: 9px;
    cursor: pointer;
    scroll-snap-align: start;
}

.lot-gallery-thumbnail:hover,
.lot-gallery-thumbnail.is-active {
    border-color: var(--primary-color);
}

.lot-gallery-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 5px;
}

.lot-gallery-empty {
    display: grid;
    min-height: 280px;
    padding: 24px;
    place-items: center;
    color: #718096;
    text-align: center;
    background: #eef2f6;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
}

.lot-info {
    min-width: 0;
}

.lot-info h1 {
    margin: 0 0 14px;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.08;
}

.lot-price {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 16px;
}

.lot-price span {
    color: #718096;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.lot-price strong {
    color: var(--primary-color);
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.1;
}

.lot-details-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 0;
    margin: 0 0 14px;
}

.lot-detail-item {
    min-width: 0;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
}

.lot-detail-item dt {
    margin-bottom: 2px;
    color: #718096;
    font-size: 12px;
    font-weight: 700;
}

.lot-detail-item dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: #1c3557;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.lot-map-link {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    padding: 9px 12px;
    color: #1565a8;
    font-size: 14px;
    font-weight: 700;
    background: #edf6ff;
    border: 1px solid #cfe5f7;
    border-radius: 9px;
}

.lot-map-link:hover {
    color: #fff;
    background: #1565a8;
}

.lot-map-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.lot-description {
    margin: 18px 0;
}

.lot-description h2 {
    margin-bottom: 7px;
    font-size: 23px;
}

.lot-description p {
    margin: 0;
    max-width: 100%;
    font-size: 16px;
    line-height: 1.55;
}

.lot-source-link {
    width: auto;
    padding: 11px 18px;
    font-size: 15px;
}

.lot-lightbox[hidden] {
    display: none;
}

.lot-lightbox {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: grid;
    padding: 42px 76px;
    place-items: center;
    background: rgba(5, 12, 24, .96);
}

.lot-lightbox-stage {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
}

.lot-lightbox-stage img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.lot-lightbox-close {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 3;
    display: grid;
    width: 54px;
    height: 54px;
    padding: 0;
    place-items: center;
    color: #fff;
    background: var(--primary-color);
    border: 2px solid rgba(255, 255, 255, .9);
    border-radius: 50%;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .38);
    cursor: pointer;
}

.lot-lightbox-close:hover {
    background: #b51f31;
}

.lot-lightbox-arrow-left { left: 18px; }
.lot-lightbox-arrow-right { right: 18px; }

.lot-lightbox-counter {
    right: 50%;
    bottom: 18px;
    transform: translateX(50%);
}

body.lot-lightbox-open {
    overflow: hidden;
}

/* Profile Page */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-lg);
}

.profile-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.profile-table {
    width: 100%;
}

.profile-table td {
    padding: var(--spacing-sm) 0;
}

.profile-table td:first-child {
    color: #636e72;
    font-weight: 500;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: var(--font-size-xs);
    font-weight: 600;
}

.badge-admin {
    background: #ffc107;
    color: #000;
}

.badge-user {
    background: #6c757d;
    color: #fff;
}

/* Alert Messages */
.alert {
    padding: var(--spacing-md);
    border-radius: 6px;
    margin-bottom: var(--spacing-md);
    font-size: var(--font-size-sm);
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Section with Background */
.section-bg-light {
    background-color: #f1f3f5;
}

.section-bg-white {
    background-color: var(--white);
}

/* CTA Cards */
.cta-grid {
    display: flex;
    gap: var(--spacing-lg);
    justify-content: center;
    flex-wrap: wrap;
}

.cta-card {
    flex: 1;
    padding: var(--spacing-lg);
    border-radius: 8px;
    min-width: 300px;
}

.cta-card h3 {
    margin-bottom: var(--spacing-sm);
}

.cta-card p {
    margin-bottom: var(--spacing-md);
    max-width: 100%;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    :root {
        --page-gutter: 0px;
    }

    /* Header Mobile */
    .header-inner {
        flex-wrap: wrap;
        position: relative;
    }
    
    .mobile-menu-toggle {
        display: block;
        order: 2;
    }
    
    .logo {
        order: 1;
        font-size: var(--font-size-lg);
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: var(--font-size-lg);
    }
    
    /* Hide navigation menu on mobile */
    nav {
        display: none !important;
    }
    
    /* Hide mobile menu toggle button */
    .mobile-menu-toggle {
        display: none !important;
    }
    
    /* Hide header right section (user menu and telegram button) on mobile */
    .header-right {
        display: none !important;
    }
    
    /* Show mobile logout button on mobile */
    .mobile-logout-form {
        display: block !important;
        order: 2;
        margin-left: auto;
    }
    
    .mobile-logout-btn {
        font-size: var(--font-size-sm);
        padding: 6px 12px;
    }
    
    .btn-telegram {
        font-size: 11px;
        padding: 5px 10px;
        white-space: nowrap;
    }
    
    .user-menu-toggle {
        padding: 4px 8px 4px 4px;
    }
    
    .user-name {
        max-width: 100px;
        font-size: var(--font-size-sm);
    }
    
    .user-menu-dropdown {
        right: 0;
        left: auto;
        min-width: 180px;
    }
    
    .btn-login {
        padding: 6px 12px;
        font-size: var(--font-size-sm);
    }
    
    /* Container */
    .container {
        padding: 0;
    }
    
    /* Hero Section */
    .hero-search {
        padding: var(--spacing-xl) 0;
    }
    
    .hero-search h1 {
        font-size: var(--font-size-xl);
        padding: 0 var(--spacing-sm);
    }
    
    .hero-search p {
        font-size: var(--font-size-sm);
        padding: 0 var(--spacing-sm);
    }
    
    .search-box {
        flex-direction: column;
        padding: 0 15px;
    }
    
    .search-box input {
        width: 100%;
        max-width: 100%;
    }
    
    .search-box button {
        width: 100%;
    }
    
    /* Sections */
    .section {
        padding: var(--spacing-lg) 0;
    }
    
    .section-title {
        font-size: var(--font-size-xl);
        margin-bottom: var(--spacing-md);
    }
    
    /* Grid */
    .grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Lots Grid */
    .lots-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Add Lot Card Mobile */
    .lot-card-add {
        min-height: 200px;
    }
    
    .lot-card-add-icon {
        font-size: 36px;
    }
    
    .lot-card-add-title {
        font-size: var(--font-size-base);
    }
    
    .lot-card-add-text {
        font-size: var(--font-size-sm);
    }
    
    .lot-card-img {
        height: 200px;
    }
    
    .lot-card-body {
        padding: var(--spacing-md);
    }
    
    .lot-card-title {
        font-size: var(--font-size-base);
        height: auto;
        margin-bottom: var(--spacing-sm);
    }
    
    .lot-card-price {
        font-size: var(--font-size-lg);
    }
    
    /* Cards */
    .card {
        margin-bottom: var(--spacing-md);
    }
    
    .card-body {
        padding: var(--spacing-md);
    }
    
    .card-title {
        font-size: var(--font-size-lg);
    }
    
    .card-price {
        font-size: var(--font-size-xl);
    }
    
    /* Sites Catalog */
    .sites-catalog-container {
        flex-direction: column;
        gap: var(--spacing-md);
    }
    
    .sites-column {
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
    
    .sites-column-title {
        font-size: var(--font-size-lg);
        text-align: center;
    }
    
    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    .feature-card {
        padding: var(--spacing-lg) var(--spacing-md);
    }
    
    .feature-card h3 {
        font-size: var(--font-size-lg);
    }
    
    .feature-card p {
        font-size: var(--font-size-sm);
    }
    
    .feature-card .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
    
    /* Site Detail Page */
    .site-detail-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: var(--spacing-md);
    }
    
    .site-sidebar {
        order: -1 !important; /* Move statistics block above reviews on mobile */
    }
    
    .site-main-content {
        order: 0 !important; /* Keep reviews below statistics on mobile */
        padding: var(--spacing-md) !important;
    }
    
    .site-sidebar > div {
        position: relative !important;
        top: 0 !important;
        padding: var(--spacing-md) !important;
    }
    
    /* Lot Detail Page */
    .lot-detail-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .lot-gallery-stage {
        height: min(78vw, 360px);
        border-radius: 11px;
    }

    .lot-gallery-arrow {
        width: 38px;
        height: 38px;
    }

    .lot-gallery-arrow-left { left: 9px; }
    .lot-gallery-arrow-right { right: 9px; }

    .lot-gallery-thumbnail {
        flex-basis: 74px;
        width: 74px;
        height: 56px;
    }

    .lot-info h1 {
        font-size: clamp(26px, 8vw, 34px);
    }

    .lot-lightbox {
        padding: 70px 12px 58px;
    }

    .lot-lightbox-close {
        top: 12px;
        right: 12px;
        width: 50px;
        height: 50px;
    }

    .lot-lightbox-arrow {
        top: auto;
        bottom: 10px;
        width: 42px;
        height: 42px;
        transform: none;
    }

    .lot-lightbox-arrow-left { left: 12px; }
    .lot-lightbox-arrow-right { right: 12px; }

    .lot-lightbox-counter {
        bottom: 22px;
    }
    
    /* Profile Page */
    .profile-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* CTA Cards */
    .cta-grid {
        flex-direction: column;
    }
    
    .cta-card {
        width: 100%;
    }
    
    /* Forms */
    .form-input,
    .form-select,
    .form-textarea {
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Buttons */
    .btn {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    
    /* Footer */
    footer {
        padding: var(--spacing-md) 0;
    }

    .site-footer-inner {
        align-items: baseline;
        overflow-x: auto;
    }

    .site-footer-links {
        gap: 12px;
    }
}

.artifact-list {
    display: grid;
    gap: 10px;
}

.objects-register,
.objects-register input,
.objects-register select,
.objects-register button,
.objects-register-table {
    font-family: "Roboto Condensed", Arial, sans-serif;
}

.objects-register-toolbar,
.objects-bulk-controls,
.objects-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.objects-filter-item {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(110px, 1fr) minmax(140px, 1.5fr);
    gap: 6px;
    min-width: 0;
}

.objects-register-table-scroll {
    max-width: 100%;
    overflow-x: visible;
}

.objects-register-table {
    width: max-content;
    min-width: 0;
    border-collapse: collapse;
    font-size: 12px;
}

.objects-register-table th,
.objects-register-table td {
    padding: 5px 7px;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: top;
}

.objects-fixed-cell {
    width: 1%;
    white-space: nowrap;
}

.objects-data-money,
.objects-data-number,
.objects-data-percent,
.objects-nowrap {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.is-column-hidden,
.is-hidden {
    display: none !important;
}

.artifact-item {
    min-width: 0;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
}

.artifact-item-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

.artifact-item-content {
    min-width: 0;
    overflow-wrap: anywhere;
}

.artifact-item .objects-actions {
    flex-wrap: wrap;
}

.artifact-preview {
    display: block;
    max-width: 100%;
    max-height: 240px;
    margin-top: 8px;
    object-fit: contain;
}

/* Small Mobile (up to 480px) */
@media (max-width: 480px) {
    :root {
        --page-gutter: 0px;
    }

    .hero-search h1 {
        font-size: var(--font-size-lg);
    }
    
    .section-title {
        font-size: var(--font-size-lg);
    }
    
    .card-body {
        padding: 12px;
    }
    
    .feature-card {
        padding: var(--spacing-lg) 15px;
    }
    
    .container {
        padding: 0;
    }
    
    h1 {
        font-size: var(--font-size-2xl);
    }
    
    h2 {
        font-size: var(--font-size-xl);
    }
    
    h3 {
        font-size: var(--font-size-lg);
    }
}
