/* ==========================================================================
   BANJUL CASH V4 - ULTRA-PREMIUM GLASSMORPHISM DESIGN SYSTEM
   ========================================================================== */

:root {
  --font-family: 'Outfit', sans-serif;
  
  /* Deep Luxury Dark Color Palette */
  --bg-primary: #060913;
  --bg-secondary: rgba(17, 22, 37, 0.7);
  --bg-tertiary: rgba(28, 38, 62, 0.55);
  --bg-glow: radial-gradient(circle at top left, rgba(255, 159, 28, 0.08), transparent 45%),
             radial-gradient(circle at bottom right, rgba(16, 185, 129, 0.08), transparent 45%);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  
  /* Glow/Neon Accents */
  --primary: #ff9f1c;
  --primary-glow: 0 0 20px rgba(255, 159, 28, 0.45);
  --primary-gradient: linear-gradient(135deg, #ff9f1c 0%, #ff6b00 100%);
  
  --success: #10b981;
  --success-glow: 0 0 20px rgba(16, 185, 129, 0.4);
  --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%);
  
  --warning: #f59e0b;
  --warning-glow: 0 0 20px rgba(245, 158, 11, 0.35);
  
  --danger: #f43f5e;
  --danger-glow: 0 0 15px rgba(244, 63, 94, 0.3);
  
  /* Glassmorphism settings */
  --glass-border: 1px solid rgba(255, 255, 255, 0.09);
  --glass-border-light: 1px solid rgba(255, 255, 255, 0.05);
  --border-radius: 24px;
  --border-radius-lg: 32px;
  --shadow-main: 0 20px 50px rgba(0, 0, 0, 0.6);
  --backdrop-blur: blur(20px);
  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

body {
  font-family: var(--font-family);
  background-color: #03050a;
  color: var(--text-main);
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* App Container */
.app-container {
  width: 100%;
  max-width: 450px;
  height: 100%;
  max-height: 850px; /* Looks exactly like a floating premium smartphone */
  display: flex;
  flex-direction: column;
  background: var(--bg-glow), #060913;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 40px;
  position: relative;
  box-shadow: var(--shadow-main);
  overflow: hidden;
}

/* Header */
.app-header {
  height: 72px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 14, 26, 0.5);
  backdrop-filter: var(--backdrop-blur);
  border-bottom: var(--glass-border-light);
  z-index: 10;
}

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

.icon-logo {
  width: 28px;
  height: 28px;
  color: var(--primary);
  filter: drop-shadow(0 0 8px rgba(255, 159, 28, 0.5));
}

.logo-area h1 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(120deg, #ffffff 60%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn-icon {
  background: rgba(255, 255, 255, 0.04);
  border: var(--glass-border-light);
  color: var(--text-muted);
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-icon:active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  transform: scale(0.92);
}

.btn-icon svg {
  width: 20px;
  height: 20px;
}

/* Main Viewport */
.app-viewport {
  flex: 1;
  overflow-y: auto;
  position: relative;
}

.app-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.app-screen.active {
  display: block;
  opacity: 1;
}

/* UNIFIED DASHBOARD LAYOUT */
.dashboard-layout {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
  gap: 20px;
}

/* Motivating Circular progress card */
.stats-circular-card {
  background: var(--bg-secondary);
  backdrop-filter: var(--backdrop-blur);
  border: var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  position: relative;
  flex-shrink: 0;
}

/* Ambient glow under the circle */
.stats-circular-card::before {
  content: '';
  position: absolute;
  width: 120px;
  height: 120px;
  background: rgba(16, 185, 129, 0.15);
  border-radius: 50%;
  filter: blur(40px);
  z-index: 1;
  top: 40px;
}

.circular-progress-area {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, #0e1322 66%, transparent 70%),
              conic-gradient(var(--success) 0%, var(--success) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 4px 15px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(16, 185, 129, 0.2);
  border: 4px solid rgba(16, 185, 129, 0.15);
  position: relative;
  z-index: 2;
  animation: pulseGlow 3s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: inset 0 4px 15px rgba(0, 0, 0, 0.5), 0 8px 20px rgba(16, 185, 129, 0.15); }
  50% { box-shadow: inset 0 4px 15px rgba(0, 0, 0, 0.5), 0 8px 30px rgba(16, 185, 129, 0.35); }
}

.circular-text-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 3;
}

.circular-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 2px;
}

.circular-amount {
  font-size: 2.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 6px;
  letter-spacing: -0.5px;
}

.stats-sub-row {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: center;
  z-index: 2;
}

.stats-sub-badge {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 30px;
  border: var(--glass-border-light);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  cursor: pointer;
  transition: transform 0.2s, opacity 0.2s;
  user-select: none;
}

.stats-sub-badge:hover {
  opacity: 0.9;
}

.stats-sub-badge:active {
  transform: scale(0.95);
}

.badge-cash {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success);
}

.badge-debt {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--warning);
}

/* Product Catalog Grid Section */
.catalog-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
}

.catalog-section h2 {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.catalog-scroll-area {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 74px; /* Space for sticky cart */
}

.catalog-scroll-area::-webkit-scrollbar {
  display: none; /* Hide default scrollbars for premium look */
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

/* Product Card */
.product-card {
  background: var(--bg-secondary);
  backdrop-filter: var(--backdrop-blur);
  border: var(--glass-border);
  border-radius: var(--border-radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  aspect-ratio: 1.15;
}

.product-card:hover {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 159, 28, 0.2);
}

.product-card:active {
  transform: scale(0.94);
  background: var(--bg-tertiary);
  border-color: var(--primary);
  box-shadow: 0 2px 5px rgba(0,0,0,0.4);
}

.product-emoji {
  font-size: 3rem;
  line-height: 1;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.3));
  transition: var(--transition);
}

.product-card:active .product-emoji {
  transform: scale(0.9);
}

.product-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  width: 100%;
  text-align: center;
}

.product-price {
  font-weight: 700;
  color: var(--primary);
  font-size: 1.15rem;
  letter-spacing: -0.5px;
}

/* Quantity badge on card */
.product-card-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--success-gradient);
  color: white;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--success-glow), 0 4px 10px rgba(0,0,0,0.3);
  z-index: 2;
}

/* Dashboard Action Buttons row */
.dashboard-footer-actions {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 12px;
  margin-top: auto;
  z-index: 2;
}

.btn-dashboard-nav {
  background: var(--bg-secondary);
  backdrop-filter: var(--backdrop-blur);
  border: var(--glass-border);
  color: var(--text-main);
  border-radius: var(--border-radius);
  padding: 14px;
  font-family: var(--font-family);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.btn-dashboard-nav:active {
  background-color: var(--bg-tertiary);
  transform: translateY(-2px);
  border-color: var(--primary);
}

.btn-dashboard-nav svg {
  width: 22px;
  height: 22px;
  color: var(--text-muted);
  transition: var(--transition);
}

.btn-dashboard-nav:active svg {
  color: var(--primary);
  filter: drop-shadow(0 0 6px rgba(255, 159, 28, 0.4));
}

/* Sticky Checkout Bar (Glorious Orange Glow) */
.cart-preview-bar {
  position: absolute;
  bottom: 96px;
  left: 20px;
  right: 20px;
  height: 64px;
  background: var(--primary-gradient);
  border-radius: var(--border-radius);
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--primary-glow), 0 10px 30px rgba(255, 159, 28, 0.3);
  cursor: pointer;
  z-index: 5;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s;
  color: #ffffff;
}

.cart-preview-bar.hidden {
  transform: translateY(120px);
  opacity: 0;
  pointer-events: none;
}

.cart-preview-bar:active {
  transform: scale(0.97) translateY(0);
}

.cart-preview-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.cart-count-badge {
  background-color: #ffffff;
  color: #ff6b00;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.cart-preview-right {
  display: flex;
  align-items: center;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

/* GENERAL SCREEN & LIST STYLES */
.screen-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: var(--glass-border-light);
  padding-bottom: 12px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-header h2, .section-header h3 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.btn-back {
  background: transparent;
  border: none;
  color: var(--text-main);
  padding: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
  margin-left: -8px;
}

.btn-back:active {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(0.95);
}

.btn-small {
  background: var(--bg-tertiary);
  border: var(--glass-border);
  color: var(--text-main);
  padding: 8px 16px;
  border-radius: 12px;
  font-family: var(--font-family);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.btn-small:active {
  transform: scale(0.95);
  background-color: var(--primary-light);
  border-color: var(--primary);
}

.btn-danger-text {
  color: var(--danger);
  border-color: rgba(244, 63, 94, 0.2);
}

.list-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* List Item Card */
.list-item {
  background: var(--bg-secondary);
  border: var(--glass-border);
  border-radius: var(--border-radius);
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.list-item:active {
  transform: translateY(-2px);
  background: var(--bg-tertiary);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

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

.item-title {
  font-weight: 600;
  font-size: 1.05rem;
}

.item-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.item-right {
  font-size: 1.25rem;
  font-weight: 700;
}

/* Delete item from inventory button */
.btn-delete {
  background: none;
  border: none;
  color: var(--danger);
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-delete:active {
  background-color: var(--danger-light);
  transform: scale(0.9);
}

/* Debts details layout */
.debt-total-summary {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(245, 158, 11, 0.03) 100%);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--border-radius);
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.debt-total-summary span:first-child {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

.outstanding-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--warning);
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.2));
}

.search-bar input {
  width: 100%;
  background: var(--bg-tertiary);
  border: var(--glass-border);
  border-radius: 14px;
  padding: 14px 18px;
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.search-bar input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-light);
}

/* Form layout for inventory additions */
.form-card {
  background: var(--bg-tertiary);
  border: var(--glass-border);
  border-radius: var(--border-radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.form-row-grid {
  display: grid;
  grid-template-columns: 1fr 3.5fr;
  gap: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group input,
.modal-body input[type="text"],
.modal-body input[type="number"],
.modal-body select {
  width: 100%;
  box-sizing: border-box;
  background: var(--bg-secondary);
  border: var(--glass-border-light);
  border-radius: 12px;
  padding: 14px;
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.modal-body input[type="text"]:focus,
.modal-body input[type="number"]:focus,
.modal-body select:focus {
  border-color: var(--primary);
  background: var(--bg-tertiary);
}

.emoji-group input {
  text-align: center;
  font-size: 1.35rem;
}

.input-with-currency {
  position: relative;
  display: flex;
  align-items: center;
}

.currency-prefix {
  position: absolute;
  left: 16px;
  font-weight: 700;
  color: var(--primary);
}

#prod-price,
#customer-action-amount,
#prod-cost,
#expense-amount {
  width: 100%;
  background: var(--bg-secondary);
  border: var(--glass-border-light);
  border-radius: 12px;
  padding: 14px 14px 14px 38px;
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 1.1rem;
  font-weight: 600;
  outline: none;
  transition: var(--transition);
}

#prod-price:focus,
#customer-action-amount:focus,
#prod-cost:focus,
#expense-amount:focus {
  border-color: var(--primary);
  background: var(--bg-tertiary);
}

/* Modals overlays blur */
.app-modal {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(3, 5, 10, 0.7);
  backdrop-filter: blur(25px); /* Real frosted glass overlay */
  z-index: 100;
  display: none;
  align-items: flex-end;
  justify-content: center;
}

.app-modal.active {
  display: flex;
}

.modal-card {
  background: rgba(13, 18, 33, 0.92);
  border-top-left-radius: var(--border-radius-lg);
  border-top-right-radius: var(--border-radius-lg);
  border-top: var(--glass-border);
  width: 100%;
  max-width: 450px;
  padding: 28px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-height: 85%;
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.modal-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
  max-height: 380px;
}

.modal-body::-webkit-scrollbar {
  display: none;
}

/* Cart Items Container */
.cart-items-container {
  max-height: 220px;
  overflow-y: auto;
  border: var(--glass-border);
  border-radius: var(--border-radius);
  background-color: rgba(3, 5, 10, 0.4);
}

.cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: var(--glass-border-light);
}

.cart-item-row:last-child {
  border-bottom: none;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cart-item-name {
  font-weight: 600;
  font-size: 1rem;
}

.cart-item-price-unit {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-qty {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: var(--glass-border-light);
  background-color: var(--bg-tertiary);
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-qty:active {
  background-color: var(--primary-light);
  border-color: var(--primary);
  transform: scale(0.9);
}

.cart-item-qty {
  font-weight: 700;
  font-size: 1.1rem;
  min-width: 24px;
  text-align: center;
}

.customer-balance-banner {
  background: var(--bg-tertiary);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: var(--glass-border);
}

.customer-balance-banner span:first-child {
  color: var(--text-muted);
  font-weight: 600;
}

.balance-val {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--success);
}

.modal-notice-amount {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--warning);
  text-align: center;
  background: rgba(3, 5, 10, 0.4);
  padding: 12px;
  border-radius: var(--border-radius);
  border: var(--glass-border);
}

.divider-text {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 700;
  position: relative;
}

.divider-text::before,
.divider-text::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 38%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.08);
}

.divider-text::before { left: 0; }
.divider-text::after { right: 0; }

.modal-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.modal-footer.flex-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.button-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 12px;
}

.btn-secondary {
  background: var(--bg-tertiary);
  border: var(--glass-border);
  color: var(--text-muted);
  padding: 16px;
  border-radius: 14px;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:active {
  background-color: rgba(255, 255, 255, 0.05);
  transform: scale(0.97);
}

.btn-success-fill {
  background: var(--success-gradient);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 14px;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--success-glow);
}

.btn-success-fill:active {
  transform: scale(0.97);
}

.btn-warning-fill {
  background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 14px;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--warning-glow);
}

.btn-warning-fill:active {
  transform: scale(0.97);
}

.btn-action {
  border: none;
  border-radius: 14px;
  padding: 16px;
  font-family: var(--font-family);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-action svg {
  width: 20px;
  height: 20px;
}

.btn-success {
  background: var(--success-gradient);
  color: white;
  box-shadow: var(--success-glow);
}

.btn-success:active {
  transform: scale(0.97);
}

.btn-warning {
  background-color: var(--warning-light);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.btn-warning:active {
  background: linear-gradient(135deg, var(--warning) 0%, #d97706 100%);
  color: white;
  transform: scale(0.97);
}

.w-full {
  width: 100%;
}

/* ==========================================================================
   DESKTOP RESPONSIVE LAYOUT
   ========================================================================== */
@media (min-width: 768px) {
  body {
    padding: 20px;
  }
  
  .app-container {
    max-width: 1200px;
    max-height: 90vh;
    border-radius: 24px;
  }

  .dashboard-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas: 
      "sidebar catalog"
      "footer catalog";
    gap: 24px;
    padding: 30px;
  }

  .stats-circular-card {
    grid-area: sidebar;
  }

  .catalog-section {
    grid-area: catalog;
  }

  .dashboard-footer-actions {
    grid-area: footer;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: auto;
  }

  .btn-dashboard-nav {
    flex-direction: row;
    justify-content: flex-start;
    padding: 16px 20px;
  }

  .btn-dashboard-nav svg {
    margin-right: 12px;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
  }

  /* Cart preview bar inside the grid */
  .cart-preview-bar {
    left: auto;
    right: 44px; /* Account for dashboard padding + scrollbar */
    width: calc(100% - 320px - 74px); /* Full width minus sidebar and gaps */
    bottom: 30px;
  }

  .app-modal {
    align-items: center;
    padding: 20px;
  }
  
  .modal-card {
    border-radius: var(--border-radius-lg);
    max-height: 90vh;
    width: 100%;
    max-width: 500px;
  }

  /* RESTORE SCROLLBARS ON DESKTOP */
  ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    display: block;
  }
  
  ::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
  }
  
  ::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
  }
  
  ::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
  }

  .catalog-scroll-area::-webkit-scrollbar,
  .modal-body::-webkit-scrollbar {
    display: block;
  }
}
