/* ==========================================================================
   CJ DROPSHIPPING x WHOP - MASTER UI/UX DESIGN SYSTEM
   Exact 1:1 Pixel-Faithful Implementation matching 10-Screen Specification
   Desktop Sidebar + Mobile Bottom Tab Bar + Responsive Layouts
   ========================================================================== */

:root {
  /* Surface & Background */
  --bg-app: #F8F8F6;
  --bg-card: #FFFFFF;
  --bg-card-subtle: #FAFAF8;
  --bg-sidebar: #FFFFFF;
  --bg-input: #FFFFFF;
  --bg-hover: #F4F4F1;

  /* Brand Colors */
  --cj-orange: #FF6243;
  --cj-orange-hover: #E85336;
  --cj-orange-soft: rgba(255, 98, 67, 0.08);
  --cj-orange-glow: rgba(255, 98, 67, 0.2);
  --whop-coral: #FF5B37;
  --whop-dark: #111113;

  /* Text & Contrast */
  --text-main: #111113;
  --text-secondary: #4B5563;
  --text-muted: #71717A;
  --text-subtle: #9CA3AF;
  --text-white: #FFFFFF;

  /* Borders & Dividers */
  --border-card: #EAEAEA;
  --border-subtle: #F0F0EE;
  --border-focus: #FF6243;

  /* Status Tokens */
  --badge-green-bg: #DCFCE7;
  --badge-green-text: #16A34A;
  --badge-blue-bg: #DBEAFE;
  --badge-blue-text: #2563EB;
  --badge-amber-bg: #FEF3C7;
  --badge-amber-text: #D97706;
  --badge-red-bg: #FEE2E2;
  --badge-red-text: #DC2626;

  /* Typography */
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Ubuntu', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Consolas', 'Courier New', monospace;

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-float: 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-app);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

button, input, select, textarea {
  font-family: inherit;
}

/* ==========================================================================
   APP SHELL (DESKTOP SIDEBAR + HEADER + MAIN CONTENT)
   ========================================================================== */

.app-container {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* Sidebar */
.app-sidebar {
  width: 240px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-card);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: transform 0.25s ease;
}

.sidebar-brand {
  height: 64px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-cj-script {
  color: var(--cj-orange);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
}

.brand-sub-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-main);
  letter-spacing: -0.3px;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 13.5px;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.nav-item:hover {
  background-color: var(--bg-hover);
  color: var(--text-main);
}

.nav-item.active {
  background-color: var(--cj-orange-soft);
  color: var(--cj-orange);
  font-weight: 600;
}

.nav-item.active svg {
  color: var(--cj-orange);
  stroke: var(--cj-orange);
}

.nav-item svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  color: var(--text-muted);
}

/* Sidebar Footer Help Widget */
.sidebar-help-widget {
  margin: 12px;
  padding: 12px 14px;
  background-color: var(--bg-card-subtle);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.sidebar-help-widget .help-icon {
  font-size: 16px;
}

/* ==========================================================================
   APP MAIN WRAPPER & TOPBAR
   ========================================================================== */

.app-main {
  flex: 1;
  margin-left: 240px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-topbar {
  height: 64px;
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--border-card);
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 90;
}

.topbar-search-wrap {
  position: relative;
  width: 400px;
  max-width: 100%;
}

.topbar-search-wrap input {
  width: 100%;
  height: 38px;
  background-color: var(--bg-app);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 0 16px 0 40px;
  font-size: 13px;
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s;
}

.topbar-search-wrap input:focus {
  border-color: var(--cj-orange);
  background-color: #FFFFFF;
}

.topbar-search-wrap .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.notif-bell-btn {
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  position: relative;
  transition: background-color 0.15s;
}

.notif-bell-btn:hover {
  background-color: var(--bg-hover);
  color: var(--text-main);
}

.notif-bell-btn .unread-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background-color: var(--cj-orange);
  border: 2px solid #FFFFFF;
  border-radius: 50%;
}

.store-profile-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px 5px 6px;
  background-color: var(--bg-app);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: border-color 0.15s;
}

.store-profile-pill:hover {
  border-color: var(--cj-orange);
}

.store-avatar-squircle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--whop-dark);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.store-info-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.store-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.2;
}

.store-subtitle {
  font-size: 11px;
  color: var(--text-muted);
}

/* Page Content Viewport */
.app-content {
  flex: 1;
  padding: 28px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

/* ==========================================================================
   REUSABLE UI COMPONENTS (CARDS, BUTTONS, BADGES, TABS)
   ========================================================================== */

.ui-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

.btn-cj-primary {
  background-color: var(--cj-orange);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  font-size: 13.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.btn-cj-primary:hover {
  background-color: var(--cj-orange-hover);
}

.btn-cj-primary:active {
  transform: scale(0.98);
}

.btn-cj-outline {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 9px 20px;
  font-size: 13.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cj-outline:hover {
  background-color: var(--bg-hover);
  border-color: #D1D5DB;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.badge-pill.green {
  background-color: var(--badge-green-bg);
  color: var(--badge-green-text);
}

.badge-pill.blue {
  background-color: var(--badge-blue-bg);
  color: var(--badge-blue-text);
}

.badge-pill.amber {
  background-color: var(--badge-amber-bg);
  color: var(--badge-amber-text);
}

.badge-pill.red {
  background-color: var(--badge-red-bg);
  color: var(--badge-red-text);
}

/* Category Filter Pills */
.filter-pills-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.filter-pill {
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  background-color: #FFFFFF;
  border: 1px solid var(--border-card);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.filter-pill:hover {
  border-color: #D1D5DB;
  color: var(--text-main);
}

.filter-pill.active {
  background-color: var(--cj-orange);
  border-color: var(--cj-orange);
  color: #FFFFFF;
  font-weight: 600;
}

/* ==========================================================================
   02. DASHBOARD VIEW (KPIS + CHART + GLOBAL MAP)
   ========================================================================== */

.dashboard-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.greeting-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.4px;
}

.greeting-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.date-select-pill {
  background-color: #FFFFFF;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
}

/* 4 KPI Metrics Grid */
.kpi-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.kpi-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.kpi-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.kpi-icon-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.kpi-icon-circle.orange { background-color: #FFF0ED; color: var(--cj-orange); }
.kpi-icon-circle.green { background-color: #ECFDF5; color: #10B981; }
.kpi-icon-circle.purple { background-color: #F3E8FF; color: #8B5CF6; }
.kpi-icon-circle.blue { background-color: #EFF6FF; color: #3B82F6; }

.kpi-value-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.kpi-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.kpi-trend-pill {
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.kpi-trend-pill.positive {
  background-color: var(--badge-green-bg);
  color: var(--badge-green-text);
}

/* Dashboard 2-Column Split: Sales Chart + Global Orders */
.dashboard-main-split {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.chart-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-dot.revenue { background-color: var(--cj-orange); }
.legend-dot.orders { background-color: #9CA3AF; }

.chart-canvas-container {
  height: 260px;
  width: 100%;
  position: relative;
}

/* Global Orders Widget */
.country-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.country-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.country-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}

.country-flag-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--text-main);
}

.country-percent {
  font-weight: 600;
  color: var(--text-secondary);
}

.country-progress-track {
  height: 6px;
  background-color: var(--bg-app);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.country-progress-fill {
  height: 100%;
  background-color: var(--cj-orange);
  border-radius: var(--radius-pill);
}

/* World Map SVG Container */
.world-map-svg-wrap {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(255,98,67,0.04) 0%, rgba(255,255,255,0) 70%);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}

/* ==========================================================================
   ORDERS FEED TABLE (SCREEN 02 + BANNER 1)
   ========================================================================== */

.orders-table-card {
  margin-top: 24px;
}

.table-responsive {
  width: 100%;
  overflow-x: auto;
}

.cj-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.cj-table th {
  padding: 12px 16px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 12px;
  border-bottom: 1px solid var(--border-card);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.cj-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-main);
  vertical-align: middle;
}

.cj-table tr:hover td {
  background-color: var(--bg-card-subtle);
}

.table-product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-thumb {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-card);
  background-color: #F9FAFB;
}

.tracking-link {
  color: #2563EB;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.tracking-link:hover {
  color: #1D4ED8;
}

/* ==========================================================================
   03. PRODUCT DISCOVERY (FIND PRODUCTS)
   ========================================================================== */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.product-item-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}

.product-item-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.product-thumb-wrap {
  width: 100%;
  aspect-ratio: 1;
  background-color: #F9FAFB;
  position: relative;
  overflow: hidden;
}

.product-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.product-item-card:hover .product-thumb-wrap img {
  transform: scale(1.03);
}

.product-card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-rating-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #F59E0B;
  margin-bottom: 8px;
}

.rating-count {
  color: var(--text-muted);
}

.product-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
}

.product-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.btn-add-store {
  background-color: var(--cj-orange);
  color: #FFFFFF;
  border: none;
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s;
}

.btn-add-store:hover {
  background-color: var(--cj-orange-hover);
}

/* ==========================================================================
   04. ORDER TRACKING & DETAILS (TIMELINE + MAP)
   ========================================================================== */

.order-detail-header-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.order-detail-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
}

.tracking-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 28px;
  margin: 20px 0;
}

.tracking-timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background-color: #E5E7EB;
}

.timeline-step {
  position: relative;
  padding-bottom: 20px;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -28px;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #E5E7EB;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9CA3AF;
  font-size: 10px;
}

.timeline-step.completed .timeline-dot {
  background-color: #10B981;
  color: #FFFFFF;
}

.timeline-title {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text-main);
}

.timeline-time {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ==========================================================================
   05. STORE INTEGRATION & SETTINGS
   ========================================================================== */

.store-connection-hero {
  text-align: center;
  padding: 36px 20px;
  max-width: 580px;
  margin: 0 auto;
}

.connection-logos-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.connection-logo-circle {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-lg);
  background-color: #FFFFFF;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.connection-link-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--cj-orange-soft);
  color: var(--cj-orange);
  display: flex;
  align-items: center;
  justify-content: center;
}

.connection-features-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  max-width: 320px;
  margin: 24px auto;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.feature-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.feature-check-item svg {
  color: #10B981;
}

/* ==========================================================================
   07. CUSTOM SOURCING
   ========================================================================== */

.dropzone-box {
  border: 2px dashed #D1D5DB;
  border-radius: var(--radius-md);
  padding: 36px 20px;
  text-align: center;
  background-color: var(--bg-card-subtle);
  cursor: pointer;
  transition: all 0.2s;
}

.dropzone-box:hover {
  border-color: var(--cj-orange);
  background-color: var(--cj-orange-soft);
}

.dropzone-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 12px;
  color: var(--cj-orange);
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  background-color: #FFFFFF;
  outline: none;
  transition: border-color 0.15s;
}

.form-control:focus {
  border-color: var(--cj-orange);
}

textarea.form-control {
  height: auto;
  min-height: 90px;
  padding: 10px 14px;
}

/* ==========================================================================
   09. NOTIFICATIONS DRAWER & FEED
   ========================================================================== */

.notif-feed-list {
  display: flex;
  flex-direction: column;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.15s;
}

.notif-item:hover {
  background-color: var(--bg-card-subtle);
}

.notif-item.unread {
  background-color: rgba(255, 98, 67, 0.02);
}

.notif-icon-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.notif-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.notif-title {
  font-weight: 600;
  font-size: 13.5px;
  color: var(--text-main);
}

.notif-time {
  font-size: 11.5px;
  color: var(--text-muted);
}

.notif-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ==========================================================================
   10. GLOBAL SHIPPING INFO & FLIGHT MAP
   ========================================================================== */

.shipping-hero-section {
  text-align: center;
  margin-bottom: 32px;
}

.shipping-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.shipping-feature-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: left;
}

.shipping-feature-icon {
  font-size: 24px;
  margin-bottom: 10px;
}

/* ==========================================================================
   MOBILE NATIVE BOTTOM NAVIGATION (< 768px)
   ========================================================================== */

.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: #FFFFFF;
  border-top: 1px solid var(--border-card);
  z-index: 1000;
  padding: 0 10px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.mobile-nav-items {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 100%;
}

.mobile-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 500;
  flex: 1;
  text-align: center;
}

.mobile-nav-link svg {
  width: 20px;
  height: 20px;
}

.mobile-nav-link.active {
  color: var(--cj-orange);
  font-weight: 600;
}

.mobile-nav-link.active svg {
  stroke: var(--cj-orange);
}

.mobile-top-header {
  display: none;
  height: 56px;
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--border-card);
  padding: 0 16px;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 95;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (FULL MOBILE FLEXIBILITY)
   ========================================================================== */

@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .kpi-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-main-split {
    grid-template-columns: 1fr;
  }

  .shipping-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  /* Hide Desktop Sidebar and Topbar */
  .app-sidebar {
    display: none;
  }

  .app-topbar {
    display: none;
  }

  .app-main {
    margin-left: 0;
    padding-bottom: 70px; /* Space for bottom tab bar */
  }

  /* Show Mobile Header & Bottom Navigation */
  .mobile-top-header {
    display: flex;
  }

  .mobile-bottom-nav {
    display: block;
  }

  .app-content {
    padding: 16px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .kpi-metrics-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .order-detail-split {
    grid-template-columns: 1fr;
  }

  .shipping-features-grid {
    grid-template-columns: 1fr;
  }

  .greeting-title {
    font-size: 19px;
  }

  .ui-card {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .product-title {
    font-size: 13px;
  }

  .product-price {
    font-size: 14px;
  }

  .btn-add-store {
    padding: 6px 10px;
    font-size: 11.5px;
  }
}
