/* =========================================================
   MARKETPLACE MODERN - STYLESHEET
   Design System: Clean, Modern, Professional, Responsive
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

[v-cloak] {
    display: none !important;
}

:root {
    --primary: #059669;         /* Emerald 600 */
    --primary-hover: #047857;   /* Emerald 700 */
    --primary-light: #ecfdf5;   /* Emerald 50 */
    --primary-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
    --secondary-gradient: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    --wa-color: #25D366;
    --wa-hover: #128C7E;
    --dark: #0f172a;
    --dark-muted: #64748b;
    --border-color: #e2e8f0;
    --bg-surface: #ffffff;
    --bg-page: #f8fafc;
    --card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
    --hover-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-page);
    color: var(--dark);
    margin: 0;
    padding: 0;
    overflow-x: clip;
}

/* NAVBAR */
.navbar-modern {
    position: sticky !important;
    top: 0 !important;
    z-index: 1030 !important;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--dark);
    text-decoration: none;
}

.brand-icon {
    width: 42px;
    height: 42px;
    background: var(--primary-gradient);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.search-input-group {
    background: #f1f5f9;
    border-radius: 50px;
    padding: 4px 8px 4px 16px;
    border: 1px solid transparent;
    transition: all 0.25s ease;
}

.search-input-group:focus-within {
    background: #ffffff;
    border-color: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.search-input-group input {
    border: none;
    background: transparent;
    box-shadow: none !important;
    font-size: 0.92rem;
}

/* HERO SECTION */
.hero-banner {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 40%, #047857 100%);
    border-radius: 24px;
    color: white;
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(6, 78, 59, 0.15);
}

#hero-threejs-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.88;
}

/* DISTANCE & RADIUS STYLES */
.badge-distance {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.role-selector-btn {
    flex: 1;
    padding: 10px;
    border-radius: 12px;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.role-selector-btn.active {
    border-color: #059669;
    background: #ecfdf5;
    color: #047857;
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
}

.hero-banner::after {
    content: '';
    position: absolute;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* CATEGORY PILLS */
.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-muted);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.category-pill:hover,
.category-pill.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
    transform: translateY(-2px);
}

/* PRODUCT CARD */
.product-card {
    background: white;
    border: 1px solid #edf2f7;
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--hover-shadow);
    border-color: #cbd5e1;
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 80%;
    overflow: hidden;
    background: #f1f5f9;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image {
    transform: scale(1.06);
}

.product-badge-discount {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ef4444;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.product-badge-featured {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    color: #facc15;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
}

.product-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #059669;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.product-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
}

.product-title:hover {
    color: var(--primary);
}

.product-price-section {
    margin-top: auto;
    padding-top: 12px;
}

.price-current {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
}

.price-old {
    font-size: 0.85rem;
    color: #94a3b8;
    text-decoration: line-through;
    margin-left: 6px;
}

.btn-add-cart {
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.btn-add-cart:hover {
    background: var(--primary-hover);
    color: white;
    box-shadow: 0 4px 14px rgba(5, 150, 105, 0.35);
}

.btn-wa-direct {
    background: #25D366;
    color: white;
    border: none;
    border-radius: 12px;
    padding: 10px 14px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-wa-direct:hover {
    background: #1eb855;
    color: white;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

/* FLOATING WHATSAPP BUTTON */
.wa-floating-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 62px;
    height: 62px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
    z-index: 1050;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
}

.wa-floating-btn:hover {
    transform: scale(1.1) rotate(5deg);
    background: #1eb855;
    color: white;
}

.wa-badge-pulse {
    position: absolute;
    top: 0;
    right: 0;
    width: 16px;
    height: 16px;
    background: #ef4444;
    border: 2px solid white;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* CART OFFCANVAS */
.offcanvas-cart {
    width: 440px !important;
}

.cart-item-row {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
    align-items: center;
}

.cart-thumb {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    object-fit: cover;
    background: #f8fafc;
}

.qty-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    overflow: hidden;
}

.qty-btn {
    border: none;
    background: #f8fafc;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}

.qty-btn:hover {
    background: #e2e8f0;
}

.qty-number {
    width: 36px;
    text-align: center;
    font-weight: 600;
    font-size: 0.9rem;
}

/* MODAL AUTH */
.auth-nav-tabs .nav-link {
    font-weight: 700;
    color: #64748b;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 24px;
}

.auth-nav-tabs .nav-link.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
    background: transparent;
}

/* BADGES & STATS */
.stat-pill {
    background: white;
    border: 1px solid var(--border-color);
    padding: 14px 20px;
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

/* FOOTER */
.footer-marketplace {
    background: #0f172a;
    color: #cbd5e1;
    padding: 60px 0 35px 0;
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-marketplace h6 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 18px;
    letter-spacing: 0.3px;
}

.footer-marketplace p,
.footer-marketplace .footer-desc,
.footer-marketplace .text-muted {
    color: #cbd5e1 !important;
    line-height: 1.65;
}

.footer-marketplace .footer-copyright {
    color: #94a3b8 !important;
    line-height: 1.6;
}

.footer-marketplace a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-marketplace a:hover {
    color: #34d399;
}

.footer-marketplace .social-links a {
    color: #cbd5e1;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-marketplace .social-links a:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .offcanvas-cart {
        width: 100% !important;
    }
    .hero-banner {
        padding: 30px 20px;
    }
}

/* REVIEWS & RATINGS */
.reviews-section {
    position: relative;
}

.cursor-pointer {
    cursor: pointer;
}

.transition-all {
    transition: all 0.15s ease-in-out;
}

.star-interactive {
    cursor: pointer;
    transition: transform 0.15s ease, color 0.15s ease;
}

.star-interactive:hover {
    transform: scale(1.25);
}

/* ================= MOBILE BOTTOM NAVIGATION ================= */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
    display: none; /* Default sembunyi di desktop */
    align-items: center;
    justify-content: space-around;
    z-index: 1040;
    padding: 0 env(safe-area-inset-right, 0) env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    color: #64748b;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 4px 2px;
    position: relative;
    user-select: none;
}

.bottom-nav-item i {
    font-size: 1.28rem;
    line-height: 1;
    margin-bottom: 3px;
    transition: transform 0.2s ease, color 0.2s ease;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--primary);
    text-decoration: none;
}

.bottom-nav-item.active i {
    transform: translateY(-2px);
    color: var(--primary);
}

/* Tombol Melayang Tengah: + JUAL Ala OLX */
.bottom-nav-sell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    text-decoration: none;
    position: relative;
    top: -14px;
    cursor: pointer;
}

.bottom-nav-sell .sell-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 8px 18px rgba(245, 158, 11, 0.45);
    border: 3px solid #ffffff;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bottom-nav-sell:hover .sell-circle,
.bottom-nav-sell:active .sell-circle {
    transform: scale(1.08);
}

.bottom-nav-sell span {
    font-size: 0.7rem;
    font-weight: 800;
    color: #d97706;
    margin-top: 3px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* ================= PWA IN-APP INSTALL BANNER ================= */
.pwa-install-banner {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(6, 78, 59, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    animation: fadeInDown 0.4s ease;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================= ANTI-OVERFLOW GLOBAL & MOBILE OPTIMIZATIONS ================= */
html, body {
    max-width: 100%;
    overflow-x: clip !important;
}

* {
    box-sizing: border-box;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

/* Media Query Tablet & Mobile (< 992px) */
@media (max-width: 991.98px) {
    body {
        padding-bottom: 74px !important;
    }
    .mobile-bottom-nav {
        display: flex !important;
    }
    .wa-floating-btn {
        bottom: 80px !important;
        right: 18px !important;
        width: 50px !important;
        height: 50px !important;
        font-size: 26px !important;
    }
    .desktop-nav-actions {
        display: none !important;
    }
}

/* Media Query Mobile Smartphone (< 576px) */
@media (max-width: 575.98px) {
    .container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    .hero-banner {
        padding: 24px 16px !important;
        border-radius: 18px !important;
    }
    .hero-banner h1 {
        font-size: 1.4rem !important;
        line-height: 1.3 !important;
    }
    .hero-banner p.lead {
        font-size: 0.9rem !important;
    }
    .olx-card {
        border-radius: 12px !important;
    }
    .olx-card .olx-thumb-wrap {
        padding-top: 85% !important;
    }
    .olx-card .p-3 {
        padding: 10px !important;
    }
    .olx-card h4.fs-5 {
        font-size: 0.98rem !important;
    }
    .olx-card h6.fw-bold {
        font-size: 0.82rem !important;
        line-height: 1.25 !important;
    }
    .badge-cond-bekas, .badge-cond-baru, .badge-nego {
        font-size: 0.65rem !important;
        padding: 2px 6px !important;
    }
    .olx-card .btn-sm {
        font-size: 0.70rem !important;
        padding: 4px 4px !important;
        letter-spacing: -0.2px;
    }
    .olx-card .btn-sm i {
        font-size: 0.75rem !important;
    }
    .modal-dialog {
        margin: 0.5rem auto !important;
        max-width: calc(100% - 1rem) !important;
    }
    .modal-body {
        padding: 1rem !important;
    }
    .footer-marketplace {
        padding: 40px 0 30px 0 !important;
        margin-top: 40px !important;
    }
}

/* ================= DESKTOP FULLSCREEN LAYOUT (EXPANDED FLUID) ================= */
@media (min-width: 992px) {
    .container, 
    .container-lg, 
    .container-md, 
    .container-sm, 
    .container-xl, 
    .container-xxl {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: clamp(24px, 3.5vw, 64px) !important;
        padding-right: clamp(24px, 3.5vw, 64px) !important;
    }

    .hero-banner {
        border-radius: 24px;
        padding: 55px clamp(28px, 4vw, 70px) !important;
    }
}

@media (min-width: 1600px) {
    .container, 
    .container-lg, 
    .container-md, 
    .container-sm, 
    .container-xl, 
    .container-xxl {
        padding-left: 72px !important;
        padding-right: 72px !important;
    }
}

/* ================= 1. DARK THEME (DEEP SLATE & EMERALD GLOW) ================= */
body.dark-theme {
    background-color: #0b0f19 !important;
    color: #e2e8f0 !important;
}

body.dark-theme .navbar-modern {
    background: rgba(17, 24, 39, 0.94) !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

body.dark-theme .navbar-modern .brand-logo span.text-dark {
    color: #f8fafc !important;
}

body.dark-theme .olx-card,
body.dark-theme .card,
body.dark-theme .modal-content,
body.dark-theme .stat-card,
body.dark-theme .stat-pill,
body.dark-theme .dropdown-menu,
body.dark-theme .wtb-card {
    background-color: #151e2e !important;
    border-color: #26334d !important;
    color: #f1f5f9 !important;
}

body.dark-theme .bg-white,
body.dark-theme .bg-light {
    background-color: #151e2e !important;
    color: #e2e8f0 !important;
}

body.dark-theme .text-dark,
body.dark-theme h1, body.dark-theme h2, body.dark-theme h3, 
body.dark-theme h4, body.dark-theme h5, body.dark-theme h6 {
    color: #f8fafc !important;
}

body.dark-theme .text-muted,
body.dark-theme .text-secondary {
    color: #94a3b8 !important;
}

body.dark-theme .form-control,
body.dark-theme .form-select,
body.dark-theme .input-group-text {
    background-color: #1a2438 !important;
    border-color: #2b3a56 !important;
    color: #f8fafc !important;
}

body.dark-theme .form-control:focus,
body.dark-theme .form-select:focus {
    background-color: #1e293b !important;
    color: #ffffff !important;
    border-color: #10b981 !important;
    box-shadow: 0 0 0 0.25rem rgba(16, 185, 129, 0.25) !important;
}

body.dark-theme .btn-light,
body.dark-theme .btn-outline-dark {
    background-color: #1e293b !important;
    border-color: #334155 !important;
    color: #f1f5f9 !important;
}

body.dark-theme .btn-light:hover,
body.dark-theme .btn-outline-dark:hover {
    background-color: #334155 !important;
    color: #ffffff !important;
}

body.dark-theme .mobile-bottom-nav {
    background: rgba(17, 24, 39, 0.95) !important;
    border-top-color: #243048 !important;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3) !important;
}

body.dark-theme .mobile-bottom-nav .bottom-nav-item {
    color: #94a3b8 !important;
}

body.dark-theme .mobile-bottom-nav .bottom-nav-item.active {
    color: #34d399 !important;
}

body.dark-theme .border,
body.dark-theme .border-top,
body.dark-theme .border-bottom,
body.dark-theme .border-start,
body.dark-theme .border-end {
    border-color: #26334d !important;
}

body.dark-theme .badge.bg-light {
    background-color: #1e293b !important;
    color: #cbd5e1 !important;
}

/* Theme toggle button styling */
.btn-theme-toggle {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #f59e0b;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-theme-toggle:hover {
    transform: rotate(20deg) scale(1.08);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.25);
}

body.dark-theme .btn-theme-toggle {
    background: #1e293b;
    border-color: #334155;
    color: #38bdf8;
}

/* ================= 2. SMART BARGAIN & PRICE METER ================= */
.price-meter-wrap {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px;
}

body.dark-theme .price-meter-wrap {
    background: #151e2e;
    border-color: #26334d;
}

.price-gauge-track {
    height: 10px;
    border-radius: 10px;
    background: linear-gradient(90deg, #10b981 0%, #10b981 35%, #f59e0b 35%, #f59e0b 70%, #ef4444 70%, #ef4444 100%);
    position: relative;
    margin: 12px 0 24px 0;
}

.price-gauge-indicator {
    position: absolute;
    top: -6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #0f172a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transform: translateX(-50%);
    transition: left 0.15s ease;
}

.bargain-quick-btn {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.2s;
}

body.dark-theme .bargain-quick-btn {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

.bargain-quick-btn:hover,
.bargain-quick-btn.active {
    background: #059669;
    border-color: #059669;
    color: #ffffff;
}

/* ================= 3. QUICK WHATSAPP PITCH TEMPLATES ================= */
.pitch-card-option {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    width: 100%;
}

body.dark-theme .pitch-card-option {
    background: #151e2e;
    border-color: #26334d;
}

.pitch-card-option:hover {
    border-color: #10b981;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.15);
}

.pitch-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

/* ================= 4. BARTER / TRADE-IN BADGE ================= */
.badge-barter {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
    color: #ffffff;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.35);
}

/* ================= 5. SAFE COD ZONE BADGE ================= */
.badge-cod-safe {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #047857;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

body.dark-theme .badge-cod-safe {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: #34d399;
}

/* ================= 6. WTB (WANT TO BUY) CARD ================= */
.wtb-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 18px;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.wtb-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px -4px rgba(0,0,0,0.08);
    border-color: #f59e0b;
}

.badge-wtb {
    background: #fef3c7;
    border: 1px solid #fde68a;
    color: #b45309;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

body.dark-theme .badge-wtb {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

/* ================= 7. SOCIAL STORY GENERATOR PREVIEW ================= */
.story-preview-container {
    width: 290px;
    height: 515px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
    border: 4px solid #1e293b;
    margin: 0 auto;
    position: relative;
    background: #0f172a;
}

.story-canvas-render {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ================= 8. GOOGLE AUTH BUTTON ================= */
.btn-google-auth {
    background-color: #ffffff;
    color: #1f2937;
    border: 1px solid #d1d5db;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}
.btn-google-auth:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
    color: #111827;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
body.dark-theme .btn-google-auth {
    background-color: #1e293b;
    color: #f1f5f9;
    border-color: #334155;
}
body.dark-theme .btn-google-auth:hover {
    background-color: #334155;
    color: #ffffff;
    border-color: #475569;
}

/* Google Account Item Card Hover */
.google-account-card {
    transition: all 0.2s ease;
    background-color: #ffffff;
}
.google-account-card:hover {
    background-color: #f8fafc;
    border-color: #3b82f6 !important;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.12);
}
body.dark-theme .google-account-card {
    background-color: #1e293b;
    border-color: #334155 !important;
}
body.dark-theme .google-account-card:hover {
    background-color: #273549;
    border-color: #60a5fa !important;
}

/* ================= MULTI-ITEM MARKING & BULK BUY ================= */
.card-select-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(4px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid rgba(255, 255, 255, 0.85);
    color: #ffffff;
    font-size: 0.95rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.card-select-btn:hover {
    transform: scale(1.15);
    background: rgba(5, 150, 105, 0.9);
    border-color: #ffffff;
}

.card-select-btn.selected {
    background: #059669;
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.4), 0 3px 10px rgba(5, 150, 105, 0.5);
    color: #ffffff;
}

.olx-card.card-marked-for-buy {
    border: 2px solid #059669 !important;
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.2) !important;
    transform: translateY(-3px);
}

/* Floating Action Bar for Bulk Buy */
.floating-bulk-buy-bar {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 920px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid #059669;
    border-radius: 20px;
    padding: 12px 20px;
    z-index: 1045;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(5, 150, 105, 0.15);
    animation: slideUpBulkBar 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpBulkBar {
    from {
        opacity: 0;
        transform: translate(-50%, 30px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@media (max-width: 991.98px) {
    .floating-bulk-buy-bar {
        bottom: 78px;
        padding: 10px 14px;
        border-radius: 16px;
    }
}

body.dark-theme .floating-bulk-buy-bar {
    background: rgba(17, 24, 39, 0.96);
    border-color: #059669;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}

body.dark-theme .floating-bulk-buy-bar .text-dark {
    color: #f8fafc !important;
}

/* WIDE PRODUCT DETAIL MODAL */
.modal-product-detail {
    max-width: 1180px !important;
}

@media (min-width: 1400px) {
    .modal-product-detail {
        max-width: 1240px !important;
    }
}

/* Multi-Seller Modal Styling */
.border-bottom-dashed {
    border-bottom: 1px dashed #e2e8f0;
}

body.dark-theme .border-bottom-dashed {
    border-bottom-color: #334155;
}

.seller-step-card {
    transition: all 0.25s ease;
}

.seller-step-card.active-turn {
    border-color: #059669 !important;
    background: rgba(5, 150, 105, 0.04) !important;
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.15) !important;
}

body.dark-theme .seller-step-card.active-turn {
    background: rgba(5, 150, 105, 0.12) !important;
}





