/* ============================================================
   SunAlgorithms Auction Platform - WeBuyCars × AutoTrader Style
   Brand Colors: Red #E30613, Black #101010, Grey bg #F5F5F7
   ============================================================ */

/* ---------- CSS VARIABLES (Light Mode) ---------- */
:root {
    /* Theme Colors */
    --bg: #F5F5F7;
    --bg-card: #FFFFFF;
    --bg-input: #F5F5F7;
    --muted: #666666;
    --text: #101010;
    --border: #EAEAEA;
    --shadow: 0 2px 8px rgba(0,0,0,0.05);
    --radius: 12px;
    --transition: 0.3s ease;
    
    /* Accent Colors */
    --orange: #ff9500;
    --red: #ff4444;
    --blue: #4dabf7;
    --gold: #ffd700;

    /* WeBuyCars/AutoTrader Colors */
    --wbc-red: #E30613;
    --wbc-black: #101010;
    --wbc-grey: #F5F5F7;
    --wbc-border: #EAEAEA;
    --wbc-white: #FFFFFF;
}

/* ---------- RESET & GLOBAL ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
}

::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg);
}
::-webkit-scrollbar-thumb {
    background: var(--wbc-red);
    border-radius: 10px;
}

/* ---------- LANDING HERO (Legacy) ---------- */
.landing-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    text-align: center;
    padding: 2rem;
}
.landing-hero h1 {
    font-size: 3.5rem;
    color: var(--wbc-red);
    margin-bottom: 0.5rem;
}
.landing-hero p {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 600px;
}

/* ---------- NAVBAR ---------- */
#navbar {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 0.8rem 2rem;
    background: var(--wbc-white);
    border-bottom: 1px solid var(--wbc-border);
    position: sticky;
    top: 0;
    z-index: 100;
    flex-wrap: wrap;
    gap: 0.5rem;
}
#navbar .nav-left h1 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--wbc-red);
    font-weight: 900;
}
#navbar .nav-left h1 i {
    margin-right: 0.4rem;
}
.nav-center {
    display: flex;
    gap: 1.2rem;
    align-items: center;
    flex-wrap: wrap;
}
.nav-center span {
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    transition: var(--transition);
    color: var(--muted);
    font-size: 0.95rem;
    font-weight: 600;
}
.nav-center span:hover {
    color: var(--wbc-black);
    background: var(--bg);
}
.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}
#userDisplay {
    color: var(--wbc-black);
    font-size: 0.9rem;
    font-weight: 600;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.4rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    background: var(--wbc-white);
    color: var(--wbc-black);
    border: 1px solid var(--wbc-border);
}
.btn:hover {
    transform: translateY(-1px);
    filter: brightness(0.95);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.btn-primary {
    background: var(--wbc-red);
    color: var(--wbc-white);
    border-color: var(--wbc-red);
}
.btn-primary:hover {
    background: #c00510;
    color: #fff;
}
.btn-outline {
    background: transparent;
    border: 1px solid var(--wbc-red);
    color: var(--wbc-red);
}
.btn-outline:hover {
    background: var(--wbc-red);
    color: #fff;
}
.btn-danger {
    background: var(--red);
    color: #fff;
    border-color: var(--red);
}
.btn-danger:hover {
    background: #ff6666;
}
.btn-success {
    background: #28a745;
    color: #fff;
    border-color: #28a745;
}
.btn-success:hover {
    background: #218838;
}
.btn-sm {
    padding: 0.2rem 0.8rem;
    font-size: 0.8rem;
}
.btn-block {
    width: 100%;
    justify-content: center;
}

/* ---------- BACK BUTTON ---------- */
.back-btn {
    background: var(--wbc-white);
    border: 1px solid var(--wbc-border);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    color: var(--muted);
    cursor: pointer;
    transition: var(--transition);
    margin-bottom: 1rem;
}
.back-btn:hover {
    color: var(--wbc-black);
    border-color: var(--wbc-black);
}

/* ---------- MAIN CONTENT ---------- */
#mainContent {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    background: var(--bg);
}

/* ---------- CARDS ---------- */
.card {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--wbc-border);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: var(--transition);
    box-shadow: var(--shadow);
}
.card h3 {
    margin-bottom: 0.8rem;
    color: var(--wbc-black);
}
.card .grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ---------- FORM ELEMENTS ---------- */
.form-group {
    margin-bottom: 1rem;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: 0.25rem;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    background: var(--bg-input);
    border: 1px solid var(--wbc-border);
    color: var(--wbc-black);
    font-size: 0.95rem;
    transition: var(--transition);
    font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--wbc-red);
    box-shadow: 0 0 0 3px rgba(227,6,19,0.1);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}
.form-group select option {
    background: var(--wbc-white);
    color: var(--wbc-black);
}

/* ---------- DRAG & DROP AREAS ---------- */
.drag-area {
    border: 2px dashed var(--wbc-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg);
}
.drag-area:hover,
.drag-area.dragover {
    border-color: var(--wbc-red);
    background: rgba(227,6,19,0.03);
}
.drag-area i {
    font-size: 2rem;
    color: var(--wbc-red);
}
.drag-area p {
    margin: 0.3rem 0 0;
    color: var(--muted);
    font-size: 0.85rem;
}

/* ---------- KYC BADGES ---------- */
.kyc-badge {
    display: inline-block;
    background: rgba(227,6,19,0.1);
    border: 1px solid var(--wbc-red);
    color: var(--wbc-red);
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 500;
    margin: 0.2rem 0.2rem 0.2rem 0;
    white-space: nowrap;
}

/* ---------- TRUST SCORE ---------- */
.trust-score {
    display: inline-block;
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid var(--gold);
    padding: 0.1rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    color: #856404;
    margin-left: 0.3rem;
}

/* ---------- TOAST ---------- */
#toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 14px 24px;
    border-radius: var(--radius);
    background: var(--wbc-white);
    border: 1px solid var(--wbc-red);
    color: var(--wbc-black);
    z-index: 99999;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    backdrop-filter: blur(8px);
    display: none;
    font-size: 0.95rem;
    animation: slideUp 0.3s ease;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- CHAT MESSAGE ---------- */
.chat-message {
    padding: 0.6rem 1rem;
    border-radius: 8px;
    background: var(--bg);
    margin: 0.4rem 0;
    border-left: 3px solid var(--wbc-red);
}

/* ---------- MODAL ---------- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1.5rem;
}
.modal-content {
    background: var(--wbc-white);
    border-radius: var(--radius);
    border: 1px solid var(--wbc-border);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.modal-content::-webkit-scrollbar {
    width: 4px;
}
.close-modal {
    position: sticky;
    top: 0;
    float: right;
    font-size: 2rem;
    color: var(--muted);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
    margin-top: -0.5rem;
}
.close-modal:hover {
    color: var(--wbc-black);
}
.modal-content h2,
.modal-content h3 {
    margin-bottom: 1.2rem;
    color: var(--wbc-black);
}

/* ---------- ROLE SELECTOR BUTTONS (Register) ---------- */
.role-btn.active {
    border-color: var(--wbc-red) !important;
    background: rgba(227,6,19,0.05) !important;
}

/* ============================================================
   ========== END OF PART 1 – PASTE PART 2 BELOW ==========
   ============================================================ */
   /* ============================================================
   ========== PART 2: WEBUYCARS × AUTOTRADER STYLES ==========
   ============================================================ */

/* ---------- AUCTION CARD (WeBuyCars Light Mode) ---------- */
.auction-card-item {
    background: var(--wbc-white);
    border: 1px solid var(--wbc-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow);
}
.auction-card-item:hover {
    transform: translateY(-4px);
    border-color: var(--wbc-red);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.auction-card-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.auction-card-item:hover img {
    transform: scale(1.03);
}

/* ---------- LISTING TYPE TOGGLE (Create Listing) ---------- */
.listing-type-btn.active {
    background: var(--wbc-white) !important;
    color: var(--wbc-black) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* ---------- AUCTION GALLERY (Pro image gallery) ---------- */
.gallery-container {
    background: #000;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}
.gallery-main {
    width: 100%;
    aspect-ratio: 16/10;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    color: #000;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: 700;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.gallery-arrow:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.05);
}
.gallery-arrow-left {
    left: 12px;
}
.gallery-arrow-right {
    right: 12px;
}
.gallery-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
}
.gallery-badge-live {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--wbc-red);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
}
.gallery-badge-watching {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.7rem;
    padding: 0.15rem 0.6rem;
    border-radius: 20px;
}

/* ---------- THUMBNAILS UNDER GALLERY ---------- */
.thumbnails-container {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: thin;
}
.thumbnails-container::-webkit-scrollbar {
    height: 4px;
}
.thumbnails-container::-webkit-scrollbar-thumb {
    background: var(--wbc-red);
    border-radius: 10px;
}
.thumbnail-item {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: 0.2s;
    opacity: 0.7;
    background: var(--bg);
}
.thumbnail-item:hover {
    opacity: 1;
}
.thumbnail-item.active {
    border-color: var(--wbc-red);
    opacity: 1;
    box-shadow: 0 0 0 3px rgba(227,6,19,0.2);
}
.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ---------- STICKY BID PANEL (Right side desktop) ---------- */
.bid-panel {
    background: var(--wbc-white);
    border: 1px solid var(--wbc-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    position: sticky;
    top: 80px;
    align-self: start;
    box-shadow: var(--shadow);
}
.bid-panel .current-bid {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--wbc-black);
    margin: 0;
}
.bid-panel .bid-btn {
    background: var(--wbc-red);
    color: #fff;
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
    width: 100%;
}
.bid-panel .bid-btn:hover {
    background: #c00510;
}
.bid-panel .join-live-btn {
    background: var(--wbc-black);
    color: #fff;
    padding: 0.9rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}
.bid-panel .join-live-btn .pulse-dot {
    width: 8px;
    height: 8px;
    background: var(--wbc-red);
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.7); }
}
.bid-panel .join-live-btn:hover {
    background: #000;
}
.bid-panel .buy-now-btn {
    background: transparent;
    color: var(--wbc-black);
    padding: 0.9rem 1.5rem;
    border: 1px solid var(--wbc-border);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    width: 100%;
    margin-top: 0.5rem;
}
.bid-panel .buy-now-btn:hover {
    background: var(--bg);
}

/* ---------- MARKETPLACE FILTER CHIPS ---------- */
.filter-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
}
.filter-chip {
    white-space: nowrap;
    padding: 0.5rem 1.2rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 700;
    border: 1px solid var(--wbc-border);
    background: var(--wbc-white);
    color: var(--muted);
    cursor: pointer;
    transition: 0.2s;
}
.filter-chip.active {
    border-color: var(--wbc-black);
    background: var(--wbc-black);
    color: #fff;
}
.filter-chip.verified-active {
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
}
.category-chip {
    white-space: nowrap;
    padding: 0.3rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--wbc-border);
    background: var(--wbc-white);
    color: var(--muted);
    cursor: pointer;
    transition: 0.2s;
}
.category-chip.active {
    border-color: var(--wbc-black);
    background: var(--bg);
    color: var(--wbc-black);
}

/* ---------- DASHBOARD STATS CARDS ---------- */
.dash-stat {
    background: var(--wbc-white);
    border: 1px solid var(--wbc-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    box-shadow: var(--shadow);
}
.dash-stat .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0;
}
.dash-stat .value {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: var(--wbc-black);
}

/* ---------- KYC UPLOAD AREAS ---------- */
.kyc-upload-area {
    border: 2px dashed var(--wbc-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
    background: var(--bg);
}
.kyc-upload-area:hover {
    border-color: var(--wbc-red);
}
.kyc-upload-area i {
    font-size: 2rem;
    color: var(--wbc-red);
}
.kyc-upload-area p {
    margin: 0.3rem 0 0;
    color: var(--muted);
    font-size: 0.85rem;
}
.kyc-preview {
    margin-top: 0.3rem;
    font-size: 0.8rem;
    color: var(--wbc-red);
}

/* ---------- SELLER PROFILE HEADER ---------- */
.seller-profile-header {
    background: var(--wbc-white);
    border: 1px solid var(--wbc-border);
    border-radius: var(--radius);
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
    box-shadow: var(--shadow);
}
.seller-profile-header .avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg);
}
.seller-profile-header .info {
    flex: 1;
}
.seller-profile-header .info .name {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    color: var(--wbc-black);
}
.seller-profile-header .info .verified-badge {
    background: var(--blue);
    color: #fff;
    font-size: 0.7rem;
    padding: 0.1rem 0.6rem;
    border-radius: 9999px;
    font-weight: 600;
}
.seller-profile-header .info .meta {
    color: var(--muted);
    margin: 0.2rem 0;
}
.seller-profile-header .info .bio {
    color: var(--muted);
    margin-top: 0.3rem;
}
.seller-profile-header .actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}
.seller-profile-header .actions button {
    border: 1px solid var(--wbc-border);
    padding: 0.3rem 1rem;
    border-radius: 8px;
    background: var(--wbc-white);
    color: var(--wbc-black);
    cursor: pointer;
}
.seller-profile-header .actions button:hover {
    background: var(--bg);
}

/* ============================================================
   ========== END OF PART 2 – PASTE PART 3 BELOW ==========
   ============================================================ */
   /* ============================================================
   ========== PART 3: LEGACY AUCTION ROOM & RESPONSIVE ========
   ============================================================ */

/* ---------- LEGACY AUCTION ROOM (Light Mode) ---------- */
.auction-room {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}
@media (max-width: 900px) {
    .auction-room {
        grid-template-columns: 1fr;
    }
}
.room-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--wbc-border);
}
.room-header h2 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--wbc-black);
}
.room-header .back-btn {
    background: var(--wbc-white);
    border: 1px solid var(--wbc-border);
    padding: 0.4rem 1rem;
    border-radius: 8px;
    color: var(--muted);
    cursor: pointer;
    transition: var(--transition);
}
.room-header .back-btn:hover {
    color: var(--wbc-black);
    border-color: var(--wbc-black);
}
.room-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--muted);
}
.room-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.room-images {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0.5rem 0;
}
.room-images img {
    width: 120px;
    height: 90px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--wbc-border);
    cursor: pointer;
    transition: var(--transition);
}
.room-images img:hover {
    border-color: var(--wbc-red);
}
.room-images .main-image {
    width: 100%;
    height: 350px;
    object-fit: contain;
    border-radius: var(--radius);
    border: 1px solid var(--wbc-border);
    background: #000;
}

/* ---------- CURRENT BID SECTION (Light Mode) ---------- */
.current-bid-section {
    background: var(--wbc-white);
    border-radius: var(--radius);
    border: 1px solid var(--wbc-border);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow);
}
.current-bid-section .bid-amount {
    font-size: 3rem;
    font-weight: 900;
    color: var(--wbc-black);
}
.current-bid-section .bidder-name {
    font-size: 1.1rem;
    color: var(--muted);
}
.current-bid-section .bid-time {
    font-size: 0.8rem;
    color: var(--muted);
}

/* ---------- TIMER (Light Mode) ---------- */
.timer {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--wbc-red);
    margin: 0.5rem 0;
}
.timer.warning {
    color: var(--red);
    animation: pulse 1s infinite;
}

/* ---------- BID QUEUE (Light Mode) ---------- */
.bid-queue {
    background: var(--wbc-white);
    border-radius: var(--radius);
    border: 1px solid var(--wbc-border);
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: var(--shadow);
}
.bid-queue .bid-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0.8rem;
    margin: 0.3rem 0;
    background: var(--bg);
    border-radius: 8px;
    border-left: 3px solid var(--wbc-red);
}
.bid-queue .bid-item .bid-info {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.bid-queue .bid-item .bid-info .bidder-name {
    font-weight: 600;
    color: var(--wbc-black);
}
.bid-queue .bid-item .bid-info .bid-amount {
    font-size: 1.1rem;
    color: var(--wbc-red);
}
.bid-queue .bid-item .bid-actions {
    display: flex;
    gap: 0.5rem;
}
.bid-queue .bid-item .bid-actions button {
    padding: 0.2rem 0.6rem;
    font-size: 0.8rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}
.bid-queue .bid-item .bid-actions .ack-btn {
    background: #28a745;
    color: #fff;
}
.bid-queue .bid-item .bid-actions .ack-btn:hover {
    background: #218838;
}
.bid-queue .bid-item .bid-actions .reject-btn {
    background: var(--red);
    color: #fff;
}
.bid-queue .bid-item .bid-actions .reject-btn:hover {
    background: #ff6666;
}
.bid-queue .empty-queue {
    color: var(--muted);
    text-align: center;
    padding: 1rem;
}

/* ---------- VIDEO CONTAINER (Light Mode) ---------- */
.video-container {
    background: var(--wbc-white);
    border-radius: var(--radius);
    border: 1px solid var(--wbc-border);
    padding: 1rem;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
    box-shadow: var(--shadow);
}
.video-container video {
    width: 100%;
    max-height: 400px;
    background: #000;
    border-radius: 8px;
}
.video-container .video-placeholder {
    color: var(--muted);
    font-size: 1.2rem;
    text-align: center;
}
.video-container .video-controls {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ---------- BID HISTORY (Light Mode) ---------- */
.bid-history {
    background: var(--wbc-white);
    border-radius: var(--radius);
    border: 1px solid var(--wbc-border);
    padding: 1rem;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: var(--shadow);
}
.bid-history .history-item {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--bg);
    font-size: 0.85rem;
}
.bid-history .history-item .bidder {
    color: var(--muted);
}
.bid-history .history-item .amount {
    color: var(--wbc-red);
    font-weight: 600;
}

/* ---------- VIEWER COUNT ---------- */
.viewer-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--muted);
}
.viewer-count i {
    color: var(--wbc-red);
}

/* ---------- PROXY BID ROOM ---------- */
.proxy-bid-room {
    background: var(--wbc-white);
    border-radius: var(--radius);
    border: 1px solid var(--wbc-border);
    padding: 1rem;
    margin-top: 0.5rem;
    box-shadow: var(--shadow);
}
.proxy-bid-room .form-group {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}
.proxy-bid-room .form-group input {
    flex: 1;
    min-width: 120px;
}
.proxy-bid-room .proxy-status {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--muted);
}

/* ---------- STREAM INDICATOR ---------- */
.stream-indicator {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0,0,0,0.8);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    z-index: 10;
}
.stream-indicator .pulse-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    background: var(--red);
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
    margin-right: 8px;
}

/* ---------- RESPONSIVE REFINEMENTS (MOBILE) ---------- */
@media (max-width: 768px) {
    .auction-room {
        grid-template-columns: 1fr;
    }
    .room-images .main-image {
        height: 200px;
    }
    .current-bid-section .bid-amount {
        font-size: 2.2rem;
    }
    .timer {
        font-size: 2rem;
    }
    .seller-profile-header {
        flex-direction: column;
        text-align: center;
    }
    .seller-profile-header .info .name {
        justify-content: center;
    }
    .seller-profile-header .actions {
        justify-content: center;
    }
    .dash-stat {
        padding: 1rem;
    }
    .dash-stat .value {
        font-size: 1.5rem;
    }
    .bid-panel {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        border-radius: var(--radius) var(--radius) 0 0;
        max-height: 60vh;
        overflow-y: auto;
        z-index: 50;
        box-shadow: 0 -8px 32px rgba(0,0,0,0.4);
    }
    .bid-panel .current-bid {
        font-size: 2rem;
    }
    #mainContent {
        padding: 1rem;
        padding-bottom: 80px;
    }
    .gallery-main {
        aspect-ratio: 4/3;
    }
    .thumbnail-item {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .filter-chip {
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
    }
    .category-chip {
        padding: 0.2rem 0.6rem;
        font-size: 0.75rem;
    }
    .bid-panel .current-bid {
        font-size: 1.8rem;
    }
}

/* ---------- PULSE ANIMATION (for timers and live dots) ---------- */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.7); }
}
/* ============================================================
   ========== FINAL MOBILE RESPONSIVE FIXES ====================
   ============================================================ */

/* Marketplace grid: single column on small screens */
@media(max-width:768px) {
    .marketplace-grid {
        grid-template-columns: 1fr !important;
    }
    #marketplaceSearch {
        min-width: 0 !important;
        flex: 1 !important;
    }
}

/* Navbar: allow wrapping and hide extra buttons if needed */
@media(max-width:768px) {
    #navbar {
        flex-wrap: wrap;
        height: auto !important;
        padding: 0.5rem 1rem !important;
    }
    #navbar > div {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    #navbar .nav-center {
        justify-content: flex-start;
        gap: 0.8rem;
    }
}

/* Ensure sticky bid panel becomes a bottom sheet on mobile (already there, but keep it strong) */
@media(max-width:768px) {
    .bid-panel {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        top: auto !important;
        border-radius: 12px 12px 0 0 !important;
        max-height: 60vh !important;
        overflow-y: auto !important;
        z-index: 50 !important;
    }
    #mainContent {
        padding-bottom: 80px !important;
    }
}

/* Make gallery thumbnails smaller on phones */
@media(max-width:480px) {
    .thumbnail-item {
        width: 60px !important;
        height: 60px !important;
    }
}
/* ============================================================
   ========== END OF STYLES.CSS – COMPLETE =====================
   ============================================================ */
