/* ═══════════════════════════════════════════════════════════════════════════
   TRADEFLOW MARKET DESIGN SYSTEM
   "Gelenekten gelen güven, dijitalde zirve"
   Premium B2B Marketplace Styling
   ═══════════════════════════════════════════════════════════════════════════ */

/* ═══ PREMIUM COLOR OVERRIDES ═══ */
:root {
    /* Primary: Derin Zümrüt Yeşili - Dashboard tone */
    --app-bg: #F4F3EF;
    --surface: #ffffff;
    --surface-translucent: rgba(255, 255, 255, 0.95);
    --primary: #0F3D2E;
    --primary-dark: #0A2A1F;
    --primary-light: #1A5A44;
    --primary-glow: rgba(15, 61, 46, 0.15);

    /* Accent: Şampanya Altını */
    --accent: #D4AF70;
    --accent-hover: #C49B5A;
    --accent-soft: rgba(212, 175, 112, 0.1);
    --accent-glow: rgba(212, 175, 112, 0.25);

    /* Surfaces - İnci/Krem Tonları */
    --ivory: #F4F3EF;
    --cream: #FAF9F6;
    --pearl: #F0EDE6;

    /* Navy - Secondary */
    --navy: #0A1F33;
    --navy-light: #1A3A5C;

    /* Steel Blue */
    --steel: #5F7D99;

    /* Borders & Text */
    --border: #E8E6E1;
    --text-main: #2C3E50;
    --text-sub: #6B7C8A;

    /* Status Colors */
    --success: #2E7D5A;
    --warning: #C49B5A;
    --danger: #B54A4A;

    /* Shadows - Premium Soft */
    --shadow-sm: 0 2px 8px -2px rgba(15, 42, 34, 0.08);
    --shadow-md: 0 8px 24px -4px rgba(15, 42, 34, 0.12);
    --shadow-float: 0 20px 40px -8px rgba(15, 42, 34, 0.16);
    --shadow-gold: 0 4px 20px -4px rgba(212, 175, 112, 0.35);

    /* Typography */
    --font-main: 'Manrope', 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* ═══ BODY ═══ */
body {
    background-color: var(--ivory) !important;
    font-family: var(--font-main) !important;
    color: var(--text-main);
}

/* ═══ APP HEADER - PREMIUM ═══ */
.app-header {
    background: linear-gradient(135deg, #0F3D2E 0%, #0A2A1F 50%, #0A1F33 100%) !important;
    border-bottom: 1px solid rgba(212, 175, 112, 0.15) !important;
    box-shadow: 0 4px 20px -4px rgba(15, 61, 46, 0.2) !important;
}

.header-top {
    padding-bottom: 8px;
}

.brand-logo {
    color: var(--cream) !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em;
}

.brand-logo i {
    color: var(--accent) !important;
}

.header-actions .icon-btn {
    background: rgba(255, 255, 255, 0.1) !important;
    color: var(--cream) !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-actions .icon-btn:hover,
.header-actions .icon-btn:active {
    background: rgba(212, 175, 112, 0.2) !important;
    border-color: var(--accent);
    color: var(--accent) !important;
}

/* ═══ SECTOR TABS - PREMIUM ═══ */
.sector-tabs {
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    padding: 4px !important;
    border: 1px solid rgba(212, 175, 112, 0.15) !important;
}

.sector-tab {
    color: rgba(244, 243, 239, 0.6) !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid transparent !important;
}

.sector-tab i {
    color: rgba(244, 243, 239, 0.5) !important;
}

.sector-tab:hover {
    color: var(--accent) !important;
    background: rgba(212, 175, 112, 0.15) !important;
}

.sector-tab.active {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%) !important;
    color: var(--primary) !important;
    box-shadow: var(--shadow-gold) !important;
    font-weight: 700 !important;
    border-color: var(--accent) !important;
}

.sector-tab.active i {
    color: var(--primary) !important;
}

/* ═══ LISTING CARDS - PREMIUM ═══ */
.listing-card,
.market-card.replica {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    box-shadow: var(--shadow-sm) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.listing-card:hover,
.market-card.replica:hover {
    border-color: var(--accent) !important;
    box-shadow: var(--shadow-md), 0 0 0 3px var(--accent-glow) !important;
    transform: translateY(-4px) !important;
}

/* Card Header */
.card-header {
    border-bottom: 1px solid var(--pearl) !important;
}

.time-badge {
    background: var(--pearl) !important;
    color: var(--text-sub) !important;
    font-weight: 600 !important;
}

/* Replica Card Styles */
.replica-top {
    border-bottom: 1px solid var(--pearl) !important;
}

.replica-brand {
    color: var(--steel) !important;
}

.brand-dot {
    background-color: var(--accent) !important;
}

.replica-title {
    color: var(--primary) !important;
    font-weight: 800 !important;
}

.replica-price {
    color: var(--accent) !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
}

.meta-strong {
    color: var(--primary) !important;
}

/* Status Badges */
.status-badge-modern {
    font-weight: 700 !important;
    border-radius: 8px !important;
}

.st-ready {
    background: rgba(46, 125, 90, 0.1) !important;
    color: var(--success) !important;
}

.st-transit {
    background: rgba(196, 155, 90, 0.1) !important;
    color: var(--warning) !important;
}

/* Card Footer */
.replica-footer {
    border-top: 1px solid var(--pearl) !important;
}

.btn-fav-modern {
    border-color: var(--border) !important;
    color: var(--steel) !important;
    transition: all 0.3s !important;
}

.btn-fav-modern:hover {
    border-color: var(--accent) !important;
    color: var(--accent) !important;
    background: var(--accent-soft) !important;
}

.btn-fav-modern.active {
    border-color: var(--accent) !important;
    color: var(--accent-hover) !important;
    background: var(--accent-soft) !important;
}

/* Contact Button - Premium Gold */
.btn-contact-black {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%) !important;
    color: var(--primary) !important;
    font-weight: 700 !important;
    box-shadow: var(--shadow-gold) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-contact-black:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px -4px rgba(212, 175, 112, 0.5) !important;
}

.btn-card.primary {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    box-shadow: var(--shadow-md) !important;
}

/* ═══ FILTER DRAWER - PREMIUM ═══ */
.bottom-sheet,
#filterDrawer {
    background: var(--cream) !important;
    border: 1px solid var(--border) !important;
}

#filterDrawer h3 {
    color: var(--primary) !important;
    font-family: var(--font-main) !important;
}

#filterDrawer h3 i {
    color: var(--accent) !important;
}

.filter-group-header {
    color: var(--steel) !important;
    font-weight: 700 !important;
}

.filter-group-header::after {
    background: var(--pearl) !important;
}

/* Chips */
.chip {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    color: var(--text-sub) !important;
    font-family: var(--font-mono) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.chip:hover {
    border-color: var(--accent) !important;
    color: var(--primary) !important;
}

.chip.active {
    background: var(--primary) !important;
    color: var(--cream) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 12px rgba(15, 42, 34, 0.25) !important;
}

/* Segment Control */
.neo-segment-control {
    background: var(--pearl) !important;
    border-radius: 12px !important;
}

.segment-btn {
    color: var(--text-sub) !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
}

.segment-btn.active {
    background: var(--surface) !important;
    color: var(--primary) !important;
    font-weight: 700 !important;
    box-shadow: var(--shadow-sm) !important;
}

/* Select Dropdowns */
.neo-select-simple {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    color: var(--text-main) !important;
    font-family: var(--font-main) !important;
}

.neo-select-simple:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px var(--accent-glow) !important;
}

.input-icon {
    color: var(--steel) !important;
}

/* Search Input */
#searchInput {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    font-family: var(--font-mono) !important;
    color: var(--primary) !important;
}

#searchInput:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 4px var(--accent-glow) !important;
}

#searchInput::placeholder {
    color: var(--steel) !important;
}

/* Filter Buttons */
.neo-btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%) !important;
    color: var(--primary) !important;
    font-weight: 700 !important;
    box-shadow: var(--shadow-gold) !important;
    border: none !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.neo-btn-primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 24px -4px rgba(212, 175, 112, 0.5) !important;
}

.neo-btn-secondary {
    background: var(--surface) !important;
    border: 2px solid var(--border) !important;
    color: var(--text-sub) !important;
}

.neo-btn-secondary:hover {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

/* ═══ MODAL - PREMIUM ═══ */
.custom-modal-overlay {
    background: rgba(15, 42, 34, 0.7) !important;
    align-items: flex-start !important;
    /* Allow top scrolling */
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    /* Enable vertical scroll with touch */
    touch-action: pan-y !important;
    /* Allow vertical panning */
    padding: 20px 0;
    /* Add padding for scroll space */
}

.custom-modal-overlay::-webkit-scrollbar {
    display: none;
}

.custom-modal-content {
    margin: auto 0;
    /* Center vertically if space allows, but scrolls if not */
}

.custom-modal-content {
    border-radius: 24px !important;
    box-shadow: var(--shadow-float), 0 0 0 1px rgba(212, 175, 112, 0.1) !important;
}

.modal-close-btn {
    background: var(--pearl) !important;
    color: var(--text-sub) !important;
}

.modal-close-btn:hover {
    background: var(--accent-soft) !important;
    color: var(--accent-hover) !important;
}

.detail-header {
    background: var(--cream) !important;
    border-bottom: 1px solid var(--pearl) !important;
}

.detail-title-group h2 {
    color: var(--primary) !important;
    font-family: var(--font-main) !important;
}

.detail-subtitle {
    color: var(--text-sub) !important;
}

/* Bento Boxes */
.bento-box {
    background: var(--pearl) !important;
    border-color: var(--border) !important;
}

.bento-box.highlight {
    background: var(--accent-soft) !important;
    border-color: var(--accent) !important;
}

.bb-label {
    color: var(--steel) !important;
}

.bb-value {
    color: var(--primary) !important;
}

.bento-box.highlight .bb-value {
    color: var(--accent-hover) !important;
}

.bb-sub {
    color: var(--text-sub) !important;
}

/* Bento Group */
.bento-group {
    border-color: var(--border) !important;
}

.bg-header {
    background: var(--pearl) !important;
    color: var(--steel) !important;
    border-bottom-color: var(--border) !important;
}

.bi-label {
    color: var(--text-sub) !important;
}

.bi-val {
    color: var(--primary) !important;
}

/* Notes */
.bento-note {
    background: var(--accent-soft) !important;
    border-color: var(--accent) !important;
}

.bn-text {
    color: var(--accent-hover) !important;
}

/* File Link */
.file-link {
    background: var(--primary-glow) !important;
    color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.file-link:hover {
    background: var(--primary) !important;
    color: var(--cream) !important;
}

/* Modal Status Pills */
.ms-pill {
    font-weight: 700 !important;
}

/* ═══ BOTTOM NAV - PREMIUM DARK (DASHBOARD SYNC) ═══ */
.bottom-nav {
    background: linear-gradient(135deg, #0F3D2E 0%, #0A2A1F 50%, #0A1F33 100%) !important;
    border-top: 1px solid rgba(212, 175, 112, 0.15) !important;
    box-shadow: 0 -4px 20px rgba(15, 61, 46, 0.2) !important;
}

.nav-item {
    color: rgba(244, 243, 239, 0.5) !important;
}

.nav-item:hover,
.nav-item.active {
    color: #D4AF70 !important;
}

.nav-item.active::after {
    background: #D4AF70 !important;
}

/* ═══ BADGES ═══ */
.badge-blue {
    background: var(--primary-glow) !important;
    color: var(--primary) !important;
}

.badge-orange-soft {
    background: var(--accent-soft) !important;
    color: var(--accent-hover) !important;
}

.badge-green-soft {
    background: rgba(46, 125, 90, 0.1) !important;
    color: var(--success) !important;
}

.badge-gray {
    background: var(--pearl) !important;
    color: var(--text-sub) !important;
}

/* ═══ FILTER TOGGLE BUTTON - PREMIUM ═══ */
.filter-toggle-btn {
    background: var(--pearl) !important;
    border-color: var(--border) !important;
    color: var(--primary) !important;
    font-family: var(--font-main) !important;
}

.filter-toggle-btn:hover {
    background: var(--accent-soft) !important;
    border-color: var(--accent) !important;
    color: var(--accent-hover) !important;
}

.filter-toggle-btn i {
    color: var(--accent) !important;
}

/* ═══ LISTING CARD BUTTONS - PREMIUM ═══ */
.btn-view {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
    border: none !important;
    box-shadow: 0 4px 12px rgba(15, 61, 46, 0.25) !important;
}

.btn-view:hover {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%) !important;
    color: var(--primary) !important;
    box-shadow: var(--shadow-gold) !important;
}

/* ═══ SPEC GRID ═══ */
.spec-item {
    background: var(--pearl) !important;
    border-radius: 12px !important;
}

/* ═══ LOADING STATES ═══ */
.state-container {
    color: var(--text-sub) !important;
}

/* ═══ MOBILE: VERTICAL CARDS (Default) ═══ */
.listings-grid-container,
#marketFeed {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px;
    padding: 8px 0 16px 0;
}

.listings-grid-container>.market-card.replica,
#marketFeed>.market-card.replica,
.listings-grid-container>.listing-card,
#marketFeed>.listing-card {
    width: 100%;
    max-width: 100%;
    margin-bottom: 0 !important;
}

/* ═══ DESKTOP: GRID LAYOUT (2 columns) ═══ */
@media (min-width: 1024px) {

    .listings-grid-container,
    #marketFeed {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 16px 0;
    }

    .listings-grid-container>.market-card.replica,
    #marketFeed>.market-card.replica,
    .listings-grid-container>.listing-card,
    #marketFeed>.listing-card {
        width: 100%;
        max-width: 100%;
    }
}

/* Large Desktop: 3 columns */
@media (min-width: 1400px) {

    .listings-grid-container,
    #marketFeed {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ═══ DESKTOP SIDEBAR & LAYOUT ═══ */
/* Desktop Sidebar Styles (Hidden by default) */
.desktop-sidebar {
    display: none;
}

.d-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.d-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    margin-bottom: 4px;
    position: relative;
}

/* ═══ DESKTOP OVERRIDES ═══ */
@media (min-width: 1024px) {
    body {
        display: flex !important;
        max-width: none !important;
        padding-bottom: 0 !important;
        background-color: #F4F3EF;
        min-height: 100vh;
        border: none !important;
        box-shadow: none !important;
    }

    .desktop-sidebar {
        display: flex !important;
        width: 280px;
        flex-shrink: 0;
        background: linear-gradient(180deg, #0F3D2E 0%, #0A2A1F 100%) !important;
        border-right: 1px solid rgba(212, 175, 112, 0.15) !important;
        box-shadow: 4px 0 24px rgba(15, 61, 46, 0.12);
        flex-direction: column;
        padding: 36px 28px !important;
        overflow-y: auto;
        height: 100vh;
        position: sticky;
        top: 0;
        z-index: 50;
    }

    .desktop-sidebar::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 160px;
        background: linear-gradient(180deg, rgba(212, 175, 112, 0.06) 0%, transparent 100%);
        pointer-events: none;
    }

    .d-logo {
        font-size: 1.6rem !important;
        color: #F4F3EF !important;
    }

    .d-logo i {
        color: #D4AF70 !important;
    }

    .d-logo::after {
        content: '';
        position: absolute;
        bottom: -12px;
        left: 0;
        width: 50px;
        height: 3px;
        background: linear-gradient(90deg, #D4AF70, transparent);
        border-radius: 2px;
    }

    .d-nav-item {
        padding: 15px 18px !important;
        border-radius: 14px !important;
        color: rgba(244, 243, 239, 0.6) !important;
    }

    .d-nav-item i {
        color: rgba(244, 243, 239, 0.5) !important;
    }

    .d-nav-item:hover {
        background: rgba(212, 175, 112, 0.1) !important;
        color: #F4F3EF !important;
    }

    .d-nav-item:hover i {
        color: #D4AF70 !important;
    }

    .d-nav-item.active {
        background: linear-gradient(135deg, #D4AF70 0%, #C49B5A 100%) !important;
        box-shadow: 0 8px 24px -4px rgba(212, 175, 112, 0.35) !important;
        color: #0F3D2E !important;
    }

    .d-nav-item.active i {
        color: #0F3D2E !important;
    }

    .main-content-wrapper {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
    }

    .app-header {
        max-width: none !important;
        background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, var(--navy) 100%) !important;
    }

    /* Hide redundant header navigation since we have sidebar */
    .app-header .header-top {
        display: none !important;
    }

    .app-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 24px 40px;
    }

    /* FILTER TOGGLE BAR - Desktop Single Row */
    .filter-toggle-bar {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 12px 24px !important;
        background: var(--surface) !important;
        border-bottom: 1px solid var(--border) !important;
        max-width: none !important;
        width: 100% !important;
    }

    .filter-toggle-bar>.sector-dropdown-container {
        flex-shrink: 0 !important;
    }

    .filter-toggle-bar>.filter-toggle-btn {
        flex-shrink: 0 !important;
    }

    .filter-toggle-bar>.inline-search-wrapper {
        flex: 1 1 auto !important;
        min-width: 200px !important;
        max-width: 500px !important;
    }

    .filter-toggle-bar>.view-toggle-btn {
        flex-shrink: 0 !important;
        margin-left: auto !important;
    }

    /* Hide Mobile Bottom Nav */
    .bottom-nav,
    .bottom-menu-container,
    #bottom-menu-container {
        display: none !important;
    }

    /* Cards Grid - Single Row Horizontal Scroll */
    .listings-grid-container {
        display: flex;
        flex-direction: row;
        gap: 16px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 16px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .listings-grid-container::-webkit-scrollbar {
        display: none;
    }

    .listings-grid-container .market-card.replica {
        flex: 0 0 320px;
        min-width: 320px;
        max-width: 320px;
        scroll-snap-align: start;
        margin-bottom: 0;
    }

    .listing-card:hover,
    .market-card.replica:hover {
        border-color: var(--accent) !important;
        box-shadow: 0 16px 32px -12px rgba(212, 175, 112, 0.25) !important;
    }

    #filterDrawer {
        background: var(--cream) !important;
        border: 2px solid var(--border) !important;
    }

    /* Page Title */
    .page-title {
        font-size: 1.75rem;
        font-weight: 700;
        color: #0F3D2E;
        margin: 24px 40px;
    }
}

/* ═══ SCROLLBAR STYLING ═══ */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--pearl);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--steel);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* ═══ SELECTION ═══ */
::selection {
    background: var(--accent);
    color: var(--primary);
}

/* GRID 3: STATS (Quantity, Price, Payment) */
.bento-grid-3 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 4px;
    /* Transition Grid Tracks - Modern Browsers */
    transition: grid-template-columns 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* EXPANSION ANIMATIONS */
.bento-grid-3.expanded-qty {
    grid-template-columns: 2.2fr 0.6fr 0.6fr;
}

.bento-grid-3.expanded-price {
    grid-template-columns: 0.6fr 2.2fr 0.6fr;
}

.bento-grid-3.expanded-payment {
    grid-template-columns: 0.6fr 0.6fr 2.2fr;
}

/* Base State for boxes during expansion */
.bento-grid-3[class*="expanded-"] .bento-box {
    transition: all 0.4s;
}

/* Dimming Logic */
.bento-grid-3.expanded-qty .bento-box:not(.qty-box),
.bento-grid-3.expanded-price .bento-box:not(.price-box),
.bento-grid-3.expanded-payment .bento-box:not(.payment-box) {
    opacity: 0.4;
    filter: grayscale(100%);
    transform: scale(0.92);
    background: #f1f5f9;
    border-color: transparent;
}

/* 1. QUANTITY HIGHLIGHT */
.bento-grid-3.expanded-qty .qty-box {
    background: #f0fdf4;
    border-color: #86efac;
    box-shadow: 0 10px 20px -5px rgba(22, 163, 74, 0.15);
    z-index: 10;
}

.bento-grid-3.expanded-qty .qty-box .bb-value {
    color: #15803d;
    font-size: 1.3rem;
}

/* 2. PRICE HIGHLIGHT */
.bento-grid-3.expanded-price .price-box {
    background: rgba(212, 175, 112, 0.1);
    border-color: #D4AF70;
    box-shadow: 0 10px 20px -5px rgba(212, 175, 112, 0.25);
    z-index: 10;
}

.bento-grid-3.expanded-price .price-box .bb-value {
    color: #C49B5A;
    font-size: 1.3rem;
}

/* 3. PAYMENT HIGHLIGHT */
.bento-grid-3.expanded-payment .payment-box {
    background: #fff7ed;
    border-color: #fdba74;
    box-shadow: 0 10px 20px -5px rgba(234, 88, 12, 0.15);
    z-index: 10;
}

.bento-grid-3.expanded-payment .payment-box .bb-value {
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
    color: #ea580c;
    white-space: normal;
}

/* Bento Box Base Overrides if needed for specificity */
.bento-box {
    cursor: pointer;
    min-height: 76px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 6px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   3-STAGE PRODUCT CARD SYSTEM - TradeFlow Premium Design
   Compact → Expanded → Modal Detail
   ═══════════════════════════════════════════════════════════════════════════ */

/* === BASE CARD STRUCTURE === */
.tf-product-card {
    background: #FFFFFF;
    border-radius: 12px;
    box-shadow: 0 2px 8px -2px rgba(15, 42, 34, 0.06);
    border: 1px solid #E8E6E1;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.tf-product-card:hover {
    box-shadow: 0 8px 24px -4px rgba(15, 42, 34, 0.12), 0 0 0 2px rgba(212, 175, 112, 0.2);
    transform: translateY(-2px);
}

.tf-product-card.expanded {
    box-shadow: 0 12px 32px -8px rgba(212, 175, 112, 0.2);
    border-color: #D4AF70;
}

/* === COMPACT VIEW (Default State) === */
.tf-card-compact {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Header Row: Brand Logo + Status Badge + Origin Flag */
.tf-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.tf-card-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Real Brand Logo - 2x size */
.tf-brand-logo {
    height: auto;
    max-height: 56px;
    min-height: 32px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

/* Fallback Icon - no box, larger */
.tf-brand-placeholder {
    width: auto;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 1.5rem;
    background: transparent;
}

.tf-card-header-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Origin Flag */
/* Origin Flag - 2x size (4x area) */
.tf-origin-flag {
    width: 40px;
    height: 28px;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    cursor: help;
}

/* Stock Status Badge */
.tf-status-badge {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tf-status-badge.ready {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

.tf-status-badge.transit {
    background: rgba(234, 179, 8, 0.1);
    color: #ca8a04;
}

.tf-status-badge.upcoming {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

/* Main Info Block */
.tf-card-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Title Line */
/* Main Title - larger */
.tf-card-title {
    font-family: 'Manrope', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: #0F172A;
    line-height: 1.2;
}

/* Sub-categories */
.tf-card-subtitle {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748B;
    margin-top: 2px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.tf-card-subtitle span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.tf-card-subtitle .separator {
    color: #CBD5E1;
    font-weight: 400;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Seller Row */
.tf-seller-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.tf-seller-name {
    font-size: 0.8rem;
    color: #64748B;
    font-weight: 500;
}

.tf-verified-icon {
    color: #3B82F6;
    font-size: 0.7rem;
}

/* Location / Customs - Right side vertical layout */
.tf-location-customs-row {
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    gap: 12px;
    margin-top: 12px;
}

.tf-info-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 12px;
    min-width: 70px;
    background: #F8FAFC;
    border-radius: 10px;
    border: 1px solid #E2E8F0;
    transition: all 0.2s;
}

.tf-info-box:hover {
    border-color: #D4AF70;
    background: rgba(212, 175, 112, 0.05);
}

.tf-info-box i {
    font-size: 1.1rem;
    color: #64748B;
}

.tf-info-box.location i {
    color: #EF4444;
}

.tf-info-box.customs i {
    color: #3B82F6;
}

.tf-info-box-text {
    font-size: 0.65rem;
    font-weight: 600;
    color: #475569;
    text-align: center;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Legacy badges (keep for compatibility) */
.tf-badges-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.tf-info-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    background: #F1F5F9;
    color: #475569;
}

.tf-info-badge i {
    font-size: 0.65rem;
    opacity: 0.8;
}

.tf-info-badge.blue {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

.tf-info-badge.green {
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
}

/* Footer Row: Quantity + Price */
.tf-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 12px;
    border-top: 1px solid #F1F5F9;
    margin-top: auto;
}

.tf-footer-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tf-footer-label {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #94A3B8;
}

.tf-footer-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0F172A;
}

.tf-footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
}

.tf-price-value {
    font-family: 'Manrope', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: #D97706;
    line-height: 1;
}

.tf-price-unit {
    font-size: 0.65rem;
    color: #64748B;
    text-align: right;
}

/* Expand Button */
.tf-expand-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    cursor: pointer;
    transition: all 0.25s;
    opacity: 0;
    transform: translateY(4px);
}

.tf-product-card:hover .tf-expand-btn {
    opacity: 1;
    transform: translateY(0);
}

.tf-expand-btn:hover {
    background: #0F3D2E;
    border-color: #0F3D2E;
    color: white;
}

.tf-expand-btn i {
    transition: transform 0.3s;
}

.tf-product-card.expanded .tf-expand-btn {
    background: #0F3D2E;
    border-color: #0F3D2E;
    color: white;
    opacity: 1;
}

.tf-product-card.expanded .tf-expand-btn i {
    transform: rotate(180deg);
}


/* === EXPANDED VIEW === */
.tf-card-expanded {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    background: #F8FAFC;
    padding: 0 16px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-top: 0 solid #F1F5F9;
}

.tf-product-card.expanded .tf-card-expanded {
    max-height: 400px;
    opacity: 1;
    padding: 16px;
    border-top-width: 1px;
}

/* Specs Grid */
.tf-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.tf-spec-item {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: all 0.2s;
}

.tf-spec-item:hover {
    border-color: #D4AF70;
    box-shadow: 0 2px 8px rgba(212, 175, 112, 0.1);
}

.tf-spec-item i {
    font-size: 0.85rem;
    color: #D4AF70;
}

.tf-spec-label {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #94A3B8;
    letter-spacing: 0.03em;
}

.tf-spec-value {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.2;
}

/* Application Icons Row */
.tf-app-icons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.tf-app-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    transition: all 0.2s;
    position: relative;
}

.tf-app-icon i {
    font-size: 1rem;
    color: #64748B;
}

.tf-app-icon:hover {
    border-color: #D4AF70;
    background: rgba(212, 175, 112, 0.1);
}

.tf-app-icon:hover i {
    color: #D4AF70;
}

.tf-app-icon[title]::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 8px;
    background: #0F172A;
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.tf-app-icon:hover[title]::after {
    opacity: 1;
}

/* Full Width CTA Button */
.tf-cta-btn {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-family: 'Manrope', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.25s;
    background: linear-gradient(135deg, #0F3D2E 0%, #1A5A44 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(15, 61, 46, 0.2);
}

.tf-cta-btn:hover {
    background: linear-gradient(135deg, #D4AF70 0%, #C49B5A 100%);
    color: #0F2A22;
    box-shadow: 0 6px 16px rgba(212, 175, 112, 0.35);
}

.tf-cta-btn:active {
    transform: scale(0.98);
}

/* === RESPONSIVE === */
@media (max-width: 480px) {
    .tf-card-compact {
        padding: 14px;
        gap: 10px;
    }

    .tf-card-title {
        font-size: 0.95rem;
    }

    .tf-specs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tf-price-value {
        font-size: 1rem;
    }

    .tf-expand-btn {
        opacity: 0.7;
        transform: translateY(0);
    }
}

/*  MOBILE PRO MAX CARDS  */
.mobile-enhanced-card {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: 20px !important;
    box-shadow: 0 4px 20px rgba(15, 61, 46, 0.08) !important;
    overflow: hidden;
    margin-bottom: 16px !important;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s;
}

.mobile-enhanced-card:active {
    transform: scale(0.98);
}

.mobile-enhanced-card.active {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 2px var(--accent-soft) !important;
}

/* Card Top (Header + Meta) */
.rfq-card-top {
    padding: 16px 16px 8px 16px;
    background: linear-gradient(180deg, var(--surface) 0%, rgba(244, 243, 239, 0.5) 100%);
    border-bottom: 1px dashed var(--border);
}

.rfq-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
    gap: 8px;
}

.rfq-item-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.3;
    margin: 0;
}

.rfq-item-badge {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.rfq-item-badge.active {
    background: rgba(46, 125, 90, 0.1);
    color: var(--success);
}

.rfq-item-badge.closed {
    background: var(--pearl);
    color: var(--text-sub);
}

.rfq-item-badge.expired {
    background: rgba(181, 74, 74, 0.1);
    color: var(--danger);
}

.rfq-item-badge.pending {
    background: rgba(196, 155, 90, 0.1);
    color: var(--warning);
}

.rfq-item-meta {
    font-size: 0.75rem;
    color: var(--text-sub);
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
}

.rfq-item-meta .divider {
    color: var(--border);
}

/* Card Middle (Stats) */
.rfq-card-middle {
    padding: 12px 16px;
    background: var(--surface);
}

.rfq-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.stat-box {
    background: var(--pearl);
    border-radius: 12px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 1px solid transparent;
}

.stat-box.highlight-warning {
    background: rgba(196, 155, 90, 0.1);
    border-color: rgba(196, 155, 90, 0.2);
}

.stat-box.highlight-danger {
    background: rgba(181, 74, 74, 0.1);
    border-color: rgba(181, 74, 74, 0.2);
}

.stat-box i {
    font-size: 1rem;
}

.stat-num {
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary);
}

/* Card Actions */
.rfq-card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1.2fr;
    border-top: 1px solid var(--border);
}

.action-btn {
    background: var(--surface);
    border: none;
    padding: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--steel);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    border-right: 1px solid var(--border);
    transition: background 0.2s;
}

.action-btn:last-child {
    border-right: none;
}

.action-btn:active {
    background: var(--pearl);
}

.action-btn.highlight {
    background: linear-gradient(135deg, var(--accent-soft) 0%, rgba(255, 255, 255, 0.5) 100%);
    color: var(--accent-hover);
    font-weight: 700;
}

.action-btn i {
    font-size: 0.9rem;
}

/*  CHAT MODAL (PREMIUM)  */
.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 30, 25, 0.6) !important;
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.custom-modal-content {
    background: var(--surface) !important;
    border-radius: 24px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(212, 175, 112, 0.2) !important;
    width: 90%;
    max-width: 440px;
    overflow: hidden;
    animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    background: linear-gradient(135deg, var(--surface) 0%, var(--pearl) 100%);
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h4 {
    margin: 0;
    font-size: 1.15rem;
    color: var(--primary);
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header h4 i {
    color: var(--accent);
}

.modal-close-icon {
    background: none;
    border: none;
    color: var(--text-sub);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.modal-close-icon:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--danger);
}

.modal-body {
    padding: 24px;
    background: var(--cream);
}

.chat-textarea {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    padding: 16px !important;
    font-family: var(--font-main) !important;
    font-size: 0.95rem;
    color: var(--text-main);
    width: 100%;
    resize: none;
    transition: all 0.2s;
}

.chat-textarea:focus {
    outline: none;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px var(--accent-soft) !important;
}

.modal-footer {
    padding: 16px 24px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* Modal Button Overrides */
.btn-modal-cancel {
    background: transparent !important;
    border: none !important;
    color: var(--text-sub) !important;
    font-weight: 600 !important;
    padding: 10px 16px;
}

.btn-modal-cancel:hover {
    color: var(--text-main) !important;
    background: var(--pearl) !important;
    border-radius: 10px;
}

.btn-modal-send {
    background: var(--primary) !important;
    color: white !important;
    border-radius: 12px !important;
    padding: 10px 24px !important;
    font-weight: 700 !important;
    box-shadow: var(--shadow-gold) !important;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
}

.btn-modal-send:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-float);
}

/*  CHAT HISTORY (PREMIUM)  */
.chat-history-container {
    max-height: 300px;
    overflow-y: auto;
    padding: 10px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 16px;
    border: 1px solid var(--border);
}

.chat-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
    animation: fadeIn 0.3s ease;
}

.chat-bubble.them {
    align-self: flex-start;
    background: var(--surface);
    color: var(--text-main);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.chat-bubble.me {
    align-self: flex-end;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--cream);
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(15, 61, 46, 0.15);
}

.chat-date {
    display: block;
    font-size: 0.7rem;
    margin-top: 4px;
    opacity: 0.7;
    text-align: right;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/*  MOBILE OVERRIDES  */
/*  MOBILE OVERRIDES  */
@media (max-width: 1023px) {
    /* Removed force hide - now handled by market.html */

    /* Force Grid View when toggled */
    #marketFeed.grid-view {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 8px 12px !important;
    }

    /* Compact Card Styles for Grid View */
    /* Compact Card Styles for Grid View */
    #marketFeed.grid-view .market-card.replica,
    #marketFeed.grid-view .listing-card {
        padding: 10px !important;
        gap: 4px !important;
        min-height: 200px;
        border-radius: 12px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03) !important;
    }

    /* Hide redundant elements in grid view */
    #marketFeed.grid-view .replica-specs-list,
    #marketFeed.grid-view .replica-compare-row,
    #marketFeed.grid-view .btn-arrow,
    #marketFeed.grid-view .tf-expand-btn,
    /* Corrected class for expand button */
    #marketFeed.grid-view .sector-badge,
    #marketFeed.grid-view .replica-content>div[style*="margin-top"] {
        display: none !important;
    }

    /* Compact Typography */
    #marketFeed.grid-view .replica-title-large,
    #marketFeed.grid-view .product-info h3 {
        font-size: 0.8rem !important;
        line-height: 1.25 !important;
        height: 2.5em;
        /* Limit lines */
        overflow: hidden;
        margin-bottom: 4px !important;
        color: #0F172A !important;
    }

    #marketFeed.grid-view .replica-brand {
        font-size: 0.7rem !important;
        margin-bottom: 8px !important;
    }

    /* Compact Logo */
    #marketFeed.grid-view .replica-logo {
        width: 32px !important;
        height: 32px !important;
        top: 25px !important;
        /* Adjust overlap */
        left: 10px !important;
        border-radius: 8px !important;
    }

    #marketFeed.grid-view .replica-banner {
        height: 40px !important;
    }

    /* COMPACT INFO BOXES (Location/Delivery) */
    #marketFeed.grid-view .rec-grid {
        display: flex !important;
        gap: 4px !important;
        margin-bottom: 8px !important;
    }

    #marketFeed.grid-view .rec-item {
        padding: 4px 6px !important;
        flex: 1;
        align-items: center !important;
        justify-content: center !important;
        text-align: center;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 6px !important;
        min-height: auto !important;
    }

    #marketFeed.grid-view .rec-item i {
        font-size: 0.8rem !important;
        margin-bottom: 0 !important;
        color: var(--accent);
    }

    #marketFeed.grid-view .rec-val {
        font-size: 0.65rem !important;
        font-weight: 600 !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 60px;
    }

    #marketFeed.grid-view .rec-label {
        display: none !important;
        /* Hide labels */
    }

    /* Stack Price & Quantity vertically */
    #marketFeed.grid-view .replica-footer {
        display: flex;
        flex-direction: column;
        gap: 2px;
        align-items: flex-start;
        padding-top: 6px !important;
        margin-top: auto;
        border-top: 1px dashed #f1f5f9 !important;
    }

    #marketFeed.grid-view .replica-footer .rec-label {
        display: block !important;
        /* Show for sales qty */
        font-size: 0.6rem !important;
        margin-bottom: 0 !important;
    }

    #marketFeed.grid-view .replica-price {
        font-size: 0.95rem !important;
        color: var(--accent-hover) !important;
    }

    #marketFeed.grid-view .qty-val {
        font-size: 0.8rem !important;
        font-weight: 700 !important;
        color: var(--text-main) !important;
    }
}

/* Currency Selector Styling */
.offer-currency-select {
    font-family: var(--font-main);
    font-size: 1.1rem;
    padding: 0 4px;
    border-radius: 4px;
    transition: all 0.2s;
    background-color: transparent;
}

.offer-currency-select:hover {
    background-color: rgba(15, 61, 46, 0.05);
}

/* Ensure modal content resets margin for scrolling behavior */
#offerModal .offer-modal-content {
    margin-top: 20px;
    margin-bottom: 20px;
}