* {
    box-sizing: border-box;
}
body {
    background: #fff;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    position: relative;
}
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}
.site-header {
    background: #f5f5f5;
    padding: 8px 0;
    border-bottom: 1px solid #ddd;
}
.wrapper_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    flex-direction: column;
}

.logo img {
    width: 106px;
    height: auto;
}

.logo-subtitle {
    font-size: 12px;
    letter-spacing: 1px;
    color: #777;
}

.profile-link {
    display: flex;
    flex-direction: column;
    align-items: center;

    text-decoration: none;
    color: #757575;
    letter-spacing: 1px;

    font-weight: 900;
    cursor: pointer;
    font-size: 10px;
    background: none;
    line-height: 12px;
    outline: none;
    text-transform: uppercase;
    border: none;
}

.profile-link svg {
    margin-bottom: 4px;
}

.profile-link:hover {
    color: #000;
}

.header_menu {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.header_menu a {
    font-weight: 700;
    font-size: 14px;
    line-height: 16px;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
    padding: 26px 0;
    width: 156px;
    border-bottom: 2px solid transparent;
    color: rgba(117, 117, 117, 1);
    transition: all 0.3s ease;
    text-decoration: none;
    text-transform: uppercase;
}
.header_menu a.active {
    color: rgba(0, 0, 0, 1);
    border-bottom: 2px solid rgba(0, 0, 0, 1);
}
.header_menu a:hover {
    color: rgba(0, 0, 0, 1);
}



.home-live {
    width: 100%;
    height: 520px;
    position: relative;
    margin-bottom: 64px;

}

.home-live img.live-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.home-live .live-badge-mobile {
    display: none;
    font-weight: 900;
    background: red;
    padding: 10px 12px;
    gap: 6px;
    align-items: center;
    justify-content: center;
    letter-spacing: 2.4px;
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 12px;
    line-height: 12px;
    color: #fff;
}
.home-live .live-badge-mobile.upcoming-badge-mobile {
    background: #000000 !important;
    letter-spacing: 1px;
}
.live-overlay {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 56px;
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 0 80px 80px 80px;
    color: white;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 40%, rgba(0, 0, 0, 0) 100%);

}
.live-overlay .left_part {
   width: 100%;
    flex: 1;
}
.live-overlay .right_part {
   width: 344px;
    flex: none;
}

.live-overlay .live-badge {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
}
.live-overlay .live-badge .live {
    background: rgba(251, 44, 54, 1);
    font-weight: 900;
    margin-bottom: 24px;
    display: inline-flex;
    padding: 10px 12px;
    gap: 6px;
    align-items: center;
    justify-content: center;
    letter-spacing: 2.4px;
    font-size: 12px;
    line-height: 12px;
}
.live-overlay .live-badge .live.live--upcoming {
    background: #000000 !important;
    letter-spacing: 1px;
}
.live-overlay .live-badge .viewer-count-wrapper {
    background: rgba(32, 32, 32, 1);
    font-weight: 900;
    margin-bottom: 24px;
    display: inline-flex;
    padding: 10px 12px;
    gap: 6px;
    align-items: center;
    justify-content: center;
    letter-spacing: 2.4px;
    font-size: 12px;
    line-height: 12px;
}

.live-overlay .join-btn {
    width: 100%;
    background: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: #000000;
    height: 74px;
    font-size: 18px;
    font-weight: 800;
    line-height: 16px;
    gap: 4px;
    padding: 16px 24px;
    position: relative;
    transition: all 0.3s ease;
}
.live-overlay .join-btn:hover {
    background: rgba(242, 242, 242, 1);
    padding: 16px 14px 16px 24px
}
.live-overlay .join-btn:before {
    content: '';
    position: absolute;
    left: 50%;
    height: 42px;
    width: 2px;
    background: rgba(222, 222, 222, 1);
}
.live-overlay .join-btn .link_join_now {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-end;
    transition: all 0.3s ease;
}
.live-overlay .join-btn:hover .link_join_now {
    gap: 14px;
}
.live-overlay .join-btn .live-bid-info {
    font-weight: 700;
    font-size: 12px;
    line-height: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.live-overlay .join-btn .live-bid-info .bid_home {
    font-weight: 900;
    font-size: 24px;
    line-height: 24px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
.live-overlay .join-btn.upcoming-btn {
    justify-content: center;
}
.live-overlay .join-btn.upcoming-btn:before {
    display: none;
}
.live-overlay .name_auction {
    font-family: "Noto Serif", serif;
    font-weight: 400;
    font-size: 48px;
    line-height: 56px;
    letter-spacing: 2px;
}

.home-upcoming {

}
.home-upcoming .title_upcoming_section {
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-top: 1px solid #000000;
    padding: 22px 0;
}
.home-upcoming .title_upcoming_section span {
    font-weight: 400;
}

.auction-grid {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    width: 100%;
}

.auction-card {
    width: calc(100% / 4 - 10px);
    text-decoration: none;
    color: black;
    height: 422px;
    position: relative;
}
.auction-card img {
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.auction-card .card-label {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 10px 12px;
    font-weight: 600;
    font-size: 12px;
    line-height: 12px;
    color: #ffffff;
    background: #000000;
}
.auction-card .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 16px 16px 24px 16px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: linear-gradient(
            to top,
            rgba(0,0,0,1) 0%,
            rgba(0,0,0,0.5) 40%,
            rgba(0,0,0,0) 100%
    );
}

.auction-card .card-overlay .title_card {
    font-family: "Noto Serif", serif;
    font-weight: 400;
    font-size: 24px;
    line-height: 28px;
    letter-spacing: 2px;
    color: #FFFFFF;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.auction-card .card-overlay .card-date {
    font-weight: 700;
    font-size: 12px;
    line-height: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
}


footer {
    margin-top: 80px;
    border-top: 1px solid rgba(196, 196, 196, 1);
}
footer .wrapper_footer {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 0;
}
footer .copywrite {
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    color: rgba(92, 92, 92, 1);
}
footer .footer_menu {
    display: flex;
    align-items: center;
    gap: 32px;
    justify-content: flex-end;
    padding: 0;
    margin: 0;
}
footer .footer_menu li {
    list-style: none;
}
footer .footer_menu li a {
    text-decoration: none;
    font-weight: 400;
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(92, 92, 92, 1);
}
footer .footer_menu li a:hover {
    text-decoration: underline;
}


/* ---- AUCTION PAGE ---- */
.live-lot {
    display: flex;
    gap: 24px;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    height: 680px;
    margin-bottom: 64px;
}
.live-lot .online_stream {
    position: relative;
    flex: 1;
}
.live-lot .online_stream .top_stream {
    position: absolute;
    top: 48px;
    left: 0;
    z-index: 99;
    padding: 0 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.live-lot .online_stream .top_stream .btn_back {
    display: flex;
}
.live-lot .online_stream .top_stream .live-badge {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    color: #fff;
}
.live-lot .online_stream .top_stream .live-badge .live {
    background: rgba(251, 44, 54, 1);
    font-weight: 900;
    margin-bottom: 24px;
    display: inline-flex;
    padding: 10px 12px;
    gap: 6px;
    align-items: center;
    justify-content: center;
    letter-spacing: 2.4px;
    font-size: 12px;
    line-height: 12px;
}
.live-lot .online_stream .top_stream .live-badge .viewer-count-wrapper {
    background: rgba(32, 32, 32, 1);
    font-weight: 900;
    margin-bottom: 24px;
    display: inline-flex;
    padding: 10px 12px;
    gap: 6px;
    align-items: center;
    justify-content: center;
    letter-spacing: 2.4px;
    font-size: 12px;
    line-height: 12px;
}
.live-lot .online_stream img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.live-lot .online_stream .live-overlay {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 56px;
    position: absolute;
    left: 0;
    bottom: 0;
    padding: 48px;
    color: white;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.5) 40%, rgba(0, 0, 0, 0) 100%);
}
.live-lot .online_stream .live-overlay .title_stream {
    font-family: "Noto Serif", serif;
    font-weight: 400;
    font-size: 40px;
    line-height: 44px;
    letter-spacing: 2px;
}

.live-lot .info_live_lot {
    flex: none;
    width: 380px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    justify-content: center;
}


.chat-box{
    width: 100%;
    height: 380px;
    padding: 16px;
    border: 1px solid rgba(222, 222, 222, 1);
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.chat-messages{
    flex:1;
    overflow-y:auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    align-items: flex-start;
    min-height: 0;
    /* No scroll-behavior: smooth — it gets interrupted by DOM mutations (loader removal)
       and leaves the chat stuck mid-scroll */
}

/* Flex spacer — pushes messages to the bottom when there are few of them,
   shrinks to 0 when messages overflow so scroll works correctly */
.chat-messages::before {
    content: '';
    flex: 1 0 0; /* grow but never shrink, so messages are never compressed */
}

/* Prevent message rows from being compressed by flex layout */
.chat-msg, .chat-message, .chat-msg--system {
    flex-shrink: 0;
}

/* Custom scrollbar */
.chat-messages::-webkit-scrollbar { width: 3px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 2px;
}
.chat-messages { scrollbar-width: thin; scrollbar-color: rgba(0,0,0,0.18) transparent; }

/* Chat message rows — generated by chat.js */
.chat-msg {
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    color: rgba(0, 0, 0, 1);
    word-break: break-word;
    max-width: 100%;
}
.chat-msg__name {
    font-weight: 700;
    margin-right: 4px;
}
.chat-msg--own .chat-msg__name { color: #000; }
.chat-msg--system {
    font-size: 12px;
    color: rgba(0, 0, 0, 0.5);
    font-style: italic;
    align-self: center;
}
.chat-history-loader {
    font-size: 11px;
    color: rgba(0,0,0,0.35);
    text-align: center;
    padding: 4px 0;
    align-self: center;
}

/* Legacy class kept for backward compat */
.chat-message {
    font-weight: 400;
    font-size: 14px;
    line-height: 16px;
    color: rgba(0, 0, 0, 1);
}
.chat-user {
    font-weight: 900;
    letter-spacing: 2px;
    margin-right: 4px;
}

.chat-input-wrapper{
    display: flex;
    align-items: center;
    background: rgba(242, 242, 242, 1);
    padding: 7px 10px;
    flex-shrink: 0;
}

.chat-input-wrapper input{
    flex:1;
    border:none;
    background:transparent;
    font-size: 16px; /* ≥16px prevents iOS auto-zoom */
    outline:none;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 1px;
    color: rgba(92, 92, 92, 1);
}
.chat-input-wrapper input::placeholder {
    text-transform: uppercase;
    font-size: 11px;
}

.chat-input-wrapper button{
    border: none;
    background: transparent;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    color: #000;
}

/* Unauthenticated chat state */
.chat-login-notice {
    flex: 1;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(92, 92, 92, 1);
}
.chat-login-btn {
    border: none;
    background: rgba(0,0,0,1);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 12px;
    cursor: pointer;
    white-space: nowrap;
}

.live-lot .info_live_lot .live-bid {
    background: rgba(242, 242, 242, 1);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

/* ─── Централізований лоадер блоку ставок ──────────────────────────────
   Поки не прийшов авторитетний стан таймера з БД (перший TIMER_STATE з
   iframe), блок блюриться + спінер. Так уникаємо миготіння станів на
   старті сторінки та при перемиканні лота. Знімається в BidManager. */
/*.live-lot .info_live_lot .live-bid.live-bid--loading > *:not(.bid-zone-loader) {*/
/*    filter: blur(4px);*/
/*    opacity: 0.45;*/
/*    pointer-events: none;*/
/*    user-select: none;*/
/*    transition: filter 0.2s ease, opacity 0.2s ease;*/
/*}*/
.live-lot .info_live_lot .live-bid .bid-zone-loader {
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    z-index: 5;
    display: none;
}

/* Плейсхолдер коли стрім є, а лот ще не завантажено в торги */
.live-lot .info_live_lot .live-bid .bid-waiting {
    padding: 24px 0;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(59, 59, 59, 0.7);
}

.live-lot .info_live_lot .live-bid .mobile_title_stream {
    display: none;
}
.live-lot .info_live_lot .live-bid .bid-btn {
    background: rgba(0, 0, 0, 1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 0;
    width: 100%;
    font-weight: 900;
    font-size: 24px;
    line-height: 24px;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
}
.live-lot .info_live_lot .live-bid .bid-btn.bid-btn--disabled {
    background: #999;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.7;
}
.live-lot .info_live_lot .live-bid .bid-btn.bid-btn--not-started {
    background: #999;
    color: #fff;
    cursor: pointer;
    opacity: 0.7;
}
.live-lot .info_live_lot .live-bid .bid-btn.bid-btn--paused {
    background: #999;
    color: #fff;
    cursor: not-allowed;
    opacity: 0.7;
}
.live-lot .info_live_lot .live-bid .price_info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}
.live-lot .info_live_lot .live-bid .left_bid_info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.live-lot .info_live_lot .live-bid .right_bid_info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-align: right;
}
.live-lot .info_live_lot .live-bid .price_info .name {
    font-weight: 700;
    font-size: 14px;
    line-height: 16px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(59, 59, 59, 1);
}
.live-lot .info_live_lot .live-bid .price_info .price {
    font-weight: 900;
    font-size: 32px;
    line-height: 48px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 1);
}
.live-lot .info_live_lot .live-bid .price_info .time {
    font-weight: 900;
    font-size: 32px;
    line-height: 48px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(223, 4, 15, 1);
}


/*!* ─── Auth Modal ─────────────────────────────────── *!*/

/*#auth-modal {*/
/*    display: none;*/
/*    position: fixed;*/
/*    inset: 0;*/
/*    z-index: 9999;*/
/*    background: rgba(0, 0, 0, 0.6);*/
/*    backdrop-filter: blur(4px);*/
/*    align-items: center;*/
/*    justify-content: center;*/
/*}*/

/*#auth-modal.is-open {*/
/*    display: flex;*/
/*}*/

/*#auth-modal .modal-dialog {*/
/*    background: #fff;*/
/*    width: 100%;*/
/*    max-width: 420px;*/
/*    margin: 0 16px;*/
/*    padding: 40px;*/
/*    position: relative;*/
/*}*/

/*!* Кнопка закрити *!*/
/*#auth-modal [data-modal-close] {*/
/*    position: absolute;*/
/*    top: 16px;*/
/*    right: 16px;*/
/*    background: none;*/
/*    border: none;*/
/*    cursor: pointer;*/
/*    font-size: 20px;*/
/*    color: #333;*/
/*    line-height: 1;*/
/*    padding: 4px;*/
/*}*/

/*#auth-modal [data-modal-close]:hover {*/
/*    color: #000;*/
/*}*/

/*!* Заголовок *!*/
/*#auth-modal h2 {*/
/*    margin: 0 0 32px;*/
/*    font-size: 24px;*/
/*    font-weight: 700;*/
/*    letter-spacing: 0.05em;*/
/*    text-transform: uppercase;*/
/*}*/

/*!* Інпути *!*/
/*#auth-form input {*/
/*    display: block;*/
/*    width: 100%;*/
/*    padding: 14px 16px;*/
/*    margin-bottom: 12px;*/
/*    border: 1px solid #e0e0e0;*/
/*    background: #f9f9f9;*/
/*    font-size: 14px;*/
/*    outline: none;*/
/*    box-sizing: border-box;*/
/*    transition: border-color 0.2s;*/
/*}*/

/*#auth-form input:focus {*/
/*    border-color: #000;*/
/*    background: #fff;*/
/*}*/

/*!* Помилка *!*/
/*#auth-error {*/
/*    display: none;*/
/*    color: #c00;*/
/*    font-size: 13px;*/
/*    margin-bottom: 12px;*/
/*    padding: 10px 14px;*/
/*    background: #fff0f0;*/
/*    border-left: 3px solid #c00;*/
/*}*/

/*!* Кнопка сабміт *!*/
/*#auth-form [type="submit"] {*/
/*    display: block;*/
/*    width: 100%;*/
/*    padding: 16px;*/
/*    margin-top: 8px;*/
/*    background: #000;*/
/*    color: #fff;*/
/*    border: none;*/
/*    font-size: 14px;*/
/*    font-weight: 700;*/
/*    letter-spacing: 0.1em;*/
/*    text-transform: uppercase;*/
/*    cursor: pointer;*/
/*    transition: background 0.2s;*/
/*}*/

/*#auth-form [type="submit"]:hover {*/
/*    background: #222;*/
/*}*/

/*#auth-form [type="submit"]:disabled {*/
/*    background: #999;*/
/*    cursor: not-allowed;*/
/*}*/

/* ─── Auth Modal ─────────────────────────────────── */

#auth-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 20px;
}

#auth-modal.is-open {
    display: flex;
}

#auth-modal .modal-dialog {
    background: #fff;
    width: 100%;
    max-width: 460px;
    margin: auto;
    padding: 48px 40px 40px;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #333;
    padding: 4px 8px;
    line-height: 1;
}

.modal-close:hover { color: #000; }

#auth-modal h2 {
    margin: 0 0 8px;
    font-weight: 400;
    font-size: 32px;
    line-height: 40px;
    letter-spacing: 1px;
    text-align: center;

}

.modal-subtitle {
    font-size: 13px;
    color: #666;
    text-align: center;
    margin: 0 0 28px;
    line-height: 1.5;
}

/* ─── Form fields ────────────────────────────────── */

.auth-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.auth-form__field {
    margin-bottom: 16px;
}

.auth-form__field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #333;
    margin-bottom: 6px;
}

.auth-form__field input,
.auth-form__field select {
    display: block;
    width: 100%;
    padding: 13px 16px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.auth-form__field input:focus,
.auth-form__field select:focus {
    border-color: #000;
}

.auth-form__field select {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 7L11 1' stroke='%23333' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.auth-form__field--error input,
.auth-form__field--error select {
    border-color: #c00;
}

.auth-form__field-error {
    font-size: 11px;
    color: #c00;
    margin-top: 4px;
}

.auth-form__checkbox {
    margin-bottom: 16px;
}

.auth-form__checkbox label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #444;
    cursor: pointer;
    line-height: 1.4;
}

.auth-form__checkbox input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 2px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.auth-form__checkbox a {
    color: #000;
    text-decoration: underline;
}

/* ─── Error ──────────────────────────────────────── */

.auth-error {
    display: none;
    font-size: 13px;
    color: #c00;
    background: #fff0f0;
    border-left: 3px solid #c00;
    padding: 10px 14px;
    margin-bottom: 16px;
}

/* ─── Buttons ────────────────────────────────────── */

.auth-btn {
    display: block;
    width: 100%;
    padding: 16px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    transition: background 0.2s, color 0.2s;
}

.auth-btn--primary {
    background: #000;
    color: #fff;
    margin-bottom: 0;
}

.auth-btn--primary:hover { background: #222; }
.auth-btn--primary:disabled { background: #999; cursor: not-allowed; }

.auth-btn--secondary {
    background: #fff;
    color: #000;
    border: 1.5px solid #000;
}

.auth-btn--secondary:hover { background: #f5f5f5; }

/* ─── Divider ────────────────────────────────────── */

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #999;
    font-size: 12px;
    letter-spacing: 0.05em;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

/* Register form — менші відступи */

.register-form .auth-form__field {
    margin-bottom: 12px;
}

/* Модалка ширша для реєстрації */
#auth-modal.is-open .modal-dialog.register-mode {
    max-width: 920px;
}

.register-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.register-section:last-of-type {
    border-bottom: none;
}

.register-section__title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 14px;
}

.auth-form__hint {
    font-size: 11px;
    color: #999;
    margin-top: 4px;
}
.auth-success {
    text-align: center;
    padding: 20px 0;
}

.auth-success__icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.auth-success h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 16px;
    text-align: center;
}

.auth-success__content {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 24px;
}

.auction-empty {
    text-align: center;
    padding: 80px 20px;
}

.auction-empty__icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.auction-empty h3 {
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 8px;
}

.auction-empty p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 24px;
}

@media (max-width: 480px) {
    #auth-modal .modal-dialog { padding: 40px 24px 32px; }
    .auth-form__row { grid-template-columns: 1fr; }
}

/* ─── Bid Message ─────────────────────────────────── */

.bid-message {
    display: none;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 16px;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 1);
    padding: 4px 0;
}

.bid-message--winning {
    display: flex;
    border: 1px solid #1a7a2e;
    background: #e6f4ea;
    color: #1a7a2e;
}

.bid-message--outbid {
    display: flex;
    border: 1px solid #b45000;
    background: #fff3e0;
    color: #b45000;
}

.bid-message--sold {
    display: flex;
    border: 1px solid rgba(0, 0, 0, 1);
    background: #f5f5f5;
    color: rgba(0, 0, 0, 1);
}

.bid-message--closed {
    display: flex;
    border: 1px solid #666;
    background: #f0f0f0;
    color: #666;
}

.bid-message--overtime {
    display: flex;
    border: 1px solid #b45000;
    background: #fff3e0;
    color: #b45000;
}

.bid-message--error {
    display: flex;
    border: 1px solid #c00;
    background: #fdecea;
    color: #c00;
}

.bid-message--info {
    display: flex;
    border: 1px solid #0066cc;
    background: #e8f0fe;
    color: #0066cc;
}

.bid-message--paused {
    display: flex;
    gap: 6px;
    border: 1px solid #888;
    background: #f0f0f0;
    color: #555;
}

.webcast-status { color: #333; font-weight: 600; }
.webcast-status--warning { color: #e07000; }
.webcast-status--danger { color: #c00; animation: pulse 1s infinite; }

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

/* ─── 1. Loader ──────────────────────────────────── */
#page-loader {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

#page-loader.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f0f0f0;
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* ─── Тост повідомлення аукціоніста (WEBCAST_MESSAGE_SET) ─────────────
   Fixed-оверлей поверх усього, адаптивний. Кріпиться до <body>. */
.auctioneer-toast {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translate(-50%, -20px);
    z-index: 100000;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: min(92vw, 460px);
    padding: 14px 18px;
    background: #1a1a1a;
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
    font-size: 15px;
    line-height: 1.4;
    word-break: break-word;
    opacity: 0;
    pointer-events: none;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}
.auctioneer-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}
.auctioneer-toast__icon {
    font-size: 18px;
    flex-shrink: 0;
}
.auctioneer-toast__text {
    flex: 1;
}
@media (max-width: 600px) {
    .auctioneer-toast {
        top: 10px;
        max-width: 94vw;
        padding: 12px 14px;
        font-size: 14px;
    }
}

/* ─── 2. Reconnect overlay ───────────────────────── */
#reconnect-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.reconnect-box {
    background: #fff;
    padding: 48px 40px;
    text-align: center;
    max-width: 360px;
    width: 100%;
    margin: 0 16px;
}

.reconnect-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.reconnect-box h3 {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.reconnect-box p {
    color: #666;
    font-size: 14px;
    margin: 0 0 24px;
}

#reconnect-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: #000;
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
}

#reconnect-btn:hover {
    background: #222;
}

/* ─── 3. Chat blur — стрім не активний ──────────── */
.chat-box--offline {
    position: relative;
}

.chat-box--offline .chat-messages,
.chat-box--offline .chat-input-wrapper {
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
}

.chat-offline-notice {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    gap: 8px;
}

.chat-offline-notice svg {
    opacity: 0.4;
}

.chat-offline-notice span {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-align: center;
    padding: 0 16px;
}

/* ─── Account Page ───────────────────────────────── */

.account-page {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
}

.account-header {
    margin-bottom: 32px;
}

.account-header h1 {
    font-size: 28px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 4px;
}

.account-email {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* ─── Tabs ───────────────────────────────────────── */

.account-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #000;
    margin-bottom: 32px;
    overflow-y: hidden;
    overflow-x: auto;
}

.account-tab {
    padding: 12px 24px;
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    color: #666;
    white-space: nowrap;
    position: relative;
    transition: color 0.2s;
}

.account-tab:hover {
    color: #000;
}

.account-tab.is-active {
    color: #000;
}

.account-tab.is-active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #000;
}

.account-tab--logout {
    margin-left: auto;
    color: #c00;
}

.account-tab--logout:hover {
    color: #900;
}

/* ─── Loading / Empty ────────────────────────────── */

.account-loading {
    display: flex;
    justify-content: center;
    padding: 60px 0;
}

.account-empty {
    text-align: center;
    padding: 60px 0;
    color: #666;
}

.account-error {
    text-align: center;
    padding: 40px 0;
    color: #c00;
}

/* ─── Profile Form ───────────────────────────────── */

.account-form__section {
    margin-bottom: 32px;
}

.account-form__section h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.account-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.account-form__field {
    margin-bottom: 16px;
}

.account-form__field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    margin-bottom: 6px;
}

.account-form__field input {
    display: block;
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    background: #f9f9f9;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.account-form__field input:focus {
    border-color: #000;
    background: #fff;
}

.account-message {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.account-message--success {
    background: #f0fff4;
    color: #1a7a1a;
    border-left: 3px solid #1a7a1a;
}

.account-message--error {
    background: #fff0f0;
    color: #c00;
    border-left: 3px solid #c00;
}

.account-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: #000;
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}

.account-btn:hover { background: #222; }
.account-btn:disabled { background: #999; cursor: not-allowed; }

/* ─── Bids ───────────────────────────────────────── */

.account-bids__count {
    font-size: 13px;
    color: #666;
    margin-bottom: 16px;
}

.account-bid-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #eee;
}

.account-bid-item__image {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    overflow: hidden;
    background: #f5f5f5;
}

.account-bid-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-bid-item__no-image {
    width: 100%;
    height: 100%;
    background: #eee;
}

.account-bid-item__info {
    flex: 1;
    min-width: 0;
}

.account-bid-item__title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-bid-item__auction {
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.account-bid-item__meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
}

.account-bid-item__amount { font-weight: 700; }
.account-bid-item__lot { color: #666; }

.account-bid-item__status {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    flex-shrink: 0;
}

.status--winning { color: #1a7a1a; }
.status--outbid { color: #c00; }

/* ─── Invoices ───────────────────────────────────── */
/* ─── Invoices ───────────────────────────────────── */

.account-invoices {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Pay bar — sticky панель вибору */
.invoice-pay-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-bottom: 2px solid #000;
    margin-bottom: 24px;
    min-height: 52px;
    flex-wrap: wrap;
}

.invoice-pay-bar__hint {
    color: #999;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.invoice-pay-bar__count {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #000;
}

.invoice-pay-bar__total {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 1px;
    margin-left: auto;
    color: #000;
}

.invoice-pay-bar__btn {
    margin-left: 16px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background: #000;
    color: #fff;
    border: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
    width: auto;
}

.invoice-pay-bar__btn:hover {
    background: #222;
}

.invoice-pay-bar__btn:disabled {
    background: #999;
    cursor: not-allowed;
}

/* Select all row */
.invoice-select-all {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.invoice-select-all label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #555;
    user-select: none;
}

.invoice-select-all input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #000;
    flex-shrink: 0;
}

/* Invoice card */
.account-invoice-card {
    border-top: 1px solid #e0e0e0;
    padding: 24px 0;
    transition: background 0.15s;
}

.account-invoice-card:last-child {
    border-bottom: 1px solid #e0e0e0;
}

.account-invoice-card--selectable {
    cursor: default;
}

.account-invoice-card--selected {
    background: #fafafa;
    padding-left: 16px;
    padding-right: 16px;
    margin-left: -16px;
    margin-right: -16px;
    border-left: 3px solid #000;
}

/* Card header */
.account-invoice-card__header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.account-invoice-card__checkbox {
    display: flex;
    align-items: center;
    padding-top: 3px;
    flex-shrink: 0;
}

.account-invoice-card__checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #000;
}

.account-invoice-card__info {
    flex: 1;
    min-width: 0;
}

.account-invoice-card__auction {
    font-size: 15px;
    font-weight: 700;
    color: #000;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-invoice-card__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.account-invoice-card__meta span {
    font-size: 12px;
    color: #888;
    letter-spacing: 0.03em;
}

.account-invoice-card__right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
}

.account-invoice-card__total {
    font-size: 18px;
    font-weight: 900;
    letter-spacing: 0.5px;
    color: #000;
}

/* Status badges */
.account-invoice-card__status {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 8px;
}

.status--paid {
    background: #000;
    color: #fff;
}

.status--unpaid {
    background: #fff;
    color: #c00;
    border: 1px solid #c00;
}

.status--credit {
    background: #f5f5f5;
    color: #555;
    border: 1px solid #ccc;
}

/* Items list */
.account-invoice__items {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.account-invoice__item {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
}

.account-invoice__item-title {
    font-size: 13px;
    color: #555;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.account-invoice__item-amount {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    flex-shrink: 0;
}

/* Outstanding balance */
.account-invoice__balance {
    margin-top: 12px;
    font-size: 13px;
    color: #c00;
    letter-spacing: 0.02em;
}

.account-invoice__balance strong {
    font-weight: 900;
}

/* Footer buttons */
.account-invoice-card__footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
}

.account-btn-secondary {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: #fff;
    color: #000;
    border: 1px solid #000;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.account-btn-secondary:hover {
    background: #000;
    color: #fff;
}

.account-btn--small {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: #000;
    color: #fff;
    border: none;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    width: auto;
}

.account-btn--small:hover {
    background: #333;
}

.account-btn--small:disabled {
    background: #999;
    cursor: not-allowed;
}
/* ─── Select ─────────────────────────────────────── */

.account-form__field select {
    display: block;
    width: 100%;
    padding: 12px 40px 12px 16px;
    border: 1px solid #e0e0e0;
    background: #f9f9f9;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
    cursor: pointer;
    color: #333;

    /* Прибираємо дефолтний вигляд браузера */
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;

    /* Своя стрілка */
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 7L11 1' stroke='%23333333' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.account-form__field select:focus {
    border-color: #000;
    background-color: #fff;
}

.account-form__field select option {
    color: #333;
    background: #fff;
}

.account-form__field select optgroup {
    font-weight: 700;
    color: #000;
}

/* ─── Field errors ───────────────────────────────── */

.account-form__field--error input,
.account-form__field--error select {
    border-color: #c00;
    background: #fff8f8;
}

.account-form__field--error input:focus,
.account-form__field--error select:focus {
    border-color: #c00;
}

.account-form__field-error {
    font-size: 12px;
    color: #c00;
    margin-top: 4px;
}


/* ─── Static pages base ──────────────────────────── */

.static-page {
    min-height: 60vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 20px;
}

.static-page__container {
    width: 100%;
    max-width: 800px;
}

/* ─── 404 ────────────────────────────────────────── */

.page-404 {
    text-align: center;
    padding: 40px 0;
}

.page-404__code {
    font-size: clamp(80px, 15vw, 160px);
    font-weight: 900;
    line-height: 1;
    color: #000;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
}

.page-404__title {
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 16px;
}

.page-404__text {
    font-size: 16px;
    color: #666;
    margin: 0 0 40px;
    line-height: 1.6;
}

.page-404__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background: #000;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: background 0.2s;
}

.page-404__btn:hover {
    background: #222;
    color: #fff;
}

/* ─── Legal pages (Terms / Privacy) ─────────────── */

.legal-page__title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin: 0 0 8px;
    border-bottom: 2px solid #000;
    padding-bottom: 16px;
}

.legal-page__updated {
    font-size: 12px;
    color: #999;
    margin-bottom: 40px;
    letter-spacing: 0.03em;
}

.legal-page__content {
    font-size: 15px;
    line-height: 1.8;
    color: #333;
}

/* Типографіка контенту */
.legal-page__content h2 {
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 40px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.legal-page__content h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 24px 0 8px;
}

.legal-page__content p {
    margin: 0 0 16px;
}

.legal-page__content ul,
.legal-page__content ol {
    margin: 0 0 16px;
    padding-left: 24px;
}

.legal-page__content li {
    margin-bottom: 8px;
}

.legal-page__content a {
    color: #000;
    text-decoration: underline;
}

.legal-page__content a:hover {
    text-decoration: none;
}

.legal-page__content strong {
    font-weight: 700;
    color: #000;
}

.legal-page__content blockquote {
    margin: 24px 0;
    padding: 16px 24px;
    border-left: 3px solid #000;
    background: #f9f9f9;
    font-style: italic;
    color: #555;
}

/* Profile notice */
.account-form__notice {
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    border-left: 4px solid;
}
.account-form__notice--warning {
    background: #fef3c7;
    border-color: #d97706;
    color: #92400e;
}

.required-note {
    font-size: 12px;
    font-weight: 400;
    color: #dc2626;
    margin-left: 8px;
}

.invoice-stripe-badge {
    display: inline-block;
    background: #d1fae5;
    color: #065f46;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    margin-left: 6px;
    letter-spacing: 0.03em;
}
.account-invoice__balance--paid {
    color: #065f46;
    background: #d1fae5;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
}

/* ─── My Bids ───────────────────────────────────────────────────────────────── */

.bids-wrap {
    padding: 0;
}

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

.bids-header__count {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #888;
}

/* Grid */
.bids-grid {
    display: grid;
    grid-template-columns: repeat( 3, 1fr );
    gap: 16px;
}

/* Card */
.bid-card {
    background: #fff;
    border: 1px solid #e5e5e5;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s ease;
}

.bid-card:hover {
    box-shadow: 0 4px 16px rgba( 0, 0, 0, 0.08 );
}

.bid-card--winning {
    border-top: 3px solid #000;
}

.bid-card--outbid {
    border-top: 3px solid #e5e5e5;
}

/* Media */
.bid-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
}

.bid-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.bid-card__no-image {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #bbb;
    font-size: 12px;
    letter-spacing: 0.03em;
}

.bid-card__lot {
    position: absolute;
    bottom: 0;
    left: 0;
    background: rgba( 0, 0, 0, 0.65 );
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 4px 10px;
}

/* Body */
.bid-card__body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.bid-card__title {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    line-height: 1.4;
    /* Обрізаємо якщо дуже довго */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bid-card__auction {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Footer */
.bid-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}

.bid-card__price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.bid-card__currency {
    font-size: 11px;
    font-weight: 700;
    color: #888;
    letter-spacing: 0.05em;
}

.bid-card__amount {
    font-size: 16px;
    font-weight: 900;
    color: #000;
    letter-spacing: -0.02em;
}

/* Status */
.bid-card__status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 4px 8px;
}

.bid-card__status--winning {
    background: #000;
    color: #fff;
}

.bid-card__status--outbid {
    background: #f5f5f5;
    color: #888;
}

/* Date */
.bid-card__date {
    font-size: 11px;
    color: #aaa;
    letter-spacing: 0.02em;
}

/* Empty state */
.bids-empty {
    padding: 64px 20px;
    text-align: center;
}

.bids-empty__icon {
    margin-bottom: 16px;
}

.bids-empty__text {
    font-size: 15px;
    color: #aaa;
    margin: 0 0 20px;
}

/* ─── Адаптивність ──────────────────────────────────────────────────────────── */

@media ( max-width: 1024px ) {
    .bids-grid {
        grid-template-columns: repeat( 2, 1fr );
    }
}

@media ( max-width: 600px ) {
    .bids-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .bid-card__media {
        aspect-ratio: 16 / 9;
    }

    .bid-card__amount {
        font-size: 15px;
    }

    .bids-header {
        margin-bottom: 16px;
    }
}
/* ─── Confirm Email Page ─────────────────────────────────────────────────────── */

.confirm-email-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 60px 20px;
}

.confirm-email-box {
    max-width: 480px;
    margin: 0 auto;
    text-align: center;
    padding: 48px 40px;
    border: 1px solid #e5e5e5;
    background: #fff;
}

.confirm-email-icon {
    margin-bottom: 24px;
}

.confirm-email-title {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #000;
    margin: 0 0 16px;
}

.confirm-email-text {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 32px;
}

.confirm-email-btn {
    display: inline-block;
    background: #000;
    color: #fff;
    padding: 14px 32px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity 0.15s;
}

.confirm-email-btn:hover {
    opacity: 0.85;
    color: #fff;
}
/* ─── Bid Timer ──────────────────────────────────────────────────────────────── */

/* Права колонка з таймером */
.right_bid_info {
    text-align: right;
}

.right_bid_info .name {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 4px;
}

.right_bid_info .price {
    display: flex;
    justify-content: flex-end;
    align-items: baseline;
}

/* Таймер — базовий стан */
.bid-timer {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #000;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    min-width: 100px;
    max-width: 100px;
    text-align: right;
}

/* Порожній таймер — не показуємо */
.bid-timer:empty {
    display: none;
}

/* 11-30 секунд — попередження */
.bid-timer--warning {
    color: #dc2626;
}

/* 0-10 секунд — критично з анімацією */
.bid-timer--urgent {
    color: #dc2626;
    animation: timer-blink 0.5s ease-in-out infinite alternate;
}

@keyframes timer-blink {
    from { opacity: 1; }
    to   { opacity: 0.5; }
}
@media (max-width: 600px) {
    .static-page { padding: 40px 16px; }
    .page-404__code { margin-bottom: 8px; }
}


@media (max-width: 600px) {
    .account-form__row { grid-template-columns: 1fr; }
    .account-tab { padding: 10px 16px; font-size: 12px; }
}

@media screen and (max-width: 1100px) {
    .auction-card {
        width: calc(100% / 3 - 10px);
    }
}
@media screen and (max-width: 960px) {
    .live-overlay .name_auction {
        font-size: 38px;
        line-height: 43px;
        letter-spacing: 1px;
    }
    .auction-card {
        width: calc(100% / 2 - 6px);
    }
    .home-live {
        height: 420px;
    }
    .live-overlay {
        padding: 0 40px 40px 40px;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 30px;
    }
    .live-lot .info_live_lot {
        width: 340px;
    }
    .live-lot .online_stream .live-overlay {
        padding: 28px;
    }
    .live-lot .online_stream .live-overlay .title_stream {
        font-size: 28px;
        line-height: 34px;
    }
    .live-lot .online_stream .top_stream {
        top: 24px;
        padding: 0 24px;
    }
}
@media screen and (max-width: 768px) {
    .chat-msg--own .chat-msg__name {
        color: #fff;
    }
    .live-lot .info_live_lot .live-bid .mobile_title_stream {
        display: block;
    }
    .page-template-page-auction .site-header {
        display: none;
    }
    .page-template-page-auction .header_menu {
        display: none;
    }
    .page-template-page-auction .live-lot .online_stream .top_stream .live-badge {
        display: none;
    }
    .live-lot {
        width: 100vw;
        margin-left: -20px;
        flex-direction: column;
        position: relative;
        gap: 0;
        height: var(--app-height, 100vh);   /* фіксована px-висота з JS — без зуму при скролі */
        margin-bottom: 0;
    }
    /* App-style: бід-зона — абсолютний оверлей по низу екрана поверх стріму */
    .live-lot .info_live_lot {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        z-index: 9999;
        /* плавний перехід: сірий знизу (100%) → прозорий вгорі (0%) */
        background: linear-gradient(
                to top,
                rgba(242, 242, 242, 1) 0%,
                rgba(242, 242, 242, 0) 100%
        );
    }
    /* Бід-блок прозорий — щоб було видно градієнт оверлея */
    .live-lot .info_live_lot .live-bid {
        background: transparent;
    }
    /* Кнопка ставки — без напівпрозорості навіть у disabled/paused станах */
    .live-lot .info_live_lot .live-bid .bid-btn {
        opacity: 1;
    }
    .chat-box {
        width: 100%;
        height: 260px;
        padding: 16px;
        border: none;
        background: transparent;
        display: flex;
        flex-direction: column;
        gap: 16px;
        position: absolute;
        top: -260px;
        background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.8) 97.89%);
    }
    .live-lot .online_stream {
        position: absolute;   /* фон на весь екран; усі блоки — поверх */
        inset: 0;
        z-index: 0;
        overflow: hidden;
    }
    /* Картинка і відео займають той самий бокс — без стрибка, коли стартує стрім */
    .live-lot .online_stream #lot-fallback-img,
    .live-lot .online_stream #video-stream {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .live-lot .online_stream #video-stream video,
    .live-lot .online_stream #video-stream .OT_widget-container,
    .live-lot .online_stream #video-stream .OT_root {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    .chat-input-wrapper {
        display: flex;
        align-items: center;
        background: rgba(0, 0, 0, 0.5);
        padding: 7px 10px;
        border: 0.63px solid rgba(255, 255, 255, 0.1);
    }
    .chat-input-wrapper input {
        color: rgba(255, 255, 255, 0.9);
        font-size: 16px; /* prevent iOS auto-zoom */
    }
    .chat-input-wrapper input::placeholder {
        color: rgba(255, 255, 255, 0.4);
    }
    .chat-input-wrapper button svg path {
        fill: rgba(255, 255, 255, 0.6);
    }
    .chat-messages {
        width: 50%;
        /* Fade out the top messages that overlap the stream */
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 35%);
        mask-image: linear-gradient(to bottom, transparent 0%, black 35%);
        scrollbar-width: thin;
        scrollbar-color: rgba(255,255,255,0.2) transparent;
    }
    .chat-messages::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.2);
    }

    /* Message text white on dark stream background */
    .chat-msg, .chat-message {
        color: #fff;
        text-shadow: 0 1px 3px rgba(0,0,0,0.7);
    }
    .chat-msg--system {
        color: rgba(255, 255, 255, 0.6);
    }

    /* Login notice — white text on mobile overlay */
    .chat-login-notice { color: rgba(255,255,255,0.7); }
    .chat-login-btn {
        background: rgba(255,255,255,0.15);
        border: 0.63px solid rgba(255,255,255,0.3);
        color: #fff;
    }

    .live-lot .online_stream .live-overlay {
        display: none;
    }
    .chat-box--offline {
        display: none;
    }
}
@media screen and (max-width: 640px) {
    .auction-card {
        width: 100%;
    }
    .container {
        padding: 0 16px;
    }
    /* Меню лишається в хедері зверху (як на десктопі), лише компактніше */
    .header_menu {
        gap: 4px;
        transform: translateX(-42%);
    }
    .header_menu a {
        width: auto;
        font-size: 11px;
        line-height: 12px;
        letter-spacing: 1px;
        padding: 22px 6px;
    }
    .logo img {
        width: 84px;
    }
    .home-live {
        height: auto;
        aspect-ratio: 9 / 16;
        width: 100vw;
        position: relative;
        margin-bottom: 24px;
        margin-left: -16px;
    }
    .header_menu a:hover {
        color: rgba(117, 117, 117, 1);
    }
    .live-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        padding: 16px 16px 24px 16px;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    .live-overlay .live-badge {
        display: none;
    }
    .home-live .live-badge-mobile {
        display: inline-flex;
    }
    .live-overlay .right_part {
        width: 100%;
    }
    .live-overlay .name_auction {
        font-size: 24px;
        line-height: 28px;
        letter-spacing: 2px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    footer {
        margin-top: 24px;
    }
    footer .wrapper_footer {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 48px 0;
        gap: 32px;
        flex-direction: column-reverse;
    }
    footer .footer_menu {
        flex-direction: column;
    }
    footer .footer_menu li a:hover {
        text-decoration: none;
    }
    .chat-message, .chat-msg {
        font-size: 12px;
        line-height: 14px;
    }
    .chat-messages {
        width: 100%;
    }
    .live-lot .online_stream .top_stream {
        top: 16px;
        padding: 0 16px;
    }
    .live-lot .info_live_lot .live-bid {
        padding: 12px;
    }
    .live-lot .info_live_lot .live-bid .price_info .price {
        font-size: 24px;
        line-height: 24px;
    }
    .live-lot .info_live_lot .live-bid .price_info .time {
        font-size: 24px;
        line-height: 24px;
    }
    .live-lot {
        height: var(--app-height, 100vh);
        width: 100vw;
        margin-left: -16px;
    }
    .live-overlay .join-btn {
        font-size: 16px;
    }
    .live-overlay .join-btn .live-bid-info .bid_home {
        font-size: 18px;
        line-height: 18px;
    }
}

/* ════════════════════════════════════════════════════════════════════════
   HOMEPAGE — НОВИЙ ГРІД КАРТОК (Live Now + Upcoming)
   Окремі класи .home-section / .home-grid / .home-card — навмисно не
   перетинаються зі старими .home-live / .auction-card (які ще використовує
   сторінка аукціону), щоб можна було відкотитись на стару структуру.
   ════════════════════════════════════════════════════════════════════════ */
.home-section {
    margin-bottom: 48px;
}
.home-section__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 40px 0 20px;
}
.home-section--live:first-child .home-section__head {
    margin-top: 24px;
}
/* Сірий розділювач між блоками (як бордер у футері) — лише коли Upcoming іде після Live */
.home-section--live + .home-section--upcoming {
    border-top: 1px solid rgba(196, 196, 196, 1);
}
.home-section__title {
    margin: 0;
    font-weight: 600;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: 1px;
    color: #000;
}

.home-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.home-card {
    position: relative;
    display: block;
    height: 420px;
    overflow: hidden;
    border-radius: 12px;
    text-decoration: none;
    color: #fff;
    background: #1a1a1a;
}
.home-card__img {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}
.home-card:hover .home-card__img {
    transform: scale(1.04);
}
.home-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.92) 0%,
            rgba(0, 0, 0, 0.45) 38%,
            rgba(0, 0, 0, 0) 70%
    );
}

.home-card__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 12px;
    line-height: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
}
.home-card__badge--live {
    background: rgba(251, 44, 54, 1);
    letter-spacing: 2px;
}
.home-card__dot {
    font-size: 9px;
    line-height: 1;
}
.home-card__badge svg {
    width: 14px;
    height: 14px;
}

/* Upcoming badge — окремий клас: бейдж у лівий верхній кут (до краю), без відступів */
.home-card__badge-upcoming {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 10px;
    line-height: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(2px);
    border-bottom-right-radius: 12px;
}
.home-card__badge-upcoming svg {
    width: 13px;
    height: 13px;
}

.home-card__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 16px;
}
.home-card__title {
    font-family: "Noto Serif", serif;
    font-weight: 400;
    font-size: 22px;
    line-height: 26px;
    letter-spacing: 1px;
    color: #fff;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 48px;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.25s ease;
}
.home-card__btn svg {
    width: 20px;
    height: 20px;
}
.home-card__btn--join {
    background: #fff;
    color: #000;
}
.home-card--live:hover .home-card__btn--join {
    background: rgba(235, 235, 235, 1);
    gap: 12px;
}
.home-card__btn--reminder {
    background: transparent;
    color: #fff;
    display: none;
    border: 1px solid rgba(255, 255, 255, 0.7);
}
.home-card--upcoming:hover .home-card__btn--reminder {
    background: rgba(255, 255, 255, 0.12);
}

/* Адаптив: десктоп 4 → планшет 3 → 2 → мобілка лишається 2 в ряд (як на скріні) */
@media (max-width: 1100px) {
    .home-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
    .home-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .home-grid { gap: 12px; }
    .home-section { margin-bottom: 32px; }
    .home-section__head { margin: 28px 0 16px; }
    .home-section__title { font-size: 22px; line-height: 26px; }
    .home-card--live { height: 280px; }
    .home-card--upcoming { height: 240px; }
    .home-card__title { font-size: 18px; line-height: 22px; }
    .home-card__body { gap: 12px; padding: 12px; }
    .home-card__btn { height: 34px; font-size: 12px; }
}