@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800;900&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600;1,700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================================
   KARAGO HAUTE JOAILLERIE DESIGN SYSTEM (BURGUNDY & GOLD LUXURY THEME)
   ========================================================================== */
:root {
  /* Rich Burgundy / Wine Palette (Inspired by Reference Screenshot 1) */
  --burgundy-deep: #2c050d;
  --burgundy-dark: #420815;
  --burgundy-primary: #680c22;
  --burgundy-light: #8a1230;
  --burgundy-hover: #540a1c;
  --burgundy-soft: #fbf2f4;
  --burgundy-border: rgba(104, 12, 34, 0.2);
  --burgundy-gradient: linear-gradient(135deg, #3d0713 0%, #680c22 45%, #881230 100%);
  --burgundy-banner: radial-gradient(circle at 85% 20%, #7d122b 0%, #520c1a 45%, #350711 100%);

  /* Royal Gold & Metallic Accents */
  --gold-primary: #d4af37;
  --gold-light: #fbf7ee;
  --gold-mid: #e8d5a3;
  --gold-dark: #996515;
  --gold-gradient: linear-gradient(135deg, #e5be49 0%, #c59b27 50%, #996515 100%);
  --gold-border: rgba(212, 175, 55, 0.35);
  --gold-glow: 0 4px 18px rgba(212, 175, 55, 0.25);

  /* Checkout Lilac & Glass Palette (Inspired by Reference Screenshot 2) */
  --lilac-bg: #f4effb;
  --lilac-surface: #ede5f8;
  --lilac-border: #dfd2f5;
  --lilac-active: #7c3aed;
  --lilac-card-gradient: linear-gradient(145deg, #f7f2fc 0%, #ede5f8 100%);

  /* Modern Semantic Hues */
  --emerald: #059669;
  --emerald-bg: #ecfdf5;
  --emerald-border: #a7f3d0;
  --rose: #e11d48;
  --rose-bg: #fff1f2;
  --rose-border: #fecdd3;
  --amber: #d97706;
  --amber-bg: #fffbeb;
  --amber-border: #fde68a;
  --sky: #0284c7;
  --sky-bg: #f0f9ff;

  /* App Surfaces & Backgrounds */
  --bg-app: #f7f8fa;
  --bg-surface: #ffffff;
  --bg-surface-subtle: #fafbfd;
  --bg-input: #f1f4f9;
  --border-subtle: #eaedf2;
  --border-card: #e5e9f0;
  --obsidian: #0f172a;
  --obsidian-surface: #1e293b;

  /* Standardized Typography Scale (1.200 Modular Minor Third) */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Cinzel', 'Playfair Display', Georgia, serif;
  --font-size-2xs: 0.6875rem; /* 11px: Micro metadata, tags */
  --font-size-xs:  0.75rem;   /* 12px: Captions, status badges */
  --font-size-sm:  0.875rem;  /* 14px: Secondary body, table cells, form labels */
  --font-size-base: 1rem;     /* 16px: Primary body text, inputs */
  --font-size-md:  1.125rem;  /* 18px: Subheaders, card titles */
  --font-size-lg:  1.25rem;   /* 20px: Section headers */
  --font-size-xl:  1.5rem;    /* 24px: Main page title / H1 */

  /* Consolidated Semantic Text Colors */
  --text-primary:   #111827; /* High contrast headings & primary text */
  --text-secondary: #4b5563; /* Subtitles, secondary copy */
  --text-muted:     #6b7280; /* Labels, timestamps, subtle hints */
  --text-tertiary:  #9ca3af; /* Disabled / placeholder elements */
  --text-inverse:   #ffffff; /* Contrast text on dark backgrounds */
  --text-brand:     #680c22; /* KARA Signature Burgundy */
  --text-success:   #059669; /* Paid, in-stock, success */
  --text-warning:   #d97706; /* Pending, warning */
  --text-danger:    #dc2626; /* Cancelled, error */

  /* Elevation Shadows */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  --shadow-card: 0 4px 14px -2px rgba(15, 23, 42, 0.04), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
  --shadow-card-hover: 0 12px 24px -4px rgba(104, 12, 34, 0.08), 0 4px 8px -2px rgba(0, 0, 0, 0.04);
  --shadow-modal: 0 25px 60px -10px rgba(15, 23, 42, 0.35);

  /* Standardized Radii Scale */
  --radius-xs: 4px;      /* Micro tags, inner chips */
  --radius-sm: 6px;      /* Buttons, form inputs, tooltips */
  --radius-md: 10px;     /* Cards, dropdowns, table containers */
  --radius-lg: 16px;     /* Modals, prominent banners */
  --radius-full: 9999px; /* Status badges, circular avatars, pills */
  --radius-pill: 9999px;

  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html, body {
  width: 100%;
  height: 100%;
  font-family: var(--font-sans);
  background: var(--bg-app);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

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

/* Remove default number input spinners for clean numeric billing entries */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
}

/* ==========================================================================
   CLEAN VECTOR SVG ICON UTILITIES (NO CARTOON EMOJIS)
   ========================================================================== */
.svg-icon {
  width: 1.15em;
  height: 1.15em;
  display: inline-block;
  vertical-align: middle;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}

.svg-icon-sm {
  width: 0.95em;
  height: 0.95em;
}

.svg-icon-lg {
  width: 1.45em;
  height: 1.45em;
}

/* ==========================================================================
   1. APP SHELL LAYOUT (DESKTOP SIDEBAR + MAIN VIEWPORT)
   ========================================================================== */
.app-shell {
  display: flex;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: var(--bg-app);
}

/* Left Sidebar Navigation (Image 1 Style) */
.app-sidebar {
  width: 240px;
  min-width: 240px;
  background: #ffffff;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  height: 100%;
  z-index: 60;
  transition: transform 0.25s ease, width 0.2s ease;
  overflow-y: auto;
}

.sidebar-header {
  padding: 1.25rem 1.25rem 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.sidebar-logo-icon {
  width: 34px;
  height: 34px;
  background: var(--burgundy-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(104, 12, 34, 0.25);
  flex-shrink: 0;
}

.sidebar-brand-name {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--obsidian);
  line-height: 1.1;
}

.sidebar-brand-sub {
  font-size: 0.65rem;
  color: var(--text-tertiary);
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Primary Create Invoice Pill Button (Image 1 Style) */
.sidebar-cta-wrap {
  padding: 0 1.25rem 1.25rem 1.25rem;
}

.btn-sidebar-create {
  width: 100%;
  background: var(--burgundy-gradient);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.68rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(104, 12, 34, 0.28);
  transition: var(--transition);
}

.btn-sidebar-create:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(104, 12, 34, 0.38);
  filter: brightness(1.06);
}

/* Sidebar Navigation Items */
.sidebar-nav-section {
  padding: 0 0.85rem;
  flex: 1;
}

.sidebar-nav-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-tertiary);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 0.5rem 0.65rem 0.4rem 0.65rem;
}

.sidebar-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  list-style: none;
}

.sidebar-nav-btn {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.58rem 0.85rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: left;
}

.sidebar-nav-btn:hover {
  background: var(--bg-surface-subtle);
  color: var(--text-primary);
}

.sidebar-nav-btn.active {
  background: var(--burgundy-soft);
  color: var(--burgundy-primary);
  font-weight: 700;
}

.sidebar-nav-btn.active .svg-icon {
  stroke: var(--burgundy-primary);
}

/* Sidebar Bottom Status / Pro Card */
.sidebar-bottom-pro {
  margin: auto 0.85rem 1rem 0.85rem;
  background: linear-gradient(145deg, #182235 0%, #0d131f 100%);
  color: #ffffff;
  padding: 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-bottom-pro h4 {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sidebar-bottom-pro p {
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.btn-sidebar-sync {
  width: 100%;
  background: #ffffff;
  color: #0f172a;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.45rem;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.btn-sidebar-sync:hover {
  background: #f1f5f9;
}

/* ==========================================================================
   2. MAIN APPLICATION VIEWPORT & TOP BURGUNDY BANNER (IMAGE 1 STYLE)
   ========================================================================== */
.app-viewport {
  flex: 1 1 0;
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  position: relative;
}

/* Top Curved Burgundy Header Banner (Ultra-Compact & Zero Overflow) */
.app-header-banner {
  background: linear-gradient(130deg, #380612 0%, #540b1b 25%, #6a0f24 50%, #4c0a18 75%, #380612 100%);
  background-size: 280% 280%;
  animation: bannerGradientFlow 14s ease infinite;
  color: #ffffff;
  padding: 0.45rem 1.15rem;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 4px 16px rgba(66, 8, 21, 0.22);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 40;
  flex-shrink: 0;
  overflow: hidden;
}

/* Ambient Aurora / Specular Light Glow */
.app-header-banner::before {
  content: '';
  position: absolute;
  top: -70%;
  right: 18%;
  width: 420px;
  height: 240px;
  background: radial-gradient(ellipse at center, rgba(255, 215, 0, 0.14) 0%, rgba(220, 38, 38, 0.08) 45%, transparent 70%);
  border-radius: 50%;
  filter: blur(28px);
  pointer-events: none;
  animation: headerAuroraFloat 10s ease-in-out infinite alternate;
  z-index: 1;
}

/* Ambient Bottom Border Gold Gleam */
.app-header-banner::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 215, 0, 0.35) 25%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 215, 0, 0.35) 75%, transparent 100%);
  background-size: 200% 100%;
  animation: headerBorderShimmer 8s linear infinite;
  pointer-events: none;
  z-index: 2;
}

.banner-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  position: relative;
  z-index: 3;
  width: 100%;
  min-width: 0;
}

/* Translucent Glass Search Bar */
.banner-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-pill);
  padding: 0.38rem 0.85rem;
  width: clamp(160px, 13vw, 210px);
  flex-shrink: 1;
  position: relative;
  overflow: hidden;
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Search Sweep Light Reflection */
.banner-search-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-22deg);
  animation: searchGleamSweep 8s ease-in-out infinite;
  pointer-events: none;
}

.banner-search-wrap:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.banner-search-wrap:focus-within {
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 223, 133, 0.7);
  box-shadow: 0 0 16px rgba(255, 223, 133, 0.3), 0 4px 12px rgba(0, 0, 0, 0.2);
  width: clamp(190px, 16vw, 250px);
}

.banner-search-wrap svg {
  transition: transform 0.3s ease, color 0.3s ease;
}

.banner-search-wrap:focus-within svg {
  color: #ffd700;
  transform: scale(1.1);
}

.banner-search-input {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.82rem;
  width: 100%;
  outline: none;
}

.banner-search-input::placeholder {
  color: rgba(255, 255, 255, 0.65);
}

/* Favorite Buyers Avatars */
.favorite-buyers-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.favorite-buyers-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.2px;
}

.buyer-avatars-cluster {
  display: flex;
  align-items: center;
  padding: 2px 4px;
  border-radius: var(--radius-pill);
  transition: background 0.3s ease;
}

.buyer-avatars-cluster:hover {
  background: rgba(255, 255, 255, 0.08);
}

.buyer-avatar-bubble {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #5a0b1d;
  margin-left: -7px;
  background: #ffffff;
  color: var(--burgundy-primary);
  font-size: 0.68rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.buyer-avatar-bubble:first-child {
  margin-left: 0;
}

.buyer-avatars-cluster:hover .buyer-avatar-bubble {
  margin-left: -2px;
}

.buyer-avatar-bubble:hover {
  transform: translateY(-4px) scale(1.22);
  border-color: #ffd700;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.38);
  z-index: 10;
  background: #fffdf5;
}

/* Live Bullion Rates Ticker in Banner (Compact, Responsive, No Horizontal Cutoff) */
.banner-rates-ticker {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  padding: 3px 10px;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.banner-rates-ticker::-webkit-scrollbar {
  display: none;
}

.banner-rates-ticker:hover {
  border-color: rgba(254, 240, 138, 0.6);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.banner-rates-ticker.rate-pulse-flash {
  animation: rateFlashGold 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Live Radar Pulse Badge */
.live-pulse-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 3px 8px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-radius: 999px;
  cursor: default;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 10px #10b981;
  animation: liveRadarPulse 2s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.live-pulse-text {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #a7f3d0;
  text-transform: uppercase;
}

.banner-rate-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  white-space: nowrap;
  padding: 3px 6px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.banner-rate-item:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.banner-rate-badge {
  font-size: 0.66rem;
  font-weight: 900;
  color: #fef08a;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(254, 240, 138, 0.3);
  padding: 1.5px 6px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}

.banner-rate-item:hover .banner-rate-badge {
  background: rgba(234, 179, 8, 0.4);
  color: #ffffff;
  border-color: #fde047;
}

.banner-rate-item strong {
  font-weight: 800;
  color: #ffffff;
  font-size: 0.82rem;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.banner-ticker-divider {
  width: 1px;
  height: 14px;
  background: rgba(255, 255, 255, 0.22);
}

.btn-banner-edit-rates {
  background: linear-gradient(135deg, #d97706 0%, #b45309 60%, #92400e 100%);
  border: 1.5px solid rgba(253, 230, 138, 0.55);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 4px 12px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  box-shadow: 0 2px 8px rgba(180, 83, 9, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  outline: none;
  white-space: nowrap;
}

.btn-banner-edit-rates:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-color: #fef08a;
  color: #ffffff;
  transform: translateY(-1px) scale(1.05);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.5), 0 0 10px rgba(254, 240, 138, 0.4);
}

.btn-banner-edit-rates svg {
  width: 13px;
  height: 13px;
  stroke: #ffffff;
  stroke-width: 2.2;
  transition: transform 0.3s ease;
}

.btn-banner-edit-rates:hover svg {
  transform: rotate(20deg) scale(1.1);
}

/* Banner Right Greeting & Controls */
.banner-right-group {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  flex-shrink: 0;
}

.banner-greeting-cluster {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.banner-greeting-title {
  font-family: var(--font-sans);
  font-size: 1.35rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: 1.2px;
}

.banner-greeting-title strong {
  font-weight: 900;
  font-style: normal;
  letter-spacing: 1.6px;
  background: linear-gradient(115deg, #ffffff 0%, #ffebb3 25%, #ffd700 50%, #fff6cc 75%, #ffffff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: goldSheenFlow 6s linear infinite;
  display: inline-block;
}

.banner-date-badge {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 0.15rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.banner-date-badge::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffd700;
  box-shadow: 0 0 6px #ffd700;
  animation: dateDotPulse 3s ease-in-out infinite;
}

/* Quick Action Icons */
.banner-controls-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-end;
}

.btn-banner-icon {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 0;
  outline: none;
}

.btn-banner-icon svg {
  width: 17px !important;
  height: 17px !important;
  stroke: #ffffff !important;
  stroke-width: 2 !important;
  fill: none !important;
  transition: transform 0.25s ease, stroke 0.25s ease;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.btn-banner-icon:hover {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.35) 0%, rgba(212, 175, 55, 0.2) 100%);
  border-color: rgba(253, 230, 138, 0.8);
  box-shadow: 0 6px 16px rgba(104, 12, 34, 0.35), 0 0 12px rgba(245, 158, 11, 0.35);
  transform: translateY(-2px) scale(1.08);
}

.btn-banner-icon:hover svg {
  stroke: #fef08a !important;
}

.btn-banner-icon:active {
  transform: translateY(0) scale(0.96);
}

/* Bell Swing Animation */
#btnOpenNotifications svg {
  transform-origin: top center;
  animation: bellGentleSwing 7s ease-in-out infinite;
}

.btn-notification-badge-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  border-radius: 999px;
  border: 2px solid #5a0a1e;
  box-shadow: 0 0 8px rgba(239, 68, 68, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
  animation: notificationDotPulse 2.5s ease-in-out infinite;
}

/* Settings Gear Spin on Hover */
#btnHeaderSettings svg {
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

#btnHeaderSettings:hover svg {
  transform: rotate(90deg);
}

.btn-mobile-sidebar-toggle {
  display: none;
}

/* ==========================================================================
   HEADER BANNER KEYFRAMES & MICRO-ANIMATIONS
   ========================================================================== */
@keyframes bannerGradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes headerAuroraFloat {
  0% {
    transform: translate(0, 0) scale(1);
    opacity: 0.18;
  }
  50% {
    transform: translate(-30px, 15px) scale(1.18);
    opacity: 0.32;
  }
  100% {
    transform: translate(25px, -10px) scale(1.05);
    opacity: 0.22;
  }
}

@keyframes headerBorderShimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@keyframes searchGleamSweep {
  0%, 70% {
    left: -120%;
  }
  85%, 100% {
    left: 200%;
  }
}

@keyframes liveRadarPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(46, 213, 115, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(46, 213, 115, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(46, 213, 115, 0);
  }
}

@keyframes goldSheenFlow {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}

@keyframes subTitleGlow {
  0% {
    opacity: 0.8;
    letter-spacing: 2px;
  }
  100% {
    opacity: 1;
    letter-spacing: 2.3px;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.4);
  }
}

@keyframes dateDotPulse {
  0%, 100% {
    opacity: 0.6;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
    box-shadow: 0 0 8px #ffd700;
  }
}

@keyframes bellGentleSwing {
  0%, 82%, 100% {
    transform: rotate(0);
  }
  85% {
    transform: rotate(14deg);
  }
  88% {
    transform: rotate(-12deg);
  }
  91% {
    transform: rotate(8deg);
  }
  94% {
    transform: rotate(-4deg);
  }
  97% {
    transform: rotate(1deg);
  }
}

@keyframes notificationDotPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 4px #ff4757;
  }
  50% {
    transform: scale(1.25);
    box-shadow: 0 0 10px #ff4757;
  }
}

@keyframes rateFlashGold {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.8), 0 0 16px rgba(255, 215, 0, 0.4);
    border-color: rgba(255, 215, 0, 0.85);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(255, 215, 0, 0), 0 0 8px rgba(255, 215, 0, 0);
    border-color: rgba(255, 255, 255, 0.16);
  }
  100% {
    box-shadow: none;
  }
}

@keyframes priceCutThrough {
  0% {
    width: 0%;
    opacity: 0.2;
  }
  100% {
    width: 100%;
    opacity: 0.9;
  }
}

@keyframes priceGlowPulse {
  0% {
    transform: scale(1);
    color: #b45309;
    text-shadow: 0 0 8px rgba(217, 119, 6, 0.5);
  }
  40% {
    transform: scale(1.15);
    color: #d97706;
    text-shadow: 0 0 16px rgba(245, 158, 11, 0.85);
  }
  100% {
    transform: scale(1);
    color: var(--burgundy-primary);
    text-shadow: none;
  }
}

@keyframes priceCardHighlight {
  0% {
    box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.65), 0 6px 16px rgba(217, 119, 6, 0.22);
    transform: translateY(-2px);
  }
  100% {
    box-shadow: var(--shadow-sm);
    transform: translateY(0);
  }
}

/* Tab Content Switcher */
.app-main-content {
  flex: 1 1 0;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  width: 100%;
}

.pos-tab-pane {
  display: none;
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
}

.pos-tab-pane.active {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

/* Allow other full-view tabs (Dashboard, Orders, Customers, Rates) to scroll smoothly */
.pos-tab-pane.full-view-tab.active {
  overflow-y: auto;
}

/* ==========================================================================
   3. TAB 0: LUXURY DASHBOARD (IMAGE 1 STYLE)
   ========================================================================== */
.dashboard-viewport {
  padding: 1.5rem 1.75rem;
  overflow-y: auto;
  width: 100%;
}

/* Dashboard Filter / Subheader Bar */
.dashboard-subheader-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.dashboard-title-meta h2 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--obsidian);
  line-height: 1.2;
}

.dashboard-title-meta p {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.dashboard-filter-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-date-pill {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: var(--shadow-sm);
}

/* 4 Stat Overview Cards (Image 1 Style) */
.dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.15rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.stat-card-top {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.stat-icon-pill {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon-rose { background: var(--rose-bg); color: var(--rose); }
.stat-icon-burgundy { background: var(--burgundy-soft); color: var(--burgundy-primary); }
.stat-icon-amber { background: var(--amber-bg); color: var(--amber); }
.stat-icon-emerald { background: var(--emerald-bg); color: var(--emerald); }

.stat-card-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.stat-card-number {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--obsidian);
  margin-bottom: 0.75rem;
  letter-spacing: -0.5px;
}

.stat-card-number span {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-right: 0.25rem;
}

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

.trend-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.trend-badge-green { background: var(--emerald-bg); color: var(--emerald); }
.trend-badge-rose { background: var(--rose-bg); color: var(--rose); }
.trend-badge-amber { background: var(--amber-bg); color: var(--amber); }

/* Charts Row (Image 1 Style) */
.dashboard-charts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.chart-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow-card);
}

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

.chart-card-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--obsidian);
}

/* Monthly Sales CSS Bar Chart with Burgundy Gradients */
.sales-barchart-container {
  height: 220px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1rem 0.5rem 0.5rem 0.5rem;
  position: relative;
}

.barchart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  position: relative;
  max-width: 48px;
  margin: 0 auto;
}

.barchart-bar-wrap {
  width: 100%;
  background: transparent;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}

.barchart-bar {
  width: 100%;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #8a1230 0%, #420815 100%);
  transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: 0 4px 12px rgba(104, 12, 34, 0.18);
}

.barchart-bar:hover {
  filter: brightness(1.15);
}

.barchart-tooltip-highlight {
  position: absolute;
  top: -42px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--obsidian);
  white-space: nowrap;
  pointer-events: none;
  z-index: 10;
}

.barchart-tooltip-highlight::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.barchart-month-label {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  font-weight: 600;
  margin-top: 0.65rem;
}

/* Bar Chart Bottom Summary Pills */
.barchart-footer-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border-subtle);
}

.barchart-pill-tag {
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* Invoice Status Donut Chart & Legend */
.donut-chart-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.donut-svg-wrap {
  width: 140px;
  height: 140px;
  position: relative;
}

.donut-legend-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.donut-legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
}

.donut-legend-left {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

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

.donut-dot-paid { background: #10b981; }
.donut-dot-sent { background: #3b82f6; }
.donut-dot-overdue { background: #ef4444; }
.donut-dot-draft { background: #94a3b8; }

.donut-meter-bar {
  display: flex;
  gap: 2px;
}

.meter-tick {
  width: 3px;
  height: 10px;
  border-radius: 1px;
}

.tick-paid { background: #10b981; }
.tick-sent { background: #3b82f6; }
.tick-overdue { background: #ef4444; }
.tick-draft { background: #94a3b8; }

/* ==========================================================================
/* ==========================================================================
/* ==========================================================================
   4. TAB 1: POS REGISTER TERMINAL (CATALOG + CART DOCK) - RESPONSIVE LUXURY SALON UI
   ========================================================================== */
.pos-terminal-grid {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  background: var(--bg-app);
}

.pos-catalog-column {
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: 0.65rem 0.85rem;
  background: #f8fafc;
}

/* Catalog Search & Action Toolbar */
.catalog-search-toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.45rem;
  flex-shrink: 0;
}

.pos-search-wrapper {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.42rem 0.75rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pos-search-wrapper:focus-within {
  border-color: var(--burgundy-primary);
  box-shadow: 0 0 0 3px rgba(104, 12, 34, 0.1), 0 2px 8px rgba(15, 23, 42, 0.04);
  background: #ffffff;
}

.pos-search-wrapper svg {
  width: 16px;
  height: 16px;
  stroke: #64748b;
  flex-shrink: 0;
}

.pos-search-wrapper:focus-within svg {
  stroke: var(--burgundy-primary);
}

.pos-search-input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.82rem;
  font-weight: 500;
  width: 100%;
  color: var(--obsidian);
  letter-spacing: -0.01em;
}

.pos-search-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.pos-search-btn {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  color: #334155;
  border-radius: 10px;
  padding: 0.42rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  transition: all 0.15s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.pos-search-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--obsidian);
}

.btn-custom-item-trigger {
  background: linear-gradient(135deg, #420815 0%, #680c22 55%, #881230 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(212, 175, 55, 0.4) !important;
  border-radius: 10px !important;
  padding: 0.42rem 0.85rem !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  display: inline-flex !important;
  align-items: center !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(104, 12, 34, 0.25) !important;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-custom-item-trigger:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(104, 12, 34, 0.35) !important;
  filter: brightness(1.06) !important;
}

/* Category Filter Pills */
.pos-category-pills {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  flex-shrink: 0;
  padding: 0.1rem 0 0.45rem;
  margin-bottom: 0.4rem;
  scrollbar-width: none;
}

.pos-category-pills::-webkit-scrollbar {
  display: none;
}

.cat-pill {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  color: #475569;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.cat-pill:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  transform: translateY(-1px);
}

.cat-pill.active {
  background: linear-gradient(135deg, #3d0713 0%, #680c22 50%, #881230 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(104, 12, 34, 0.25);
  transform: translateY(-1px);
}

/* Product Tiles Scroll Area & Grid */
.pos-tiles-scrollarea {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  padding-bottom: 1rem;
}

.pos-tiles-scrollarea::-webkit-scrollbar {
  width: 5px;
}

.pos-tiles-scrollarea::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.pos-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.65rem;
}

/* Luxury Product Tile Card */
.pos-tile-card,
.pos-product-tile {
  background: #ffffff;
  border: 1px solid #eef2f6;
  border-radius: 12px;
  padding: 0.65rem;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.pos-tile-card:hover,
.pos-product-tile:hover {
  border-color: rgba(212, 175, 55, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(104, 12, 34, 0.08), 0 0 0 1px rgba(212, 175, 55, 0.2);
}

.tile-img-container,
.tile-image-frame {
  height: 105px;
  width: 100%;
  position: relative;
  background: radial-gradient(circle at 50% 40%, #ffffff 0%, #f6f8fb 100%);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #f1f5f9;
}

.tile-img,
.tile-product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.4rem;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.pos-product-tile:hover .tile-product-img,
.pos-tile-card:hover .tile-img {
  transform: scale(1.08);
}

/* Floating Karat Badges */
.tile-floating-karat {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2.5px 8px;
  border-radius: 6px;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
  z-index: 2;
  text-transform: uppercase;
}

.badge-24k { background: linear-gradient(135deg, #b45309, #d97706); color: #ffffff; }
.badge-22k { background: linear-gradient(135deg, #ca8a04, #eab308); color: #1e1b18; font-weight: 900; }
.badge-18k { background: linear-gradient(135deg, #0f172a, #334155); color: #ffffff; }
.badge-14k { background: linear-gradient(135deg, #680c22, #8a1230); color: #ffffff; }
.badge-9k  { background: linear-gradient(135deg, #475569, #64748b); color: #ffffff; }
.badge-silver { background: linear-gradient(135deg, #64748b, #94a3b8); color: #ffffff; }

.tile-floating-meta {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2.5px 7px;
  border-radius: 6px;
  z-index: 2;
  letter-spacing: 0.03em;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.tile-content-wrap {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  margin-top: 0.75rem;
}

.tile-title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.86rem;
  color: #0f172a;
  line-height: 1.35;
  height: 2.35rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.tile-specs-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 0.45rem;
  margin-bottom: 0.65rem;
}

.spec-pill {
  font-size: 0.66rem;
  font-weight: 700;
  padding: 2.5px 7.5px;
  border-radius: 6px;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  letter-spacing: 0.01em;
}

.tile-bottom-section {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.6rem;
  border-top: 1px solid #f1f5f9;
  gap: 0.5rem;
}

.tile-price-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tile-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.tile-price {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.08rem;
  color: var(--burgundy-primary);
  line-height: 1.1;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

.tile-price.price-updating {
  animation: priceGlowPulse 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  display: inline-block;
}

.tile-price-cut {
  position: relative;
  font-size: 0.74rem;
  font-weight: 600;
  color: #94a3b8;
  display: inline-block;
  white-space: nowrap;
}

.tile-price-cut::after {
  content: '';
  position: absolute;
  left: -2px;
  right: -2px;
  top: 50%;
  height: 1.5px;
  background: #ef4444;
  border-radius: 1px;
}

.tile-gst-tag {
  font-size: 0.62rem;
  font-weight: 800;
  color: #065f46;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 1.5px 5px;
  border-radius: 4px;
  letter-spacing: 0.02em;
  display: inline-block;
  white-space: nowrap;
}

.tile-price-subtext {
  font-size: 0.66rem;
  color: #64748b;
  margin-top: 3px;
  line-height: 1.3;
}

.tile-add-btn {
  background: #fdf2f4;
  color: var(--burgundy-primary);
  border: 1.5px solid rgba(104, 12, 34, 0.22);
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.74rem;
  padding: 5px 13px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(104, 12, 34, 0.08);
}

.tile-add-btn:hover {
  background: var(--burgundy-primary);
  color: #ffffff;
  border-color: var(--burgundy-primary);
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 4px 12px rgba(104, 12, 34, 0.3);
}

/* ==========================================================================
   RIGHT REGISTER / CART DRAWER (RESPONSIVE & ZERO OVERFLOW)
   ========================================================================== */
.pos-register-column {
  width: clamp(330px, 27vw, 380px);
  min-width: 320px;
  max-width: 395px;
  background: #ffffff;
  border-left: 1.5px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  box-shadow: -4px 0 20px rgba(15, 23, 42, 0.04);
  z-index: 20;
  overflow: hidden;
  flex-shrink: 0;
}

/* Customer Bar (Patron Card) */
.register-customer-bar {
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.cust-info-block {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 8px;
  transition: all 0.15s ease;
  user-select: none;
}

.cust-avatar {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #3d0713, #680c22);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(104, 12, 34, 0.2);
  flex-shrink: 0;
}

.cust-name-text {
  font-size: 0.8rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.cust-phone-sub {
  font-size: 0.65rem;
  color: #64748b;
  font-weight: 500;
}

.register-ticket-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-cust-change {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-cust-change:hover {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #0f172a;
}

.btn-cust-detach {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #ef4444;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

.btn-cust-detach:hover {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}

/* Cart Items Scroll List */
.register-items-scroll {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  -webkit-overflow-scrolling: touch;
  background: #fbfcfd;
}

.register-items-scroll::-webkit-scrollbar {
  width: 5px;
}

.register-items-scroll::-webkit-scrollbar-thumb {
  background: #e2e8f0;
  border-radius: 999px;
}

/* Cart Item Card */
.cart-item-card,
.receipt-item-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.75rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.2s ease;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
}

.cart-item-card:hover,
.receipt-item-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.receipt-row-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
}

.receipt-item-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.tile-karat-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2.5px 7px;
  border-radius: 5px;
  font-weight: 800;
  font-size: 0.68rem;
  color: #ffffff;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.receipt-btn-delete {
  background: transparent;
  border: none;
  color: #94a3b8;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
  padding: 0;
}

.receipt-btn-delete:hover {
  background: #fee2e2;
  color: #dc2626;
}

.receipt-sub-meta {
  font-size: 0.7rem;
  color: #64748b;
  line-height: 1.35;
}

.receipt-sub-meta strong {
  color: #1e293b;
}

/* Modern 4-Input Grid for Weights & Making */
.receipt-pos-inputs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  background: #f8fafc;
  padding: 4px 6px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.pos-input-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.pos-input-group label {
  font-size: 0.58rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.pos-item-input {
  width: 100%;
  padding: 3px 4px;
  font-size: 0.76rem;
  font-weight: 800;
  font-family: var(--font-sans);
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
  text-align: center;
  transition: all 0.15s ease;
  box-sizing: border-box;
  height: 26px;
}

.pos-item-input:focus {
  outline: none;
  border-color: var(--burgundy-primary);
  box-shadow: 0 0 0 2px rgba(104, 12, 34, 0.12);
  background: #ffffff;
}

.pos-diamond-strip {
  background: #fffdf5;
  border: 1px solid #fef3c7;
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
}

.receipt-row-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.45rem;
  border-top: 1px dashed #e2e8f0;
}

.receipt-line-total {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--burgundy-primary);
  letter-spacing: -0.01em;
}

/* Empty Receipt Placeholder */
.empty-receipt-box {
  padding: 4rem 1.5rem;
  text-align: center;
  color: #94a3b8;
  margin: auto;
}

.empty-receipt-box svg {
  stroke: #cbd5e1;
}

/* ==========================================================================
   CHECKOUT SUMMARY DOCK (CRISP, PROFESSIONAL, ZERO VERTICAL OVERFLOW)
   ========================================================================== */
.register-checkout-dock {
  border-top: 1.5px solid #e2e8f0;
  background: #ffffff;
  padding: 0.45rem 0.75rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
  flex-shrink: 0;
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.03);
}

.summary-compact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 8px;
  font-size: 0.7rem;
  color: #475569;
  background: #f8fafc;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.summary-metric-cell {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.summary-compact-grid strong {
  color: #0f172a;
  font-weight: 800;
}

/* Discount Manager Row */
.pos-discount-strip-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
  margin: 0;
}

.discount-label-col {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  flex: 1;
}

.discount-pill-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: #92400e;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.active-discount-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.66rem;
  font-weight: 700;
  color: #b45309;
}

.btn-remove-discount {
  background: none;
  border: none;
  color: #dc2626;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
  padding: 0 0 0 2px;
  line-height: 1;
}

.no-discount-text {
  font-size: 0.66rem;
  color: var(--text-tertiary);
  font-style: italic;
}

.btn-pos-dots-discount {
  background: #ffffff;
  border: 1px solid #d97706;
  color: #b45309;
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 0.68rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(217, 119, 6, 0.08);
}

.btn-pos-dots-discount:hover {
  background: #f59e0b;
  color: #ffffff;
  border-color: #f59e0b;
}

/* Taxable & GST Strip */
.dock-tax-strip {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: #64748b;
  padding: 0;
  line-height: 1.2;
}

.dock-tax-strip strong {
  color: #0f172a;
  font-weight: 700;
}

/* Grand Total Display */
.grand-total-display {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.12rem 0 0;
  border-top: 1px solid #f1f5f9;
  margin-top: 0;
}

.grand-total-label {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.grand-total-val {
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--burgundy-primary);
  letter-spacing: -0.3px;
  font-family: var(--font-heading);
  line-height: 1.1;
}

/* Primary Checkout Button */
.btn-pos-charge {
  width: 100%;
  background: linear-gradient(135deg, #420815 0%, #680c22 45%, #881230 100%);
  color: #ffffff;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(104, 12, 34, 0.25);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 0.12rem;
  height: 38px;
  flex-shrink: 0;
}

.btn-pos-charge:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(104, 12, 34, 0.35);
  filter: brightness(1.06);
}

.btn-pos-charge svg {
  stroke: #ffffff;
  width: 15px;
  height: 15px;
}

/* Secondary Quick Actions */
.dock-secondary-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.35rem;
  margin-top: 0.12rem;
  flex-shrink: 0;
}

.btn-dock-action {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #475569;
  border-radius: 6px;
  padding: 3px 5px;
  font-size: 0.66rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
  height: 26px;
}

.btn-dock-action:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
  transform: translateY(-1px);
}

.btn-dock-action.btn-clear-dock:hover,
.btn-dock-action#btnClearCart:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

/* Secondary Buttons */
.btn-pos-secondary {
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  color: var(--obsidian);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.btn-pos-secondary:hover {
  background: var(--bg-surface-subtle);
  border-color: var(--burgundy-border);
  color: var(--burgundy-primary);
  transform: translateY(-1px);
}

/* Customer & Catalog Table Action Buttons */
.btn-cust-page-bill {
  background: var(--burgundy-gradient);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0.38rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-cust-page-bill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(104, 12, 34, 0.35);
}

.btn-cust-page-edit {
  background: #f8fafc;
  color: var(--obsidian);
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.38rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-cust-page-edit:hover {
  background: #ffffff;
  border-color: var(--burgundy-border);
  color: var(--burgundy-primary);
}

.btn-add-from-catalog {
  background: var(--burgundy-soft);
  color: var(--burgundy-primary);
  border: 1.5px solid var(--burgundy-border);
  border-radius: 6px;
  padding: 0.38rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-add-from-catalog:hover {
  background: var(--burgundy-primary);
  color: #ffffff;
}

.btn-view-invoice {
  background: #f1f5f9;
  color: var(--obsidian);
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.38rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-view-invoice:hover {
  background: #ffffff;
  border-color: var(--burgundy-primary);
  color: var(--burgundy-primary);
}

.btn-cancel-order {
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
  border-radius: 6px;
  padding: 0.38rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.btn-cancel-order:hover {
  background: #e11d48;
  color: #ffffff;
}

/* Pills & Utility Badges */
.catalog-count-pill {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--burgundy-soft);
  color: var(--burgundy-primary);
  border: 1px solid var(--burgundy-border);
  padding: 2px 8px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  display: inline-block;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
  animation: pulseLive 2s infinite;
}

@keyframes pulseLive {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.pos-advance-chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.45rem;
}

.pos-tc-chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.dock-secondary-row {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.btn-dock-action {
  flex: 1;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.45rem 0.35rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  transition: var(--transition);
}

.btn-dock-action:hover {
  background: #ffffff;
  color: var(--obsidian);
}

/* ==========================================================================
   5. CHECKOUT SCREEN & MODAL (POS STREAMLINED LUXURY STYLE)
   ========================================================================== */
#checkoutModal .modal-container {
  max-width: 1040px;
  width: 96vw;
  max-height: 92vh;
  height: 92vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-modal);
}

.checkout-modal-header {
  flex-shrink: 0;
  padding: 0.75rem 1.35rem;
  border-bottom: 1px solid var(--border-subtle);
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

/* Left Column: Form & Payment Selection */
.checkout-col-left {
  padding: 1.15rem 1.4rem 0.5rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  overflow-y: auto;
  background: #ffffff;
}

.checkout-field-block {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.checkout-field-block label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-secondary);
  display: block;
}

.checkout-billed-to-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.85rem;
}

.billed-to-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--obsidian);
}

.billed-to-sub {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.btn-checkout-switch-cust {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  color: var(--obsidian);
}

.btn-checkout-switch-cust:hover {
  border-color: var(--burgundy-primary);
  color: var(--burgundy-primary);
}

/* Checkout Settlement Status & Advance / T&C Styling */
.checkout-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-pill);
  font-size: 0.68rem;
  font-weight: 700;
  transition: var(--transition);
}

.checkout-status-pill.pill-full {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.checkout-status-pill.pill-partial {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.checkout-status-pill.pill-unpaid {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.checkout-status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.checkout-status-btn {
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.checkout-status-btn:hover {
  border-color: var(--burgundy-border);
  transform: translateY(-1px);
}

.checkout-status-btn.active[data-status="full"] {
  border-color: #16a34a;
  background: #f0fdf4;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.12);
}

.checkout-status-btn.active[data-status="partial"] {
  border-color: #d97706;
  background: #fffbeb;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.12);
}

.checkout-status-btn.active[data-status="unpaid"] {
  border-color: #dc2626;
  background: #fef2f2;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.12);
}

.status-btn-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.status-btn-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--obsidian);
}

.status-btn-desc {
  font-size: 0.6rem;
  color: var(--text-tertiary);
}

.pos-advance-chip {
  font-size: 0.68rem;
  font-weight: 700;
  color: #92400e;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: var(--radius-pill);
  padding: 0.18rem 0.5rem;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.pos-advance-chip:hover {
  background: #fde68a;
  transform: scale(1.03);
}

.pos-tc-chip {
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-surface-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0.18rem 0.5rem;
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

.pos-tc-chip:hover {
  background: var(--burgundy-soft);
  color: var(--burgundy-primary);
  border-color: var(--burgundy-border);
}

/* Selectable Payment Cards */
.checkout-payment-methods-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.payment-method-card {
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.35rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.payment-method-card:hover {
  border-color: var(--burgundy-border);
}

.payment-method-card.active {
  border-color: var(--burgundy-primary);
  background: var(--burgundy-soft);
  box-shadow: 0 3px 10px rgba(104, 12, 34, 0.12);
}

.payment-method-card .svg-icon {
  width: 18px;
  height: 18px;
  stroke: var(--text-secondary);
}

.payment-method-card.active .svg-icon {
  stroke: var(--burgundy-primary);
}

.payment-method-title {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--obsidian);
}

/* Interactive Payment Fields */
.checkout-inputs-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checkout-input {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.75rem;
  font-size: 0.8rem;
  color: var(--obsidian);
  outline: none;
  transition: var(--transition);
}

.checkout-input:focus {
  border-color: var(--burgundy-primary);
  box-shadow: 0 0 0 3px rgba(104, 12, 34, 0.1);
}

.checkout-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

/* Sticky Action Row at Bottom of Left Column */
.checkout-actions-row {
  position: sticky;
  bottom: 0;
  background: #ffffff;
  padding: 0.65rem 0 0.35rem 0;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 0.75rem;
  margin-top: auto;
  z-index: 5;
}

.btn-checkout-cancel {
  flex: 0 0 95px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.68rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

.btn-checkout-cancel:hover {
  background: #e2e8f0;
  color: var(--obsidian);
}

.btn-checkout-confirm {
  flex: 1;
  background: var(--burgundy-gradient);
  color: #ffffff;
  border: none;
  font-size: 0.84rem;
  font-weight: 800;
  padding: 0.68rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(104, 12, 34, 0.25);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-checkout-confirm:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(104, 12, 34, 0.35);
}

.checkout-disclaimer-note {
  font-size: 0.68rem;
  color: var(--text-tertiary);
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

/* Right Column: Warm Luxury Receipt & Itemized Cart Summary */
.checkout-col-right {
  background: linear-gradient(180deg, #fdfbf7 0%, #faf6f0 100%);
  border-left: 1px solid var(--border-subtle);
  padding: 1.15rem 1.4rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  position: relative;
}

.checkout-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.checkout-summary-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--obsidian);
  line-height: 1.2;
}

.checkout-summary-sub {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.checkout-huid-certified-badge {
  background: var(--gold-surface);
  color: var(--gold-text);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--gold-border);
}

/* Itemized Cart List Container */
.checkout-cart-items-scroll {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 185px;
  overflow-y: auto;
  margin-bottom: 0.75rem;
  padding-right: 3px;
}

.checkout-item-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(217, 119, 6, 0.16);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.65rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.checkout-item-card:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.1);
}

.checkout-item-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.checkout-item-karat-badge {
  background: var(--burgundy-soft);
  color: var(--burgundy-primary);
  font-weight: 800;
  font-size: 0.65rem;
  padding: 2px 5px;
  border-radius: 4px;
  flex-shrink: 0;
}

.checkout-item-details {
  min-width: 0;
}

.checkout-item-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--obsidian);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.checkout-item-meta {
  font-size: 0.66rem;
  color: var(--text-secondary);
}

.checkout-item-price {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--obsidian);
  text-align: right;
  flex-shrink: 0;
}

/* Line-by-Line Breakdown Table */
.checkout-breakdown-table {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.breakdown-row strong {
  color: var(--obsidian);
  font-weight: 700;
}

.breakdown-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 0.25rem 0;
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
  padding: 0.55rem 0.8rem;
  background: #ffffff;
  border: 1.5px solid var(--gold-border);
  border-radius: var(--radius-md);
}

.checkout-total-label {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--obsidian);
  display: block;
}

.checkout-tax-inclusive-label {
  font-size: 0.65rem;
  color: var(--text-tertiary);
  font-weight: 600;
}

.checkout-total-val {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--burgundy-primary);
  letter-spacing: -0.5px;
}

/* Settlement Status Box (Full vs Advance vs Balance Due) */
.checkout-settlement-summary {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  background: #ffffff;
  border: 1px dashed var(--gold-border);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.75rem;
}

.settlement-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.settlement-label {
  color: var(--text-secondary);
  font-weight: 600;
}

.settlement-val {
  font-weight: 700;
  color: var(--obsidian);
}

/* Security Notice */
.checkout-security-box {
  display: flex;
  gap: 0.45rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.55rem 0.7rem;
  font-size: 0.68rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-top: auto;
}

.checkout-security-box .svg-icon {
  stroke: var(--gold-primary);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ==========================================================================
   6. OTHER TABS (ORDERS, CATALOG, PRICE SYNC)
   ========================================================================== */
.full-view-tab {
  padding: 1.5rem 1.75rem;
  overflow-y: auto;
}

/* Tab Button Utility */
.pos-tab-btn {
  cursor: pointer;
  user-select: none;
}

/* Price Sync Tab Specific Styles */
.sync-header-banner {
  background: #ffffff;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
}

.collections-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.collection-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: var(--transition);
}

.collection-card:hover {
  border-color: var(--burgundy-border);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.sync-simulation-box {
  background: #ffffff;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.progress-bar-wrap {
  height: 8px;
  background: #e2e8f0;
  border-radius: 9999px;
  margin: 0.75rem 0;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: var(--burgundy-gradient);
  border-radius: 9999px;
  transition: width 0.3s ease;
}

.sync-log-terminal {
  background: #0f172a;
  color: #94a3b8;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  max-height: 140px;
  overflow-y: auto;
  line-height: 1.5;
}

.orders-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.orders-kpi-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}

.kpi-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-tertiary);
  letter-spacing: 0.5px;
}

.kpi-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--obsidian);
  margin: 0.35rem 0;
}

.kpi-sub {
  font-size: 0.72rem;
  color: var(--emerald);
  font-weight: 600;
}

.orders-table-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
}

.orders-table-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

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

.orders-table-wrapper {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
}

.billing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.billing-table th {
  background: #faf8f5;
  padding: 0.75rem 0.95rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}

.billing-table td {
  padding: 0.85rem 0.95rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--obsidian);
  vertical-align: middle;
}

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

.billing-table tr:hover td {
  background: rgba(114, 9, 44, 0.02);
}

/* Streamlined 6-Column Invoices Table Details */
.invoice-streamlined-table {
  table-layout: fixed;
  width: 100%;
}

.invoice-streamlined-table th:first-child,
.invoice-streamlined-table td:first-child {
  padding-left: 1.25rem;
}

.invoice-streamlined-table th:last-child,
.invoice-streamlined-table td:last-child {
  padding-right: 1.25rem;
}

/* Dedicated Customer Directory Table Styles */
.cust-directory-table {
  width: 100%;
  border-collapse: collapse;
}

.cust-directory-table th {
  background: #f8fafc;
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.85rem 1rem;
  border-bottom: 1.5px solid var(--border-subtle);
  white-space: nowrap;
}

.cust-directory-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
  background: #ffffff;
}

.cust-directory-table tr:hover td {
  background: #fefcfd;
}

.cust-directory-table th:first-child,
.cust-directory-table td:first-child {
  padding-left: 1.25rem;
}

.cust-directory-table th:last-child,
.cust-directory-table td:last-child {
  padding-right: 1.25rem;
}

.invoice-table-row {
  transition: background 0.15s ease;
}

.inv-badge {
  font-family: var(--font-mono, monospace);
  font-weight: 800;
  font-size: 0.84rem;
  color: var(--burgundy-primary);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.inv-date-sub {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  margin-top: 3px;
  white-space: nowrap;
}

.inv-cust-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--obsidian);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inv-cust-sub {
  font-size: 0.73rem;
  color: var(--text-secondary);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inv-weight-val {
  font-weight: 700;
  font-size: 0.86rem;
  color: #b4832c;
  white-space: nowrap;
}

.inv-weight-sub {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 3px;
  white-space: nowrap;
}

.inv-total-val {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--obsidian);
  white-space: nowrap;
}

.inv-tax-sub {
  font-size: 0.71rem;
  color: var(--text-secondary);
  margin-top: 3px;
  white-space: nowrap;
}

.inv-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.pill-paid {
  background: #e6f4ea;
  color: #107c41;
  border: 1px solid #b7e1cd;
}

.pill-cancelled {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.pill-exchanged {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.pill-returned {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.pill-unpaid {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.pill-partial {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fcd34d;
}

.inv-actions-cluster {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-wrap: nowrap;
}

.btn-inv-action {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  font-size: 0.73rem;
  font-weight: 700;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn-inv-action:hover {
  background: var(--bg-surface-subtle);
  color: var(--obsidian);
  border-color: #cbd5e1;
}

.btn-inv-action.btn-return-exchange {
  color: #1d4ed8;
  background: #f0f7ff;
  border-color: #c7dffd;
}

.btn-inv-action.btn-return-exchange:hover {
  background: #1d4ed8;
  color: #ffffff;
}

.btn-inv-action.btn-inv-danger {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fecaca;
}

.btn-inv-action.btn-inv-danger:hover {
  background: #b91c1c;
  color: #ffffff;
}

/* ==========================================================================
   PRODUCTS & SERVICES CATALOG EXPLORER (TAB 3 LUXURY REDESIGN)
   ========================================================================== */
.catalog-filter-bar {
  padding: 0.75rem 0 0.5rem 0;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.pos-catalog-card {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease;
}

.pos-catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(114, 9, 44, 0.08);
  border-color: var(--burgundy-border);
}

.catalog-card-image-wrap {
  position: relative;
  height: 195px;
  background: #faf7f2;
  overflow: hidden;
}

.catalog-card-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.pos-catalog-card:hover .catalog-card-image-wrap img {
  transform: scale(1.05);
}

.catalog-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.catalog-card-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--obsidian);
  line-height: 1.35;
  margin-bottom: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.5rem;
}

.catalog-card-sku-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-tertiary);
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.catalog-card-specs-box {
  background: #faf8f5;
  border: 1px solid #f0eae1;
  border-radius: 8px;
  padding: 0.65rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: auto;
}

.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
}

.spec-lbl {
  color: var(--text-secondary);
}

.spec-val {
  font-weight: 600;
  color: var(--obsidian);
}

.spec-gold {
  color: #b4832c;
  font-weight: 700;
}

.spec-row-price {
  border-top: 1px dashed #e2dbcd;
  padding-top: 0.45rem;
  margin-top: 0.25rem;
}

.spec-price {
  color: #0f766e;
  font-size: 0.94rem;
  font-weight: 800;
}

/* ==========================================================================
   CUSTOMER SELECTION MODAL LIST (REAL CLIENTS & WALK-IN RESET)
   ========================================================================== */
.cust-modal-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.cust-modal-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.cust-modal-card:hover {
  border-color: var(--burgundy-border);
  background: rgba(114, 9, 44, 0.02);
  transform: translateX(3px);
}

.cust-modal-card.active {
  border-color: var(--emerald);
  background: #f0fdf4;
  box-shadow: 0 0 0 1px var(--emerald);
}

.cust-modal-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.cust-modal-avatar {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--bg-surface-subtle);
  color: var(--obsidian);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}

.cust-modal-card.active .cust-modal-avatar {
  background: #dcfce7;
  color: #15803d;
  border-color: #86efac;
}

.cust-modal-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cust-modal-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--obsidian);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cust-modal-meta {
  font-size: 0.74rem;
  color: var(--text-secondary);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cust-modal-btn {
  padding: 0.4rem 0.85rem;
  font-size: 0.76rem;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
  background: #ffffff;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
  margin-left: 0.75rem;
}

.cust-modal-card:hover .cust-modal-btn {
  background: var(--burgundy-primary);
  color: #ffffff;
  border-color: var(--burgundy-primary);
}

.cust-modal-card.active .cust-modal-btn {
  background: #15803d;
  color: #ffffff;
  border-color: #15803d;
}

/* Modals Overlay */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-container {
  background: #ffffff;
  color: var(--obsidian);
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  border-radius: var(--radius-xl);
  overflow-y: auto;
  box-shadow: var(--shadow-modal);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transform: translateY(20px) scale(0.97);
  opacity: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.22s ease;
}

.modal-overlay.open .modal-container {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-actions-bar {
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

.modal-close-btn {
  border: none;
  background: var(--bg-input);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--rose-bg);
  color: var(--rose);
}

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.toast {
  background: #1e293b;
  color: #ffffff;
  padding: 0.75rem 1.15rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: var(--shadow-modal);
  pointer-events: auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: #ffffff;
  border-top: 1px solid var(--border-subtle);
  z-index: 80;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
}

.mobile-nav-item {
  background: transparent;
  border: none;
  color: var(--text-tertiary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.35rem 0.75rem;
}

.mobile-nav-item.active {
  color: var(--burgundy-primary);
}

/* ==========================================================================
   7. RESPONSIVE BREAKPOINTS (DESKTOP, TABLET, MOBILE)
   ========================================================================== */

/* Large Laptop / Medium Desktop (<= 1366px) */
@media (max-width: 1366px) {
  .favorite-buyers-wrap {
    display: none;
  }
  .banner-search-wrap {
    width: 175px;
  }
  .banner-rates-ticker {
    gap: 0.35rem;
    padding: 3px 8px;
  }
  .banner-rate-item {
    font-size: 0.72rem;
  }
  .banner-greeting-title {
    font-size: 1.15rem;
  }
}

/* Compact Laptop / Small Screen (<= 1200px) */
@media (max-width: 1200px) {
  .app-header-banner {
    padding: 0.38rem 0.85rem;
  }
  .banner-top-row {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }
  .banner-rates-ticker {
    max-width: 48%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .banner-search-wrap {
    width: 140px;
  }
  .pos-tiles-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }
  .dashboard-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .orders-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet & iPad Landscape (<= 1024px) */
@media (max-width: 1024px) {
  .app-sidebar {
    width: 72px;
    min-width: 72px;
  }
  .sidebar-header {
    justify-content: center;
    padding: 0.85rem 0.4rem;
  }
  .sidebar-brand-sub,
  .sidebar-brand-text,
  .sidebar-cta-text,
  .sidebar-nav-label,
  .sidebar-btn-label,
  .sidebar-bottom-pro {
    display: none !important;
  }
  .sidebar-brand-logo-img {
    max-width: 44px;
    max-height: 32px;
  }
  .btn-sidebar-create {
    padding: 0.65rem 0;
    justify-content: center;
    border-radius: var(--radius-sm);
  }
  .sidebar-nav-btn {
    justify-content: center;
    padding: 0.65rem 0;
  }
  .pos-register-column {
    width: 340px;
    min-width: 340px;
  }
  .dashboard-charts-grid {
    grid-template-columns: 1fr;
  }
  .checkout-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

/* Tablet Portrait & Small Screens (<= 860px) */
@media (max-width: 860px) {
  #checkoutModal .modal-container {
    height: 94vh;
    max-height: 94vh;
  }
  .checkout-grid {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
  .checkout-col-right {
    border-left: none;
    border-top: 1px solid var(--border-subtle);
  }
}

/* Mobile Devices (<= 768px) */
@media (max-width: 768px) {
  .app-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 260px;
    transform: translateX(-100%);
    box-shadow: var(--shadow-modal);
    z-index: 1000;
  }
  .app-sidebar.mobile-open {
    transform: translateX(0);
  }
  .sidebar-brand-sub,
  .sidebar-brand-text,
  .sidebar-cta-text,
  .sidebar-nav-label,
  .sidebar-btn-label,
  .sidebar-bottom-pro {
    display: block !important;
  }
  .sidebar-brand-logo-img {
    max-width: 140px;
    max-height: 40px;
  }
  .sidebar-nav-btn {
    justify-content: flex-start;
    padding: 0.58rem 0.85rem;
  }
  .btn-sidebar-create {
    justify-content: flex-start;
    padding: 0.75rem 1rem;
  }
  .btn-mobile-sidebar-toggle {
    display: flex !important;
  }
  .app-header-banner {
    padding: 0.75rem 1rem;
    border-radius: 0 0 16px 16px;
  }
  .banner-search-wrap {
    width: 100%;
    order: 2;
  }
  .banner-rates-ticker {
    order: 3;
    width: 100%;
    overflow-x: auto;
    max-width: 100%;
    justify-content: flex-start;
    scrollbar-width: none;
  }
  .banner-rates-ticker::-webkit-scrollbar {
    display: none;
  }
  .banner-greeting-cluster {
    text-align: left;
    align-items: flex-start;
  }
  .pos-terminal-grid {
    flex-direction: column;
    height: auto;
    overflow-y: auto;
  }
  .pos-catalog-column {
    height: auto;
    overflow: visible;
    padding: 0.75rem;
  }
  .pos-tiles-scrollarea {
    overflow: visible;
    height: auto;
    min-height: auto;
  }
  .pos-register-column {
    width: 100%;
    min-width: 100%;
    height: auto;
    border-left: none;
    border-top: 1px solid var(--border-subtle);
  }
  .pos-tiles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem;
  }
  .pos-tile-card,
  .pos-product-tile {
    padding: 0.55rem;
  }
  .tile-img-container,
  .tile-image-frame {
    height: 115px;
  }
  .dashboard-stats-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .orders-kpi-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .dashboard-charts-grid {
    grid-template-columns: 1fr;
  }
  .mobile-bottom-nav {
    display: flex;
  }
  .app-viewport {
    padding-bottom: 70px;
  }
}

/* Invoice Utilities */
.invoice-logo {
  max-width: 145px;
  max-height: 52px;
  object-fit: contain;
  display: block;
}

.center, .text-center {
  text-align: center;
}

.right, .text-right {
  text-align: right;
}

.no-border {
  border: none !important;
}

.money {
  font-family: var(--font-sans);
  font-weight: 700;
}

/* ==========================================================================
   8. PRINTABLE OFFICIAL TAX INVOICE (GST & BIS HALLMARK COMPLIANT)
   ========================================================================== */
#invoiceModal .modal-container {
  max-width: 920px;
  width: 94vw;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

#invoicePrintChoiceModal { z-index: 10060; }
.invoice-print-choice-container {
  max-width: 440px;
  padding: 22px;
  background: #fff;
  color: #111827;
}
.invoice-print-choice-header { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.invoice-print-choice-header h2 { margin:0; font-size:20px; line-height:1.2; }
.invoice-print-choice-header p { margin:5px 0 0; font-size:13px; color:#475569; }
.invoice-print-choice-close { border:0; background:#f1f5f9; color:#334155; border-radius:8px; width:32px; height:32px; font-size:24px; line-height:1; cursor:pointer; }
.invoice-print-choice-options { display:grid; gap:10px; margin-top:20px; }
.invoice-print-choice-option { width:100%; display:flex; align-items:center; gap:14px; text-align:left; padding:14px; border:1px solid #cbd5e1; border-radius:10px; background:#fff; color:#111827; cursor:pointer; }
.invoice-print-choice-option:hover,.invoice-print-choice-option:focus-visible { border-color:#72092c; background:#fff8fa; outline:2px solid transparent; }
.invoice-print-choice-option strong,.invoice-print-choice-option small { display:block; }
.invoice-print-choice-option strong { font-size:14px; }
.invoice-print-choice-option small { margin-top:2px; font-size:12px; color:#475569; }
.invoice-print-choice-icon { display:grid; place-items:center; flex:none; width:42px; height:42px; border-radius:8px; background:#f1f5f9; color:#72092c; font-size:24px; }
.invoice-print-choice-note { margin:16px 0 0; font-size:12px; line-height:1.45; color:#475569; }

.invoice-preview-body {
  padding: 1.25rem 1rem;
  background: #eef2f6;
  display: block;
  overflow-y: auto;
  flex: 1;
}

/* Master Printable Tax Invoice Paper (Pure Black & White: White BG & Black Text, No Outer Border) */
.luxury-tax-invoice,
.invoice-box {
  max-width: 820px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 28px 20px;
  border: none !important;
  outline: none !important;
  background: #ffffff !important;
  color: #000000 !important;
  font-family: Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  box-shadow: none !important;
  position: relative;
  box-sizing: border-box;
  border-radius: 0;
}

.invoice-box *,
.luxury-tax-invoice * {
  color: #000000 !important;
  text-shadow: none !important;
}

.invoice-box table {
  background-color: transparent;
}

/* Top Decorative Ribbon - Disabled for clean black & white invoice */
.inv-gold-ribbon {
  display: none !important;
}

/* 1. Header Grid */
.inv-head-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 2px solid #000000;
  gap: 20px;
}

.inv-brand-identity {
  flex: 1;
}

.inv-brand-logo-wrap {
  display: flex;
  flex-direction: column;
  margin-bottom: 6px;
}

.inv-brand-wordmark {
  font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 3px;
  color: #111827;
  line-height: 1;
}

.inv-brand-tagline {
  font-size: 10px;
  font-weight: 700;
  color: #b4832c;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 5px;
}

.inv-company-legal {
  margin-top: 6px;
  font-size: 11.5px;
  color: #334155;
  line-height: 1.5;
}

.legal-company-name {
  font-weight: 800;
  font-size: 12px;
  color: #111827;
  letter-spacing: 0.3px;
}

.inv-address-line {
  margin: 2px 0 5px;
  color: #475569;
}

.inv-reg-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.reg-badge {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10.5px;
  color: #334155;
}

.inv-contact-line {
  display: flex;
  gap: 6px;
  font-size: 10.5px;
  color: #64748b;
  flex-wrap: wrap;
}

/* Right Stamp */
.inv-official-stamp {
  text-align: right;
  min-width: 270px;
}

.inv-type-badge {
  display: inline-block;
  background: #72092c;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 3px 9px;
  border-radius: 3px;
  text-transform: uppercase;
}

.inv-title {
  font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #111827;
  margin: 5px 0 2px 0;
  line-height: 1.1;
}

.inv-gst-rule {
  font-size: 9.5px;
  color: #64748b;
  font-style: italic;
  margin-bottom: 8px;
}

.inv-meta-card {
  background: #fdfbf7;
  border: 1px solid #eeddc8;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 11px;
  line-height: 1.6;
}

.inv-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.meta-label {
  color: #64748b;
  font-weight: 600;
}

.meta-val {
  color: #111827;
  font-weight: 600;
}

.meta-val-highlight {
  color: #72092c;
  font-weight: 800;
  font-family: var(--font-mono, monospace);
  font-size: 11.5px;
}

/* 2. Parties Grid */
.inv-parties-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
}

.inv-party-col {
  padding: 12px 16px;
}

.inv-party-border-left {
  border-left: 1px solid #e2e8f0;
  background: #fafbfc;
}

.inv-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #72092c;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.inv-title-icon {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.inv-cust-lead {
  font-size: 13.5px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 5px;
}

.inv-party-detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  line-height: 1.6;
  color: #475569;
}

.detail-label {
  color: #64748b;
  font-weight: 600;
}

.detail-val {
  color: #1e293b;
  font-weight: 600;
  text-align: right;
}

.inv-pill-payment {
  background: #f1f5f9;
  color: #334155;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 700;
  border: 1px solid #cbd5e1;
  font-size: 10px;
}

.inv-pill-settled {
  background: #e6f4ea;
  color: #107c41;
  padding: 1px 6px;
  border-radius: 3px;
  font-weight: 800;
  border: 1px solid #b7e1cd;
  font-size: 10px;
}

/* 3. Items Table */
.inv-table-wrap {
  margin-top: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
}

.inv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  line-height: 1.4;
}

.inv-table th {
  background: #f8fafc;
  color: #0f172a;
  padding: 8px 7px;
  font-weight: 800;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-bottom: 1.5px solid #cbd5e1;
}

.inv-table td {
  padding: 8px 7px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
  color: #334155;
}

.inv-table tbody tr:nth-child(even) {
  background: #fafbfc;
}

.inv-col-idx {
  text-align: center;
  font-weight: 700;
  color: #64748b;
  font-size: 10px;
}

.inv-item-title {
  font-weight: 700;
  color: #0f172a;
  font-size: 11.5px;
  margin-bottom: 3px;
}

.inv-item-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.inv-spec-badge {
  font-size: 9px;
  font-weight: 700;
  background: #f1f5f9;
  color: #475569;
  padding: 1px 5px;
  border-radius: 3px;
  border: 1px solid #e2e8f0;
}

.badge-huid {
  background: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
  font-family: var(--font-mono, monospace);
}

.badge-igi {
  background: #eff6ff;
  color: #1e40af;
  border-color: #dbeafe;
  font-family: var(--font-mono, monospace);
}

.badge-color {
  background: #fdf2f8;
  color: #9d174d;
  border-color: #fbcfe8;
}

.inv-karat-pill {
  display: inline-block;
  background: #fefce8;
  color: #854d0e;
  border: 1px solid #fef08a;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 10px;
  white-space: nowrap;
}

.inv-dia-line {
  font-size: 11px;
  color: #0f172a;
}

.inv-dia-sub {
  font-size: 9.5px;
  color: #64748b;
  margin-top: 1px;
}

/* 4. Bottom Grid (Left: Hallmark & Words | Right: Calculations) */
.inv-bottom-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 16px;
  margin-top: 14px;
}

.inv-hallmark-box {
  background: #fdfbf7;
  border: 1px solid #e8dec8;
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 10px;
}

.inv-hallmark-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.hallmark-headline {
  font-size: 10.5px;
  font-weight: 800;
  color: #72092c;
  letter-spacing: 0.4px;
}

.hallmark-sub {
  font-size: 9px;
  color: #78350f;
  font-weight: 600;
}

.hallmark-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin: 6px 0;
}

.hallmark-pillar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  padding: 3px 2px;
  text-align: center;
}

.pillar-num {
  display: block;
  font-size: 8.5px;
  font-weight: 800;
  color: #b4832c;
}

.pillar-label {
  display: block;
  font-size: 8px;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
}

.hallmark-expl {
  font-size: 9px;
  color: #64748b;
  line-height: 1.4;
  margin: 0;
}

.inv-words-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 10px;
  margin-bottom: 10px;
}

.words-label {
  font-size: 9px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.5px;
}

.words-content {
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 2px;
  font-style: italic;
  line-height: 1.35;
}

.inv-payment-record {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 10.5px;
  line-height: 1.6;
}

.payment-record-row {
  display: flex;
  justify-content: space-between;
}

/* Calculations Table */
.inv-calc-table {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
}

.calc-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 10px;
  font-size: 11px;
  border-bottom: 1px solid #f1f5f9;
  color: #475569;
}

.calc-label {
  font-weight: 600;
}

.calc-val {
  font-weight: 700;
  color: #0f172a;
  text-align: right;
  font-family: var(--font-mono, monospace);
}

.calc-subtotal {
  background: #f8fafc;
  font-weight: 800;
  border-top: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
}

.calc-discount {
  color: #b91c1c;
  font-weight: 700;
  background: #fef2f2;
}

.calc-discount .calc-val {
  color: #b91c1c;
}

.calc-tax-row {
  color: #334155;
  font-size: 10.5px;
}

.calc-grand-total {
  background: #fdf2f4;
  border-top: 2px solid #72092c;
  padding: 8px 12px;
  color: #72092c;
  align-items: center;
}

.grand-label-wrap {
  display: flex;
  flex-direction: column;
}

.grand-label {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.5px;
}

.grand-tax-inclusive {
  font-size: 8.5px;
  color: #9f1239;
  font-weight: 600;
}

.grand-val {
  font-size: 16px;
  font-weight: 900;
  color: #72092c;
  font-family: var(--font-mono, monospace);
}

/* 5. Legal Terms & Signatures */
.inv-footer-legal {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

.terms-title {
  font-size: 9.5px;
  font-weight: 800;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 5px;
}

.terms-list {
  margin: 0;
  padding-left: 14px;
  font-size: 9px;
  color: #64748b;
  line-height: 1.45;
}

.terms-list li {
  margin-bottom: 2px;
}

.inv-sign-col {
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
}

.inv-sign-company {
  font-size: 10.5px;
  color: #111827;
  margin-bottom: 6px;
}

.inv-digital-stamp {
  margin-bottom: 6px;
}

.stamp-seal {
  width: 78px;
  height: 78px;
  border: 1.8px dashed #72092c;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  transform: rotate(-7deg);
  background: rgba(114, 9, 44, 0.02);
}

.stamp-inner {
  text-align: center;
  color: #72092c;
  line-height: 1.15;
}

.stamp-karago {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 800;
  display: block;
  letter-spacing: 1px;
}

.stamp-city {
  font-size: 6.5px;
  font-weight: 700;
  display: block;
  letter-spacing: 0.5px;
}

.stamp-verified {
  font-size: 6.5px;
  font-weight: 800;
  display: block;
  margin-top: 1px;
}

.inv-sign-line {
  border-top: 1px solid #111827;
  width: 155px;
  padding-top: 4px;
  font-weight: 700;
  font-size: 10.5px;
  color: #111827;
  text-align: center;
}

.inv-sign-sub {
  font-size: 8.5px;
  color: #64748b;
  margin-top: 2px;
  text-align: center;
  width: 155px;
}

/* 6. Footer Brand Tagline */
.inv-bottom-tagline {
  margin-top: 14px;
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
  text-align: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #94a3b8;
  text-transform: uppercase;
}

/* PRINT MEDIA QUERIES (Crisp A4 Vector Reproduction) */
@media print {
  @page {
    size: A4 portrait;
    margin: 8mm;
  }
  
  body, html {
    background: #ffffff !important;
    color: #000000 !important;
    margin: 0 !important;
    padding: 0 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body * {
    visibility: hidden !important;
  }

  #invoicePrintArea, #invoicePrintArea * {
    visibility: visible !important;
  }

  #invoiceModal {
    position: static !important;
    display: block !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
  }

  #invoiceModal .modal-container {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  .modal-actions-bar {
    display: none !important;
  }

  .invoice-preview-body {
    padding: 0 !important;
    background: transparent !important;
    overflow: visible !important;
    display: block !important;
  }

  .luxury-tax-invoice,
  .invoice-box {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    page-break-inside: avoid;
    background: #ffffff !important;
    color: #000000 !important;
  }

  .invoice-box {
    box-shadow: none !important;
  }

  .inv-table tr,
  .inv-bottom-grid,
  .inv-footer-legal {
    page-break-inside: avoid !important;
  }
}

/* ==========================================================================
   POS SECURITY PIN LOCK OVERLAY (BANK-GRADE AUTHENTICATION)
   ========================================================================== */
/* Old POS lock styles relocated and modernized in Section below */

/* ==========================================================================
   TABLET OPTIMIZATIONS (IPAD / ANDROID TABLETS: 768px - 1080px)
   ========================================================================== */
@media (min-width: 768px) and (max-width: 1080px) {
  .app-sidebar {
    width: 80px;
    min-width: 80px;
  }
  .sidebar-header {
    justify-content: center;
    padding: 0.75rem 0.25rem;
  }
  .sidebar-brand-sub,
  .sidebar-brand-text,
  .sidebar-cta-text,
  .sidebar-nav-label,
  .sidebar-bottom-pro {
    display: none !important;
  }
  .sidebar-nav-btn {
    flex-direction: column;
    gap: 3px;
    padding: 0.65rem 0.2rem;
    font-size: 0.68rem;
    text-align: center;
  }
  .sidebar-nav-btn .sidebar-btn-label {
    display: block !important;
    font-size: 0.65rem;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 72px;
  }
  .sidebar-nav-btn .svg-icon {
    width: 20px;
    height: 20px;
  }
  /* POS Split layout stays side-by-side on tablet landscape */
  .pos-terminal-grid {
    display: flex !important;
    flex-direction: row !important;
    height: 100% !important;
    min-height: 0 !important;
    flex: 1 1 0 !important;
    overflow: hidden !important;
  }
  .pos-catalog-column {
    flex: 1 1 0;
    min-width: 0;
    min-height: 0;
    height: 100% !important;
    overflow-y: auto !important;
    padding: 0.65rem 0.75rem;
  }
  .pos-register-column {
    width: clamp(300px, 32vw, 360px) !important;
    min-width: 300px !important;
    max-width: 380px !important;
    height: 100% !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    border-left: 1px solid var(--border-subtle);
    border-top: none !important;
  }
  .pos-tiles-grid {
    grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)) !important;
    gap: 0.65rem;
  }
  .pos-tile-card {
    padding: 0.65rem;
  }
  /* Bigger touch-friendly inputs on tablets */
  .pos-item-input {
    min-height: 36px;
    font-size: 0.88rem !important;
  }
  .btn-pos-charge {
    min-height: 48px;
    font-size: 0.95rem;
  }
}

/* Offer Chips Styling */
.btn-offer-chip {
  transition: all 0.15s ease;
  user-select: none;
}
.btn-offer-chip:hover {
  border-color: var(--burgundy-primary) !important;
  color: var(--burgundy-primary) !important;
  transform: translateY(-1px);
}
.btn-offer-chip.active-offer {
  background: var(--burgundy-primary) !important;
  color: #ffffff !important;
  border-color: var(--burgundy-primary) !important;
  box-shadow: 0 2px 6px rgba(104, 12, 34, 0.25);
}

/* Custom Item Trigger Button */
.btn-custom-item-trigger {
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-custom-item-trigger:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* ==========================================================================
   POS 3-DOTS DISCOUNT MANAGER & CUSTOM BILLING STYLES
   ========================================================================== */

/* Register Dock 3-Dots Discount Strip Row */
.pos-discount-strip-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fffdf5;
  border: 1px dashed rgba(217, 119, 6, 0.45);
  border-radius: 6px;
  padding: 0.32rem 0.55rem;
  margin: 0.15rem 0;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.pos-discount-strip-row:hover {
  border-color: #d97706;
  background: #fffbeb;
}

.btn-pos-dots-discount {
  background: #ffffff;
  border: 1px solid #d97706;
  color: #b45309;
  border-radius: 5px;
  padding: 2px 7px;
  font-size: 0.7rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  box-shadow: 0 1px 2px rgba(217, 119, 6, 0.1);
}

.btn-pos-dots-discount:hover {
  background: #fef3c7;
  color: #92400e;
  border-color: #b45309;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(217, 119, 6, 0.2);
}

.btn-pos-dots-discount:active {
  transform: scale(0.97);
}

#activeDiscountBadgeWrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #b45309;
  animation: fadeIn 0.2s ease-out;
}

#btnRemoveActiveDiscount {
  background: none;
  border: none;
  color: #dc2626;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  padding: 0 0 0 2px;
  line-height: 1;
  transition: transform 0.15s ease, color 0.15s ease;
}

#btnRemoveActiveDiscount:hover {
  color: #991b1b;
  transform: scale(1.2);
}

/* Discount Modal Styles */
.discount-modal-section {
  background: #fafaf9;
  border: 1px solid #e7e5e4;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.discount-modal-section:focus-within {
  border-color: #cbd5e1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.discount-toggle-group {
  display: flex;
  background: #e7e5e4;
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}

.discount-toggle-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.18s ease;
  user-select: none;
}

.discount-toggle-btn.active {
  background: #ffffff !important;
  color: var(--obsidian) !important;
  font-weight: 800 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chip-dis-quick {
  background: #ffffff;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--obsidian);
  transition: all 0.15s ease;
  user-select: none;
}

.chip-dis-quick:hover {
  border-color: var(--burgundy-primary);
  background: #fdf2f4;
  transform: translateY(-1px);
}

.chip-dis-quick:active {
  transform: scale(0.97);
}

/* Custom Item Billing UI Enhancements */
.btn-custom-tpl {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  user-select: none;
}

.btn-custom-tpl:hover {
  border-color: var(--burgundy-primary);
  background: #fdf2f4;
  color: var(--burgundy-primary);
  transform: translateY(-1px);
}

.btn-karat-choice {
  transition: all 0.18s ease;
  user-select: none;
}

.btn-karat-choice:hover {
  border-color: var(--burgundy-primary) !important;
  transform: translateY(-1px);
}

.btn-karat-choice.active {
  border: 2px solid var(--burgundy-primary) !important;
  background: #fffdf5 !important;
  box-shadow: 0 2px 6px rgba(104, 12, 34, 0.12);
}

.btn-making-type {
  transition: all 0.18s ease;
  user-select: none;
}

.btn-making-type.active {
  background: #ffffff !important;
  color: var(--obsidian) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   AUTHENTIC RETAIL POS CHECKOUT & UNIQUE SLEEK SCROLLBARS
   ========================================================================== */

/* Unique Ultra-Sleek Modern Scrollbars Across All Sections */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(104, 12, 34, 0.28) rgba(0, 0, 0, 0.02);
}

::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
}

::-webkit-scrollbar-thumb {
  background: rgba(104, 12, 34, 0.22);
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.15s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--burgundy-primary);
}

/* Specific Scrollbar Enhancement for Containers */
.custom-pos-scrollbar::-webkit-scrollbar,
.checkout-cart-items-scroll::-webkit-scrollbar,
.register-items-scroll::-webkit-scrollbar,
.pos-tiles-scrollarea::-webkit-scrollbar,
.modal-container::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.custom-pos-scrollbar::-webkit-scrollbar-thumb,
.checkout-cart-items-scroll::-webkit-scrollbar-thumb,
.register-items-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(104, 12, 34, 0.25) 0%, rgba(180, 83, 9, 0.25) 100%);
  border-radius: 6px;
}

.custom-pos-scrollbar::-webkit-scrollbar-thumb:hover,
.checkout-cart-items-scroll::-webkit-scrollbar-thumb:hover,
.register-items-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--burgundy-primary);
}

/* POS Cashier Checkout Modal Container */
.pos-checkout-container {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.22), 0 0 1px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

/* POS Checkout Receipt Slip (Left Column) */
.pos-checkout-receipt-col {
  background: linear-gradient(180deg, #ffffff 0%, #faf9f6 100%);
  position: relative;
}

.pos-checkout-receipt-col::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: radial-gradient(circle, transparent 2px, #ffffff 2px);
  background-size: 8px 4px;
}

/* POS Cashier Terminal Column (Right Column) */
.pos-checkout-terminal-col {
  background: #ffffff;
}

/* Minimalist Hero Amount to Collect Banner (Clean Matte Luxury Display) */
.checkout-hero-amount-banner {
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
  border: 1px solid #1e293b;
}

/* Clean Neutral Status Buttons Overrides (Eliminates Gaudy Multicolored Rainbow Look) */
.checkout-status-btn {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  color: var(--obsidian) !important;
  box-shadow: none !important;
}

.checkout-status-btn:hover {
  border-color: #cbd5e1 !important;
  background: #f8fafc !important;
}

.checkout-status-btn.active {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18) !important;
}

.checkout-status-btn.active .status-btn-title {
  color: #ffffff !important;
}

.checkout-status-btn.active .status-btn-desc {
  color: #cbd5e1 !important;
}

/* Clean Neutral Payment Method Cards Overrides */
.payment-method-card {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  color: var(--obsidian) !important;
  box-shadow: none !important;
}

.payment-method-card:hover {
  border-color: #cbd5e1 !important;
  background: #f8fafc !important;
}

.payment-method-card.active {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.18) !important;
}

.payment-method-card.active .payment-method-title {
  color: #ffffff !important;
}

.payment-method-card.active .svg-icon {
  stroke: #ffffff !important;
}

/* Quick Cash Tender Buttons (Clean Subtle Chips) */
.btn-cash-quick {
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.btn-cash-quick:hover {
  background: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  transform: translateY(-1px);
}

.btn-cash-quick:active {
  transform: scale(0.96);
}

#btnCashExact {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #ffffff !important;
}

#btnCashExact:hover {
  background: #1e293b !important;
  color: #ffffff !important;
}

/* ==========================================================================
   AUTHENTIC RETAIL POS PAYMENT PROCESSING MODAL ANIMATIONS
   ========================================================================== */

@keyframes procGlowFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* Multi-Ring Radar Spinner */
.pos-proc-spinner-ring {
  position: absolute;
  border-radius: 50%;
  box-sizing: border-box;
}

.pos-proc-spinner-ring.ring-outer {
  width: 86px;
  height: 86px;
  border: 3px solid transparent;
  border-top-color: #0f172a;
  border-bottom-color: #680c22;
  animation: procRingSpin 1.1s cubic-bezier(0.68, -0.55, 0.27, 1.55) infinite;
}

.pos-proc-spinner-ring.ring-inner {
  width: 68px;
  height: 68px;
  border: 2.5px solid transparent;
  border-left-color: #10b981;
  border-right-color: #b45309;
  animation: procRingSpinRev 0.85s linear infinite;
}

@keyframes procRingSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes procRingSpinRev {
  0% { transform: rotate(360deg); }
  100% { transform: rotate(0deg); }
}

/* Success Checkmark Path Draw Animation */
.pos-proc-check-path {
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: procCheckDraw 0.45s 0.05s ease forwards;
}

@keyframes procCheckDraw {
  100% {
    stroke-dashoffset: 0;
  }
}

#posProcSuccessIcon {
  animation: procPopIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes procPopIn {
  0% { transform: scale(0.3); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Responsive Rule for POS Checkout Grid */
@media (max-width: 768px) {
  .pos-checkout-grid {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
  }
  .pos-checkout-receipt-col {
    border-right: none !important;
    border-bottom: 1.5px solid #e2e8f0 !important;
    max-height: 280px !important;
  }
  .pos-checkout-container {
    height: 95vh !important;
    max-height: 95vh !important;
  }
}

/* ==========================================================================
   SPLIT-SCREEN LUXURY POS PORTAL & LOCK SCREEN
   ========================================================================== */
body.pos-locked {
  overflow: hidden !important;
  background: #080c14 !important;
}

body.pos-locked .app-shell,
body.pos-locked #appSidebar,
body.pos-locked .app-main,
body.pos-locked .modal-overlay,
body.pos-locked .toast-container {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

body.pos-authenticated .pos-portal-overlay,
body.pos-authenticated .pos-lock-overlay {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.pos-portal-overlay,
.pos-lock-overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  /* 100% Solid Opaque Luxury Backdrop - Zero Transparency & Zero POS Bleed-Through */
  background: #080c14;
  background-image: 
    radial-gradient(circle at 50% 12%, rgba(217, 119, 6, 0.14) 0%, transparent 60%),
    radial-gradient(circle at 15% 85%, rgba(30, 41, 59, 0.9) 0%, #05080e 100%);
  z-index: 9999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

.pos-portal-modal {
  display: flex;
  width: 100%;
  max-width: 860px;
  min-height: 560px;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12);
  animation: portalPopIn 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

@keyframes portalPopIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* --- LEFT HERO COLUMN (EDITORIAL LUXURY VISUAL) --- */
.pos-portal-hero {
  flex: 1.02;
  position: relative;
  background: url('../images/login-hero.jpg') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.25rem 2rem;
  color: #ffffff;
  overflow: hidden;
}

.pos-portal-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 4, 10, 0.72) 0%, rgba(15, 23, 42, 0.88) 100%);
  backdrop-filter: blur(1.5px);
  z-index: 1;
}

.pos-portal-hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pos-portal-hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pos-portal-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fde68a;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-sparkle {
  color: #fbbf24;
  font-size: 0.8rem;
}

.pos-portal-est {
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.pos-portal-hero-quote {
  margin: auto 0;
  padding: 1.5rem 0;
}

.pos-portal-hero-quote h2 {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin: 0 0 0.65rem 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 60%, #fde68a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pos-portal-hero-quote p {
  font-size: 0.84rem;
  color: #cbd5e1;
  line-height: 1.5;
  margin: 0;
}

.pos-portal-showroom-info {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 0.95rem 1.15rem;
  backdrop-filter: blur(10px);
}

.showroom-feature-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.feature-icon {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.feature-detail {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.feature-detail strong {
  color: #f8fafc;
  font-size: 0.78rem;
  font-weight: 700;
}

.feature-detail span {
  color: #cbd5e1;
  font-size: 0.7rem;
}

/* --- RIGHT CONSOLE COLUMN (AUTHENTICATION) --- */
.pos-portal-console {
  flex: 1.18;
  padding: 2.25rem 2.25rem 1.75rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #ffffff;
  overflow-y: auto;
  box-sizing: border-box;
}

.pos-portal-header {
  text-align: center;
  margin-bottom: 0.25rem;
}

.pos-portal-badge-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(212, 160, 23, 0.12) 0%, rgba(104, 12, 34, 0.08) 100%);
  border: 1px solid rgba(212, 160, 23, 0.35);
  color: #92400e;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 3px 12px;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.sparkle-gold {
  color: #d97706;
  font-size: 0.65rem;
}

.pos-portal-logo {
  height: 38px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  margin: 0 auto 0.4rem auto;
  display: block;
}

.pos-portal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.2rem 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
}

.pos-portal-subtitle {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
  transition: all 0.2s ease;
}

/* Tab Controls */
.pos-portal-tabs {
  display: flex;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
  margin: 1rem 0 0.85rem 0;
}

.pos-portal-tab {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: 9px;
  padding: 0.65rem 0.6rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.pos-portal-tab:hover:not(.active) {
  color: #0f172a;
  background: rgba(255, 255, 255, 0.6);
}

.pos-portal-tab.active {
  background: #ffffff;
  color: #680c22;
  box-shadow: 0 2px 8px rgba(104, 12, 34, 0.08), 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pos-portal-pane {
  display: flex;
  flex-direction: column;
  margin: auto 0;
  width: 100%;
}

/* ==========================================================================
   1. STAFF PASSKEY (PIN) STYLES
   ========================================================================== */
.pos-pin-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
  align-items: center;
}

.pos-dots-header {
  margin-bottom: 0.4rem;
}

.dots-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pos-pin-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 0.35rem 0 0.75rem 0;
  padding: 8px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
}

.pin-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid #cbd5e1;
  background: #ffffff;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-sizing: border-box;
}

.pin-dot.filled {
  background: linear-gradient(135deg, #680c22 0%, #4a0818 100%);
  border-color: #680c22;
  transform: scale(1.25);
  box-shadow: 0 0 12px rgba(104, 12, 34, 0.45);
}

.pos-portal-error {
  color: #dc2626;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  min-height: 18px;
  animation: fadeInDown 0.2s ease;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.pin-shake, .otp-shake {
  animation: shakeX 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shakeX {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(4px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
  40%, 60% { transform: translate3d(6px, 0, 0); }
}

/* Keypad Grid */
.pos-keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 275px;
  margin: 0 auto;
}

.keypad-key {
  height: 52px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.12s ease;
  user-select: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
  padding: 2px;
}

.keypad-key:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  transform: translateY(-1.5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.keypad-key:active {
  background: #e2e8f0;
  transform: scale(0.96);
}

.k-num {
  font-size: 1.28rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.k-sub {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #94a3b8;
  text-transform: uppercase;
  line-height: 1;
  margin-top: 1px;
}

.k-action {
  font-size: 0.88rem;
  font-weight: 700;
  color: #64748b;
}

.keypad-key.util-key {
  background: #f1f5f9;
}

.keypad-key.util-key:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-portal-primary {
  background: linear-gradient(135deg, #680c22 0%, #4a0818 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  margin-top: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 14px rgba(104, 12, 34, 0.28);
}

.btn-portal-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, #580a1d 0%, #3a0613 100%);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(104, 12, 34, 0.38);
}

.btn-portal-primary:active:not(:disabled) {
  transform: scale(0.98);
}

.btn-portal-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-arrow {
  font-size: 1rem;
  transition: transform 0.18s ease;
}

.btn-portal-primary:hover .btn-arrow {
  transform: translateX(4px);
}

.pos-portal-hint {
  text-align: center;
  margin-top: 0.75rem;
  font-size: 0.74rem;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.hint-dot {
  color: #cbd5e1;
}

.hint-code {
  color: #680c22;
  font-family: monospace;
  font-size: 0.82rem;
  background: #fdf2f4;
  border: 1px solid rgba(104, 12, 34, 0.15);
  padding: 2px 7px;
  border-radius: 6px;
}

/* Lockout banner */
.pos-lockout-banner {
  width: 100%;
  background: #fef2f2;
  border: 2px solid #ef4444;
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  box-sizing: border-box;
}

.lockout-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.lockout-title {
  font-size: 1rem;
  font-weight: 800;
  color: #991b1b;
  margin-bottom: 0.4rem;
}

.lockout-desc {
  font-size: 0.78rem;
  color: #7f1d1d;
  line-height: 1.5;
  margin: 0 0 1.25rem 0;
}

/* ==========================================================================
   2. OWNER OTP LOGIN STYLES (MANUAL EMAIL ENTRY - NO AUTOFILL)
   ========================================================================== */
.otp-step-box {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  text-align: center;
  width: 100%;
  animation: fadeIn 0.25s ease;
}

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

.owner-access-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  text-align: left;
}

.owner-access-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.owner-crown {
  font-size: 1.5rem;
  background: #ffffff;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  flex-shrink: 0;
}

.owner-badge-text strong {
  display: block;
  font-size: 0.84rem;
  color: #0f172a;
  font-weight: 800;
  margin-bottom: 2px;
}

.owner-badge-text p {
  font-size: 0.72rem;
  color: #64748b;
  margin: 0;
  line-height: 1.35;
}

/* Form Group for Email */
.portal-field-group {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.portal-field-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #334155;
}

.portal-badge-shield {
  font-size: 0.66rem;
  font-weight: 800;
  color: #059669;
  background: #ecfdf5;
  border: 1px solid rgba(5, 150, 105, 0.25);
  padding: 2px 8px;
  border-radius: 999px;
}

.portal-input-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.portal-input-icon {
  position: absolute;
  left: 12px;
  font-size: 1rem;
  color: #94a3b8;
  pointer-events: none;
}

.portal-input-box {
  width: 100%;
  height: 48px;
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 0 38px 0 38px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f172a;
  box-sizing: border-box;
  transition: all 0.2s ease;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.portal-input-box::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.portal-input-box:focus {
  outline: none;
  border-color: #680c22;
  box-shadow: 0 0 0 3.5px rgba(104, 12, 34, 0.12);
}

.portal-input-clear-btn {
  position: absolute;
  right: 12px;
  background: #e2e8f0;
  color: #475569;
  border: none;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.portal-input-clear-btn:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.owner-security-guarantee {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 0.2rem;
}

.shield-mini {
  font-size: 0.85rem;
}

/* OTP Sent Banner (Step B) */
.otp-sent-banner {
  background: #fdf2f4;
  border: 1.5px solid rgba(104, 12, 34, 0.18);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-align: left;
}

.otp-sent-icon {
  font-size: 1.35rem;
  flex-shrink: 0;
}

.otp-sent-text {
  flex: 1;
  min-width: 0;
}

.sent-caption {
  display: block;
  font-size: 0.68rem;
  color: #680c22;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sent-email-highlight {
  display: block;
  font-size: 0.85rem;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: monospace;
}

.btn-edit-email-link {
  background: #ffffff;
  border: 1px solid rgba(104, 12, 34, 0.2);
  color: #680c22;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-edit-email-link:hover {
  background: #680c22;
  color: #ffffff;
}

.otp-verify-prompt {
  font-size: 0.8rem;
  color: #475569;
  margin: 0;
  font-weight: 600;
}

/* 6-Digit OTP Boxes */
.pos-otp-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin: 0.4rem auto;
  max-width: 100%;
}

.clean-otp-box {
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 52px !important;
  border-radius: 12px !important;
  border: 2px solid #cbd5e1 !important;
  background: #f8fafc !important;
  color: #0f172a !important;
  font-size: 1.55rem !important;
  font-weight: 800 !important;
  text-align: center !important;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, monospace !important;
  box-sizing: border-box !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  padding: 0 !important;
  line-height: 48px !important;
}

.clean-otp-box:focus {
  outline: none !important;
  border-color: #680c22 !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 4px rgba(104, 12, 34, 0.14) !important;
  transform: translateY(-2px);
}

.otp-actions-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.btn-portal-secondary {
  flex: 1;
  padding: 0.82rem;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-weight: 700;
  color: #475569;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-portal-secondary:hover:not(:disabled) {
  background: #e2e8f0;
  color: #0f172a;
}

.btn-portal-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-portal-back {
  background: none;
  border: none;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  margin-top: 0.35rem;
  transition: color 0.15s ease;
}

.btn-portal-back:hover {
  color: #0f172a;
}

.pos-portal-footer {
  text-align: center;
  font-size: 0.72rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  padding-top: 0.65rem;
  border-top: 1px solid #f1f5f9;
}

.footer-dot {
  color: #cbd5e1;
}

/* Shake Animation */
@keyframes posShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

.pin-shake, .otp-shake {
  animation: posShake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* Responsive Collapse for Tablets & Mobile */
@media (max-width: 768px) {
  .pos-portal-modal {
    flex-direction: column;
    max-width: 380px;
    min-height: auto;
  }
  .pos-portal-hero {
    display: none;
  }
  .pos-portal-console {
    padding: 1.75rem 1.5rem;
  }
}

/* ==========================================================================
   SETTINGS & NOTIFICATIONS MODALS (LUXURY OVERLAY VISIBILITY & STYLING)
   ========================================================================== */
#settingsModal.open,
#notificationsModal.open {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

#settingsModal.open .modal-container,
#notificationsModal.open .modal-container {
  transform: translateY(0) scale(1) !important;
  opacity: 1 !important;
}

/* Notifications Center Filter Tabs */
.notif-filter-tab {
  background: transparent;
  color: #64748b;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 4px 11px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  user-select: none;
}

.notif-filter-tab:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.notif-filter-tab.active {
  background: var(--burgundy-primary) !important;
  color: #ffffff !important;
  border-color: var(--burgundy-primary) !important;
  box-shadow: 0 2px 6px rgba(104, 12, 34, 0.25);
}

/* Notification Item Cards */
.notif-item-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  background: #ffffff;
  border: 1.5px solid #eef2f6;
  border-radius: 12px;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.notif-item-card:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.notif-item-card.unread {
  background: #fffdf5;
  border-color: #fde68a;
}

.notif-item-card.unread::after {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d97706;
  box-shadow: 0 0 6px rgba(217, 119, 6, 0.6);
}

.notif-item-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.notif-item-content {
  flex: 1;
  min-width: 0;
}

.notif-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 2px;
}

.notif-item-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.notif-item-time {
  font-size: 0.66rem;
  color: #94a3b8;
  font-weight: 500;
  white-space: nowrap;
}

.notif-item-desc {
  font-size: 0.73rem;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
}

.notif-item-tags {
  display: flex;
  gap: 5px;
  margin-top: 6px;
  align-items: center;
}

.notif-pill {
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1.5px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pill-rates { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.pill-shopify { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.pill-billing { background: #fdf2f4; color: #680c22; border: 1px solid #fecdd3; }
.pill-security { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.pill-stock { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }

.empty-notifs-box {
  padding: 2.5rem 1rem;
  text-align: center;
  color: #94a3b8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.empty-notifs-box .empty-icon {
  font-size: 2.2rem;
}
.empty-notifs-box .empty-text {
  font-size: 0.84rem;
  font-weight: 700;
  color: #64748b;
}

/* ==========================================================================
   CUSTOMER DIRECTORY & POS ACTION BUTTONS (LUXURY CONTROLS)
   ========================================================================== */
.pos-city-chip {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  color: #475569;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  outline: none;
  line-height: 1.2;
}

.pos-city-chip:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.08);
}

.pos-city-chip.active-chip {
  background: var(--burgundy-primary) !important;
  color: #ffffff !important;
  border-color: var(--burgundy-primary) !important;
  box-shadow: 0 3px 10px rgba(104, 12, 34, 0.3) !important;
}

.pos-city-chip.active-chip span {
  background: rgba(255, 255, 255, 0.22);
  padding: 1px 7px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.68rem;
  color: #ffffff;
}

/* Barcode Scanner Trigger Button */
.pos-barcode-btn {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  color: #475569;
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  outline: none;
}

.pos-barcode-btn:hover {
  background: #f8fafc;
  border-color: var(--burgundy-primary);
  color: var(--burgundy-primary);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(104, 12, 34, 0.12);
}

/* ==========================================================================
   SHOPIFY GOLD PRODUCT PRICE MANAGER (ONE-BY-ONE & BULK)
   ========================================================================== */
.price-manager-container {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.price-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.price-kpi-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.1rem 1.35rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.price-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.price-kpi-card .kpi-label {
  font-size: 0.72rem;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.price-kpi-card .kpi-val {
  font-size: 1.6rem;
  font-weight: 900;
  color: #0f172a;
  margin: 0.35rem 0 0.2rem 0;
  font-family: var(--font-primary);
}

.price-kpi-card .kpi-sub {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
}

/* Controls & Filters Bar */
.price-controls-card {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.price-bulk-strip {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.15);
}

.btn-bulk-rate {
  background: #fef08a;
  color: #854d0e;
  border: none;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-bulk-rate:hover {
  background: #fde047;
  transform: scale(1.02);
}

.btn-bulk-adjust {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-bulk-adjust:hover {
  background: rgba(255, 255, 255, 0.22);
}

.btn-bulk-push {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  color: #ffffff;
  border: none;
  font-weight: 800;
  font-size: 0.84rem;
  padding: 0.6rem 1.35rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.35);
  transition: all 0.2s ease;
}

.btn-bulk-push:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(217, 119, 6, 0.45);
}

/* Interactive Price Table */
.price-table-wrapper {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(15, 23, 42, 0.03);
}

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

.price-data-table thead tr {
  background: #f8fafc;
  border-bottom: 1.5px solid #e2e8f0;
}

.price-data-table th {
  padding: 0.85rem 1rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.price-data-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s ease;
}

.price-data-table tbody tr:hover {
  background: #fafafa;
}

.price-data-table td {
  padding: 0.85rem 1rem;
  vertical-align: middle;
}

/* Price Input Box */
.input-proposed-price {
  width: 110px;
  box-sizing: border-box;
  padding: 0.45rem 0.6rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.92rem;
  font-family: monospace;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
  transition: all 0.2s ease;
  text-align: right;
}

.input-proposed-price:focus {
  background: #ffffff;
  border-color: #680c22;
  box-shadow: 0 0 0 3px rgba(104, 12, 34, 0.12);
}

/* Single Sync Button */
.btn-single-sync {
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.42rem 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-single-sync:hover {
  background: #680c22;
  color: #ffffff;
  border-color: #680c22;
  box-shadow: 0 3px 8px rgba(104, 12, 34, 0.2);
}

.btn-single-sync.synced-state {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
  cursor: default;
}

/* Diff Badges */
.pill-diff-up {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.pill-diff-down {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.pill-diff-synced {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.72rem;
}

/* Metal Badges */
.badge-metal-gold {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-metal-silver {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 2px 7px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Optional Silver Making & GST Inputs in Table */
.input-silver-making {
  width: 90px;
  padding: 4px 8px;
  border: 1.5px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  text-align: right;
  font-family: monospace;
  transition: all 0.2s ease;
}

.input-silver-making:focus {
  border-color: #680c22;
  box-shadow: 0 0 0 2px rgba(104, 12, 34, 0.12);
}

.chk-silver-gst-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  user-select: none;
  margin-top: 4px;
}

.chk-silver-gst-label input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: #680c22;
  cursor: pointer;
}

/* Price Publish Confirmation Diff Rows */
.price-confirm-row {
  border-bottom: 1px solid #e2e8f0;
  transition: background 0.15s ease;
}

.price-confirm-row:hover {
  background: #f8fafc;
}

.price-confirm-row td {
  padding: 10px 12px;
  vertical-align: middle;
}

/* ==========================================================================
   ORDER CANCELLATION CONFIRMATION MODAL (CLEAN SOBER LUXURY)
   ========================================================================== */
.order-cancel-modal-container {
  max-width: 480px !important;
  max-height: 92vh !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.18) !important;
  border: 1px solid #e5e7eb !important;
  background: #ffffff !important;
  position: relative;
  text-align: left;
  display: flex !important;
  flex-direction: column !important;
}

.order-cancel-header {
  background: #ffffff;
  padding: 1.1rem 1.35rem 0.85rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f3f4f6;
  flex-shrink: 0;
}

.order-cancel-title-wrap h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
  letter-spacing: -0.01em;
}

.order-cancel-title-wrap p {
  font-size: 0.76rem;
  color: #6b7280;
  margin: 2px 0 0 0;
}

.order-cancel-close-btn {
  background: transparent;
  border: none;
  color: #9ca3af;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s ease;
}

.order-cancel-close-btn:hover {
  background: #f3f4f6;
  color: #111827;
}

.order-cancel-body {
  padding: 1.1rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow-y: auto;
  flex: 1;
}

/* Minimalist Notice */
.order-cancel-notice {
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 0.75rem 0.95rem;
  font-size: 0.78rem;
  color: #4b5563;
  line-height: 1.45;
}

/* Clean Receipt Card */
.order-cancel-receipt-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
}

.order-cancel-receipt-header {
  background: #f9fafb;
  padding: 0.65rem 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f3f4f6;
}

.order-cancel-inv-pill {
  font-family: monospace;
  font-size: 0.82rem;
  font-weight: 700;
  color: #111827;
}

.order-cancel-receipt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  padding: 0.85rem 0.9rem;
}

.order-cancel-receipt-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.order-cancel-cell-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.order-cancel-cell-value {
  font-size: 0.84rem;
  font-weight: 600;
  color: #1f2937;
}

.order-cancel-receipt-total-strip {
  background: #fafafa;
  border-top: 1px solid #f3f4f6;
  padding: 0.7rem 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-cancel-total-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: #111827;
}

/* Impact Checklist */
.order-cancel-impact-list {
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.order-cancel-impact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: #4b5563;
}

.order-cancel-impact-check {
  font-size: 0.75rem;
  color: #059669;
  font-weight: 800;
}

/* Form inputs */
.order-cancel-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.order-cancel-form-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: #374151;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-cancel-select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.82rem;
  color: #1f2937;
  background: #ffffff;
  outline: none;
  cursor: pointer;
}

.order-cancel-select:focus {
  border-color: #680c22;
}

.order-cancel-email-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.order-cancel-email-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.82rem;
  color: #1f2937;
  outline: none;
}

.order-cancel-email-input:focus {
  border-color: #680c22;
}

/* Footer Buttons */
.order-cancel-footer {
  padding: 0.85rem 1.35rem 1.1rem 1.35rem;
  background: #fafafa;
  border-top: 1px solid #f3f4f6;
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.btn-order-cancel-abort {
  flex: 1;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  font-weight: 600;
  font-size: 0.84rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-order-cancel-abort:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.btn-order-cancel-confirm {
  flex: 1.4;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  border: none;
  background: #680c22;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(104, 12, 34, 0.25);
  transition: all 0.15s ease;
}

.btn-order-cancel-confirm:hover:not(:disabled) {
  background: #50091a;
}

.btn-order-cancel-confirm:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ==========================================================================
   USABILITY & ACCESSIBILITY AUDIT FIXES (UNIFIED COMPONENT UTILITIES)
   ========================================================================== */

/* 1. Visually Hidden (WCAG 2.1 Screen Reader Accessibility) */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* 2. Unified Base Button System (Consolidating into 5 standard variants) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: var(--font-size-sm);
  font-weight: 600;
  line-height: 1.25;
  padding: 0.5rem 0.875rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--burgundy-primary);
  color: var(--text-inverse);
  box-shadow: 0 2px 6px rgba(104, 12, 34, 0.2);
}
.btn-primary:hover {
  background: var(--burgundy-hover);
  box-shadow: 0 4px 12px rgba(104, 12, 34, 0.3);
}

.btn-secondary {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-card);
}
.btn-secondary:hover {
  background: var(--bg-app);
  border-color: var(--text-muted);
}

.btn-outline {
  background: transparent;
  color: var(--burgundy-primary);
  border-color: var(--burgundy-primary);
}
.btn-outline:hover {
  background: var(--burgundy-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-primary);
}

/* 3. Compact & Contained Sidebar DB Status (No Overflow) */
.sidebar-db-strip {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  box-sizing: border-box;
}

.sidebar-db-status {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #e2e8f0;
  font-size: 0.71rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.btn-sidebar-db-sync {
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.4);
  color: #fbbf24;
  border-radius: 4px;
  padding: 1.5px 6px;
  font-size: 0.67rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
  line-height: 1.25;
}

.btn-sidebar-db-sync:hover {
  background: rgba(251, 191, 36, 0.2);
  border-color: #fbbf24;
  color: #ffffff;
}

/* 4. Body Text Legibility Fixes */
.sidebar-bottom-pro p,
.sidebar-info-p {
  font-size: 0.75rem !important;
  line-height: 1.4 !important;
  color: rgba(255, 255, 255, 0.78) !important;
}

#dbStatusText {
  font-size: 0.74rem;
  font-weight: 600;
  color: #f1f5f9;
}

/* 5. Invoice Code Badge */
.invoice-code {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--burgundy-primary);
  background: rgba(104, 12, 34, 0.06);
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(104, 12, 34, 0.12);
}

/* 6. Page Main H1 Heading */
.dashboard-main-heading {
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  color: var(--obsidian) !important;
  margin: 0 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   QUICK LAUNCH & BOOKMARK NAVIGATION TILES (DASHBOARD HUB)
   ========================================================================== */
.dashboard-tiles-section {
  background: #ffffff;
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: var(--radius-lg, 12px);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.05));
}

.dashboard-tiles-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.15rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.dashboard-tiles-title-area {
  display: flex;
  flex-direction: column;
}

.dashboard-tiles-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #b45309;
  background: #fefce8;
  border: 1px solid #fef08a;
  padding: 2px 8px;
  border-radius: 9999px;
  width: fit-content;
  margin-bottom: 4px;
}

.dashboard-tiles-heading {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--obsidian, #0f172a);
  margin: 0;
  letter-spacing: -0.3px;
}

.dashboard-tiles-sub {
  font-size: 0.76rem;
  color: var(--text-secondary, #64748b);
  margin: 2px 0 0 0;
}

.btn-add-tile-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #6b1724 0%, #4a0e17 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.5rem 1.05rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(107, 23, 36, 0.2);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-add-tile-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(107, 23, 36, 0.3);
}

.dashboard-tiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 1rem;
}

.dashboard-tile-card {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-top-width: 3.5px;
  border-radius: 12px;
  padding: 1rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  min-height: 135px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

.dashboard-tile-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.08), 0 4px 8px -2px rgba(0, 0, 0, 0.04);
}

/* Color theme borders & pills */
.dashboard-tile-card.theme-gold { border-top-color: #d4af37; }
.dashboard-tile-card.theme-gold:hover { border-color: #fef08a #e2e8f0 #e2e8f0; border-top-color: #d4af37; box-shadow: 0 10px 24px -4px rgba(212, 175, 55, 0.2); }
.dashboard-tile-card.theme-gold .tile-icon-box { background: #fefce8; color: #b45309; }

.dashboard-tile-card.theme-burgundy { border-top-color: #6b1724; }
.dashboard-tile-card.theme-burgundy:hover { border-color: #fecdd3 #e2e8f0 #e2e8f0; border-top-color: #6b1724; box-shadow: 0 10px 24px -4px rgba(107, 23, 36, 0.2); }
.dashboard-tile-card.theme-burgundy .tile-icon-box { background: #fdf2f4; color: #6b1724; }

.dashboard-tile-card.theme-emerald { border-top-color: #10b981; }
.dashboard-tile-card.theme-emerald:hover { border-color: #a7f3d0 #e2e8f0 #e2e8f0; border-top-color: #10b981; box-shadow: 0 10px 24px -4px rgba(16, 185, 129, 0.2); }
.dashboard-tile-card.theme-emerald .tile-icon-box { background: #ecfdf5; color: #047857; }

.dashboard-tile-card.theme-sapphire { border-top-color: #3b82f6; }
.dashboard-tile-card.theme-sapphire:hover { border-color: #bfdbfe #e2e8f0 #e2e8f0; border-top-color: #3b82f6; box-shadow: 0 10px 24px -4px rgba(59, 130, 246, 0.2); }
.dashboard-tile-card.theme-sapphire .tile-icon-box { background: #eff6ff; color: #1d4ed8; }

.dashboard-tile-card.theme-amethyst { border-top-color: #8b5cf6; }
.dashboard-tile-card.theme-amethyst:hover { border-color: #ddd6fe #e2e8f0 #e2e8f0; border-top-color: #8b5cf6; box-shadow: 0 10px 24px -4px rgba(139, 92, 246, 0.2); }
.dashboard-tile-card.theme-amethyst .tile-icon-box { background: #f5f3ff; color: #6d28d9; }

.dashboard-tile-card.theme-amber { border-top-color: #f59e0b; }
.dashboard-tile-card.theme-amber:hover { border-color: #fde68a #e2e8f0 #e2e8f0; border-top-color: #f59e0b; box-shadow: 0 10px 24px -4px rgba(245, 158, 11, 0.2); }
.dashboard-tile-card.theme-amber .tile-icon-box { background: #fffbeb; color: #b45309; }

/* Tile Card Contents */
.tile-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tile-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.tile-card-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.tile-delete-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  opacity: 0;
  transition: all 0.15s ease;
}

.dashboard-tile-card:hover .tile-delete-btn {
  opacity: 1;
}

.tile-delete-btn:hover {
  background: #fef2f2;
  color: #ef4444;
}

.tile-arrow-indicator {
  color: #94a3b8;
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.2s ease, color 0.2s ease;
}

.dashboard-tile-card:hover .tile-arrow-indicator {
  transform: translate(2px, -2px);
  color: #0f172a;
}

.tile-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.tile-card-title {
  font-size: 0.88rem;
  font-weight: 750;
  color: #0f172a;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.tile-card-url {
  font-size: 0.72rem;
  color: #64748b;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tile-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 0.4rem;
  border-top: 1px dashed #f1f5f9;
}

.tile-card-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  padding: 1px 7px;
  border-radius: 4px;
}

.tile-card-hint {
  font-size: 0.72rem;
  font-weight: 700;
  color: #6b1724;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

/* "+ Add New Tile" Card inside grid */
.dashboard-tile-add-card {
  background: #fafbfc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  padding: 1rem 1.05rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  min-height: 135px;
  transition: all 0.2s ease;
  gap: 0.45rem;
}

.dashboard-tile-add-card:hover {
  background: #fefce8;
  border-color: #d4af37;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.15);
}

.tile-add-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px dashed #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: #64748b;
  transition: all 0.2s ease;
}

.dashboard-tile-add-card:hover .tile-add-icon-circle {
  border-color: #d4af37;
  color: #b45309;
  background: #ffffff;
  transform: scale(1.08);
}

.tile-add-label {
  font-size: 0.84rem;
  font-weight: 750;
  color: #334155;
}

.dashboard-tile-add-card:hover .tile-add-label {
  color: #b45309;
}

.tile-add-desc {
  font-size: 0.7rem;
  color: #94a3b8;
}

/* Modal specific styles */
.modal-add-tile-container {
  max-width: 530px;
  width: 92vw;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: 0 25px 70px rgba(0,0,0,0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-add-tile-header {
  background: #ffffff;
  border-bottom: 1.5px solid #f1f5f9;
  padding: 1.15rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-add-tile-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #fefce8;
  border: 1px solid #fef08a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.tile-input-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.84rem;
  color: #0f172a;
  outline: none;
  box-sizing: border-box;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tile-input-control:focus {
  border-color: #6b1724;
  box-shadow: 0 0 0 3px rgba(107, 23, 36, 0.1);
}

.tile-preset-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.btn-tile-preset {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-tile-preset:hover {
  background: #fefce8;
  border-color: #d4af37;
  color: #b45309;
  transform: translateY(-1px);
}

.tile-quick-icons {
  display: flex;
  gap: 4px;
  align-items: center;
}

.quick-icon-opt {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1.05rem;
  transition: all 0.15s;
}

.quick-icon-opt:hover {
  border-color: #6b1724;
  background: #fdf2f4;
  transform: scale(1.1);
}

.tile-theme-picker {
  display: flex;
  gap: 8px;
  align-items: center;
  padding-top: 4px;
}

.tile-theme-opt {
  cursor: pointer;
  position: relative;
  display: inline-block;
}

.tile-theme-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.theme-swatch {
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px #cbd5e1;
  transition: all 0.15s ease;
}

.swatch-gold { background: #d4af37; }
.swatch-burgundy { background: #6b1724; }
.swatch-emerald { background: #10b981; }
.swatch-sapphire { background: #3b82f6; }
.swatch-amethyst { background: #8b5cf6; }
.swatch-amber { background: #f59e0b; }

.tile-theme-opt.active .theme-swatch {
  box-shadow: 0 0 0 2px #0f172a;
  transform: scale(1.18);
}

.modal-add-tile-footer {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 0.85rem 1.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
  align-items: center;
}

.btn-tile-cancel {
  background: #f1f5f9;
  color: #475569;
  border: none;
  border-radius: 8px;
  padding: 0.55rem 1.15rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-tile-cancel:hover {
  background: #e2e8f0;
}

.btn-tile-submit {
  background: linear-gradient(135deg, #6b1724 0%, #4a0e17 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0.55rem 1.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(107, 23, 36, 0.25);
  transition: all 0.2s ease;
}

.btn-tile-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(107, 23, 36, 0.35);
}

@media (max-width: 640px) {
  .dashboard-tiles-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
  }
  .dashboard-tiles-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .btn-add-tile-primary {
    width: 100%;
    justify-content: center;
  }
  .modal-add-tile-container {
    width: 95vw;
    margin: 0.5rem;
  }
}









