/**
 * DAILYMMO.ORG - PRO ENTERPRISE DESIGN SYSTEM
 * Precision, High-Density, Authentic Developer & Financial Marketplace Aesthetics
 * (No tacky AI purple gradients, no bubbly 24px rounded corners)
 */

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

:root {
  --nexus-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --nexus-display: 'Montserrat', 'Outfit', sans-serif;
  --nexus-mono: 'JetBrains Mono', monospace;
  
  /* Precision Color Palette - Sharp & Professional */
  --nexus-primary: #18181b;          /* Dark Obsidian / Zinc-900 */
  --nexus-primary-hover: #27272a;    /* Zinc-800 */
  --nexus-accent: #0284c7;           /* Precision Tech Sky/Blue */
  --nexus-accent-hover: #0369a1;
  --nexus-accent-subtle: rgba(2, 132, 199, 0.08);
  --nexus-success: #10b981;          /* Clean Emerald */
  --nexus-warning: #f59e0b;          /* Technical Amber */
  --nexus-danger: #ef4444;           /* Alert Red */
  
  /* Light Neutral Palette */
  --nexus-bg: #f8fafc;
  --nexus-surface: #ffffff;
  --nexus-surface-hover: #f1f5f9;
  --nexus-border: #e2e8f0;
  --nexus-border-subtle: #f1f5f9;
  --nexus-text-main: #0f172a;
  --nexus-text-muted: #64748b;
  --nexus-text-subtle: #94a3b8;
  
  /* Realistic, Natural Shadows (No colored glow blobs) */
  --nexus-shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --nexus-shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --nexus-shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
  
  /* Sharp, Engineered Geometry (Strict 4px - 8px, NO bubble pills) */
  --nexus-radius-xs: 3px;
  --nexus-radius-sm: 4px;
  --nexus-radius-md: 6px;
  --nexus-radius-lg: 8px;
  --nexus-radius-xl: 10px;
}

/* Base Reset & Typography */
body {
  font-family: var(--nexus-font) !important;
  background-color: var(--nexus-bg) !important;
  color: var(--nexus-text-main) !important;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   1. HERO WORKBENCH BANNER (Architectural & Technical)
   ============================================================ */
.nexus-hero {
  position: relative;
  background: #09090b !important;
  border: 1px solid #27272a !important;
  border-radius: var(--nexus-radius-lg, 8px) !important;
  padding: 34px 32px 28px 32px !important;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.nexus-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 15%;
  right: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.5), transparent);
  pointer-events: none;
}

.nexus-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e4e4e7;
  font-family: var(--nexus-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--nexus-radius-sm);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nexus-hero-badge .pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--nexus-success);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.3);
}

.nexus-hero-title {
  font-family: var(--nexus-display) !important;
  font-size: 33px;
  font-weight: 900;
  line-height: 1.25;
  color: #ffffff !important;
  margin-bottom: 14px;
  letter-spacing: -0.015em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.nexus-hero-title .text-cyan {
  background: linear-gradient(135deg, #38bdf8 0%, #7ce8eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nexus-hero-desc {
  font-size: 14px;
  color: #a1a1aa !important;
  max-width: 620px;
  line-height: 1.6;
  margin-bottom: 22px;
}

/* Hero Action Buttons */
.hero-btn-primary {
  background: #ffffff !important;
  color: #09090b !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  padding: 10px 22px !important;
  border-radius: var(--nexus-radius-sm) !important;
  border: 1px solid #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: auto !important;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.15) !important;
  transition: all 0.15s ease !important;
  text-decoration: none !important;
}

.hero-btn-primary:hover {
  background: #e4e4e7 !important;
  color: #09090b !important;
  transform: translateY(-1px);
}

.hero-btn-secondary {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #f4f4f5 !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  padding: 10px 20px !important;
  border-radius: var(--nexus-radius-sm) !important;
  border: 1px solid #3f3f46 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: auto !important;
  transition: all 0.15s ease !important;
  text-decoration: none !important;
}

.hero-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: #52525b !important;
  color: #ffffff !important;
}

/* Quick Category Jump Pills */
.hero-quick-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-quick-chips .chip-label {
  font-size: 11.5px;
  color: #71717a;
  font-weight: 600;
  font-family: var(--nexus-mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #d4d4d8;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--nexus-radius-sm);
  transition: all 0.15s ease;
  text-decoration: none !important;
  cursor: pointer;
}

.hero-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  transform: translateY(-1px);
}

.hero-chip img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

/* Bento Trust Cards (Right side) */
.hero-bento-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bento-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--nexus-radius-md);
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s ease;
}

.bento-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateX(3px);
}

.bento-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--nexus-radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.bento-content h6 {
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  margin: 0 0 3px 0;
}

.bento-content p {
  color: #a1a1aa;
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

/* Trust Stats Bar */
.nexus-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  padding-top: 20px;
  margin-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nexus-stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nexus-stat-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--nexus-radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e4e4e7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.nexus-stat-info .stat-value {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  font-family: var(--nexus-mono);
}

.nexus-stat-info .stat-label {
  font-size: 11.5px;
  color: #71717a;
  font-weight: 500;
}

/* ============================================================
   2. CATEGORY TABS NAVIGATION
   ============================================================ */
.nav-pills {
  display: flex;
  gap: 8px;
  padding: 4px;
  background: #ffffff;
  border: 1px solid var(--nexus-border);
  border-radius: var(--nexus-radius-lg);
  overflow-x: auto;
  scrollbar-width: none;
  margin-bottom: 22px !important;
  box-shadow: var(--nexus-shadow-sm);
}

.nav-pills::-webkit-scrollbar {
  display: none;
}

.nav-pills .nav-item {
  flex: 0 0 auto;
}

.nav-pills .nav-link {
  font-family: var(--nexus-font) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #475569 !important;
  padding: 8px 14px !important;
  border-radius: var(--nexus-radius-md) !important;
  background: transparent !important;
  border: 1px solid transparent !important;
  transition: all 0.15s ease !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer;
  white-space: nowrap;
}

.nav-pills .nav-link:hover {
  color: #0f172a !important;
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}

.nav-pills .nav-link.active {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.nav-pills .nav-link img {
  border-radius: 3px;
}

/* ============================================================
   3. SHARP PRODUCT CARDS (BOX4 REDESIGN)
   ============================================================ */
.product {
  background: #ffffff !important;
  border: 1px solid var(--nexus-border) !important;
  border-radius: var(--nexus-radius-lg) !important;
  box-shadow: var(--nexus-shadow-sm) !important;
  transition: all 0.2s ease !important;
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product:hover {
  transform: translateY(-2px);
  border-color: #94a3b8 !important;
  box-shadow: var(--nexus-shadow-md) !important;
}

.product .product-head {
  padding: 16px 18px !important;
  background: #ffffff !important;
  border-bottom: 1px solid var(--nexus-border) !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
}

.product .product-head img {
  height: 36px !important;
  width: 36px !important;
  object-fit: contain;
  border-radius: var(--nexus-radius-sm);
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 5px;
  flex-shrink: 0;
}

.product .product-head h4 {
  font-size: 14.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  flex: 1;
}

/* Product Body & Specs */
.product .product-body {
  padding: 16px 18px !important;
  flex: 1;
  background: #ffffff !important;
  border-bottom: 1px solid var(--nexus-border-subtle) !important;
  min-height: 120px !important;
}

.product .product-body p {
  color: #475569 !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  margin-bottom: 8px !important;
}

.product .product-body p i {
  color: var(--nexus-success) !important;
}

/* Stock Badge - Sharp & Compact */
.nexus-stock-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-family: var(--nexus-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--nexus-radius-xs);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.nexus-stock-badge.empty {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.nexus-stock-badge .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10b981;
}

.nexus-stock-badge.empty .dot {
  background: #ef4444;
}

/* Product Footer (Stock & Sold Count) */
.product .product-footer {
  padding: 10px 18px !important;
  background: #f8fafc !important;
  border-bottom: 1px solid var(--nexus-border) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.product .product-footer strong {
  font-family: var(--nexus-mono);
  font-size: 11px !important;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b !important;
  margin-bottom: 2px !important;
}

.product .product-footer b {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

/* Pricing and Buy Button Bar */
.product .product-buttons-box4 {
  padding: 14px 18px !important;
  background: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.product .price {
  text-align: left !important;
}

.product .price strong {
  font-family: var(--nexus-mono) !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  letter-spacing: -0.02em;
  display: block;
}

.product .price span {
  font-family: var(--nexus-mono) !important;
  font-size: 11.5px !important;
  color: #94a3b8 !important;
  text-decoration: line-through;
}

/* Sharp Buy Button */
.buy-btn {
  background: #0f172a !important;
  border: 1px solid #0f172a !important;
  border-radius: var(--nexus-radius-md) !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  padding: 8px 16px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.15s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
}

.buy-btn:hover {
  background: #27272a !important;
  border-color: #27272a !important;
  transform: translateY(-1px) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important;
}

.buy-btn:active {
  transform: translateY(0) !important;
}

/* ============================================================
   4. SLEEK TOPBAR & WALLET BADGE
   ============================================================ */
.iq-top-navbar {
  background: #ffffff !important;
  border-bottom: 1px solid var(--nexus-border) !important;
  box-shadow: var(--nexus-shadow-sm) !important;
}

.badge2 {
  font-family: var(--nexus-mono) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  padding: 6px 12px !important;
  border-radius: var(--nexus-radius-sm) !important;
  background: #f8fafc !important;
  border: 1px solid var(--nexus-border) !important;
  color: #0f172a !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.badge2.border-primary {
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  background: #f1f5f9 !important;
}

/* ============================================================
   5. SIDEBAR (Obsidian Slate with Hairline Borders)
   ============================================================ */
.iq-sidebar {
  background: #09090b !important; /* Deep Obsidian Zinc-950 */
  border-right: 1px solid #18181b !important;
}

.iq-sidebar-logo {
  border-bottom: 1px solid #18181b !important;
  padding: 16px 20px !important;
}

.iq-sidebar-menu .side-menu li a {
  font-family: var(--nexus-font) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #a1a1aa !important;
  border-radius: var(--nexus-radius-md) !important;
  padding: 9px 14px !important;
  margin: 2px 10px !important;
  transition: all 0.15s ease !important;
}

.iq-sidebar-menu .side-menu li a:hover,
.iq-sidebar-menu .side-menu li.active > a {
  background: #18181b !important;
  color: #ffffff !important;
}

.iq-sidebar-menu .side-menu li.active > a {
  background: #27272a !important;
  color: #ffffff !important;
  border-left: 2px solid var(--nexus-accent);
}

/* ============================================================
   6. TABLES & DATA LISTS (Crisp & High Density)
   ============================================================ */
.table {
  color: #0f172a !important;
  font-size: 13px !important;
}

.table thead th {
  background: #f8fafc !important;
  color: #64748b !important;
  font-family: var(--nexus-mono) !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  border-bottom: 1px solid var(--nexus-border) !important;
  padding: 12px 16px !important;
}

.table tbody td {
  padding: 13px 16px !important;
  vertical-align: middle !important;
  border-top: 1px solid var(--nexus-border-subtle) !important;
}

.table-hover tbody tr:hover {
  background-color: #f8fafc !important;
}

.card-stretch {
  background: #ffffff !important;
  border: 1px solid var(--nexus-border) !important;
  border-radius: var(--nexus-radius-lg) !important;
  box-shadow: var(--nexus-shadow-sm) !important;
  overflow: hidden;
}

.card-stretch .card-header {
  background: #ffffff !important;
  border-bottom: 1px solid var(--nexus-border) !important;
  padding: 14px 20px !important;
}

.card-stretch .card-header .card-title {
  color: #0f172a !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  margin: 0;
}

/* Technical Monospace Chips */
.nexus-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: var(--nexus-radius-sm);
  line-height: 1.2;
}

.nexus-chip-primary {
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #cbd5e1;
}

.nexus-chip-success {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.nexus-chip-mono {
  font-family: var(--nexus-mono);
  font-size: 11.5px;
  background: #f8fafc;
  color: #334155;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  padding: 3px 8px;
}

.nexus-chip-mono:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* ============================================================
   7. BUTTONS & INPUT SYSTEM
   ============================================================ */
.btn {
  font-family: var(--nexus-font) !important;
  font-weight: 600 !important;
  border-radius: var(--nexus-radius-md) !important;
  transition: all 0.15s ease !important;
}

.btn-sm {
  padding: 6px 12px !important;
  font-size: 12.5px !important;
  border-radius: var(--nexus-radius-md) !important;
}

.btn-primary {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #ffffff !important;
}

.btn-primary:hover {
  background: #27272a !important;
  border-color: #27272a !important;
  color: #ffffff !important;
}

.btn-outline-primary {
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
  background: #ffffff !important;
}

.btn-outline-primary:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}

.btn-danger {
  background: #e11d48 !important;
  border-color: #e11d48 !important;
}

.btn-outline-danger {
  color: #e11d48 !important;
  border-color: #fecdd3 !important;
  background: #ffffff !important;
}

.btn-outline-danger:hover {
  background: #fff1f2 !important;
  border-color: #e11d48 !important;
}

.form-control {
  border: 1px solid #cbd5e1 !important;
  border-radius: var(--nexus-radius-md) !important;
  font-family: var(--nexus-font) !important;
  font-size: 13.5px !important;
  padding: 8px 12px !important;
  transition: all 0.15s ease !important;
}

.form-control:focus {
  border-color: #0f172a !important;
  box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.08) !important;
}

/* Modals */
.modal-content {
  border: 1px solid var(--nexus-border) !important;
  border-radius: var(--nexus-radius-lg) !important;
  box-shadow: var(--nexus-shadow-lg) !important;
  overflow: hidden;
}

.modal-header {
  background: #f8fafc !important;
  border-bottom: 1px solid var(--nexus-border) !important;
  padding: 16px 20px !important;
}

.modal-header .modal-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

.modal-footer {
  background: #f8fafc !important;
  border-top: 1px solid var(--nexus-border) !important;
  padding: 12px 20px !important;
}

/* ============================================================
   8. DARK MODE SPECIFICATIONS (Pure Zinc / Obsidian)
   ============================================================ */
.dark body,
body.dark {
  --nexus-bg: #09090b !important;
  --nexus-surface: #121215 !important;
  --nexus-surface-hover: #18181b !important;
  --nexus-border: #27272a !important;
  --nexus-border-subtle: #1e1e22 !important;
  --nexus-text-main: #f4f4f5 !important;
  --nexus-text-muted: #a1a1aa !important;
  --nexus-text-subtle: #71717a !important;
}

.dark .nexus-hero {
  background-color: #09090b !important;
  background-image: radial-gradient(#27272a 1.2px, transparent 1.2px) !important;
  border-color: #27272a !important;
}

.dark .nexus-hero-title {
  color: #f4f4f5 !important;
}

.dark .nexus-hero-badge {
  background: #18181b !important;
  border-color: #27272a !important;
  color: #e4e4e7 !important;
}

.dark .product,
.dark .product .product-head,
.dark .product .product-body,
.dark .product .product-footer,
.dark .product .product-buttons-box4 {
  background: #121215 !important;
  border-color: #27272a !important;
}

.dark .product .product-head h4,
.dark .product .product-footer b,
.dark .product .price strong {
  color: #f4f4f5 !important;
}

.dark .product:hover {
  border-color: #3f3f46 !important;
}

.dark .buy-btn {
  background: #f4f4f5 !important;
  color: #09090b !important;
  border-color: #f4f4f5 !important;
}

.dark .buy-btn:hover {
  background: #e4e4e7 !important;
  color: #09090b !important;
}

.dark .card-stretch,
.dark .card-stretch .card-header,
.dark .nav-pills,
.dark .modal-content,
.dark .modal-header,
.dark .modal-footer {
  background: #121215 !important;
  border-color: #27272a !important;
}

.dark .nav-pills .nav-link {
  color: #a1a1aa !important;
}

.dark .nav-pills .nav-link:hover {
  color: #ffffff !important;
  background: #18181b !important;
  border-color: #27272a !important;
}

.dark .nav-pills .nav-link.active {
  background: #f4f4f5 !important;
  color: #09090b !important;
  border-color: #f4f4f5 !important;
}

.dark .iq-top-navbar {
  background: #09090b !important;
  border-color: #18181b !important;
}

.dark .badge2 {
  background: #18181b !important;
  border-color: #27272a !important;
  color: #f4f4f5 !important;
}

.dark .form-control {
  background: #18181b !important;
  border-color: #27272a !important;
  color: #f4f4f5 !important;
}

.dark .table thead th {
  background: #18181b !important;
  border-color: #27272a !important;
  color: #a1a1aa !important;
}

.dark .table tbody td {
  border-color: #1e1e22 !important;
  color: #f4f4f5 !important;
}

.dark .nexus-chip-mono {
  background: #18181b !important;
  border-color: #27272a !important;
  color: #a1a1aa !important;
}

/* ============================================================
   14. COLLAPSED SIDEBAR (MINI-SIDEBAR / body.sidebar-main) FIXES
   ============================================================ */
body.sidebar-main .iq-sidebar {
  width: 80px !important;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

body.sidebar-main .iq-sidebar-logo {
  padding: 16px 8px !important;
  justify-content: center !important;
  overflow: hidden !important;
  text-align: center !important;
}

body.sidebar-main .iq-sidebar-logo .header-logo {
  justify-content: center !important;
  width: 100% !important;
  margin: 0 auto !important;
  display: flex !important;
}

/* Hide the wide full logo so it NEVER overflows into top-navbar */
body.sidebar-main .iq-sidebar-logo .full-logo {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* Show the sleek square mini logo */
body.sidebar-main .iq-sidebar-logo .mini-logo {
  display: flex !important;
  margin: 0 auto !important;
}

.iq-sidebar-logo .mini-logo {
  display: none;
}

/* ============================================================
   10. DESKTOP MINI SIDEBAR (Only for Desktop screens >= 1300px)
   ============================================================ */
@media (min-width: 1300px) {
  /* Hide mobile toggle button inside sidebar header when mini */
  body.sidebar-main .iq-sidebar-logo .side-menu-bt-sidebar-1 {
    display: none !important;
  }

  /* Sidebar navigation items in mini state */
  body.sidebar-main .iq-sidebar-menu .side-menu li.sidebar-layout > a {
    padding: 12px 0 !important;
    margin: 4px 8px !important;
    justify-content: center !important;
    text-align: center !important;
    display: flex !important;
    align-items: center !important;
  }

  /* Hide all text inside sidebar links when collapsed */
  body.sidebar-main .iq-sidebar-menu .side-menu li.sidebar-layout > a .menu-text,
  body.sidebar-main .iq-sidebar-menu .side-menu li.sidebar-layout > a span,
  body.sidebar-main .iq-sidebar-menu .side-menu li.sidebar-layout > a .iq-arrow-right {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }

  /* Center icons properly */
  body.sidebar-main .iq-sidebar-menu .side-menu li.sidebar-layout > a i,
  body.sidebar-main .iq-sidebar-menu .side-menu li.sidebar-layout > a svg {
    margin: 0 auto !important;
    font-size: 18px !important;
    text-align: center !important;
    display: block !important;
  }

  /* Ensure top navbar adjusts properly and does not overlap */
  body.sidebar-main .iq-top-navbar {
    width: calc(100% - 80px) !important;
    left: auto !important;
    right: 0 !important;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  body.sidebar-main .side-menu-bt-sidebar {
    padding-left: 0 !important;
    gap: 12px !important;
  }

  /* In mini sidebar, also hide dropdown arrows and extra badges */
  body.sidebar-main .iq-sidebar-menu .side-menu li a .badge {
    display: none !important;
  }
}

/* ============================================================
   10.1 MOBILE DRAWER SIDEBAR & BACKDROP (Screens < 1300px)
   ============================================================ */
.nexus-sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1090;
  cursor: pointer;
}

@media (max-width: 1299px) {
  /* Dim overlay when drawer is open */
  body.sidebar-main .nexus-sidebar-overlay {
    display: block !important;
  }

  /* Prevent scrolling body when drawer is open */
  body.sidebar-main {
    overflow: hidden !important;
  }

  /* Sidebar closed offscreen */
  .iq-sidebar {
    position: fixed !important;
    top: 0 !important;
    bottom: 0 !important;
    left: -320px !important;
    width: 280px !important;
    height: 100vh !important;
    max-height: 100vh !important;
    z-index: 1100 !important;
    background: #09090b !important;
    border-right: 1px solid #27272a !important;
    box-shadow: none !important;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow-y: auto !important;
  }

  /* Sidebar SLIDE IN when OPEN */
  body.sidebar-main .iq-sidebar {
    left: 0 !important;
    width: 280px !important;
    box-shadow: 15px 0 40px rgba(0, 0, 0, 0.7) !important;
  }

  /* Full Logo & clean padding */
  body.sidebar-main .iq-sidebar-logo {
    padding: 16px 18px !important;
    justify-content: space-between !important;
  }

  body.sidebar-main .iq-sidebar-logo .full-logo {
    display: block !important;
    height: 36px !important;
    width: auto !important;
    max-width: 180px !important;
    opacity: 1 !important;
  }

  body.sidebar-main .iq-sidebar-logo .mini-logo {
    display: none !important;
  }

  /* Show close button [X] inside sidebar header */
  body.sidebar-main .iq-sidebar-logo .side-menu-bt-sidebar-1 {
    display: block !important;
    cursor: pointer !important;
    padding: 4px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
  }

  body.sidebar-main .iq-sidebar-logo .side-menu-bt-sidebar-1 svg {
    width: 22px !important;
    height: 22px !important;
    color: #f4f4f5 !important;
  }

  /* Menu items: full text, proper alignment */
  body.sidebar-main .iq-sidebar-menu .side-menu li.sidebar-layout > a {
    padding: 11px 16px !important;
    margin: 2px 8px !important;
    justify-content: flex-start !important;
    text-align: left !important;
    display: flex !important;
    align-items: center !important;
  }

  body.sidebar-main .iq-sidebar-menu .side-menu li.sidebar-layout > a .menu-text,
  body.sidebar-main .iq-sidebar-menu .side-menu li.sidebar-layout > a span {
    display: inline-block !important;
    opacity: 1 !important;
    visibility: visible !important;
    width: auto !important;
    height: auto !important;
    font-size: 13.5px !important;
    color: #e4e4e7 !important;
    margin-left: 10px !important;
  }

  body.sidebar-main .iq-sidebar-menu .side-menu li.sidebar-layout > a .iq-arrow-right {
    display: inline-block !important;
    margin-left: auto !important;
    color: #71717a !important;
  }

  body.sidebar-main .iq-sidebar-menu .side-menu li.sidebar-layout > a i,
  body.sidebar-main .iq-sidebar-menu .side-menu li.sidebar-layout > a svg {
    margin: 0 !important;
    font-size: 16px !important;
    min-width: 20px !important;
    color: #94a3b8 !important;
    text-align: center !important;
  }

  /* Keep content full width, DO NOT squeeze or push */
  .content-page, body.sidebar-main .content-page {
    margin-left: 0 !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .iq-top-navbar, body.sidebar-main .iq-top-navbar {
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
  }
}

/* ============================================================
   11. ULTRA-PREMIUM MOBILE APP RESPONSIVE OPTIMIZATION
   Tailored for smartphones (iPhone, Android, Foldables)
   ============================================================ */

/* Global Mobile Fixes */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    max-width: 100vw !important;
    position: relative;
    padding-bottom: 74px !important; /* Space for Bottom App Bar */
  }

  .container-fluid {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .content-page {
    padding-top: 72px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Top Navbar on Mobile */
  .iq-top-navbar {
    height: 60px !important;
    padding: 0 10px !important;
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06) !important;
  }

  .iq-top-navbar .navbar {
    height: 60px !important;
  }

  .side-menu-bt-sidebar {
    gap: 6px !important;
  }

  .side-menu-bt-sidebar .wrapper-menu {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
  }

  .side-menu-bt-sidebar .badge2 {
    font-size: 11px !important;
    padding: 4px 8px !important;
  }

  .side-menu-bt-sidebar .badge2 b {
    font-size: 11.5px !important;
  }

  /* Hero Banner on Mobile */
  .nexus-hero {
    padding: 16px 14px !important;
    margin-bottom: 14px !important;
    border-radius: 12px !important;
  }

  .nexus-hero-badge {
    font-size: 10px !important;
    padding: 3px 8px !important;
    margin-bottom: 10px !important;
  }

  .nexus-hero-title {
    font-size: 21px !important;
    line-height: 1.3 !important;
    margin-bottom: 10px !important;
  }

  .nexus-hero-desc {
    font-size: 12.5px !important;
    line-height: 1.5 !important;
    margin-bottom: 14px !important;
  }

  .hero-btn-primary, .hero-btn-secondary {
    display: flex !important;
    width: 100% !important;
    justify-content: center !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
    margin-bottom: 6px;
  }

  /* Hide bulky right bento marketing boxes on small phone screens to focus on products */
  .hero-bento-grid {
    display: none !important;
  }

  /* Compact 2-column Trust Stats */
  .nexus-stats-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    padding-top: 14px !important;
    margin-top: 14px !important;
  }

  .nexus-stat-item {
    gap: 8px !important;
  }

  .nexus-stat-icon {
    width: 30px !important;
    height: 30px !important;
    font-size: 12px !important;
  }

  .nexus-stat-info .stat-value {
    font-size: 12px !important;
  }

  .nexus-stat-info .stat-label {
    font-size: 9.5px !important;
  }

  /* Horizontal Category Swipeable Nav-Pills (App Style) */
  .nav.nav-pills#pills-tab-1 {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 4px 2px 8px 2px !important;
    gap: 6px !important;
    margin-bottom: 12px !important;
  }

  .nav.nav-pills#pills-tab-1::-webkit-scrollbar {
    display: none !important;
  }

  .nav.nav-pills#pills-tab-1 .nav-item {
    flex: 0 0 auto !important;
  }

  .nav.nav-pills#pills-tab-1 .nav-link {
    padding: 7px 12px !important;
    font-size: 12.5px !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  .nav.nav-pills#pills-tab-1 .nav-link img {
    width: 16px !important;
    height: 16px !important;
    margin-right: 5px !important;
  }

  /* Instant Search Box on Mobile */
  #nexusSearchProduct {
    height: 40px !important;
    font-size: 13px !important;
    border-radius: 8px !important;
  }

  /* Product Grid and Card on Mobile */
  .row.row2 {
    margin-left: -6px !important;
    margin-right: -6px !important;
  }

  .prod-item {
    padding-left: 6px !important;
    padding-right: 6px !important;
    margin-bottom: 12px !important;
  }

  .product {
    border-radius: 10px !important;
  }

  .product .product-head {
    padding: 12px !important;
    gap: 10px !important;
  }

  .product .product-head h4 {
    font-size: 13.5px !important;
    line-height: 1.4 !important;
  }

  .product .product-body {
    padding: 10px 12px !important;
    min-height: auto !important;
  }

  .product .product-body p {
    font-size: 12px !important;
    line-height: 1.45 !important;
    margin-bottom: 5px !important;
  }

  .product .product-footer {
    padding: 8px 12px !important;
  }

  .product .price strong {
    font-size: 16px !important;
  }

  .product .price span {
    font-size: 11px !important;
  }

  .product .product-buttons-box4 {
    padding: 10px 12px 12px 12px !important;
  }

  .product .buy-btn {
    height: 42px !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* Category Header Block */
  .category-header-box {
    padding: 12px 14px !important;
    border-radius: 10px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  /* Modal Buy Form Dialog on Mobile */
  .modal-dialog {
    margin: 10px !important;
  }

  .modal-content {
    border-radius: 14px !important;
  }

  /* Banking / Recharge page on Mobile */
  .nexus-bank-card {
    padding: 16px 14px !important;
    border-radius: 12px !important;
  }

  .nexus-qr-box {
    padding: 10px !important;
  }

  .nexus-qr-box img {
    max-width: 200px !important;
    width: 100% !important;
    height: auto !important;
  }

  .nexus-bank-item {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
    padding: 10px 12px !important;
  }

  .nexus-bank-val {
    width: 100% !important;
    justify-content: space-between !important;
  }

  .nexus-bank-val code {
    font-size: 13px !important;
    word-break: break-all !important;
  }
}

/* ============================================================
   12. NATIVE MOBILE BOTTOM APP BAR (Floating Navigation)
   ============================================================ */
.nexus-mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #ffffff;
  border-top: 1px solid var(--nexus-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 1050;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.07);
  padding-bottom: env(safe-area-inset-bottom);
}

.dark .nexus-mobile-nav {
  background: #18181b;
  border-top-color: #27272a;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.3);
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--nexus-text-muted);
  font-size: 11px;
  font-weight: 600;
  text-decoration: none !important;
  gap: 3px;
  flex: 1;
  height: 100%;
  transition: all 0.15s ease;
}

.mobile-nav-item i {
  font-size: 18px;
  transition: transform 0.15s ease;
}

.mobile-nav-item.active,
.mobile-nav-item:hover {
  color: var(--nexus-text-main) !important;
}

.mobile-nav-item.active i {
  transform: translateY(-2px);
  color: #0284c7;
}

.dark .mobile-nav-item.active,
.dark .mobile-nav-item:hover {
  color: #38bdf8 !important;
}

/* Hide bottom app bar whenever any modal is open so it NEVER covers modal buttons! */
body.modal-open .nexus-mobile-nav {
  display: none !important;
}

/* Modal responsive optimization */
#notice_popup {
  z-index: 1060 !important;
}

@media (max-width: 768px) {
  #notice_popup .modal-dialog {
    margin: 10px auto !important;
    max-height: calc(100vh - 20px) !important;
    width: calc(100% - 20px) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
  }

  #notice_popup .modal-content {
    max-height: calc(100vh - 20px) !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  #notice_popup .modal-body {
    max-height: calc(100vh - 160px) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 12px 14px !important;
  }

  #notice_popup .modal-footer {
    padding: 8px 12px !important;
    flex-shrink: 0 !important;
    background: #f8fafc !important;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05) !important;
  }
}

