html,
body {
    background: #e9ebec;
    font-family: Arial, Helvetica, sans-serif;
    padding-top: 35px !important;
    overflow-x: hidden;
}


.main-header {
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: white;
    padding: 0 20px;
    height: auto;
    min-height: 70px;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    flex-wrap: nowrap;
}

/* HLAVNÝ LAYOUT */
.nav-container {
    max-width: 1200px;
    margin: auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    min-width: 0;
    /* ZMENŠENÉ – toto ti robilo problém */
}

/* LOGO POSUN doprava */
.logo {
    margin-right: 40px;
    min-width: 0;
    flex: 1;
}

/* SEARCH */
/* 🔍 SEARCH WRAPPER */
/* 🔍 search */
/* 🔍 SEARCH */
.nav-search {
    position: relative;
    width: 250px;
}

/* INPUT */
.nav-search input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    /* 🔥 miesto na lupu */
    border-radius: 80px;
    border: 1px solid #263141;
    outline: none;
}

/* LUPA VO VNÚTRI */
.nav-search .search-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);

    border: none;
    background: none;
    cursor: pointer;
    font-size: 16px;
}




/* ⬇️ TOGGLE */
/* 🔘 rozšírené */
.advanced-toggle {
    cursor: pointer;
    white-space: nowrap;
    color: #263141;
}


#arrow {
    transition: 0.3s;
}

/* 🔽 filtre */
.filters-box {
    display: none;
    margin-top: 15px;
    text-align: center;
}

.filters-box.active {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filters-box button {
    margin: 5px;
    padding: 8px 12px;
}


/* 🎛 FILTRE */
#filters {
    margin-top: 10px;
    display: none;
    flex-wrap: nowrap;
    /* ❗ toto je kľúčové */
    justify-content: flex-start !important;
    gap: 0px;
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
    max-width: 100%;
    /* ak sa nezmestia → scroll */
    padding-bottom: 10px;
}

#filters button {
    padding: 8px 14px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
    /* ❗ zabráni zalomeniu textu */
    transition: 0.2s;
    flex: 0 0 auto;
}

#filters button:hover {
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: white;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
}

/* MENU */
.nav-links {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    flex-wrap: nowrap;
    margin-left: auto;
    /* DÔLEŽITÉ – zabrání zalomeniu */
}

/* TEXT */
.nav-links a,
.nav-user {
    color: white;
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
    /* DÔLEŽITÉ */
}

/* HOVER */
.nav-links a:hover {
    color: #60a5fa;
}



.nav-time {
    display: block;
    min-width: 80px;
    color: #e5e7eb;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 10px;
    border-radius: 6px;
    margin-right: 45px;
}




.categories {
    margin-bottom: 20px;
}

.categories a {
    margin-right: 10px;
    text-decoration: none;
    color: #2563eb;
}

.categories a:hover {
    text-decoration: underline;
}

.search {
    margin-bottom: 20px;
}

.search input {
    padding: 8px;
    width: 250px;
}

.image-upload {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.image-box {
    width: 120px;
    text-align: center;
}

.image-box input {
    width: 100%;
}

.image-box img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 1px solid #ddd;
    margin-top: 5px;
}

.auction-card {
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: 0.2s;
    cursor: pointer;
    position: relative !important;
}



.auction-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.auction-info {
    padding: 15px;
}

.auction-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.price {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
}

.btn-view {
    display: block;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: white;
    text-align: center;
    padding: 10px;

    text-decoration: none;
}




/* kategórie */

.categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}


/* karta aukcie */

.auction-card {
    background: white;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: 0.2s;
}




/* obrázok */

.auction-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}


/* info */

.auction-info {
    padding: 15px;
}

.auction-info h3 {
    font-size: 18px;
    margin-bottom: 10px;
}


/* cena */

.price {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 12px;
}


/* tlačidlo */

.btn-view {
    display: block;
    background: #2563eb;
    color: white;
    text-align: center;
    padding: 10px;

    text-decoration: none;
    font-weight: 500;
}





.register-btn {

    padding: 8px 12px;

}

.login-btn {

    padding: 8px 12px;

}

/* subnav */

.sub-nav {
    background: linear-gradient(135deg, #1e3a8a, #0f172a, );
    padding: 15px 0;
    border-bottom: 1px solid #ddd;
    margin: 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sub-nav a {
    text-decoration: none;
    color: #555;
    font-size: 14px;
}

.sub-nav a:hover {
    color: #2563eb;
}

.subnav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 🔹 horný riadok */
.subnav-top {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

/* links */

.subnav-links {
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    cursor: pointer !important;
    display: flex;
    justify-content: center !important;
    align-items: center;
}


.subnav-link:hover {
    color: #2563eb;
}

/* dropdown */

.category-dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 10px;
    min-width: 200px;
    flex-direction: column;
}

.dropdown-menu a {
    display: block;
    padding: 8px 12px;
    text-decoration: none;
    color: #374151;
}

.dropdown-menu a:hover {
    background: #f3f4f6;
}

/* hover open */

.category-dropdown:hover .dropdown-menu {
    display: block;
}

.subnav-container a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.subnav-container a:hover {
    color: #2563eb;
}

.subcategory-menu {
    display: none;
}

.category-item:hover>.subcategory-menu {
    display: block;
}

/* oddeľovacie paličky */

.subnav-links a:not(:last-child)::after {
    content: " |";
    margin-left: 10px;
    color: #999;
}

.subnav-links a {
    margin-right: 5px;
}



.logo img {
    height: 50px !important;
    max-height: 60px;
    width: auto;
    display: block;
    transition: 0.2s;
}

.logo img:hover {
    transform: scale(1.05);
}

.logo a {
    display: flex;
    align-items: center;
}

.footer {
    background: #1f2937;
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
}




/* 🔥 TOP ITEM LAYOUT (karty vedľa seba) */
/* 🔥 celý TOP box */
.top-box {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: auto;

    width: 100%;

}

/* 🔥 nadpis nech ide na celý riadok */
.top-box h3 {
    width: 100%;
    text-align: center;
    color: default;

    padding: 10px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 600;
    border-top: 1px solid #1f2937;

}

/* SLIDER */
.top-slider-wrap {
    padding: 25px;
    overflow: hidden;
    border-bottom: 1px solid #ddd;
    border-top: 1px solid #ddd;
    margin: auto;
}

.top-slider-track {
    display: flex;
    gap: 15px;
    width: max-content;
    animation: topScroll 60s linear infinite;
}

/* KARTA */
.top-card {
    min-width: 160px;
    background: #ffffff;
    padding: 6px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    border-radius: 10px;
    position: relative;
    overflow: visible;
    backface-visibility: hidden;

}

/* HOVER */
.top-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: #263141;
}

/* IMAGE */
.top-card-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    padding: 2px;
    border: 1px solid #263141;
}

/* TEXT */
.top-card-title {
    font-size: 13px;
    font-weight: 700;
    margin-top: 5px;
}

.top-card-price {
    font-weight: bold;
    margin: 5px 0;
    color: #16a34a;
}

/* BUTTON */
.top-card-btn {
    display: block;
    width: 100%;
    /* 💥 full šírka */
    margin-top: 12px;

    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    /* modern Vydražsi farba */
    color: #fff;

    text-align: center;
    padding: 10px;
    border-radius: 10px;

    font-size: 13px;
    font-weight: 500;

    text-decoration: none;
    border: none;
    /* ❌ odstráni retro border */
    box-shadow: none;
    /* ❌ odstráni 3D efekt */

    cursor: pointer;
    transition: all 0.2s ease;
}

/* hover */


/* klik efekt */
.top-card-btn:active {
    transform: scale(0.98);
}

/* 🔥 pre prípad že je to <button> */
button.top-card-btn {
    appearance: none;
    -webkit-appearance: none;
}

/* ANIMÁCIA */
@keyframes topScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.auction-modal-wrap {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.auction-modal-box {
    background: #fff;
    width: 700px;
    max-width: 95%;
    padding: 20px;
    border-radius: 10px;
    position: relative;
}


.modal-auction {
    width: 100%;
}

/* HEADER */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    margin: 0;
    font-size: 22px;
    text-align: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

}

.modal-close {
    position: absolute;
    right: 0;
    top: 0;
    font-size: 22px;
    cursor: pointer;
}

/* BODY */
.modal-body {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

/* IMAGE */

/* INFO */
.modal-info {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.modal-price {
    font-size: 20px;
    color: #2563eb;
}

.modal-start,
.modal-time {
    color: #555;
    font-size: 14px;
}

/* BUTTON */
.modal-btn {
    display: block;
    width: 100%;
    /* 💥 full šírka */
    margin-top: 10px;

    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    /* dark modern */
    color: #fff;

    text-align: center;
    padding: 10px;
    border-radius: 10px;

    font-size: 13px;
    font-weight: 500;

    border: none;
    /* ❌ zruší 3D border */
    box-shadow: none;
    /* ❌ zruší retro tieň */

    cursor: pointer;
    transition: all 0.2s ease;
}

/* HOVER */

/* ACTIVE (klik efekt) */
.modal-btn:active {
    transform: scale(0.98);
}



.auction-modal-box {
    animation: modalFade 0.2s ease;
}

@keyframes modalFade {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-gallery {
    position: relative;
    width: 50%;
    height: 250px;
    overflow: hidden;
}

.gallery-img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-img.active {
    opacity: 1;
}

/* ARROWS */
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 6px;
}

.gallery-arrow.left {
    left: 10px;
}

.gallery-arrow.right {
    right: 10px;
}

.gallery-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

@media (max-width: 768px) {
    .modal-gallery {
        width: 100%;
        height: 200px;
    }
}

/*****/

.auction-time {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.auction-bids {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.auction-views {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
}

.auction-watchers {
    font-size: 14px;
    color: #777;
}

.watch-btn {
    display: inline-block;
    margin-top: 10px;
    background: #f5f5f5;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.watch-btn:hover {
    background: #eee;
}



/* AVATAR */

.avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #2563eb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: bold;
    overflow: hidden;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* STATS */

.stats {
    display: flex;
    gap: 20px;
    margin-top: 5px;
    font-size: 14px;
}

/* BUTTON */

.edit-profile {
    background: #2563eb;
    color: white;
    padding: 8px 15px;
    border-radius: 6px;
    text-decoration: none;
}


/* CONTENT */

.tab-content {
    display: none;
    margin-top: 20px;
}

.tab-content.active {
    display: block;
}

.sub-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 2px solid #eee;
    margin-bottom: 20px;
}

.sub-tabs button {
    background: none;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
}

.sub-tabs button:hover {
    color: #2563eb;
}

.sub-content {
    display: none;
}

.sub-content.active {
    display: block;
}





/* CARD */

.auction-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.auction-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.auction-info {
    padding: 10px;
}



.btn-view {
    display: block;
    background: #2563eb;
    color: white;
    text-align: center;
    padding: 8px;
    border-radius: 6px;
    text-decoration: none;
    margin-top: 10px;
}

.rating {
    margin-top: 5px;
    font-size: 14px;
    color: #f59e0b;
    font-weight: 600;
}


/* AUCTION PAGE */

.auction-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.auction-gallery {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.auction-gallery img {
    width: 150px;
    height: 120px;
    object-fit: cover;
    border-radius: 6px;
}

/* SELLER */

.seller-box {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
}

.seller-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #2563eb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

/* BID BOX */

.watch-btn {

    text-decoration: none;
    font-weight: 500;
}

/* BID LIST */

.bid-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.bid-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2563eb;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.bid-info {
    font-size: 14px;
}

.bid-rating {
    font-size: 12px;
    color: #f59e0b;
}

.bid-price {
    font-weight: bold;
    margin-top: 3px;
}

.nav-notifications {
    margin-left: auto;
    position: relative;
}

.nav-notifications a {
    font-size: 18px;
    text-decoration: none;
    color: #333;
}

/* NOTIFICATIONS */

.notification-card {
    background: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-text {
    font-size: 15px;
}

.notification-date {
    font-size: 12px;
    color: #888;
}

.notification-card .btn-view {
    background: #2563eb;
    color: white;
    padding: 6px 12px;
    border-radius: 5px;
    text-decoration: none;
}

/** chat css */
.chat-container {
    display: flex;
    height: 500px;
    border: 1px solid #ddd;
}

.chat-users {
    width: 250px;
    border-right: 1px solid #ddd;
    overflow-y: auto;
}

.chat-user {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.chat-user:hover {
    background: #f5f5f5;
}

.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.star {
    font-size: 26px;
    color: #ccc;
    /* základ = sivá/biela */
    cursor: pointer;
    transition: 0.2s;
}

.star.active {
    color: gold;
    /* vybrané */
}

#chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
}

.msg {
    max-width: 70%;
    padding: 8px;
    margin: 5px;
    border-radius: 6px;
}

.my-msg {
    background: #007bff;
    color: white;
    margin-left: auto;
    text-align: right;
}

.other-msg {
    background: #f1f1f1;
    color: black;
    margin-right: auto;
}

.msg.me {
    background: #1e88e5;
    color: white;
    margin-left: auto;
}

.chat-input {
    display: flex;
    border-top: 1px solid #ddd;
}

.chat-input input {
    flex: 1;
    padding: 10px;
    border: none;
}

.chat-input button {
    padding: 10px 20px;
}

.chat-tab-badge {

    background: red;
    color: white;
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 50%;
    margin-left: 8px;

}

.chat-badge {

    background: red;
    color: white;
    font-size: 12px;
    padding: 3px 6px;
    border-radius: 50%;
    margin-left: 8px;

}

.notif-badge {
    background: red;
    color: white;
    border-radius: 50%;
    padding: 3px 7px;
    font-size: 12px;
    margin-left: 5px;
}


/* =========================
🔥 MODAL OVERLAY
========================= */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;

    backdrop-filter: blur(6px);
    background: rgba(0, 0, 0, 0.3);
    justify-content: center;
    align-items: center;

    padding: 20px;



}

/* ACTIVE MODAL */
.modal.active {
    display: flex;
}

/* =========================
🔥 MODAL CONTENT (FIX)
========================= */
.modal-content {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    width: min(400px, 95%);
    position: relative;
    animation: fadeIn 0.2s ease;
    max-height: none;
    overflow: visible;
}

.modal-content form {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 5px;
}

.login-btn {
    cursor: pointer;
}

.register-btn {
    cursor: pointer;
}

/* =========================
🔥 INPUT
========================= */
.modal-content input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
}

/* =========================
👁️ PASSWORD TOGGLE (FINAL PRO UI)
========================= */

/* wrapper */
.password-group {
    position: relative;
}

/* input nech má miesto pre oko */
.password-group input {
    width: 100%;
    padding-right: 45px;
}

/* klikateľná oblasť */
.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);

    width: 30px;
    height: 30px;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
    transition: 0.2s;
}

/* oko */
.eye {
    position: relative;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.eye svg {
    width: 20px;
    height: 20px;
}

/* hover efekt */
.toggle-password:hover {
    background: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
}

.toggle-password:hover .eye {
    color: #2563eb;
    transform: scale(1.15);
}

/* klik efekt */
.toggle-password:active .eye {
    transform: scale(0.95);
}

/* preškrtnuté oko (hidden password) */
.eye.active::after {
    content: "";
    position: absolute;
    width: 22px;
    height: 2px;
    background: #2563eb;
    transform: rotate(45deg);
}

/* =========================
🔥 BUTTON
========================= */
.modal-content button {
    width: 100%;
    padding: 10px;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 6px;
}

/* =========================
🔥 CLOSE
========================= */
.close {
    position: absolute;
    right: 12px;
    top: 10px;
    font-size: 22px;
    cursor: pointer;
}

/* =========================
🔥 ERROR BOX (FIXED)
========================= */
.error-box {
    position: relative;
    z-index: 5;
    width: 100%;
    box-sizing: border-box;

    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;

    background: #f8d7da;
    color: #842029;
    border-left: 4px solid #dc3545;
    border-radius: 6px;

    padding: 0;
    margin-bottom: 0;

    max-height: 0;
    overflow: hidden;
}

.error-box.show {
    opacity: 1;
    transform: translateY(0);

    max-height: 200px;
    /* 🔥 celé sa zobrazí */
    padding: 10px;
    margin-bottom: 10px;
}

/* =========================
🔥 SHAKE FORM
========================= */
@keyframes shakeForm {
    0% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(-6px);
    }

    80% {
        transform: translateX(6px);
    }

    100% {
        transform: translateX(0);
    }
}

.modal-content.shake {
    animation: shakeForm 0.4s ease;
}

/* =========================
🔥 HEADER
========================= */
.login-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.login-logo {
    height: 45px;
}

.welcome-title {
    font-size: 27px;
    font-weight: 600;
    margin: 0;
}

.login-title {
    font-size: 18px;
    font-weight: 500;
    margin: 10px 0;
    color: #555;
}

/* =========================
🔥 REMEMBER
========================= */

.remember-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.remember-label input {
    width: 16px;
    height: 16px;
}

.remember-label span {
    font-size: 14px;
    color: #444;
}

/* =========================
🔥 LINKS
========================= */
.login-links {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    text-align: center;
}

.login-links a {
    font-size: 13px;
    color: #2563eb;
    text-decoration: none;
}

.login-links a:hover {
    text-decoration: underline;
}

/* =========================
🔥 BUTTON STYLE
========================= */
.login-btn-submit {
    padding: 12px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

/* =========================
🔥 SELECT
========================= */
#registerForm select {
    width: 100%;
    padding: 12px;
    padding-right: 40px;
    border: 1px solid #777;
    font-size: 14px;
    box-sizing: border-box;
    appearance: none;
    background: white;
    cursor: pointer;
    margin-bottom: 10px;

    background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='20' viewBox='0 0 20 20' width='20'><path d='M5 7l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

/* =========================
🔥 TERMS MODAL
========================= */
#termsModal .modal-content {
    max-width: min(1200px, 98%);
}

.terms-text {
    width: 100%;
    max-height: 60vh;
    overflow-y: auto;
    margin: 15px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.5;
}

#termsModal h2 {
    text-align: center;
    display: block;
}

.terms-buttons {
    display: flex;
    gap: 10px;
}

.btn-accept {
    background: #28a745;
    color: white;
    padding: 10px;
    flex: 1;
    border: none;
    border-radius: 6px;
}

.btn-decline {
    background: #dc3545;
    color: white;
    padding: 10px;
    flex: 1;
    border: none;
    border-radius: 6px;
}

.btn-accept.disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* =========================
🔥 TERMS CHECKBOX
========================= */
.terms-row {
    margin: 10px 0 15px;
}

.terms-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-radius: 4px;
    position: relative;
}

#termsCheckbox {
    display: none;
}

#termsCheckbox:checked+.custom-checkbox {
    background: #28a745;
    border-color: #28a745;
}

#termsCheckbox:checked+.custom-checkbox::after {
    content: "✔";
    color: white;
    font-size: 12px;
    position: absolute;
    top: 0;
    left: 3px;
}

.terms-label:hover .custom-checkbox {
    border-color: #007bff;
}

.terms-link {
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
}

#registerForm select {
    width: 100%;
    padding: 12px;
    padding-right: 40px;
    /* miesto pre šípku */
    border: 1px solid #777;
    font-size: 14px;
    box-sizing: border-box;

    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    background: white;
    cursor: pointer;

    /* 🔽 ŠÍPKA */
    background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='20' viewBox='0 0 20 20' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M5 7l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
}


/** SEKCIE POD SLIDE BAROM V INDEX */
/** SEKCIE POD SLIDE BAROM V INDEX */
/** SEKCIE POD SLIDE BAROM V INDEX */
/** SEKCIE POD SLIDE BAROM V INDEX */


.index-container {
    max-width: 1150px;
    margin: 0 auto;
    padding: 0 20px;

}

@media (min-width: 1600px) {
    .index-container {
        max-width: 1400px;
    }
}

.index-section {
    margin-bottom: 40px;
    position: relative;
}

.index-section h2 {
    margin-bottom: 15px;
}

/* GRID SYSTEM */
.index-grid {
    display: grid;
    gap: 15px;
    margin-bottom: 10px;

}

/* počet kariet */
.index-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.index-grid-5 {
    grid-template-columns: repeat(5, 1fr);
}

.index-grid-7 {
    grid-template-columns: repeat(7, 1fr);
}

/* KARTA */
.index-card {
    background: #ffffff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transition: all 0.25s ease;
    position: relative;
}

/* HOVER efekt */
.index-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* IMAGE */
.index-card img {
    width: 100%;
    height: 160px;
    object-fit: contain;
    transition: 0.3s;
}

.index-card:hover img {
    transform: scale(1.05);
}

/* BODY */
.index-card-body {
    padding: 12px;
    text-align: left;
}

/* TITLE */
.index-card-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
    height: 34px;
    overflow: hidden;
    text-align: center;
    text-wrap: nowrap;
}

/* PRICE */
.card-price {
    font-size: 16px;
    font-weight: bold;
    color: #16a34a;
    margin-bottom: 6px;
}


.index-card-price {
    font-size: 16px;
    font-weight: bold;
    color: #16a34a;
    margin-bottom: 6px;
}

/* META INFO */
.index-auction-bids,
.index-auction-views,
.index-auction-watchers,
.index-auction-time {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 2px;
}

/* BUTTON */
.index-card-btn {
    display: block;
    margin-top: 10px;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: white;
    text-align: center;
    padding: 8px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    transition: 0.2s;
}


/* LINK WRAP */
.index-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

/* SECTION */
.index-section {
    margin-bottom: 40px;
    padding-bottom: 20px;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .index-grid-5,
    .index-grid-7,
    .index-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.index-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}


.index-more {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #263141;
    font-size: 14px;
}

/* HOVER TEXT */
.index-more:hover {
    color: #263141;
}

/* ŠÍPKA */
.index-arrow {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
}

/* ANIMÁCIA */
.index-more:hover .index-arrow {
    transform: rotate(-45deg) translateX(3px);
}


.index-pagination {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 8px;
}



.index-page-btn {
    display: inline-block;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid #ddd;
    text-decoration: none;
    color: #333;
    border-radius: 6px;
    font-size: 14px;
    min-width: 32px;
    text-align: center;
}

.index-page-btn:hover {
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: white;
}

.index-page-btn.active {
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: white;
    font-weight: bold;
}

.fade-in {
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}



/* 🔘 BUTTONY */
.filters-box button {
    background: #f1f3f7;
    border: none;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.2s;
}

/* hover */
.filters-box button:hover {
    background: #263141;
    color: white;
}



.active-filter {
    background: linear-gradient(135deg, #0f172a, #1e3a8a) !important;
    color: white !important;
}

#auctions-container {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)) !important;
    gap: 20px !important;
    padding: 20px;
}

.live-card {
    background: white;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: 0.2s;
    text-align: center;
}

.live-card:hover {
    transform: translateY(-5px);
}

.live-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
}

.live-card h3 {
    font-size: 16px;
    margin: 10px 0 5px;
}

.live-card p {
    font-weight: bold;
    margin-bottom: 8px;
}

.live-card a {
    display: inline-block;
    padding: 6px 10px;
    background: #263141;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-size: 13px;
}

#dynamic-content {
    display: block !important;
}

/** HOT A TOP CSS */

/* wrapper */
.auction-img-wrap {
    position: relative;
}

/* BADGE */
.badge-hot {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ff6a00;
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 5px;
    z-index: 997;
    pointer-events: none;
}

.badge-top {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #6c3cff;
    color: #fff;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 5px;
    z-index: 997;
    pointer-events: none;
    margin-right: auto;
}

/* HOT karta */


.promo-banner {
    position: relative;
    width: 100%;
    height: 260px;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    overflow: hidden;
    margin: 30px 0;
    color: white;
    display: flex;
    align-items: center;
    padding: 40px;
}

/* overlay svetlo */
.promo-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
}

/* VEĽKÝ TEXT NA POZADÍ */
.promo-bg-text {
    position: absolute;
    font-size: 120px;
    font-weight: 800;
    opacity: 0.03;
    letter-spacing: 10px;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    white-space: nowrap;
}

/* SLIDE */
.promo-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    opacity: 0;
    transition: opacity 0.6s ease;
    padding: 40px;
}

.promo-slide.active {
    opacity: 1;
    z-index: 2;
}

/* TEXT */
.promo-content {
    max-width: 50%;
    z-index: 3;
}

.promo-label {
    font-size: 12px;
    letter-spacing: 2px;
    opacity: 0.7;
}

.promo-content h2 {
    font-size: 26px;
    margin: 10px 0;
}

.promo-content p {
    opacity: 0.8;
    line-height: 1.5;
}

/* BUTTON */
.promo-btn {
    display: inline-block;
    padding: 8px 16px;
    /* 👈 menej paddingu = tenší */
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
    border-radius: 6px;
    /* 👈 menej „guľaté“ */
    text-decoration: none;
    cursor: pointer;

    font-size: 13px;
    /* 👈 menší text */
    font-weight: 500;
    /* 👈 nie hrubý */
    letter-spacing: 0.3px;

    border: none;
    transition: all 0.25s ease;
}

.promo-btn:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
}

/* IMAGE */
.promo-image {
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.promo-image img {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: float 6s ease-in-out infinite;
}

/* ANIMÁCIA */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* PROGRESS */
.promo-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: rgba(255, 255, 255, 0.7);
}

/* ===== BANNER WRAPPER ===== */
.category-banner {
    position: relative;
    width: 100%;
    height: 140px;
    border-radius: 14px;
    overflow: hidden;
    margin: 30px 0;

    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;

    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-banner:hover {
    transform: scale(1.02);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
}


/* ===== OVERLAY ===== */
.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(255, 255, 255, 0.75) 40%,
            rgba(255, 255, 255, 0.2) 100%);
}


/* ===== CONTENT ===== */
.banner-content {
    position: relative;
    z-index: 2;
    padding: 25px;
    max-width: 500px;
}


/* ===== TEXT ===== */
.banner-content h2,
.banner-content p {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

/* keď sa aktivuje */
.banner-content.show h2 {
    opacity: 1;
    transform: translateY(0);
}

.banner-content.show p {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}


/* ===== BACKGROUNDS ===== */
.banner-sport {
    background-image: url("../imgweb/sportbanner.png");
}

.banner-car {
    background-image: url("../imgweb/carbanner.png");
}

.banner-tech {
    background-image: url("../imgweb/techbanner.png");
}

.banner-collect {
    background-image: url("../imgweb/collectbanner.png");
}

.banner-hobby {
    background-image: url("../imgweb/hobbybanner.png");
}


/* ===== ANIMATION ===== */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}