/* ==========================================================
   OILTRADE PRO — SHARED DESIGN SYSTEM
   Mobile-First B2B Oil Marketplace
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ==========================================
   CSS CUSTOM PROPERTIES
   ========================================== */
:root {
    --primary:        #1F5E20;
    --primary-light:  #2E7D32;
    --primary-mid:    #256B27;
    --accent:         #DFA400;
    --accent-light:   #FDF0D0;
    --accent-dark:    #B98600;
    --success:        #10B981;
    --success-light:  #D1FAE5;
    --danger:         #EF4444;
    --danger-light:   #FEE2E2;
    --info:           #3B82F6;
    --info-light:     #DBEAFE;
    --warning:        #F59E0B;
    --purple:         #8B5CF6;
    --purple-light:   #EDE9FE;
    --background:     #F8FAFC;
    --card-bg:        #FFFFFF;
    --text-primary:   #0F172A;
    --text-secondary: #475569;
    --text-muted:     #94A3B8;
    --border:         #E2E8F0;
    --border-light:   #F1F5F9;
    --radius:         14px;
    --radius-sm:      8px;
    --radius-lg:      20px;
    --shadow:         0 2px 12px rgba(15,23,42,0.06);
    --shadow-md:      0 4px 24px rgba(15,23,42,0.10);
    --shadow-lg:      0 8px 40px rgba(15,23,42,0.15);
    --sidebar-w:      260px;
    --bottom-nav-h:   66px;
    --header-h:       60px;
    --transition:     all 0.2s ease;
}

/* ==========================================
   RESET & BASE
   ========================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

/* ==========================================
   APP LAYOUT (Sidebar + Main)
   ========================================== */
.app-layout { display: flex; min-height: 100vh; }

/* --- SIDEBAR --- */
.sidebar {
    width: var(--sidebar-w);
    background: var(--primary);
    position: fixed; left: 0; top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    flex-direction: column;
    transition: var(--transition);
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }

.sidebar-brand {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
}
.sidebar-brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sidebar-brand-icon {
    width: 40px; height: 40px;
    background: var(--accent);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 18px;
    flex-shrink: 0;
}
.sidebar-brand-name { color: #fff; font-size: 16px; font-weight: 800; line-height: 1.1; }
.sidebar-brand-sub  { color: rgba(255,255,255,0.45); font-size: 11px; font-weight: 500; }

.sidebar-user {
    margin: 14px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-sm);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.sidebar-user-avatar {
    width: 36px; height: 36px;
    background: var(--accent);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 14px;
    font-weight: 800;
    flex-shrink: 0;
}
.sidebar-user-name  { color: #fff; font-size: 13px; font-weight: 600; line-height: 1.2; }
.sidebar-user-role  { color: rgba(255,255,255,0.45); font-size: 11px; }

.sidebar-nav { flex: 1; padding: 8px 0; }

.sidebar-section-label {
    color: rgba(255,255,255,0.3);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    padding: 12px 20px 6px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: rgba(255,255,255,0.6);
    font-size: 13.5px;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: var(--transition);
    position: relative;
}
.sidebar-link:hover  { color: #fff; background: rgba(255,255,255,0.05); }
.sidebar-link.active { color: #fff; background: rgba(245,158,11,0.12); border-left-color: var(--accent); }
.sidebar-link i      { width: 18px; text-align: center; font-size: 15px; flex-shrink: 0; }
.sidebar-link .sl-badge {
    margin-left: auto;
    background: var(--accent);
    color: var(--primary);
    border-radius: 100px;
    padding: 1px 7px;
    font-size: 10px;
    font-weight: 800;
}

.sidebar-footer {
    padding: 14px 20px;
    border-top: 1px solid rgba(255,255,255,0.07);
    flex-shrink: 0;
}
.sidebar-footer .sidebar-link { padding: 8px 0; }

/* --- MAIN CONTENT --- */
.main-content {
    flex: 1;
    min-height: 100vh;
    background: var(--background);
    padding-bottom: var(--bottom-nav-h);
    min-width: 0;
}

/* ==========================================
   DESKTOP HEADER
   ========================================== */
.desktop-header {
    display: none;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    padding: 0 28px;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    position: sticky;
    top: 0;
    z-index: 100;
}
.desktop-header-title h5 { font-size: 17px; font-weight: 700; color: var(--primary); margin: 0; }
.desktop-header-title p  { font-size: 12px; color: var(--text-muted); margin: 0; }
.desktop-header-actions  { display: flex; align-items: center; gap: 10px; }

/* ==========================================
   MOBILE HEADER
   ========================================== */
.mobile-header {
    background: var(--card-bg);
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    gap: 12px;
}
.mobile-header-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}
.mobile-header-icon {
    width: 34px; height: 34px;
    background: var(--primary);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
}
.mobile-header-icon i { color: var(--accent); font-size: 16px; }
.mobile-header-title  { font-size: 16px; font-weight: 800; color: var(--primary); }
.mobile-header-actions { display: flex; align-items: center; gap: 6px; }

/* ==========================================
   ICON BUTTONS
   ========================================== */
.icon-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--background);
    color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    position: relative;
    font-size: 15px;
    transition: var(--transition);
    flex-shrink: 0;
}
.icon-btn:hover { background: var(--border); }
.icon-btn .badge-dot {
    position: absolute;
    top: 4px; right: 4px;
    width: 9px; height: 9px;
    background: var(--danger);
    border-radius: 50%;
    border: 2px solid white;
}

/* ==========================================
   BOTTOM NAVIGATION
   ========================================== */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: var(--bottom-nav-h);
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    display: flex;
    align-items: stretch;
    z-index: 200;
    padding: 0 4px;
    box-shadow: 0 -4px 20px rgba(15,23,42,0.08);
}
.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    padding: 6px 2px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    gap: 3px;
    position: relative;
    cursor: pointer;
}
.bottom-nav-item i { font-size: 19px; }
.bottom-nav-item.active { color: var(--accent); }
.bottom-nav-item.active i { font-weight: 900; }
.bottom-nav-item .nav-badge {
    position: absolute;
    top: 4px; right: 12%;
    background: var(--danger);
    color: white;
    border-radius: 100px;
    padding: 0 5px;
    font-size: 9px;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}

/* ==========================================
   RESPONSIVE BREAKPOINTS
   ========================================== */
@media (min-width: 992px) {
    .sidebar       { display: flex; }
    .main-content  { margin-left: var(--sidebar-w); padding-bottom: 0; }
    .bottom-nav    { display: none; }
    .mobile-header { display: none; }
    .desktop-header{ display: flex !important; }
    .d-lg-show     { display: block !important; }
}
@media (max-width: 991.98px) {
    .sidebar        { display: none !important; }
    .main-content   { margin-left: 0; }
    .desktop-header { display: none !important; }
}

/* ==========================================
   PAGE SECTIONS
   ========================================== */
.page-section { padding: 16px; }
@media (min-width: 992px) { .page-section { padding: 24px 28px; } }

.page-header {
    margin-bottom: 20px;
}
.page-header h4 { font-size: 20px; font-weight: 800; color: var(--primary); margin: 0 0 2px; }
.page-header p  { font-size: 13px; color: var(--text-muted); margin: 0; }

/* ==========================================
   CARDS
   ========================================== */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.card-header-custom {
    padding: 15px 18px;
    background: transparent;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-header-custom h6 { font-size: 14px; font-weight: 700; margin: 0; color: var(--primary); }
.card-body-custom { padding: 16px 18px; }

/* STAT CARDS */
.stat-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 18px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.stat-card .stat-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 19px;
    margin-bottom: 14px;
}
.stat-card .stat-value  { font-size: 26px; font-weight: 900; color: var(--primary); line-height: 1; margin-bottom: 4px; }
.stat-card .stat-label  { font-size: 12px; color: var(--text-secondary); font-weight: 500; }
.stat-card .stat-change { font-size: 11px; font-weight: 700; margin-top: 6px; display: flex; align-items: center; gap: 3px; }
.stat-card .stat-change.up   { color: var(--success); }
.stat-card .stat-change.down { color: var(--danger);  }

/* PRODUCT CARDS */
.product-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product-card-top {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 14px 16px;
}
.product-card-body { padding: 14px 16px; }
.product-card-footer {
    padding: 10px 16px;
    border-top: 1px solid var(--border);
    display: flex; gap: 8px;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    transition: var(--transition);
    display: inline-flex; align-items: center; gap: 7px;
    border: none; cursor: pointer; white-space: nowrap;
    line-height: 1.4;
}
.btn-primary-custom { background: var(--primary); color: #fff; }
.btn-primary-custom:hover { background: var(--primary-light); color: #fff; }
.btn-accent  { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-accent-outline { background: transparent; border: 1.5px solid var(--accent); color: var(--accent); }
.btn-success-custom { background: var(--success); color: #fff; }
.btn-outline-dark   { background: transparent; border: 1.5px solid var(--border); color: var(--text-secondary); }
.btn-outline-dark:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-danger-custom  { background: var(--danger); color: #fff; }
.btn-sm  { padding: 6px 14px; font-size: 12px; border-radius: 8px; gap: 5px; }
.btn-lg  { padding: 14px 28px; font-size: 15px; border-radius: 12px; }
.btn-xl  { padding: 16px 32px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; justify-content: center; }

/* ==========================================
   FORM ELEMENTS
   ========================================== */
.form-label-custom {
    font-size: 12px; font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: 0.5px;
    margin-bottom: 6px; display: block;
}
.form-control-custom, .form-select-custom {
    width: 100%;
    border-radius: 10px;
    border: 1.5px solid var(--border);
    padding: 11px 14px;
    font-size: 14px; font-family: inherit;
    background: #FAFAFA;
    color: var(--text-primary);
    transition: var(--transition);
    outline: none;
    -webkit-appearance: none;
}
.form-control-custom:focus, .form-select-custom:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(245,158,11,0.12);
    background: #fff;
}
.form-control-custom::placeholder { color: var(--text-muted); }

.input-with-icon { position: relative; }
.input-with-icon .fi {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); font-size: 14px; pointer-events: none;
}
.input-with-icon .form-control-custom { padding-left: 40px; }
.input-with-icon .fi-right {
    position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); font-size: 14px; cursor: pointer;
}

/* ==========================================
   SEARCH BAR
   ========================================== */
.search-bar {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1.5px solid var(--border);
    display: flex; align-items: center;
    padding: 11px 14px; gap: 10px;
    box-shadow: var(--shadow);
}
.search-bar i { color: var(--text-muted); font-size: 15px; flex-shrink: 0; }
.search-bar input {
    border: none; background: transparent;
    font-size: 14px; color: var(--text-primary);
    flex: 1; outline: none; font-family: inherit;
}
.search-bar input::placeholder { color: var(--text-muted); }
.search-bar .search-filter-btn {
    background: var(--primary); color: var(--accent);
    border: none; border-radius: 8px;
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; cursor: pointer; flex-shrink: 0;
}

/* ==========================================
   FILTER CHIPS
   ========================================== */
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; scroll-behavior: smooth; }
.chip-row::-webkit-scrollbar { display: none; }
.chip-row-wrap { display: flex; align-items: center; gap: 6px; }
.chip-row-wrap .chip-row { flex: 1; min-width: 0; }
.chip-scroll-btn {
    flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%;
    border: 1px solid var(--border); background: var(--card-bg); color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center; font-size: 11px; cursor: pointer;
}
.chip-scroll-btn:hover { border-color: var(--accent); color: var(--accent); }
.chip-scroll-btn:disabled { opacity: 0.3; cursor: default; }
.chip-scroll-btn:disabled:hover { border-color: var(--border); color: var(--text-secondary); }
.chip {
    flex-shrink: 0; padding: 6px 14px;
    border-radius: 100px; font-size: 12px; font-weight: 600;
    border: 1.5px solid var(--border);
    background: var(--card-bg); color: var(--text-secondary);
    cursor: pointer; transition: var(--transition); white-space: nowrap;
    display: inline-flex; align-items: center; gap: 5px;
}
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip:hover:not(.active) { border-color: var(--accent); color: var(--accent); }

/* ==========================================
   BADGES & STATUS
   ========================================== */
.badge-pill {
    padding: 3px 10px; border-radius: 100px;
    font-size: 11px; font-weight: 700;
    display: inline-flex; align-items: center; gap: 4px;
    white-space: nowrap;
}
.bp-accent   { background: var(--accent-light); color: #92400E; }
.bp-success  { background: var(--success-light); color: #065F46; }
.bp-danger   { background: var(--danger-light);  color: #991B1B; }
.bp-info     { background: var(--info-light);    color: #1E40AF; }
.bp-purple   { background: var(--purple-light);  color: #5B21B6; }
.bp-neutral  { background: var(--border-light);  color: var(--text-secondary); }

.status-dot {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 100px;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.3px;
}
.status-dot::before { content:''; width:6px; height:6px; border-radius:50%; flex-shrink:0; }
.sd-active   { background: var(--success-light); color:#065F46; }
.sd-active::before { background: var(--success); }
.sd-pending  { background: var(--accent-light); color:#92400E; }
.sd-pending::before { background: var(--accent); }
.sd-inactive { background: var(--border-light); color: var(--text-secondary); }
.sd-inactive::before { background: var(--text-muted); }
.sd-danger   { background: var(--danger-light); color:#991B1B; }
.sd-danger::before { background: var(--danger); }

/* ==========================================
   ORDER TIMELINE
   ========================================== */
.order-timeline { position: relative; padding-left: 34px; }
.order-timeline::before {
    content: ''; position: absolute;
    left: 11px; top: 10px; bottom: 10px;
    width: 2px; background: var(--border);
}
.ot-item { position: relative; margin-bottom: 28px; }
.ot-item:last-child { margin-bottom: 0; }
.ot-dot {
    position: absolute; left: -34px; top: 2px;
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--border);
    border: 3px solid var(--card-bg);
    box-shadow: 0 0 0 2px var(--border);
    z-index: 1;
    display: flex; align-items: center; justify-content: center;
    font-size: 9px; color: transparent;
}
.ot-dot.completed {
    background: var(--success);
    box-shadow: 0 0 0 3px rgba(16,185,129,0.2);
    color: white; font-size: 10px;
}
.ot-dot.active {
    background: var(--accent);
    box-shadow: 0 0 0 3px rgba(245,158,11,0.25);
}
.ot-title { font-size: 14px; font-weight: 700; color: var(--text-primary); margin: 0 0 2px; }
.ot-meta  { font-size: 12px; color: var(--text-muted); }
.ot-desc  { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }

/* ==========================================
   TABLE
   ========================================== */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 600px;
}
.tbl thead th {
    background: var(--border-light);
    color: var(--text-secondary);
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.6px;
    padding: 11px 16px;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}
.tbl tbody td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-light);
    font-size: 13.5px;
    vertical-align: middle;
    color: var(--text-primary);
}
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover td { background: var(--border-light); }

/* ==========================================
   PRICE & QUANTITY
   ========================================== */
.price-big {
    display: flex; align-items: baseline; gap: 3px;
    line-height: 1;
}
.price-big .pc { font-size: 13px; font-weight: 700; color: var(--text-secondary); }
.price-big .pv { font-size: 24px; font-weight: 900; color: var(--primary); }
.price-big .pu { font-size: 12px; color: var(--text-muted); }

.qty-control {
    display: inline-flex; align-items: center;
    border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden;
}
.qty-control button {
    width: 36px; height: 38px;
    border: none; background: var(--border-light);
    color: var(--primary); font-size: 16px; font-weight: 700;
    cursor: pointer; transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.qty-control button:hover { background: var(--border); }
.qty-control input {
    width: 56px; height: 38px;
    border: none; border-left: 1.5px solid var(--border); border-right: 1.5px solid var(--border);
    text-align: center; font-size: 14px; font-weight: 700;
    color: var(--primary); background: #fff; outline: none;
    font-family: inherit;
}

/* ==========================================
   ORDER SUMMARY CARD
   ========================================== */
.summary-card { background: var(--card-bg); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; }
.summary-card-head { background: var(--primary); color: #fff; padding: 13px 16px; font-size: 14px; font-weight: 700; }
.summary-card-body { padding: 14px 16px; }
.sum-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; font-size: 13px; color: var(--text-secondary); }
.sum-row strong { color: var(--text-primary); }
.sum-total {
    display: flex; justify-content: space-between; align-items: center;
    border-top: 2px dashed var(--border); margin-top: 10px; padding-top: 12px;
    font-size: 16px; font-weight: 800; color: var(--primary);
}
.sum-total span:last-child { color: var(--accent); }

/* ==========================================
   PRICE CALCULATION CARD
   ========================================== */
.price-calc-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius);
    padding: 20px;
    color: #fff;
}
.price-calc-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 5px 0; font-size: 13px; color: rgba(255,255,255,0.65);
}
.price-calc-row.pc-total {
    border-top: 1px solid rgba(255,255,255,0.15);
    margin-top: 10px; padding-top: 13px;
    font-size: 16px; font-weight: 800;
    color: var(--accent);
}
.price-calc-label { color: rgba(255,255,255,0.5); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 16px; }

/* ==========================================
   RANGE SLIDER
   ========================================== */
.range-input {
    -webkit-appearance: none; width: 100%; height: 4px;
    border-radius: 2px; background: var(--border);
    outline: none; cursor: pointer;
}
.range-input::-webkit-slider-thumb {
    -webkit-appearance: none; width: 20px; height: 20px;
    border-radius: 50%; background: var(--accent);
    cursor: pointer; border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.range-input::-moz-range-thumb {
    width: 20px; height: 20px;
    border-radius: 50%; background: var(--accent);
    cursor: pointer; border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* ==========================================
   CART ITEM
   ========================================== */
.cart-item {
    background: var(--card-bg); border-radius: var(--radius);
    border: 1px solid var(--border); box-shadow: var(--shadow);
    padding: 14px 16px; display: flex; gap: 12px;
    align-items: flex-start; margin-bottom: 12px;
    transition: var(--transition);
}
.cart-item:hover { box-shadow: var(--shadow-md); }
.cart-item-icon {
    width: 48px; height: 48px; border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex; align-items: center; justify-content: center;
    color: var(--accent); font-size: 20px; flex-shrink: 0;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-title { font-size: 14px; font-weight: 700; color: var(--primary); margin: 0 0 2px; }
.cart-item-sub   { font-size: 12px; color: var(--text-muted); }
.cart-item-price { font-size: 16px; font-weight: 800; color: var(--primary); }
.cart-item-remove { color: var(--danger); background: none; border: none; cursor: pointer; font-size: 14px; padding: 4px; }

/* ==========================================
   INQUIRY & LISTING CARDS
   ========================================== */
.inq-card {
    background: var(--card-bg); border-radius: var(--radius);
    border: 1px solid var(--border); box-shadow: var(--shadow);
    padding: 16px; margin-bottom: 12px;
    transition: var(--transition);
}
.inq-card:hover { box-shadow: var(--shadow-md); }

/* ==========================================
   PROFILE CARD
   ========================================== */
.profile-header-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: var(--radius);
    padding: 24px 20px;
    text-align: center;
    color: #fff;
}
.profile-avatar-xl {
    width: 72px; height: 72px; border-radius: 20px;
    background: rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; font-weight: 900;
    color: var(--accent); margin: 0 auto 12px;
    border: 2px solid rgba(255,255,255,0.15);
}

/* ==========================================
   NOTIFICATIONS
   ========================================== */
.notif-item {
    display: flex; gap: 12px; padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    align-items: flex-start;
}
.notif-item:last-child { border-bottom: none; }
.notif-icon {
    width: 38px; height: 38px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; flex-shrink: 0;
}
.notif-title { font-size: 13px; font-weight: 600; color: var(--text-primary); margin: 0 0 2px; }
.notif-time  { font-size: 11px; color: var(--text-muted); }

/* ==========================================
   AUTH PAGES
   ========================================== */
.auth-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, var(--primary) 100%);
    display: flex; align-items: center; justify-content: center;
    padding: 20px; position: relative; overflow: hidden;
}
.auth-wrapper::before {
    content: ''; position: absolute;
    top: -40%; right: -15%; width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(223,164,0,0.08), transparent 70%);
}
.auth-wrapper::after {
    content: ''; position: absolute;
    bottom: -30%; left: -10%; width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(16,185,129,0.05), transparent 70%);
}
.auth-card {
    background: #fff; border-radius: 22px;
    padding: 40px 36px; width: 100%; max-width: 450px;
    box-shadow: 0 30px 70px rgba(0,0,0,0.35);
    position: relative; z-index: 1;
}
@media (max-width: 480px) {
    .auth-card { padding: 28px 20px; border-radius: 18px; }
}
.auth-brand {
    display: flex; align-items: center;
    justify-content: center; gap: 12px; margin-bottom: 30px;
}
.auth-brand-icon {
    width: 52px; height: 52px; background: var(--primary); border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 24px rgba(15,23,42,0.25);
}
.auth-brand-icon i { color: var(--accent); font-size: 24px; }
.auth-brand-name { font-size: 22px; font-weight: 900; color: var(--primary); }
.auth-brand-name span { color: var(--accent); }
.auth-brand-sub { font-size: 11px; color: var(--text-muted); font-weight: 500; }

.auth-divider {
    display: flex; align-items: center; gap: 12px;
    color: var(--text-muted); font-size: 12px; margin: 20px 0;
}
.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ==========================================
   EMPTY STATE
   ========================================== */
.empty-state { text-align: center; padding: 48px 20px; }
.empty-icon {
    width: 72px; height: 72px; border-radius: 20px;
    background: var(--border-light);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px; font-size: 28px; color: var(--text-muted);
}
.empty-state h5 { font-size: 16px; color: var(--primary); margin-bottom: 6px; }
.empty-state p  { font-size: 13px; color: var(--text-muted); max-width: 240px; margin: 0 auto 20px; }

/* ==========================================
   ADMIN SPECIFIC
   ========================================== */
.admin-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
@media (min-width: 640px)  { .admin-stat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1200px) { .admin-stat-grid { grid-template-columns: repeat(6, 1fr); } }

/* Activity Feed */
.activity-item {
    display: flex; gap: 12px; padding: 12px 0;
    border-bottom: 1px solid var(--border-light); align-items: flex-start;
}
.activity-item:last-child { border-bottom: none; }
.activity-icon {
    width: 36px; height: 36px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; flex-shrink: 0;
}
.activity-text { font-size: 13px; color: var(--text-primary); line-height: 1.5; }
.activity-text strong { font-weight: 700; }
.activity-time { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ==========================================
   MISC UTILS
   ========================================== */
.text-accent   { color: var(--accent) !important; }
.text-success  { color: var(--success) !important; }
.text-danger   { color: var(--danger) !important; }
.text-muted-c  { color: var(--text-muted) !important; }
.text-secondary-c { color: var(--text-secondary) !important; }

.bg-primary-c  { background: var(--primary) !important; }
.bg-accent-l   { background: var(--accent-light) !important; }
.bg-success-l  { background: var(--success-light) !important; }

.rounded-custom { border-radius: var(--radius) !important; }
.shadow-custom  { box-shadow: var(--shadow) !important; }

.fw-900 { font-weight: 900; }
.fw-800 { font-weight: 800; }
.fw-700 { font-weight: 700; }
.fw-600 { font-weight: 600; }
.fw-500 { font-weight: 500; }

.fs-11 { font-size: 11px; }
.fs-12 { font-size: 12px; }
.fs-13 { font-size: 13px; }
.fs-15 { font-size: 15px; }
.fs-16 { font-size: 16px; }
.fs-18 { font-size: 18px; }
.fs-20 { font-size: 20px; }
.fs-24 { font-size: 24px; }

.gap-6 { gap: 6px !important; }
.gap-8 { gap: 8px !important; }
.gap-10 { gap: 10px !important; }
.gap-12 { gap: 12px !important; }

/* ==========================================
   ANIMATIONS
   ========================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.35s ease forwards; }

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.fade-in { animation: fadeIn 0.3s ease; }

/* ==========================================
   SCROLLBAR GLOBAL
   ========================================== */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #CBD5E1; }

/* ==========================================
   TELWALA: DASHBOARD BANNER (buyer + seller)
   ========================================== */
.greeting-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 18px; padding: 20px;
    margin-bottom: 16px; position: relative; overflow: hidden;
}
.greeting-card::after {
    content: ''; position: absolute; top: -30%; right: -10%;
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(223,164,0,0.18), transparent 70%);
}
.greeting-badge { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,0.15); color: #fff; border: 1px solid rgba(255,255,255,0.2); padding: 3px 10px; border-radius: 100px; font-size: 11px; font-weight: 700; margin-bottom: 10px; }
.greeting-name  { font-size: 18px; font-weight: 800; color: #fff; margin: 0 0 3px; }
.greeting-sub   { font-size: 13px; color: rgba(255,255,255,0.6); margin: 0; }
.banner-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; position: relative; z-index: 1; }
.btn-banner-primary { padding: 10px 18px; border-radius: 10px; border: none; background: var(--accent); color: var(--primary); font-size: 13px; font-weight: 800; cursor: pointer; font-family: inherit; transition: var(--transition); display: inline-flex; align-items: center; gap: 7px; }
.btn-banner-primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn-banner-outline { padding: 10px 18px; border-radius: 10px; border: 1.5px solid rgba(255,255,255,0.25); background: transparent; color: rgba(255,255,255,0.85); font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; transition: var(--transition); display: inline-flex; align-items: center; gap: 7px; }
.btn-banner-outline:hover { border-color: rgba(255,255,255,0.5); color: #fff; }

/* ==========================================
   TELWALA: SECTION HEADER
   ========================================== */
.section-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 8px; }
.section-hdr h6 { font-size: 15px; font-weight: 800; color: var(--text-primary); margin: 0; display: flex; align-items: center; gap: 8px; }
.section-hdr a  { font-size: 12px; font-weight: 700; color: var(--accent-dark); white-space: nowrap; }

/* ==========================================
   TELWALA: MINI STATS ROW
   ========================================== */
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; }
.mini-stat { background: var(--card-bg); border-radius: 14px; border: 1px solid var(--border); padding: 14px 12px; box-shadow: var(--shadow); text-align: center; }
.mini-stat-val  { font-size: 22px; font-weight: 900; color: var(--text-primary); line-height: 1; margin-bottom: 3px; }
.mini-stat-lbl  { font-size: 11px; color: var(--text-secondary); font-weight: 600; }
.platform-stats-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.mini-stat-val i { font-size: 15px; margin-right: 4px; }

/* ==========================================
   TELWALA: PRODUCT LISTING CARDS (buyer browse)
   ========================================== */
.prod-cards-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 768px)  { .prod-cards-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .prod-cards-grid { grid-template-columns: repeat(3, 1fr); } }

.prod-card-top { background: linear-gradient(135deg, var(--primary), var(--primary-light)); padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.prod-brand-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(223,164,0,0.2); color: var(--accent); padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 800; }
.prod-brand-badge img { width: 18px; height: 18px; object-fit: contain; border-radius: 4px; background: #fff; flex-shrink: 0; }
.brand-logo-sm { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; background: #fff; border: 1px solid var(--border); flex-shrink: 0; }
.prod-category { display: inline-flex; align-items: center; gap: 4px; background: rgba(255,255,255,0.12); color: rgba(255,255,255,0.75); padding: 3px 8px; border-radius: 6px; font-size: 11px; white-space: nowrap; }
.prod-card-body { padding: 14px 16px; }
.prod-sku-name  { font-size: 15px; font-weight: 800; color: var(--text-primary); margin: 0 0 10px; }
.prod-price { display: flex; align-items: baseline; gap: 3px; }
.prod-price .pc { font-size: 13px; font-weight: 700; color: var(--text-secondary); }
.prod-price .pv { font-size: 18px; font-weight: 900; color: var(--text-primary); }

/* ==========================================
   TELWALA: ORDER / DEAL CARDS
   ========================================== */
.orders-grid { display: grid; gap: 14px; }
@media (min-width: 992px) { .orders-grid { grid-template-columns: 1fr 1fr; } }
.order-card { background: var(--card-bg); border-radius: var(--radius); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; transition: var(--transition); }
.order-card:hover { box-shadow: var(--shadow-md); }
.oc-header { padding: 14px 16px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.oc-id { font-size: 14px; font-weight: 800; color: #fff; }
.oc-date { font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 2px; }
.oc-body { padding: 16px; }
.oc-prod-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; gap: 10px; }
.oc-prod-info { display: flex; align-items: center; gap: 10px; }
.oc-prod-icon { width: 36px; height: 36px; border-radius: 9px; background: linear-gradient(135deg, var(--primary), var(--primary-light)); display: flex; align-items: center; justify-content: center; color: var(--accent); font-size: 14px; flex-shrink: 0; }
.oc-prod-name { font-size: 13px; font-weight: 700; color: var(--text-primary); margin: 0; }
.oc-prod-meta { font-size: 11px; color: var(--text-muted); }

.tab-row { display: flex; gap: 0; background: var(--border-light); border-radius: 12px; border: 1px solid var(--border); overflow: hidden; }
.tab-item { flex: 1; padding: 10px 8px; text-align: center; font-size: 13px; font-weight: 700; color: var(--text-secondary); cursor: pointer; transition: var(--transition); text-decoration: none; }
.tab-item.active { background: var(--primary); color: var(--accent); }
.tab-item:hover:not(.active) { background: var(--border); }

/* ==========================================
   TELWALA: MARKET UPDATES SCROLLER (dashboard banner)
   ========================================== */
.mu-scroll-row { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 8px; margin-bottom: 16px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.mu-scroll-row::-webkit-scrollbar { height: 5px; }
.mu-scroll-row::-webkit-scrollbar-thumb { background: var(--border); border-radius: 10px; }
.mu-scroll-card { flex: 0 0 auto; width: 78%; max-width: 300px; height: 100px; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; scroll-snap-align: start; display: flex; flex-direction: row; transition: var(--transition); }
.mu-scroll-single .mu-scroll-card { width: 100%; max-width: none; }
.mu-scroll-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.mu-scroll-card img { width: 100px; height: 100px; object-fit: cover; display: block; background: var(--border-light); flex-shrink: 0; }
.mu-scroll-noimg { width: 100px; height: 100px; display: flex; align-items: center; justify-content: center; background: var(--success-light); color: var(--primary); font-size: 24px; flex-shrink: 0; }
.mu-scroll-body { padding: 8px 12px; flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.mu-scroll-text { font-size: 12.5px; color: var(--text-primary); font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mu-scroll-time { font-size: 10.5px; color: var(--text-muted); margin-top: 6px; display: flex; align-items: center; gap: 4px; }

/* ==========================================
   TELWALA: MARKET UPDATES FEED (dedicated page, normal scroll)
   ========================================== */
.mu-feed-list { max-width: 640px; }
@media (min-width: 992px) { .mu-feed-list { margin: 0 auto; } }
.mu-update-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 14px; }
.mu-update-card img { width: 100%; height: auto; max-height: 420px; object-fit: contain; display: block; background: var(--border-light); }
.mu-update-card-body { padding: 14px 16px; }
.mu-update-text { font-size: 14px; color: var(--text-primary); line-height: 1.6; white-space: pre-line; }
.mu-update-time { font-size: 11px; color: var(--text-muted); margin-top: 8px; }
