/* ==========================================================================
   IzzahTech.in - Refurbished Laptops E-Commerce & Enterprise ERP Stylesheet
   Theme: Gold (#C9A227) + Black (#0f172a) matching IzzahTech logo
   ========================================================================== */

:root {
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* === IzzahTech Brand Palette === */
  --color-primary: #C9A227;          /* Logo gold */
  --color-primary-hover: #b08b1a;    /* Darker gold on hover */
  --color-primary-light: rgba(201, 162, 39, 0.10);

  --color-secondary: #0f172a;        /* Deep black */
  --color-secondary-light: #1e293b;

  --color-accent: #C9A227;           /* Same gold for accents */
  --color-accent-hover: #b08b1a;

  --color-success: #10b981;
  --color-success-bg: rgba(16, 185, 129, 0.1);

  --color-danger: #ef4444;
  --color-danger-bg: rgba(239, 68, 68, 0.1);

  --color-warning: #C9A227;
  --color-warning-bg: rgba(201, 162, 39, 0.12);

  --color-purple: #8b5cf6;
  --color-purple-bg: rgba(139, 92, 246, 0.1);

  --bg-body: #f8f5ee;                /* Warm off-white body */
  --bg-surface: #ffffff;
  --bg-elevated: #f5f0e8;            /* Warm light background */
  --border-color: #e5dcc8;           /* Warm border */
  --border-dark: #d4c9a8;

  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.10);
  --shadow-gold: 0 4px 16px rgba(201, 162, 39, 0.30);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Views toggling */
.view-container {
  display: none;
}
.view-container.active-view {
  display: block;
}

/* ================= TOP ANNOUNCEMENT ================= */
.announcement-bar {
  background: linear-gradient(90deg, #0f172a, #1a1200, #0f172a);
  color: #f5e9c0;
  padding: 8px 16px;
  font-size: 0.8rem;
  text-align: center;
  border-bottom: 2px solid #C9A227;
  letter-spacing: 0.2px;
}

/* ================= PUBLIC STOREFRONT ================= */
.store-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}

.store-nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  font-size: 26px;
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: white;
  box-shadow: var(--shadow-gold);
  overflow: hidden;
  padding: 2px;
  background: none;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: block;
  line-height: 1.2;
}

.brand-name span {
  color: var(--color-primary);
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.store-search-bar {
  flex: 1;
  max-width: 480px;
  position: relative;
  display: flex;
  align-items: center;
}

.store-search-bar input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.88rem;
  outline: none;
  transition: var(--transition);
}

.store-search-bar input:focus {
  background: var(--bg-surface);
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.15);
}

.search-ico {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  font-size: 0.9rem;
  pointer-events: none;
}

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

.nav-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.nav-btn:hover {
  background: var(--bg-elevated);
}

.nav-btn.highlight {
  background: rgba(201, 162, 39, 0.12);
  border-color: rgba(201, 162, 39, 0.4);
  color: #8a6800;
}

/* User-Requested Admin ERP Area Button */
.btn-erp-portal {
  background: linear-gradient(135deg, #0f172a, #1e1400);
  color: #C9A227;
  border: 1px solid #C9A227;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.btn-erp-portal:hover {
  background: linear-gradient(135deg, #C9A227, #b08b1a);
  color: #0f172a;
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
  border-color: #C9A227;
}

/* ================= HERO SECTION ================= */
.store-hero {
  background: radial-gradient(circle at 15% 25%, #1a1200 0%, #0f172a 60%, #0a0a0a 100%);
  color: white;
  padding: 60px 24px 70px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid #C9A227;
}

.store-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(201, 162, 39, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-pill {
  display: inline-block;
  background: rgba(201, 162, 39, 0.18);
  border: 1px solid rgba(201, 162, 39, 0.5);
  color: #f5d060;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.hero-content h1 {
  font-size: 2.7rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.hero-content h1 span {
  background: linear-gradient(135deg, #f5d060, #C9A227);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.05rem;
  color: #c8b98a;
  margin-bottom: 28px;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats {
  max-width: 900px;
  margin: 50px auto 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  position: relative;
  z-index: 1;
}

.hero-stat-box {
  background: rgba(201, 162, 39, 0.08);
  border: 1px solid rgba(201, 162, 39, 0.25);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  backdrop-filter: blur(8px);
}

.hero-stat-box h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #f5d060;
  margin-bottom: 4px;
}

.hero-stat-box p {
  font-size: 0.82rem;
  color: #c8b98a;
  font-weight: 500;
}

/* ================= CATALOG SECTION ================= */
.store-catalog {
  max-width: 1280px;
  margin: -30px auto 60px;
  padding: 0 24px;
  position: relative;
  z-index: 10;
}

.catalog-toolbar {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 24px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;
}

.catalog-hint {
  background: rgba(201, 162, 39, 0.08);
  border: 1px solid rgba(201, 162, 39, 0.3);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  margin-bottom: 24px;
  font-size: 0.84rem;
  color: #7a5c00;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 7px 16px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.pill:hover {
  background: var(--border-color);
}

.pill.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.filter-dropdowns {
  display: flex;
  gap: 10px;
}

.filter-dropdowns select {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  outline: none;
  cursor: pointer;
}

/* ================= PRODUCTS GRID ================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(201, 162, 39, 0.15);
  border-color: #C9A227;
}

.product-img-wrapper {
  position: relative;
  height: 220px;
  background: #0f172a;
  overflow: hidden;
}

.product-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img-wrapper img {
  transform: scale(1.05);
}

.view-details-hover-pill {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.85);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  opacity: 0.9;
  transition: var(--transition);
}

.product-card:hover .view-details-hover-pill {
  background: var(--color-primary);
  opacity: 1;
}

.badge-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.badge-grade {
  background: rgba(16, 185, 129, 0.9);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.badge-status {
  background: rgba(15, 23, 42, 0.85);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.badge-status.prebook {
  background: rgba(245, 158, 11, 0.95);
  color: #451a03;
}

.product-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.product-title {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-main);
}

.product-specs-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--bg-elevated);
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spec-item strong {
  color: var(--text-main);
}

.product-pricing {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: auto;
}

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

.price-original {
  font-size: 0.88rem;
  color: var(--text-light);
  text-decoration: line-through;
}

.price-discount {
  background: var(--color-success-bg);
  color: var(--color-success);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding-top: 10px;
}

.btn-buy {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 11px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

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

.btn-prebook {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  border: none;
  padding: 11px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-prebook:hover {
  filter: brightness(1.08);
}

/* ================= PRODUCT DETAILS MODAL (NEW) ================= */
.modal-card.modal-xl {
  max-width: 980px;
  max-height: 92vh;
  padding: 24px;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-details-layout {
  display: grid;
  grid-template-columns: 440px 1fr;
  gap: 28px;
  margin-top: 8px;
}

@media (max-width: 880px) {
  .product-details-layout {
    grid-template-columns: 1fr;
  }
}

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

.main-image-box {
  width: 100%;
  height: 310px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0f172a;
  border: 1px solid var(--border-color);
}

.main-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.thumbnail-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.thumb-item {
  width: 72px;
  height: 56px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-color);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.7;
  transition: var(--transition);
  flex-shrink: 0;
}

.thumb-item:hover {
  opacity: 1;
  border-color: #94a3b8;
}

.thumb-item.active {
  opacity: 1;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quality-stamp-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 0.78rem;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  margin-top: 6px;
}

.details-info-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 76vh;
  overflow-y: auto;
  padding-right: 6px;
}

.details-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

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

.pd-original-price {
  font-size: 0.95rem;
  color: var(--text-light);
  text-decoration: line-through;
  margin-left: 8px;
}

.pd-status-pill {
  background: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.pd-description {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.specs-section-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.full-specs-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
}

.spec-row {
  display: flex;
  padding: 6px 10px;
  border-radius: 4px;
  background: var(--bg-elevated);
}

.spec-row:nth-child(even) {
  background: #f8fafc;
}

.spec-lbl {
  width: 140px;
  font-weight: 700;
  color: var(--text-muted);
  flex-shrink: 0;
}

.spec-val {
  color: var(--text-main);
  font-weight: 500;
}

.text-emerald {
  color: #10b981;
  font-weight: 700;
}

.package-contents-box {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  color: #92400e;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
}

.pd-actions-row {
  margin-top: 10px;
  display: flex;
  gap: 12px;
}

.pd-actions-row button {
  flex: 1;
  padding: 12px;
  font-size: 0.95rem;
}

/* ================= 100% ADVANCE PRE-BOOKING CALLOUTS ================= */
.highlight-full-advance {
  background: #fef3c7 !important;
  border: 1px solid #fde68a !important;
  padding: 12px 16px !important;
  border-radius: var(--radius-md) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.balance-zero-note {
  margin-top: 10px;
  background: #f0fdf4;
  border: 1px dashed #86efac;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  color: #166534;
}

/* ================= ADMIN ERP PORTAL ================= */
.erp-header {
  background: #0f172a;
  color: white;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1e293b;
}

.erp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.erp-badge {
  background: #3b82f6;
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.erp-brand h2 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.erp-brand h2 span {
  color: #60a5fa;
}

.erp-header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.admin-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #94a3b8;
}

.admin-profile strong {
  color: #f8fafc;
}

.online-indicator {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 6px #10b981;
}

.btn-store-switch {
  background: #1e293b;
  color: #cbd5e1;
  border: 1px solid #334155;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.btn-store-switch:hover {
  background: #334155;
  color: white;
}

/* ERP Tab Navigation */
.erp-nav {
  background: #1e293b;
  padding: 0 28px;
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #334155;
  overflow-x: auto;
}

.erp-tab-btn {
  background: transparent;
  color: #94a3b8;
  border: none;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.erp-tab-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.03);
}

.erp-tab-btn.active {
  color: #60a5fa;
  border-bottom-color: #60a5fa;
  background: rgba(96, 165, 250, 0.08);
}

/* ERP Main Layout */
.erp-main {
  max-width: 1400px;
  margin: 28px auto;
  padding: 0 28px;
}

.erp-tab-content {
  display: none;
}
.erp-tab-content.active-tab {
  display: block;
}

/* Auth tabs (login / signup) — only the active tab is visible */
.auth-tab-content {
  display: none;
}
.auth-tab-content.active-tab {
  display: block;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.section-title-row h2 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.section-title-row p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ================= KPI METRICS GRID ================= */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-top: 4px solid #cbd5e1;
}

.kpi-card.sales { border-top-color: #10b981; }
.kpi-card.purchases { border-top-color: #ef4444; }
.kpi-card.profit { border-top-color: #2563eb; }
.kpi-card.stock { border-top-color: #8b5cf6; }
.kpi-card.prebook { border-top-color: #f59e0b; }

.kpi-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

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

.kpi-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Split Dashboard */
.dashboard-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 960px) {
  .dashboard-split {
    grid-template-columns: 1fr;
  }
}

.erp-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.erp-box h3 {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-main);
}

/* ================= DATA TABLES ================= */
.table-container, .mini-table-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.table-container {
  overflow-x: auto;
}

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

.data-table th {
  background: var(--bg-elevated);
  padding: 12px 16px;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

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

.data-table tr:hover td {
  background: rgba(241, 245, 249, 0.6);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.status-badge.paid { background: var(--color-success-bg); color: var(--color-success); }
.status-badge.pending { background: var(--color-warning-bg); color: #b45309; }
.status-badge.in-stock { background: var(--color-primary-light); color: var(--color-primary); }
.status-badge.booked { background: var(--color-purple-bg); color: var(--color-purple); }

/* ================= BUTTONS & FORMS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-decoration: none;
}

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

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-dark);
}
.btn-outline:hover {
  background: var(--bg-elevated);
}

.btn-sm {
  padding: 5px 10px;
  font-size: 0.78rem;
  border-radius: var(--radius-sm);
}

/* ================= MODALS ================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 28px;
  animation: modalIn 0.2s ease-out;
}

.modal-card.modal-lg {
  max-width: 720px;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

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

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-muted);
}

.modal-info-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-bottom: 18px;
}

.price-pill-row {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  font-size: 0.85rem;
}

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

.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 9px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.88rem;
  background: var(--bg-surface);
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.bill-calculation-summary {
  background: #f8fafc;
  border: 1px dashed var(--border-dark);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  font-size: 0.85rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 20px;
  border-top: 1px solid var(--border-color);
  padding-top: 16px;
}

.text-accent {
  color: var(--color-primary);
}

/* ================= INVOICE RECEIPT PAPER ================= */
.invoice-paper {
  background: white;
  border: 1px solid #cbd5e1;
  padding: 30px;
  border-radius: var(--radius-md);
  font-family: 'Courier New', Courier, monospace;
}

.inv-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 2px solid #0f172a;
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.inv-company h2 {
  font-size: 1.4rem;
  font-weight: 800;
  font-family: var(--font-main);
}

.inv-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
  font-size: 0.85rem;
}

.inv-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 0.85rem;
}

.inv-table th, .inv-table td {
  border: 1px solid #94a3b8;
  padding: 8px 10px;
  text-align: left;
}

.inv-table th {
  background: #f1f5f9;
}

.inv-totals {
  text-align: right;
  font-size: 0.9rem;
  margin-top: 12px;
  line-height: 1.8;
}

/* ================= TOASTS ================= */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2000;
}

.toast {
  background: #0f172a;
  color: white;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  font-weight: 600;
  border-left: 4px solid var(--color-primary);
  animation: toastSlide 0.25s ease-out;
}

.toast.success { border-left-color: var(--color-success); }
.toast.warning { border-left-color: var(--color-warning); }

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

/* ================= STORE FOOTER ================= */
.store-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 40px 24px;
  margin-top: 80px;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-container h4 {
  color: white;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.footer-links {
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
}

.footer-links span {
  cursor: pointer;
  transition: var(--transition);
}

.footer-links span:hover {
  color: white;
}
