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

/* ==========================================
     1. RESET & GLOBALS
     ========================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', 'Prompt', sans-serif;
}

:root {
  --bg-primary: #faf8f2;     /* Warm Cream Background */
  --bg-secondary: #ffffff;   /* Pure White for Cards */
  --bg-tertiary: #f2efe4;    /* Deeper Cream for Hover/Selected */
  --text-primary: #134e1e;   /* Dark Forest Green from Logo */
  --text-secondary: #5c645c; /* Muted Olive-Charcoal for Descriptions */
  --text-muted: #8c968c;     /* Muted grey-green */
  
  --primary: #134e1e;        /* Dark Forest Green */
  --primary-hover: #0c3314;
  --primary-glow: rgba(19, 78, 30, 0.15);
  
  --accent: #c29738;         /* Gold/Ochre from Logo */
  --accent-hover: #a8812c;
  --accent-glow: rgba(194, 151, 56, 0.15);
  
  --info: #3b82f6;
  --danger: #ef4444;
  --danger-hover: #dc2626;
  
  --glass: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(19, 78, 30, 0.08);
  --glass-shadow: 0 8px 24px rgba(19, 78, 30, 0.06);
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-prompt: 'Prompt', sans-serif;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #d4cfbe;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

/* ==========================================
     2. GLOBAL UTILITIES & BUTTONS
     ========================================== */
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

.btn {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-prompt);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid rgba(19, 78, 30, 0.08);
}

.btn-secondary:hover {
  background: rgba(19, 78, 30, 0.05);
}

.btn-danger {
  background: var(--danger);
  color: #ffffff;
}

.btn-danger:hover {
  background: var(--danger-hover);
}

.btn-sm {
  padding: 4px 10px;
  font-size: 0.75rem;
}

/* ==========================================
     3. WORKSPACE SIMULATOR BAR
     ========================================== */
#simulator-bar {
  background: #1e1b4b; /* Deep Indigo operational bar */
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.sim-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  color: #c7d2fe;
}

.sim-logo span {
  background: linear-gradient(135deg, var(--accent), #ef4444);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.role-selectors {
  display: flex;
  gap: 8px;
}

.role-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #a5b4fc;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}

.role-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.role-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 0 12px var(--accent-glow);
}

.sim-url-bar {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  padding: 4px 16px;
  width: 40%;
  font-size: 0.75rem;
  color: #818cf8;
  gap: 8px;
}

.sim-url-bar input {
  background: transparent;
  border: none;
  color: #e0e7ff;
  width: 100%;
  outline: none;
  font-family: monospace;
}

/* Page Containers */
.page-container {
  display: none;
  min-height: calc(100vh - 54px);
  padding: 20px;
}

.page-container.active {
  display: block;
  animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Glassmorphism Panel */
.glass-panel {
  background: var(--bg-secondary);
  border: 1px solid rgba(19, 78, 30, 0.08);
  box-shadow: var(--glass-shadow);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

/* ==========================================
     4. CUSTOMER APP VIEW STYLING
     ========================================== */
#customer-view {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 0 80px 0;
  background: var(--bg-primary);
  min-height: 100vh;
  box-shadow: 0 0 40px rgba(19, 78, 30, 0.05);
  position: relative;
}

/* Customer Header */
.cust-header-container {
  background: var(--bg-secondary);
  padding: 15px 20px;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(19, 78, 30, 0.05);
}

.cust-brand-row {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
  margin-bottom: 15px;
}

.cust-brand-logo-img {
  height: 52px;
  object-fit: contain;
}

.cust-logo-fallback {
  text-align: center;
  font-family: var(--font-prompt);
}

.cust-logo-fallback h1 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
}

.cust-logo-fallback p {
  font-size: 0.65rem;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 1px;
}

/* Float Bag Header Icon */
.cust-header-bag-btn {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary);
  color: white;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.cust-header-bag-btn:hover {
  background: var(--primary-hover);
}

.cust-bag-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--accent);
  color: white;
  font-size: 0.65rem;
  font-weight: bold;
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-secondary);
}

/* LINE User Profile Widget (Left of Brand Logo) */
.line-user-widget {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  display: none;
  align-items: center;
  gap: 8px;
  background: rgba(19, 78, 30, 0.05);
  padding: 4px 10px 4px 4px;
  border-radius: 20px;
  border: 1px solid rgba(19, 78, 30, 0.1);
}
.line-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--primary);
  object-fit: cover;
}
.line-user-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Sub-Navbar Navigation Links */
.cust-sub-nav {
  display: flex;
  justify-content: space-around;
  list-style: none;
  font-size: 0.85rem;
  font-family: var(--font-prompt);
  font-weight: 500;
  padding-top: 5px;
}

.cust-sub-nav-item a {
  text-decoration: none;
  color: var(--text-secondary);
  transition: var(--transition);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.cust-sub-nav-item.active a, .cust-sub-nav-item a:hover {
  color: var(--primary);
  font-weight: 600;
}

/* Popular Categories Section */
.circular-categories-section {
  padding: 20px;
}

.section-label {
  font-family: var(--font-prompt);
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.section-title {
  font-family: var(--font-prompt);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 15px;
}

.circular-categories-grid {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  overflow-x: auto;
  padding: 5px 0;
  scrollbar-width: none;
}

.circular-categories-grid::-webkit-scrollbar {
  display: none;
}

.circular-cat-card {
  flex: 0 0 auto;
  text-align: center;
  cursor: pointer;
  width: 90px;
}

.circular-cat-node {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 1px solid rgba(19, 78, 30, 0.08);
  box-shadow: 0 4px 12px rgba(19, 78, 30, 0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px auto;
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}

.circular-cat-card:hover .circular-cat-node {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 6px 16px var(--accent-glow);
}

.circular-cat-node span.icon-placeholder {
  font-size: 1.8rem;
  color: var(--primary);
}

.circular-cat-title {
  font-family: var(--font-prompt);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

.circular-cat-count {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

/* Banner Hero Section */
.hero-banner-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(19, 78, 30, 0.05);
  box-shadow: 0 8px 24px rgba(19, 78, 30, 0.03);
  margin: 10px 20px 20px 20px;
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.hero-tag {
  background: #fdfaf2;
  border: 1px solid rgba(194, 151, 56, 0.2);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-prompt);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
}

.hero-title span.highlight-gold {
  color: var(--accent);
}

.hero-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.hero-buttons {
  display: flex;
  gap: 8px;
}

.hero-btn-fill {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-prompt);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.hero-btn-fill:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.hero-btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-prompt);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.hero-btn-outline:hover {
  background: rgba(19, 78, 30, 0.03);
}

/* Today's Recommended Banner Card */
.recom-section {
  padding: 10px 20px;
}

.recom-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  cursor: pointer;
  background: #ffffff;
  border: 1px solid rgba(19, 78, 30, 0.05);
}

.recom-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}

.recom-card:hover .recom-img {
  transform: scale(1.02);
}

.recom-float-panel {
  padding: 12px 16px;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(19, 78, 30, 0.04);
}

.recom-tag-label {
  font-family: var(--font-prompt);
  font-size: 0.65rem;
  color: var(--accent);
  font-weight: 700;
  text-transform: uppercase;
}

.recom-title {
  font-family: var(--font-prompt);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
}

.recom-desc {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.recom-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary);
}

.recom-add-btn {
  background: var(--primary);
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-family: var(--font-prompt);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.recom-add-btn:hover {
  background: var(--primary-hover);
}

/* Catalog Catalog Filters & Grid Layout */
.catalog-section {
  padding: 20px;
}

.cust-search-box {
  position: relative;
}

.cust-search-box input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid rgba(19, 78, 30, 0.08);
  padding: 12px 16px 12px 40px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(19, 78, 30, 0.01);
}

.cust-search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.cust-search-box span.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* Category Catalog Horizontal Pills */
.catalog-pills-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 5px 0;
  margin-bottom: 10px;
  scrollbar-width: none;
}

.catalog-pills-row::-webkit-scrollbar {
  display: none;
}

.catalog-pill-btn {
  flex: 0 0 auto;
  border: 1px solid rgba(19, 78, 30, 0.08);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-family: var(--font-prompt);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.catalog-pill-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  font-weight: 600;
}

/* Double Column Menu Grid (Matches Screen Target) */
.double-column-menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 15px;
}

.catalog-card {
  background: var(--bg-secondary);
  border: 1px solid rgba(19, 78, 30, 0.04);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(19, 78, 30, 0.01);
  cursor: pointer;
}

.catalog-card:hover {
  transform: translateY(-2px);
  border-color: rgba(194, 151, 56, 0.2);
  box-shadow: 0 6px 20px rgba(19, 78, 30, 0.05);
}

.catalog-card-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f0ebd9;
}

.catalog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-card-rec-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--accent);
  color: #ffffff;
  font-size: 0.65rem;
  font-family: var(--font-prompt);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.catalog-card-info {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}

.catalog-card-title {
  font-family: var(--font-prompt);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.catalog-card-desc {
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.catalog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.catalog-card-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent);
}

.catalog-card-price span.currency {
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 2px;
}

.catalog-circle-add-btn {
  background: var(--primary);
  color: white;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.catalog-card:hover .catalog-circle-add-btn {
  background: var(--accent);
}

/* Pinned Bottom Cart Bar */
.sticky-bottom-cart-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: var(--primary);
  color: #ffffff;
  padding: 16px 20px;
  display: none;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 -4px 20px rgba(19, 78, 30, 0.15);
  cursor: pointer;
  z-index: 999;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  transition: var(--transition);
}

.sticky-bottom-cart-bar:hover {
  background: var(--primary-hover);
}

.sticky-cart-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-prompt);
  font-size: 0.95rem;
  font-weight: 500;
}

.sticky-cart-icon {
  font-size: 1.1rem;
}

.sticky-cart-right {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

/* ==========================================
     5. DETAILS CUSTOMIZER MODALS & CHECKOUT
     ========================================== */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(19, 78, 30, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: flex-end;
}

@media(min-width: 481px) {
  .overlay {
    align-items: center;
  }
}

.overlay.active {
  display: flex;
}

.modal-sheet {
  background: var(--bg-secondary);
  border: 1px solid rgba(19, 78, 30, 0.06);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-primary);
}

@media(min-width: 481px) {
  .modal-sheet {
    border-radius: var(--radius-lg);
    max-height: 85vh;
  }
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(19, 78, 30, 0.1);
  color: var(--primary);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--primary);
  color: #ffffff;
}

.modal-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.modal-body {
  padding: 20px;
}

.modal-title {
  font-family: var(--font-prompt);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.modal-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.option-group {
  margin-bottom: 20px;
  border-top: 1px solid rgba(19, 78, 30, 0.05);
  padding-top: 15px;
}

.option-group-title {
  font-family: var(--font-prompt);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}

.option-group-title span.required-tag {
  font-size: 0.65rem;
  color: var(--accent);
  background: rgba(194, 151, 56, 0.1);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.choice-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-primary);
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(19, 78, 30, 0.03);
  margin-bottom: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.choice-row:hover {
  background: var(--bg-tertiary);
}

.choice-row.selected {
  border-color: var(--primary);
  background: rgba(19, 78, 30, 0.03);
}

.choice-label {
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.choice-radio {
  width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  border: 2px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.choice-row.selected .choice-radio {
  border-color: var(--primary);
}

.choice-row.selected .choice-radio::after {
  content: '';
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: var(--radius-full);
}

.choice-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.choice-row.selected .choice-checkbox {
  border-color: var(--primary);
  background: var(--primary);
}

.choice-row.selected .choice-checkbox::after {
  content: '✓';
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
}

.choice-price {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

.item-note-input {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid rgba(19, 78, 30, 0.08);
  border-radius: var(--radius-md);
  padding: 10px;
  color: var(--text-primary);
  font-size: 0.8rem;
  outline: none;
  resize: none;
  height: 60px;
}

.item-note-input:focus {
  border-color: var(--primary);
}

.modal-footer {
  position: sticky;
  bottom: 0;
  background: var(--bg-secondary);
  border-top: 1px solid rgba(19, 78, 30, 0.05);
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--bg-primary);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(19, 78, 30, 0.05);
}

.qty-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.25rem;
  cursor: pointer;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-val {
  font-weight: 700;
  font-size: 0.95rem;
  min-width: 20px;
  text-align: center;
}

.btn-add-cart {
  background: var(--primary);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-prompt);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px var(--primary-glow);
  transition: var(--transition);
}

.btn-add-cart:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* ==========================================
     5.2 CHECKOUT FORM
     ========================================== */
.checkout-section {
  border-bottom: 1px solid rgba(19, 78, 30, 0.05);
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.checkout-section-title {
  font-family: var(--font-prompt);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-box {
  background: var(--bg-primary);
  border: 1px dashed rgba(19, 78, 30, 0.2);
  border-radius: var(--radius-md);
  padding: 15px;
  text-align: center;
}

.auth-profile {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--bg-primary);
  border: 1px solid rgba(19, 78, 30, 0.05);
  padding: 12px;
  border-radius: var(--radius-md);
}

.auth-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  border: 2px solid var(--accent);
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.form-group input, .form-group textarea {
  width: 100%;
  background: var(--bg-primary);
  border: 1px solid rgba(19, 78, 30, 0.08);
  border-radius: var(--radius-sm);
  padding: 10px;
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
}

.form-group input:focus, .form-group textarea:focus {
  border-color: var(--primary);
}

.checkout-item-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(19, 78, 30, 0.05);
}

.checkout-item-name {
  font-family: var(--font-prompt);
  font-weight: 700;
  color: var(--primary);
}

.price-summary {
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  padding: 15px;
  margin-top: 15px;
  border: 1px solid rgba(19, 78, 30, 0.04);
}

.price-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.price-row:last-child {
  margin-bottom: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(19, 78, 30, 0.08);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
}

.qr-payment-card {
  background: white;
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  max-width: 260px;
  margin: 0 auto 15px auto;
  border: 1px solid rgba(19, 78, 30, 0.08);
}

.qr-title {
  font-family: var(--font-prompt);
  font-weight: 700;
  color: #0b0f19;
}

.qr-title span.prompt-tag {
  background: #003366;
  color: #fff;
  font-size: 0.55rem;
  padding: 2px 4px;
  border-radius: 4px;
}

.qr-amount {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  border-top: 1px dashed rgba(19, 78, 30, 0.1);
  padding-top: 8px;
}

.slip-upload-area {
  border: 2px dashed rgba(19, 78, 30, 0.2);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  background: rgba(19, 78, 30, 0.01);
}

.slip-upload-area:hover {
  border-color: var(--accent);
  background: rgba(194, 151, 56, 0.02);
}

/* ==========================================
     5.3 ORDER STATUS STEPPER
     ========================================== */
.status-tracker {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 25px 0;
  position: relative;
}

.status-tracker::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--bg-tertiary);
  z-index: 1;
}

.status-step {
  display: flex;
  gap: 15px;
  align-items: flex-start;
  z-index: 2;
}

.step-node {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--bg-tertiary);
  border: 3px solid var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.step-info h4 {
  font-family: var(--font-prompt);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.step-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.status-step.active .step-node {
  background: var(--primary);
  color: white;
  box-shadow: 0 0 15px var(--primary-glow);
}

.status-step.active .step-info h4 {
  color: var(--primary);
}

.status-step.completed .step-node {
  background: var(--accent);
  color: white;
}

.status-step.completed .step-info h4 {
  color: var(--text-primary);
}

/* ==========================================
     6. STORE ADMIN LAYOUT (REFACTORED GRID)
     ========================================== */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 15px;
}

@media(min-width: 769px) {
  .admin-grid {
    grid-template-columns: 240px 1fr;
  }
}

.admin-sidebar {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 15px;
  height: fit-content;
  border: 1px solid rgba(19, 78, 30, 0.05);
  box-shadow: var(--glass-shadow);
}

.admin-menu-list {
  list-style: none;
  display: flex;
  flex-direction: row;
  overflow-x: auto;
  gap: 5px;
  scrollbar-width: none;
}

.admin-menu-list::-webkit-scrollbar {
  display: none;
}

@media (min-width: 769px) {
  .admin-menu-list {
    flex-direction: column;
    overflow-x: visible;
  }
}

.admin-menu-item {
  padding: 10px 15px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: var(--transition);
}

.admin-menu-item:hover {
  background: var(--bg-primary);
  color: var(--primary);
}

.admin-menu-item.active {
  background: rgba(19, 78, 30, 0.06);
  color: var(--primary);
  font-weight: 600;
}

/* Summary Cards */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 15px;
  margin-bottom: 20px;
}

.stat-card {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid rgba(19, 78, 30, 0.05);
  text-align: center;
  box-shadow: var(--glass-shadow);
}

.stat-title {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 5px;
  font-weight: 600;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Admin Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  margin-top: 10px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.admin-table th {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  padding: 12px 15px;
  font-weight: 600;
  border-bottom: 1px solid rgba(19, 78, 30, 0.1);
}

.admin-table td {
  padding: 12px 15px;
  border-bottom: 1px solid rgba(19, 78, 30, 0.04);
  color: var(--text-secondary);
}

.admin-table tr:hover td {
  background: rgba(19, 78, 30, 0.01);
  color: var(--text-primary);
}

/* ==========================================
     7. KITCHEN BOARD LAYOUT (REFACTORED GRID)
     ========================================== */
.kitchen-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-top: 15px;
}

@media(min-width: 769px) {
  .kitchen-board {
    grid-template-columns: repeat(4, 1fr);
  }
}

.kitchen-col {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 15px;
  min-height: 400px;
  border: 1px solid rgba(19, 78, 30, 0.05);
  box-shadow: var(--glass-shadow);
}

.kitchen-col-title {
  font-family: var(--font-prompt);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--bg-primary);
}

.kitchen-col-count {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

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

.kitchen-card {
  background: var(--bg-primary);
  border: 1px solid rgba(19, 78, 30, 0.06);
  border-radius: var(--radius-md);
  padding: 12px;
  position: relative;
  transition: var(--transition);
}

.kitchen-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(194, 151, 56, 0.05);
}

.kitchen-card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.75rem;
}

.kitchen-card-time {
  color: var(--accent);
  font-weight: 700;
}

.kitchen-card-items {
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.kitchen-card-item {
  margin-bottom: 6px;
  line-height: 1.4;
}

.kitchen-card-item-qty {
  font-weight: 700;
  color: var(--accent);
}

.kitchen-card-item-options {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-left: 10px;
  background: rgba(255, 255, 255, 0.5);
  padding: 4px;
  border-radius: 4px;
  border-left: 2px solid var(--accent);
}

.kitchen-card-note {
  font-size: 0.75rem;
  color: var(--danger);
  background: rgba(239, 68, 68, 0.05);
  padding: 6px;
  border-radius: 4px;
  margin-top: 8px;
  border: 1px dashed rgba(239, 68, 68, 0.2);
}

.kitchen-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}

.kitchen-card-actions button {
  flex-grow: 1;
}

/* ==========================================
     8. MARKETING LINK BUILDER & CRM PREFS
     ========================================== */
.link-generator-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media(min-width: 769px) {
  .link-generator-panel {
    grid-template-columns: 1fr 1fr;
  }
}

.qr-display-box {
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(19, 78, 30, 0.05);
  box-shadow: var(--glass-shadow);
}

.generated-qr-wrapper {
  background: white;
  padding: 15px;
  border-radius: var(--radius-md);
  display: inline-block;
  margin: 15px 0;
  border: 1px solid rgba(19, 78, 30, 0.08);
}

.generated-link-display {
  background: var(--bg-primary);
  padding: 10px 15px;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 0.8rem;
  word-break: break-all;
  border: 1px solid rgba(19, 78, 30, 0.05);
  margin-bottom: 10px;
  color: var(--primary);
}

/* CRM Preferences Grid */
.crm-preferences-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 15px;
}

.crm-pref-card {
  background: var(--bg-primary);
  padding: 15px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(19, 78, 30, 0.04);
  text-align: center;
}

.crm-pref-label {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.crm-pref-value {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
  font-family: var(--font-prompt);
}

.sound-control-btn {
  background: var(--bg-tertiary);
  border: 1px solid rgba(19, 78, 30, 0.08);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

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

/* ==========================================
     6. STORE LEDGER STYLES
   ========================================== */
.ledger-badge-income {
  background: rgba(19, 78, 30, 0.08);
  color: var(--primary);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-block;
  text-align: center;
}

.ledger-badge-expense {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 700;
  display: inline-block;
  text-align: center;
}

.ledger-cat-tag {
  background: rgba(19, 78, 30, 0.04);
  color: var(--text-secondary);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
  display: inline-block;
}

/* Best-Sellers widget styles */
.bestseller-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: rgba(19, 78, 30, 0.02);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
  font-size: 0.78rem;
  transition: var(--transition);
}

.bestseller-item:hover {
  background: rgba(19, 78, 30, 0.05);
  transform: translateX(2px);
}

.bestseller-rank {
  font-weight: 800;
  color: var(--accent);
  min-width: 20px;
  font-size: 0.85rem;
}

.bestseller-name {
  flex-grow: 1;
  font-weight: 600;
  margin-left: 5px;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 180px;
}

.bestseller-qty {
  font-weight: 700;
  color: var(--primary);
  background: rgba(19, 78, 30, 0.06);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
}

/* ==========================================
   MOBILE POS SYSTEM STYLES
   ========================================== */
.pos-tab-btn {
  background: #f3f4f6;
  color: var(--text-secondary);
  border: 1px solid rgba(0,0,0,0.05);
}
.pos-tab-btn.active {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 12px rgba(19, 78, 30, 0.15);
}

.pos-category-btn {
  color: var(--text-secondary);
  background: white;
  transition: all 0.2s;
}
.pos-category-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 10px rgba(19, 78, 30, 0.1);
}

.pos-menu-card {
  background: white;
  border: 1.5px solid rgba(19, 78, 30, 0.06);
  border-radius: var(--radius-md);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.015);
  display: flex;
  flex-direction: column;
  height: 148px;
  transition: all 0.2s;
  user-select: none;
  overflow: hidden;
}
.pos-menu-card:active {
  transform: scale(0.96);
  background: rgba(19, 78, 30, 0.02);
  border-color: var(--primary);
}

.pos-menu-card-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.25;
}
.pos-menu-card-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent);
  margin-top: 5px;
}

.pos-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.pos-modal-sheet {
  background: white;
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 18px 20px 25px 20px;
  box-shadow: 0 -4px 25px rgba(0,0,0,0.15);
  animation: posSlideUp 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

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

.pos-mod-topup-btn {
  transition: all 0.2s;
}
.pos-mod-topup-btn.active {
  background: var(--primary) !important;
  color: white !important;
  border-color: var(--primary) !important;
  font-weight: 700;
}

.pos-pay-btn.active {
  background: var(--primary) !important;
  color: white !important;
  border-color: var(--primary) !important;
  box-shadow: 0 4px 10px rgba(19, 78, 30, 0.1);
}

