/* OmniBiz Universal Web/PWA Modern SaaS Stylesheet */
:root {
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-light: #EFF6FF;
  --secondary: #1E40AF;
  --bg-main: #F8FAFC;
  --surface: #FFFFFF;
  --surface-subtle: #F1F5F9;
  --border: #E2E8F0;
  --border-focus: #94A3B8;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-inverse: #FFFFFF;
  --danger: #DC2626;
  --danger-light: #FEF2F2;
  --success: #16A34A;
  --success-light: #F0FDF4;
  --warning: #D97706;
  --warning-light: #FFFBEB;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* RTL Support */
html[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

/* --- Top Unified Platform Bar --- */
.platform-bar {
  background-color: #0F172A;
  color: #F8FAFC;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  font-size: 13px;
}

.platform-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #FFFFFF;
  text-decoration: none;
}

.platform-brand-badge {
  background: linear-gradient(135deg, #3B82F6, #1D4ED8);
  color: white;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.platform-role-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.1);
  padding: 3px;
  border-radius: var(--radius-md);
}

.role-btn {
  background: transparent;
  border: none;
  color: #CBD5E1;
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.role-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.platform-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.platform-select {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  cursor: pointer;
  outline: none;
}

.platform-select option {
  background: #1E293B;
  color: white;
}

/* --- Container & Main Layouts --- */
.app-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* --- Customer Storefront Styles (Android Jetpack Compose M3 Fidelity) --- */
.customer-store-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  position: sticky;
  top: 48px;
  z-index: 900;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.store-branding-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.store-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}

.store-logo-box {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: rgba(37, 99, 235, 0.12);
  border: 1.5px solid rgba(37, 99, 235, 0.25);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
  overflow: hidden;
}

.store-logo-box svg {
  width: 20px;
  height: 20px;
  color: var(--primary);
}

.store-info-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.store-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  letter-spacing: -0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 4px;
}

.store-subtitle-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 500;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-status-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

.store-status-dot.open {
  background-color: #16A34A;
}

.store-status-dot.closed {
  background-color: #DC2626;
}

.store-status-text {
  font-weight: 600;
}

.store-status-text.open {
  color: #16A34A;
}

.store-status-text.closed {
  color: #DC2626;
}

.store-type-tag {
  color: var(--text-muted);
}

/* Header Controls: Search, Cart, Language */
.header-actions-row {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.header-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  cursor: pointer;
  position: relative;
  transition: background-color 0.15s ease;
}

.header-icon-btn:hover {
  background-color: var(--surface-subtle);
}

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

.header-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-full);
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.header-lang-chip {
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  padding: 0 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  transition: var(--transition);
}

.header-lang-chip:hover {
  border-color: var(--primary);
  background: var(--primary-light);
}

.header-lang-chip svg {
  width: 14px;
  height: 14px;
}

.location-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-main);
  font-weight: 600;
  background: rgba(241, 245, 249, 0.6);
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.location-bar:hover {
  background: var(--surface-subtle);
}

.location-bar svg.pin-icon {
  color: var(--primary);
  flex-shrink: 0;
}

.location-bar span {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.customer-search-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrapper svg.search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  pointer-events: none;
}

html[dir="rtl"] .search-input-wrapper svg.search-icon {
  left: auto;
  right: 12px;
}

.search-clear-btn {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

html[dir="rtl"] .search-clear-btn {
  right: auto;
  left: 10px;
}

.customer-search-input {
  width: 100%;
  padding: 8px 36px 8px 36px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  outline: none;
  transition: var(--transition);
}

.customer-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* --- Customer Views Container --- */
.customer-views {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding: 16px;
  padding-bottom: 90px;
}

.view-section {
  display: none;
}

.view-section.active {
  display: block;
}

/* --- Promotional Banners Section (Android Carousel Fidelity) --- */
.carousel-section {
  margin-bottom: 20px;
}

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

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.2px;
}

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

.carousel-scroll-wrapper {
  overflow-x: auto;
  display: flex;
  gap: 12px;
  padding: 4px 2px 10px 2px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.carousel-scroll-wrapper::-webkit-scrollbar {
  height: 4px;
}

.carousel-scroll-wrapper::-webkit-scrollbar-thumb {
  background: var(--border-focus);
  border-radius: var(--radius-full);
}

/* Android BannerCard Specification */
.banner-card {
  flex: 0 0 340px;
  border-radius: 16px;
  padding: 20px;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 155px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
}

.banner-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.banner-badge {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.banner-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: white;
  margin-bottom: 4px;
}

.banner-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 12px;
}

.banner-cta-row {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
}

.banner-cta-btn {
  background: #FFFFFF;
  color: #000000;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: background 0.15s ease, transform 0.15s ease;
}

.banner-cta-btn:hover {
  background: #F1F5F9;
  transform: scale(1.02);
}

/* Vertical Banners Section (Android Height 235dp) */
.vertical-banners-wrapper {
  height: 235px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 8px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 10px;
  scrollbar-width: thin;
}

.vertical-banners-wrapper .banner-card {
  flex: 0 0 auto;
  width: 100%;
}

/* --- Category Chips / Circles --- */
.category-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 12px 2px;
  margin-bottom: 20px;
  -webkit-overflow-scrolling: touch;
}

.category-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex: 0 0 76px;
}

.category-avatar {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--surface-subtle);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--primary);
  font-size: 15px;
  transition: var(--transition);
}

.category-chip:hover .category-avatar,
.category-chip.active .category-avatar {
  border-color: var(--primary);
  background: var(--primary-light);
  transform: scale(1.05);
}

.category-name {
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  color: var(--text-main);
  max-width: 76px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Product Cards Grid (Android DynamicProductCard Fidelity) --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

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

.product-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.product-image-container {
  height: 130px;
  background: linear-gradient(to bottom, rgba(37, 99, 235, 0.08), rgba(241, 245, 249, 0.4));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 10px;
}

.product-icon-graphic {
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.product-icon-graphic svg {
  width: 44px;
  height: 44px;
  color: var(--primary);
}

.product-graphic-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  text-align: center;
  max-width: 90%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-discount-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #15803D;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

html[dir="rtl"] .product-discount-badge {
  left: auto;
  right: 8px;
}

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

.product-name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 2px 0;
  color: var(--text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-subname {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.product-desc {
  font-size: 11px;
  color: rgba(100, 116, 139, 0.85);
  line-height: 1.3;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-attributes-preview {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}

.attr-text-item {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-footer {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 6px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.current-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.original-price {
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: line-through;
}

/* Action button or quantity stepper */
.product-action-container {
  width: 100%;
}

.add-btn {
  width: 100%;
  height: 38px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
  padding: 0 8px;
}

.add-btn:hover {
  opacity: 0.92;
}

.qty-stepper {
  width: 100%;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid var(--primary);
  border-radius: 10px;
  padding: 0 4px;
}

.stepper-btn {
  background: transparent;
  border: none;
  color: var(--primary);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
}

.stepper-btn:hover {
  background: rgba(37, 99, 235, 0.15);
}

.stepper-qty {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
}

/* --- Customer Mobile Bottom Navigation (Android DynamicBottomNavigationBar Fidelity) --- */
.customer-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  padding: 6px 0;
  z-index: 950;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.nav-tab-btn {
  background: transparent;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 14px;
  border-radius: var(--radius-md);
  position: relative;
  transition: var(--transition);
  flex: 1;
}

.nav-tab-btn .nav-icon-pill {
  border-radius: 12px;
  padding: 4px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  position: relative;
}

.nav-tab-btn.active .nav-icon-pill {
  background: rgba(37, 99, 235, 0.15);
}

.nav-tab-btn.active {
  color: var(--primary);
  font-weight: 700;
}

.nav-tab-btn.active svg {
  color: var(--primary);
}

.nav-tab-badge {
  position: absolute;
  top: -2px;
  right: 6px;
  background: var(--danger);
  color: white;
  font-size: 10px;
  font-weight: 700;
  border-radius: var(--radius-full);
  padding: 1px 5px;
  line-height: 1.2;
}

/* --- Language Selector Dialog Styles (Android M3 Fidelity) --- */
.lang-dialog-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lang-info-banner {
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--text-main);
  line-height: 1.4;
}

.lang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 4px;
}

@media (max-width: 500px) {
  .lang-grid {
    grid-template-columns: 1fr;
  }
}

.lang-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.15s ease;
}

.lang-card-item:hover {
  border-color: var(--primary);
  background: var(--surface-subtle);
}

.lang-card-item.selected {
  border-color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
}

.lang-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-script-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.5px;
}

.lang-names-col {
  display: flex;
  flex-direction: column;
}

.lang-native-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
}

.lang-english-name {
  font-size: 11px;
  color: var(--text-muted);
}

.lang-rtl-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 800;
  background: #FEF3C7;
  color: #92400E;
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 4px;
}

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

.lang-card-item.selected .lang-radio-indicator {
  border-color: var(--primary);
  background: var(--primary);
}

.lang-card-item.selected .lang-radio-indicator::after {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: white;
}

/* --- Customer Account & Store Profile (Android CustomerAccountScreen Fidelity) --- */
.account-screen-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.account-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.lang-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lang-settings-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-settings-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(37, 99, 235, 0.12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-settings-avatar svg {
  width: 24px;
  height: 24px;
}

.shop-profile-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.shop-profile-avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.shop-detail-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-main);
  margin-top: 4px;
}

.shop-detail-row svg {
  color: var(--primary);
  flex-shrink: 0;
}

.recent-order-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}

/* --- Dukandar Dashboard Layout --- */
.dashboard-container {
  display: flex;
  flex: 1;
  min-height: calc(100vh - 48px);
}

.dashboard-sidebar {
  width: 250px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

html[dir="rtl"] .dashboard-sidebar {
  border-right: none;
  border-left: 1px solid var(--border);
}

@media (max-width: 768px) {
  .dashboard-sidebar {
    display: none;
  }
}

.sidebar-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 12px 8px 4px 8px;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.sidebar-link:hover {
  background: var(--surface-subtle);
  color: var(--text-main);
}

.sidebar-link.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}

.sidebar-link.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.dashboard-main {
  flex: 1;
  padding: 24px;
  background: var(--bg-main);
  overflow-y: auto;
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

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

.kpi-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 4px;
}

.kpi-meta {
  font-size: 11px;
  color: var(--success);
  margin-top: 4px;
}

/* --- Tables & Data Grids --- */
.table-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.table-header-row {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

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

html[dir="rtl"] .data-table {
  text-align: right;
}

.data-table th {
  background: var(--surface-subtle);
  padding: 10px 14px;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover {
  background: #F8FAFC;
}

.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-pending { background: #FEF3C7; color: #92400E; }
.status-confirmed { background: #DBEAFE; color: #1E40AF; }
.status-processing { background: #E0E7FF; color: #3730A3; }
.status-delivered { background: #DCFCE7; color: #166534; }
.status-cancelled { background: #FEE2E2; color: #991B1B; }

/* --- Company Admin Panel Layout --- */
.admin-container {
  padding: 24px;
  max-width: 1300px;
  margin: 0 auto;
  width: 100%;
}

.admin-header {
  margin-bottom: 24px;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
  overflow-x: auto;
}

.admin-tab-btn {
  background: transparent;
  border: none;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.admin-tab-btn.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* --- Forms & Controls --- */
.form-group {
  margin-bottom: 16px;
}

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

.form-control {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  background: var(--surface);
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

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

.btn-secondary {
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  color: var(--text-main);
}
.btn-secondary:hover {
  background: #E2E8F0;
}

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

.btn-sm {
  padding: 4px 8px;
  font-size: 11px;
}

/* --- Modals & Popups --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  padding: 16px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 550px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(0.95);
  transition: transform 0.2s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  background: var(--surface-subtle);
}

/* --- Toast Notifications --- */
.toast-container {
  position: fixed;
  bottom: 70px;
  right: 20px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

html[dir="rtl"] .toast-container {
  right: auto;
  left: 20px;
}

.toast {
  background: #1E293B;
  color: white;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideIn 0.3s ease;
}

.toast.error {
  background: #DC2626;
}

.toast.success {
  background: #16A34A;
}

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