/* Стили скроллбара */
*::-webkit-scrollbar {
    width: 7px;
    background-color: transparent;
    transition: all 1;
    height: 4px;
}

*::-webkit-scrollbar-thumb {
    background-color: #94a3b8;
    border-radius: 4px;
}

*::-webkit-scrollbar-track {
    background-color: black;
    display: none;
}

*::-webkit-scrollbar-button:single-button {
    display: none;
    height: 0;
    width: 0;
}

*::-webkit-scrollbar-button {
    display: none;
    height: 0;
    width: 0;
}

/* CSS Variables для Dark Mode по умолчанию */
:root {
    --bg: #0f172a;
    --glass: rgba(30, 41, 59, 0.75);
    --border: rgba(148, 163, 184, 0.1);
    --text: #f8fafc;
    --muted: #94a3b8;
    --accent: #60a5fa;
    --success: #4ade80;
    --warning: #fbbf24;
    --danger: #f87171;
    --card-bg: #1e293b;
    --card-border: #334155;
    --input-bg: #1e293b;
    --input-border: #475569;
    
    --mesh-bg: radial-gradient(at 7.895593425389158% 90.97117007556805%, hsla(0, 0%, 16.07843137254902%, 1) 0%, hsla(0, 0%, 16.07843137254902%, 0) 100%), radial-gradient(at 63.52834556649821% 69.59316942896892%, hsla(60.98360655737704, 100%, 88.0392156862745%, 1) 0%, hsla(60.98360655737704, 100%, 88.0392156862745%, 0) 100%), radial-gradient(at 39.79103062478605% 3.968201461236187%, hsla(0, 0%, 0%, 1) 0%, hsla(0, 0%, 0%, 0) 100%), radial-gradient(at 87.55984941662349% 3.9509030957379454%, hsla(205.79439252336448, 43.673469387755105%, 48.0392156862745%, 1) 0%, hsla(205.79439252336448, 43.673469387755105%, 48.0392156862745%, 0) 100%), radial-gradient(at 99.8260831964676% 97.86906333441571%, hsla(31.95652173913043, 80%, 45.09803921568628%, 1) 0%, hsla(31.95652173913043, 80%, 45.09803921568628%, 0) 100%), radial-gradient(at 96.51039771737017% 71.36186136693925%, hsla(0, 0%, 16.07843137254902%, 1) 0%, hsla(0, 0%, 16.07843137254902%, 0) 100%);    min-height: calc(100vh - 62px);
}

/* CSS Variables для Light Mode */
.light-mode {
    --bg: #F4F6F8;
    --glass: rgba(255, 255, 255, 0.9);
    --border: rgba(0, 0, 0, 0.06);
    --text: #0F0F0F;
    --muted: #6B7280;
    --accent: #1F91DC;
    --success: #4CAF50;
    --warning: #FF9800;
    --danger: #F44336;
    --card-bg: #ffffff;
    --card-border: #e5e7eb;
    --input-bg: #ffffff;
    --input-border: #d1d5db;
    
    --mesh-bg: radial-gradient(at 30.012008099304566% 70.26140260663115%, hsla(213.75, 15.09433962264151%, 20.784313725490197%, 1) 0%, hsla(213.75, 15.09433962264151%, 20.784313725490197%, 0) 100%), radial-gradient(at 5.573703032421562% 6.993421537305977%, hsla(60, 20%, 93.13725490196079%, 1) 0%, hsla(60, 20%, 93.13725490196079%, 0) 100%), radial-gradient(at 85.04487692772253% 94.67219300555868%, hsla(28.18181818181818, 58.40707964601769%, 55.68627450980392%, 1) 0%, hsla(28.18181818181818, 58.40707964601769%, 55.68627450980392%, 0) 100%), radial-gradient(at 87.94278502775259% 74.63930250444108%, hsla(213.75, 15.09433962264151%, 20.784313725490197%, 1) 0%, hsla(213.75, 15.09433962264151%, 20.784313725490197%, 0) 100%), radial-gradient(at 16.22076386100282% 87.92608282220837%, hsla(60, 20%, 93.13725490196079%, 1) 0%, hsla(60, 20%, 93.13725490196079%, 0) 100%), radial-gradient(at 34.45622308324919% 48.397805834696115%, hsla(28.18181818181818, 58.40707964601769%, 55.68627450980392%, 1) 0%, hsla(28.18181818181818, 58.40707964601769%, 55.68627450980392%, 0) 100%), radial-gradient(at 21.56007471076028% 42.35926031782973%, hsla(213.75, 15.09433962264151%, 20.784313725490197%, 1) 0%, hsla(213.75, 15.09433962264151%, 20.784313725490197%, 0) 100%), radial-gradient(at 63.366149746333775% 27.048212345985945%, hsla(60, 20%, 93.13725490196079%, 1) 0%, hsla(60, 20%, 93.13725490196079%, 0) 100%), radial-gradient(at 37.26544580551446% 68.60859399180536%, hsla(28.18181818181818, 58.40707964601769%, 55.68627450980392%, 1) 0%, hsla(28.18181818181818, 58.40707964601769%, 55.68627450980392%, 0) 100%), radial-gradient(at 76.82968923627577% 71.09341968415453%, hsla(213.75, 15.09433962264151%, 20.784313725490197%, 1) 0%, hsla(213.75, 15.09433962264151%, 20.784313725490197%, 0) 100%);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "TT Fors", sans-serif, Inter, system-ui;
    background: var(--mesh-bg);
    color: var(--text);
    overflow: hidden;
    max-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

@font-face {
    font-family: "TT Fors";
    src: url("/assets/fonts/TT-Fors-Display-Regular.ttf") format("truetype");
}

@font-face {
    font-family: "TT Fors Medium";
    src: url("/assets/fonts/TT-Fors-Display-Medium.ttf") format("truetype");
}

@font-face {
    font-family: "CalSans";
    src: url("/assets/fonts/CalSans-Regular.ttf") format("truetype");
}

/* HEADER */
.saas-header {
    position: sticky;
    top: 0;
    z-index: 100;
    /*background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);*/
}

.light-mode .saas-header {
    /*background: rgba(255, 255, 255, 0.95);*/
}

.header-inner {
    margin: 0 auto;
    padding: 5px 20px;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    border-radius: 18px;
    border: 1px solid transparent;
    transition: backdrop-filter .3s ease, background .3s ease, box-shadow .3s ease, border-color .3s ease, width .4s ease;
}

.header-inner.scrolled {
    width: 90%;
    backdrop-filter: blur(12px) saturate(160%);
    background: var(--glass);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 255, 255, 0.1);
}

.light-mode .header-inner.scrolled {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.4);
}

.logo {
    font-family: "CalSans";
    font-weight: 600;
    font-size: 22px;
    border-radius: 12px;
    padding: 6px 12px;
    transition: all 0.3s ease;
    cursor: pointer;
    user-select: none;
    display: flex;
    flex-direction: row;
    color: var(--text);
    text-decoration: none;
    border: 1px solid transparent;
}

.logo span {
    font-family: "TT Fors Medium";
    color: var(--accent);
}

.logo small {
    font-family: "CalSans";
    font-weight: 700;
    font-size: 0.5rem;
}

/*.logo:hover {
    background: var(--card-bg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, .08);
}*/
.logo:hover {
    background: var(--glass); 
    backdrop-filter: blur(10px); 
    border: 1px solid var(--border);
    box-shadow: rgba(0, 0, 0, 0.2) 0px 10px 30px; 
    animation: 0.3s ease 0s 1 normal;
}

/* Тема переключатель */
.theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    border-radius: 15px;
    background: var(--card-bg);
    border: 2px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 0 5px;
}

.theme-toggle::before {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--accent);
    transition: transform 0.3s ease;
    left: 4px;
}

.light-mode .theme-toggle::before {
    transform: translateX(27px);
    background: var(--warning);
}

.theme-icon {
    z-index: 1;
    font-size: 20px;
    transition: opacity 0.3s ease;
}

.theme-icon.sun {
    margin-right: auto;
    color: var(--warning);
}

.theme-icon.moon {
    margin-left: auto;
    color: var(--muted);
}

.light-mode .theme-icon.sun {
    color: var(--muted);
}

.light-mode .theme-icon.moon {
    color: white;
}

/* NAV PILLS */
.pill-nav {
    display: flex;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
}

.pill {
    padding: 10px 16px;
    border-radius: 999px;
    display: flex;
    gap: 8px;
    align-items: center;
    text-decoration: none;
    color: var(--text);
    font-size: 14px;
    transition: .25s;
    font-weight: 600;
    background: var(--glass);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    border: 1px solid var(--border);
}

.pill:hover {
    background: rgba(255, 255, 255, 0.1);
}

.light-mode .pill:hover {
    background: black;
    color:white;
}

.pill.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.pill i {
    font-size: 1rem;
}

/* ACTIONS */
.header-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.circle-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--card-bg);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.circle-btn:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
    border-color: var(--accent);
}

.circle-btn.active {
    background:var(--accent);
    color:white;
}

.connect-btn {
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--accent);
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.connect-btn:hover {
    background: var(--accent);
    opacity: 0.9;
    transform: translateY(-2px);
}

/* AUCTION HERO SECTION */
.auction-hero {
    background:transparent;
    position: relative;
    overflow: hidden;
    margin-bottom:0rem;
    min-height: 100vh;
}

.light-mode .auction-hero {
    background: transparent;
}

.auction-container {
    
    width: 95%;
    margin: 0 auto;
    border-radius: 20px;
    padding: 0 20px 70px 20px;
    position: relative;
    max-height: 100vh;
    overflow-y: auto;
    z-index: 2;
}

.wallet-ac {
    font-family:"CalSans", Arial;
    border-radius: 15px;
    background: var(--card-bg);
    border: 2px solid var(--border)
    rgba(148, 163, 184, 0.1);
    cursor: pointer;
    padding: 4px 8px;
    display:flex;
    align-items:center;
    transition: all 0.3s ease;
    gap:4px;
}
.wallet-ac:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
    border-color: var(--accent);
}

.wallet-ac i {font-size: 18px;}

/* AUCTION NAVIGATION */
.auction-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.back-btn:hover {
    background: var(--card-bg);
    transform: translateX(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.auction-pagination {
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: var(--card-bg);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.nav-btn.prev {
    padding-right: 25px;
}

.nav-btn.next {
    padding-left: 25px;
}

/* SELLER PROFILE - ГОРИЗОНТАЛЬНАЯ ВЕРСИЯ */
.seller-profile-horizontal {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--glass);
    border-radius: 16px;
    padding: 7px 14px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    top: 10px;
    z-index: 10;
    min-width: 500px;
}

.seller-header-horizontal {
    display: flex;
    align-items: center;
    gap: 15px;
}

.seller-avatar-horizontal {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--success));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
    font-family: "CalSans";
    flex-shrink: 0;
}

.seller-info-horizontal h3 {
    margin: 0 0 5px 0;
    font-family: "TT Fors Medium";
    font-size: 16px;
    white-space: nowrap;
    color: var(--text);
}

.seller-rating-horizontal {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--warning);
    font-size: 13px;
}

.seller-rating-horizontal span {
    color: var(--text);
    font-weight: 600;
}

.seller-stats-horizontal {
    display: flex;
    gap: 25px;
    padding: 0 25px;
    border-left: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.seller-stat-horizontal {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.stat-value-horizontal {
    font-family: "CalSans";
    font-size: 16px;
    color: var(--text);
}

.stat-label-horizontal {
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
}

.seller-actions-horizontal {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.seller-btn-horizontal {
    padding: 8px 16px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    white-space: nowrap;
}

.seller-btn-horizontal.secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.seller-btn-horizontal:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* AUCTION CONTENT */
.auction-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .auction-content {
        grid-template-columns: 1fr;
    }

    .seller-profile-horizontal {
        position: relative;
        left: 0;
        transform: none;
        top: 0;
        width: 100%;
        min-width: auto;
        margin-bottom: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .seller-stats-horizontal {
        border: none;
        padding: 10px 0;
    }
}

/* IMAGE GALLERY */
.image-gallery {
    background: var(--glass);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    height: fit-content;
}

.main-image {
    width: 100%;
    height: 350px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin-bottom: 15px;
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
}

.main-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    z-index: 1;
}

.main-image i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 70px;
    color: white;
    opacity: 0.8;
    z-index: 2;
}

.image-thumbnails {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.thumbnail {
    height: 70px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--accent), var(--success));
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.thumbnail:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.thumbnail.active {
    border: 3px solid var(--accent);
    transform: scale(1.05);
}

.thumbnail i {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 20px;
}

/* AUCTION DETAILS */
.auction-details {
    background: var(--glass);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    height: fit-content;
}

.auction-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.auction-category {
    background: rgba(96, 165, 250, 0.1);
    color: var(--accent);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auction-title {
    font-family: "CalSans";
    font-size: 1.8rem;
    margin: 15px 0;
    color: var(--text);
    line-height: 1.2;
}

.auction-meta {
    display: flex;
    gap: 20px;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.meta-label {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

.auction-description {
    color: var(--muted);
    line-height: 1.6;
    font-size: 15px;
}

/* SPECIFICATIONS */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 7.5px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.spec-label {
    font-size: 13px;
    color: var(--muted);
}

.spec-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.spec-info {
    border-radius: 16px;
    padding: 3px 7px;
    margin-top: 0.5rem;
    border: 1px solid var(--accent);
}

/* FIXED BIDDING SECTION */
.bidding-section-fixed {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
    z-index: 90;
    transition: all 0.3s ease;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 20px 20px 0 0;
}

.bidding-section-fixed.compact {
    height: 70px;
}

.bidding-section-fixed.expanded {
    height: 250px;
}

/* Кнопка переключения режима */
.toggle-mode-btn {
    position: absolute;
    top: -15px;
    right: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 91;
}

.toggle-mode-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.toggle-mode-btn.rotated {
    transform: rotate(180deg);
}

.toggle-mode-btn.rotated:hover {
    transform: rotate(180deg) translateY(-3px);
}

/* Стандартный вид */
.bid-content-expanded {
    padding: 25px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.bid-header-expanded {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.time-left-expanded {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--danger);
    font-weight: 600;
    font-size: 14px;
}

.bid-stats-expanded {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.bid-stat-expanded {
    text-align: center;
    padding: 15px;
    background: var(--bg);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.bid-stat-expanded h3 {
    margin: 0;
    font-family: "CalSans";
    font-size: 1.8rem;
    color: var(--text);
}

.bid-stat-expanded p {
    font-family: "TT Fors Medium";
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.bid-actions-expanded {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: auto;
}

/* Компактный вид */
.bid-content-compact {
    padding: 15px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.bid-info-compact {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.bid-title-compact {
    font-family: "CalSans";
    font-size: 16px;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.bid-price-compact {
    display: flex;
    align-items: center;
    gap: 15px;
}

.current-bid-compact {
    font-family: "CalSans";
    font-size: 1.5rem;
    color: var(--text);
}

.time-left-compact {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--danger);
    font-size: 13px;
    font-weight: 600;
}

.bid-actions-compact {
    display: flex;
    gap: 10px;
}

/* Общие стили кнопок */
.bid-btn {
    font-family: "CalSans";
    padding: 12px 20px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.bid-btn.secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}

.bid-btn.warning {
    background: var(--warning);
    color: var(--text);
}

.bid-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.bid-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Компактные кнопки */
.bid-btn-compact {
    padding: 10px 18px;
    font-size: 13px;
}

/* FOOTER TOGGLE */
.footer-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.toggle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.toggle-btn.rotated {
    transform: rotate(180deg);
}

.toggle-btn.rotated:hover {
    transform: rotate(180deg) scale(1.1);
}

/* FOOTER */
.footer {
    position: fixed;
    bottom: -400px;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 40px 20px 30px;
    transition: bottom 0.5s ease;
    z-index: 900;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
}

.footer.show {
    bottom: 0;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo {
    font-family: "TT Fors Medium";
    font-size: 24px;
    color: var(--text);
}

.footer-logo span {
    color: var(--accent);
}

.footer-description {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

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

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent);
    color: white;
    transform: translateY(-2px);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-links h4 {
    margin: 0;
    font-family: "TT Fors Medium";
    font-size: 16px;
    color: var(--text);
}

.footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    max-width: 1400px;
    margin: 50px auto 0;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 14px;
}

/* LIGHTBOX */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(10px);
}

.lightbox.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 12px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .auction-nav {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .auction-pagination {
        width: 100%;
        justify-content: space-between;
    }

    .seller-profile-horizontal {
        position: relative;
        left: 0;
        transform: none;
        top: 0;
        width: 100%;
        min-width: auto;
        margin-bottom: 20px;
        flex-direction: column;
        gap: 15px;
    }

    .seller-stats-horizontal {
        border: none;
        padding: 10px 0;
        justify-content: center;
        width: 100%;
    }

    .seller-header-horizontal {
        justify-content: center;
        width: 100%;
    }

    .auction-title {
        font-size: 1.5rem;
    }

    .specs-grid {
        grid-template-columns: 1fr;
    }

    .bid-actions-expanded {
        grid-template-columns: 1fr;
    }

    .image-thumbnails {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    /* Адаптация fixed bid-section */
    .bidding-section-fixed {
        max-width: 100%;
    }

    .bid-content-compact {
        padding: 10px 15px;
    }

    .bid-title-compact {
        max-width: 150px;
        font-size: 14px;
    }

    .current-bid-compact {
        font-size: 1.2rem;
    }

    .bid-actions-compact {
        flex-direction: column;
        gap: 5px;
    }

    .bid-btn-compact {
        padding: 8px 12px;
        font-size: 12px;
    }

    .toggle-mode-btn {
        top: -35px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .header-inner {
        flex-wrap: wrap;
        gap: 15px;
    }

    .pill-nav {
        order: 3;
        width: 100%;
        justify-content: center;
    }

    .auction-meta {
        flex-direction: column;
        gap: 10px;
    }

    .bid-stats-expanded {
        grid-template-columns: 1fr;
    }

    .seller-actions-horizontal {
        flex-direction: column;
        width: 100%;
    }

    .seller-btn-horizontal {
        width: 100%;
    }

    .bid-content-compact {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }

    .bid-price-compact {
        justify-content: space-between;
    }

    .bid-actions-compact {
        flex-direction: row;
        justify-content: center;
    }
}
.cp-denied {display:none;}

/* FOOTER - RESPONSIVE STYLES */
@media (max-width: 768px) {
    .main-cp-content {display:none;}
    .cp-denied {
        position:fixed;
        background:radial-gradient(at 31.2444175316135% 79.46647854157554%, hsla(18.620689655172413, 100%, 54.509803921568626%, 1) 0%, hsla(18.620689655172413, 100%, 54.509803921568626%, 0) 100%), radial-gradient(at 10.8538524729057% 38.18604351455737%, hsla(246.58823529411762, 100%, 50%, 1) 0%, hsla(246.58823529411762, 100%, 50%, 0) 100%), radial-gradient(at 22.930116181879622% 96.18149723405224%, hsla(18.620689655172413, 100%, 54.509803921568626%, 1) 0%, hsla(18.620689655172413, 100%, 54.509803921568626%, 0) 100%), radial-gradient(at 95.46989490054953% 46.01546499927153%, hsla(246.58823529411762, 100%, 50%, 1) 0%, hsla(246.58823529411762, 100%, 50%, 0) 100%);
        z-index: 9999;
        width:100%;height:100%;
        padding:12px;
        display:flex;
        flex-direction:column;
        gap:1rem;
        align-items:center;
        justify-content:center;
    }
    
    .cp-denied h2 {font-size: 1.5rem;font-family:'CalSans';}
    .cp-denied i {font-size: 2.3rem;}
    .cp-denied p {font-size: 1rem;font-family: "TT Fors";text-align:center;}
    .cp-denied-btn a{text-decoration:none;display:flex;align-items:center;gap:5px;background: black;color:white;border-radius:12px; padding:4px 8px;font-family: "CalSans";}
    .cp-denied-btn i {color:white;font-size:1rem;}
    .footer {
        padding: 30px 20px 20px;
        max-height: 70vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .footer.show {
        bottom: 0;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-brand {
        text-align: center;
        align-items: center;
    }
    
    .footer-logo {
        font-size: 22px;
    }
    
    .footer-description {
        font-size: 13px;
        text-align: center;
        max-width: 300px;
    }
    
    .social-links {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .social-link {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .footer-links {
        text-align: center;
        align-items: center;
    }
    
    .footer-links h4 {
        font-size: 15px;
        margin-bottom: 5px;
    }
    
    .footer-links ul {
        gap: 8px;
        align-items: center;
    }
    
    .footer-links a {
        font-size: 13px;
        padding: 3px 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding-top: 20px;
        margin-top: 30px;
        font-size: 12px;
    }
    
    .footer-bottom > div:first-child {
        order: 2;
    }
    
    .footer-bottom > div:last-child {
        order: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .footer-bottom > div:last-child > span {
        font-size: 11px;
        color: var(--muted);
    }
    
    /* Payment methods styling */
    .footer-bottom > div:last-child > div {
        display: flex;
        gap: 8px;
    }
    
    .footer-bottom > div:last-child > div > div {
        width: 35px;
        height: 22px;
        font-size: 10px;
        background: var(--input-bg);
        border: 1px solid var(--input-border);
    }
    
    /* Close button for mobile footer */
    .footer-toggle .toggle-btn {
        width: 45px;
        height: 45px;
        bottom: 80px; display:none;
        right: 15px;
        background: var(--accent);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    }
    
    /* Scrollbar styling for mobile footer */
    .footer::-webkit-scrollbar {
        width: 4px;
    }
    
    .footer::-webkit-scrollbar-thumb {
        background: var(--accent);
        border-radius: 2px;
    }
}

/* Additional responsive for very small screens */
@media (max-width: 480px) {
    .footer {
        padding: 25px 15px 15px;
        max-height: 65vh;
    }
    
    .footer-content {
        gap: 25px;
    }
    
    .footer-logo {
        font-size: 20px;
    }
    
    .footer-description {
        font-size: 12px;
        max-width: 280px;
    }
    
    .social-links {
        gap: 8px;
    }
    
    .social-link {
        width: 30px;
        height: 30px;
    }
    
    .footer-links h4 {
        font-size: 14px;
    }
    
    .footer-links a {
        font-size: 12px;
    }
    
    .footer-bottom {
        gap: 12px;
        font-size: 11px;
    }
    
    .footer-bottom > div:last-child > div > div {
        width: 32px;
        height: 20px;
        font-size: 9px;
    }
    
    /* Ensure fixed bidding section doesn't overlap on mobile */
    .bidding-section-fixed {
        z-index: 901; /* Выше футера */
    }
    
    .footer {
        z-index: 900;
    }
    
    .footer-toggle .toggle-btn {
        bottom: 90px; display:none;
        z-index: 902; 
    }
}

/* Landscape mode optimization */
@media (max-width: 768px) and (orientation: landscape) {
    .footer {
        max-height: 50vh;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
    
    .footer-links {
        text-align: left;
        align-items: flex-start;
    }
    
    .footer-links ul {
        align-items: flex-start;
    }
    
    .footer-bottom {
        flex-direction: row;
        align-items: center;
    }
    
    .footer-bottom > div:first-child {
        order: 1;
    }
    
    .footer-bottom > div:last-child {
        order: 2;
        flex-direction: row;
        align-items: center;
    }
}